tx · 5FBhGMuhayBvgkz9AzCmL1ozoDsD4HyayXn28fqExpAV 3MvZ4YLbfin9eutV1hThY35cg55vZdAvv5L: -0.01000000 Waves 2021.06.22 13:04 [1581437] smart account 3MvZ4YLbfin9eutV1hThY35cg55vZdAvv5L > SELF 0.00000000 Waves
{ "type": 13, "id": "5FBhGMuhayBvgkz9AzCmL1ozoDsD4HyayXn28fqExpAV", "fee": 1000000, "feeAssetId": null, "timestamp": 1624356282160, "version": 2, "chainId": 84, "sender": "3MvZ4YLbfin9eutV1hThY35cg55vZdAvv5L", "senderPublicKey": "EffJUvhQgfvUWEp1K14U73Sdfu5aFDZ2byhc6ZDKrDTG", "proofs": [ "31ra8Sd6Dk4p5RVbyzL1pb19MPSpu73SoAS45HdodYPZd4jZtiHGKpxVnHpQdYSQkSRiuNC5SEiYkqW9RboMTQdL" ], "script": "base64:AAIEAAAAAAAAAEAIAhIECgIBCBIFCgMIAQgSAwoBCBIDCgEIEgMKAQgSBQoDCAgIEgUKAwgICBIECgIICBIFCgMICAgSBQoDCAgIAAAALgAAAAAIdW5pdFRlc3QGAAAAABF1bml0VGVzdFNlY29uZGFyeQYAAAAADGFydHdvcmtzRGFwcAMFAAAAEXVuaXRUZXN0U2Vjb25kYXJ5CQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNON2lqMUhQVG8zYmNCd2lZZkNzdUN0NVU3c0NqUUJ6TWVFCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOQnluZmJYQzJLYXN0VXhodWtjTVVhRTU4SzljQmRCOVVZAAAAAAh1c2VyRGFwcAMFAAAACHVuaXRUZXN0CQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNNdDRSR01FeWpTV1lBb2NUUHFkNTV3ZEhRUUIzUFUyVUNtCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOOHhYYVlqRTI3QWE3OWQ1aEhyaEh1OUhhRm9UQm1oREVqAAAAAAlvcmFjbGVGZWUJ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gUAAAAFYXJ0SWQFAAAACXJlcXVlc3RJZAQAAAALcmVxdWVzdERhdGEJAQAAAAlnZXRTdHJCeUsAAAABCQABLAAAAAIFAAAACnJlcXVlc3RLZXkCAAAABV9PUEVOAwkAAAAAAAACCQABMQAAAAEFAAAAC3JlcXVlc3REYXRhAAAAAAAAAAAACQAAAgAAAAECAAAAEVJlcXVlc3Qgbm90IGZvdW5kBAAAAA5yZXF1ZXN0RGF0YUFycgkABLUAAAACBQAAAAtyZXF1ZXN0RGF0YQIAAAABXwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAIFAAAACnJlcXVlc3RLZXkCAAAABV9PUEVOCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAApyZXF1ZXN0S2V5AgAAAAFfCQABpAAAAAEFAAAABGRhdGUCAAAAAV8FAAAAAmlkAgAAAApfQ0FOQ0VMTEVECQABLAAAAAIJAAEsAAAAAgUAAAALcmVxdWVzdERhdGECAAAAAV8JAAGkAAAAAQUAAAAEZGF0ZQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQUAAAAMcmVxdWVzdE93bmVyCQEAAAANcGFyc2VJbnRWYWx1ZQAAAAEJAAGRAAAAAgUAAAAOcmVxdWVzdERhdGFBcnIAAAAAAAAAAAEJAAJZAAAAAQkAAZEAAAACBQAAAA5yZXF1ZXN0RGF0YUFycgAAAAAAAAAAAgUAAAADbmlsAAAAAEXHWP0=", "height": 1581437, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let unitTest = true | |
5 | + | ||
6 | + | let unitTestSecondary = true | |
7 | + | ||
8 | + | let artworksDapp = if (unitTestSecondary) | |
9 | + | then value(addressFromString("3N7ij1HPTo3bcBwiYfCsuCt5U7sCjQBzMeE")) | |
10 | + | else value(addressFromString("3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY")) | |
11 | + | ||
12 | + | let userDapp = if (unitTest) | |
13 | + | then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm")) | |
14 | + | else value(addressFromString("3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj")) | |
15 | + | ||
16 | + | let oracleFee = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
17 | + | ||
18 | + | let signDapp = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
19 | + | ||
20 | + | let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
21 | + | ||
22 | + | let whitelistDapp = value(addressFromString("3N6BaV1dCB4zg43goNNHaCtvR13BcyJ5Gsq")) | |
23 | + | ||
24 | + | let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
25 | + | ||
26 | + | let usdnAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
27 | + | ||
28 | + | let wavesAssetId = base58'' | |
29 | + | ||
30 | + | let chris = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
31 | + | ||
32 | + | let signCut = 3 | |
33 | + | ||
34 | + | let creatorCut = 10 | |
35 | + | ||
36 | + | let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true) | |
37 | + | ||
38 | + | let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "") | |
39 | + | ||
40 | + | let userSuspended = "SUSPENDED" | |
41 | + | ||
42 | + | let userRemoved = "REMOVED" | |
43 | + | ||
44 | + | let artIllegal = "ILLEGAL" | |
45 | + | ||
46 | + | let artSuspended = "SUSPENDED" | |
47 | + | ||
48 | + | func getUserStrByK (key) = valueOrElse(getString(userDapp, key), "Error") | |
49 | + | ||
50 | + | ||
51 | + | func getArtStrByK (key) = valueOrElse(getString(artworksDapp, key), "") | |
52 | + | ||
53 | + | ||
54 | + | func getStrByK (key) = valueOrElse(getString(this, key), "") | |
55 | + | ||
56 | + | ||
57 | + | func getIntByK (key) = valueOrElse(getInteger(this, key), 0) | |
58 | + | ||
59 | + | ||
60 | + | func keyUserStatus (addr) = ("user_status_" + addr) | |
61 | + | ||
62 | + | ||
63 | + | func keySignID (artistAddr,artId) = ((("art_signid_" + artId) + "_") + artistAddr) | |
64 | + | ||
65 | + | ||
66 | + | func keyFlag (artistAddr,artId) = ((("art_flag_" + artId) + "_") + artistAddr) | |
67 | + | ||
68 | + | ||
69 | + | func keyNFTData (id) = ("nft_" + id) | |
70 | + | ||
71 | + | ||
72 | + | func getSaleKey (caller,nftId,artId,creatorAddr) = ((((((("sale2nd_info_" + caller) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) | |
73 | + | ||
74 | + | ||
75 | + | func getBidKey (offerOwner,nftId,saleOwner,offerId) = ((((((("offer2nd_" + offerOwner) + "_") + nftId) + "_") + saleOwner) + "_") + offerId) | |
76 | + | ||
77 | + | ||
78 | + | func getRequestKey (requestOwner,creatorAddr,artId,id) = ((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + id) | |
79 | + | ||
80 | + | ||
81 | + | func getIntByKFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle") | |
82 | + | ||
83 | + | ||
84 | + | let currentCertificationPrice = getIntByKFromOracle(("certification_fee_" + toBase58String(signAssetId))) | |
85 | + | ||
86 | + | func idCallerDate (i) = if (!(dappRunning)) | |
87 | + | then throw(maintenanceMSG) | |
88 | + | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
89 | + | ||
90 | + | ||
91 | + | func isPayment (i) = if ((size(i.payments) == 0)) | |
92 | + | then throw("No payment attached") | |
93 | + | else { | |
94 | + | let payment = value(i.payments[0]) | |
95 | + | let amount = value(payment.amount) | |
96 | + | $Tuple2(payment, amount) | |
97 | + | } | |
98 | + | ||
99 | + | ||
100 | + | func isSignArtNFT (id) = { | |
101 | + | let assetDetails = value(assetInfo(id)) | |
102 | + | if (if (if (if ((assetDetails.quantity != 1)) | |
103 | + | then true | |
104 | + | else (assetDetails.decimals != 0)) | |
105 | + | then true | |
106 | + | else (assetDetails.reissuable != false)) | |
107 | + | then true | |
108 | + | else (assetDetails.issuer != artworksDapp)) | |
109 | + | then false | |
110 | + | else true | |
111 | + | } | |
112 | + | ||
113 | + | ||
114 | + | func acceptedAssetIds (assetId) = if (if (if (if ((assetId != toBase58String(signAssetId))) | |
115 | + | then (assetId != toBase58String(wavesAssetId)) | |
116 | + | else false) | |
117 | + | then (assetId != "WAVES") | |
118 | + | else false) | |
119 | + | then (assetId != toBase58String(usdnAssetId)) | |
120 | + | else false) | |
121 | + | then false | |
122 | + | else true | |
123 | + | ||
124 | + | ||
125 | + | func getBidAssetId (assetId) = if ((assetId == "WAVES")) | |
126 | + | then unit | |
127 | + | else fromBase58String(assetId) | |
128 | + | ||
129 | + | ||
130 | + | func getSaleOwnerAndStatus (nftid) = { | |
131 | + | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
132 | + | if ((size(saleOwner) == 0)) | |
133 | + | then throw("NFT not found") | |
134 | + | else { | |
135 | + | let saleStatus = getStrByK(((("sale2nd_status_" + saleOwner) + "_") + nftid)) | |
136 | + | if ((saleStatus != "OPEN")) | |
137 | + | then throw("NFT not for sale") | |
138 | + | else saleOwner | |
139 | + | } | |
140 | + | } | |
141 | + | ||
142 | + | ||
143 | + | func getBidData (key) = { | |
144 | + | let bidData = getStrByK((key + "_OPEN")) | |
145 | + | if ((bidData == "")) | |
146 | + | then throw("Offer not found") | |
147 | + | else { | |
148 | + | let bidDataArr = split(bidData, "_") | |
149 | + | let assetId = getBidAssetId(bidDataArr[2]) | |
150 | + | $Tuple3(bidDataArr, assetId, bidData) | |
151 | + | } | |
152 | + | } | |
153 | + | ||
154 | + | ||
155 | + | func checkArtStatus (addr,id) = { | |
156 | + | let artStatus = getArtStrByK(keyFlag(addr, id)) | |
157 | + | if (if ((artStatus == artIllegal)) | |
158 | + | then true | |
159 | + | else (artStatus == artSuspended)) | |
160 | + | then throw(("Original Artwork flagged as " + artStatus)) | |
161 | + | else true | |
162 | + | } | |
163 | + | ||
164 | + | ||
165 | + | func checkArtistStatus (addr) = { | |
166 | + | let artistStatus = getUserStrByK(keyUserStatus(addr)) | |
167 | + | if (containsElement([userSuspended, userRemoved], artistStatus)) | |
168 | + | then throw(("Original Artist " + artistStatus)) | |
169 | + | else true | |
170 | + | } | |
171 | + | ||
172 | + | ||
173 | + | func checkNFTInfo (assetId) = { | |
174 | + | let nftData = split(getArtStrByK(keyNFTData(assetId)), "_") | |
175 | + | let artSignID = getArtStrByK(keySignID(nftData[6], nftData[5])) | |
176 | + | if (if (!(checkArtStatus(nftData[6], nftData[5]))) | |
177 | + | then !(checkArtistStatus(nftData[6])) | |
178 | + | else false) | |
179 | + | then $Tuple4(false, nftData[5], nftData[6], artSignID) | |
180 | + | else $Tuple4(true, nftData[5], nftData[6], artSignID) | |
181 | + | } | |
182 | + | ||
183 | + | ||
184 | + | func checkARTExist (artId,creatorAddr) = { | |
185 | + | let artSignID = getArtStrByK(keySignID(creatorAddr, artId)) | |
186 | + | if ((size(artSignID) == 0)) | |
187 | + | then throw("Artwork not found on SIGN Art") | |
188 | + | else if (if (!(checkArtStatus(creatorAddr, artId))) | |
189 | + | then !(checkArtistStatus(creatorAddr)) | |
190 | + | else false) | |
191 | + | then false | |
192 | + | else true | |
193 | + | } | |
194 | + | ||
195 | + | ||
196 | + | func setTransfers (amount,assetId,nftid,creatorAddr,saleOwner,caller) = { | |
197 | + | let amountForSign = fraction(amount, signCut, 100) | |
198 | + | let amountForCreator = fraction(amount, creatorCut, 100) | |
199 | + | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
200 | + | let signFee = ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId) | |
201 | + | let creatorFee = ScriptTransfer(Address(fromBase58String(creatorAddr)), amountForCreator, assetId) | |
202 | + | let ownerFee = ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId) | |
203 | + | let collectorNFT = ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid)) | |
204 | + | $Tuple4(signFee, creatorFee, ownerFee, collectorNFT) | |
205 | + | } | |
206 | + | ||
207 | + | ||
208 | + | func validateMinSell (assetId,price) = { | |
209 | + | let minSellWaves = if (unitTest) | |
210 | + | then 10 | |
211 | + | else getIntByKFromOracle("waves_min_sell") | |
212 | + | let minSellUsdn = 1000000 | |
213 | + | let minSellSign = if (unitTest) | |
214 | + | then 1 | |
215 | + | else (currentCertificationPrice * 2) | |
216 | + | if (if (if (if (if ((assetId == toBase58String(usdnAssetId))) | |
217 | + | then (minSellUsdn > price) | |
218 | + | else false) | |
219 | + | then (price != 0) | |
220 | + | else false) | |
221 | + | then true | |
222 | + | else if (if ((assetId == toBase58String(signAssetId))) | |
223 | + | then (minSellSign > price) | |
224 | + | else false) | |
225 | + | then (price != 0) | |
226 | + | else false) | |
227 | + | then true | |
228 | + | else if (if (if ((assetId == toBase58String(wavesAssetId))) | |
229 | + | then true | |
230 | + | else (assetId == "WAVES")) | |
231 | + | then (minSellWaves > price) | |
232 | + | else false) | |
233 | + | then (price != 0) | |
234 | + | else false) | |
235 | + | then false | |
236 | + | else true | |
237 | + | } | |
238 | + | ||
239 | + | ||
240 | + | @Callable(i) | |
241 | + | func sellNFT (price,asset) = { | |
242 | + | let $t088968935 = idCallerDate(i) | |
243 | + | let id = $t088968935._1 | |
244 | + | let caller = $t088968935._2 | |
245 | + | let date = $t088968935._3 | |
246 | + | let $t089438979 = isPayment(i) | |
247 | + | let payment = $t089438979._1 | |
248 | + | let amount = $t089438979._2 | |
249 | + | let nftId = if (if (isDefined(payment.assetId)) | |
250 | + | then isSignArtNFT(value(payment.assetId)) | |
251 | + | else false) | |
252 | + | then toBase58String(value(payment.assetId)) | |
253 | + | else throw("Only SIGN Art NFT accepted.") | |
254 | + | let $t091619230 = checkNFTInfo(nftId) | |
255 | + | let isValidNFT = $t091619230._1 | |
256 | + | let artId = $t091619230._2 | |
257 | + | let creatorAddr = $t091619230._3 | |
258 | + | let artSignID = $t091619230._4 | |
259 | + | if ((size(artSignID) == 0)) | |
260 | + | then throw("Artwork not found on SIGN Art") | |
261 | + | else if (!(isValidNFT)) | |
262 | + | then throw("Something went wrong") | |
263 | + | else if (!(acceptedAssetIds(asset))) | |
264 | + | then throw("Only SIGN, USDN or WAVES accepted") | |
265 | + | else if ((price == 0)) | |
266 | + | then throw("Wrong minimum sell price") | |
267 | + | else if (!(validateMinSell(asset, price))) | |
268 | + | then throw("Wrong minimum sell price") | |
269 | + | else [StringEntry((getSaleKey(caller, nftId, artId, creatorAddr) + "_OPEN"), ((((((((((((toString(date) + "_") + toString(price)) + "_") + asset) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_") + id)), StringEntry(((("sale2nd_status_" + caller) + "_") + nftId), "OPEN"), StringEntry(("current_owner_on_dapp_" + nftId), caller)] | |
270 | + | } | |
271 | + | ||
272 | + | ||
273 | + | ||
274 | + | @Callable(i) | |
275 | + | func updateSalePrice (nftId,price,asset) = { | |
276 | + | let $t01012810167 = idCallerDate(i) | |
277 | + | let id = $t01012810167._1 | |
278 | + | let caller = $t01012810167._2 | |
279 | + | let date = $t01012810167._3 | |
280 | + | let $t01017510244 = checkNFTInfo(nftId) | |
281 | + | let isValidNFT = $t01017510244._1 | |
282 | + | let artId = $t01017510244._2 | |
283 | + | let creatorAddr = $t01017510244._3 | |
284 | + | let artSignID = $t01017510244._4 | |
285 | + | if ((size(artSignID) == 0)) | |
286 | + | then throw("Artwork not found on SIGN Art, cancel your sale.") | |
287 | + | else if (!(isValidNFT)) | |
288 | + | then throw("Something went wrong") | |
289 | + | else { | |
290 | + | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftId)) | |
291 | + | if ((saleOwner != caller)) | |
292 | + | then throw("You don't own this NFT") | |
293 | + | else { | |
294 | + | let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftId)) | |
295 | + | if ((saleStatus != "OPEN")) | |
296 | + | then throw("Sale not active") | |
297 | + | else if (!(acceptedAssetIds(asset))) | |
298 | + | then throw("Only SIGN, USDN or WAVES accepted") | |
299 | + | else if ((price == 0)) | |
300 | + | then throw("Wrong minimum sell price") | |
301 | + | else if (!(validateMinSell(asset, price))) | |
302 | + | then throw("Wrong minimum sell price") | |
303 | + | else { | |
304 | + | let saleKey = getSaleKey(caller, nftId, artId, creatorAddr) | |
305 | + | let saleInfo = split(getStrByK((saleKey + "_OPEN")), "_") | |
306 | + | [StringEntry((saleKey + "_OPEN"), ((((((((((((saleInfo[0] + "_") + toString(price)) + "_") + asset) + "_") + saleInfo[3]) + "_") + saleInfo[4]) + "_") + saleInfo[5]) + "_") + saleInfo[6]))] | |
307 | + | } | |
308 | + | } | |
309 | + | } | |
310 | + | } | |
311 | + | ||
312 | + | ||
313 | + | ||
314 | + | @Callable(i) | |
315 | + | func cancelSale (nftId) = { | |
316 | + | let $t01141011449 = idCallerDate(i) | |
317 | + | let id = $t01141011449._1 | |
318 | + | let caller = $t01141011449._2 | |
319 | + | let date = $t01141011449._3 | |
320 | + | let $t01145711682 = checkNFTInfo(nftId) | |
321 | + | let isValidNFT = $t01145711682._1 | |
322 | + | let artId = $t01145711682._2 | |
323 | + | let creatorAddr = $t01145711682._3 | |
324 | + | let artSignID = $t01145711682._4 | |
325 | + | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftId)) | |
326 | + | if ((saleOwner != caller)) | |
327 | + | then throw("You don't own this NFT") | |
328 | + | else { | |
329 | + | let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftId)) | |
330 | + | if ((saleStatus != "OPEN")) | |
331 | + | then throw("Sale not active") | |
332 | + | else { | |
333 | + | let saleKey = getSaleKey(caller, nftId, artId, creatorAddr) | |
334 | + | let saleInfo = getStrByK((saleKey + "_OPEN")) | |
335 | + | [DeleteEntry((saleKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + caller) + "_") + nftId)), DeleteEntry(("current_owner_on_dapp_" + nftId)), StringEntry((((saleKey + "_") + id) + "_CANCELLED"), ((((saleInfo + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftId))] | |
336 | + | } | |
337 | + | } | |
338 | + | } | |
339 | + | ||
340 | + | ||
341 | + | ||
342 | + | @Callable(i) | |
343 | + | func buyNFT (nftId) = { | |
344 | + | let $t01253612575 = idCallerDate(i) | |
345 | + | let id = $t01253612575._1 | |
346 | + | let caller = $t01253612575._2 | |
347 | + | let date = $t01253612575._3 | |
348 | + | let saleOwner = getSaleOwnerAndStatus(nftId) | |
349 | + | let $t01263112700 = checkNFTInfo(nftId) | |
350 | + | let isValidNFT = $t01263112700._1 | |
351 | + | let artId = $t01263112700._2 | |
352 | + | let creatorAddr = $t01263112700._3 | |
353 | + | let artSignID = $t01263112700._4 | |
354 | + | if ((size(artSignID) == 0)) | |
355 | + | then throw("Artwork not found on SIGN Art, cancel your sale.") | |
356 | + | else if (!(isValidNFT)) | |
357 | + | then throw("Something went wrong") | |
358 | + | else { | |
359 | + | let saleKey = getSaleKey(saleOwner, nftId, artId, creatorAddr) | |
360 | + | let saleInfo = getStrByK((saleKey + "_OPEN")) | |
361 | + | if ((size(saleInfo) == 0)) | |
362 | + | then throw("Sale Not found!") | |
363 | + | else { | |
364 | + | let saleInfoArray = split(saleInfo, "_") | |
365 | + | if ((parseInt(saleInfoArray[1]) == 0)) | |
366 | + | then throw("Offer only") | |
367 | + | else { | |
368 | + | let $t01316213198 = isPayment(i) | |
369 | + | let payment = $t01316213198._1 | |
370 | + | let amount = $t01316213198._2 | |
371 | + | let paymentAssetStr = if (isDefined(payment.assetId)) | |
372 | + | then toBase58String(value(payment.assetId)) | |
373 | + | else "" | |
374 | + | if (if ((saleInfoArray[1] != toString(amount))) | |
375 | + | then true | |
376 | + | else (saleInfoArray[2] != paymentAssetStr)) | |
377 | + | then throw("Payment infos don't match.") | |
378 | + | else { | |
379 | + | let amountForSign = fraction(amount, signCut, 100) | |
380 | + | let amountForCreator = fraction(amount, creatorCut, 100) | |
381 | + | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
382 | + | let $t01370913837 = setTransfers(amount, payment.assetId, nftId, creatorAddr, saleOwner, caller) | |
383 | + | let signFee = $t01370913837._1 | |
384 | + | let creatorFee = $t01370913837._2 | |
385 | + | let ownerFee = $t01370913837._3 | |
386 | + | let collectorNFT = $t01370913837._4 | |
387 | + | [DeleteEntry((saleKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftId)), DeleteEntry(("current_owner_on_dapp_" + nftId)), StringEntry((((saleKey + "_") + id) + "_CLOSED"), ((((((makeString(saleInfoArray, "_") + "_CLOSED_") + toString(date)) + "_") + id) + "_") + caller)), signFee, creatorFee, ownerFee, collectorNFT] | |
388 | + | } | |
389 | + | } | |
390 | + | } | |
391 | + | } | |
392 | + | } | |
393 | + | ||
394 | + | ||
395 | + | ||
396 | + | @Callable(i) | |
397 | + | func setOffer (nftId) = { | |
398 | + | let $t01425614298 = idCallerDate(i) | |
399 | + | let id = $t01425614298._1 | |
400 | + | let offerOwner = $t01425614298._2 | |
401 | + | let date = $t01425614298._3 | |
402 | + | let $t01430414340 = isPayment(i) | |
403 | + | let payment = $t01430414340._1 | |
404 | + | let amount = $t01430414340._2 | |
405 | + | let assetId = if (!(isDefined(payment.assetId))) | |
406 | + | then "WAVES" | |
407 | + | else toBase58String(value(payment.assetId)) | |
408 | + | if (!(acceptedAssetIds(assetId))) | |
409 | + | then throw("asset not accepted") | |
410 | + | else if ((amount == 0)) | |
411 | + | then throw("Offer of 0 not allowed") | |
412 | + | else if (!(validateMinSell(assetId, amount))) | |
413 | + | then throw("Wrong minimum sell price") | |
414 | + | else { | |
415 | + | let $t01468014738 = checkNFTInfo(nftId) | |
416 | + | let isValidNFT = $t01468014738._1 | |
417 | + | let artId = $t01468014738._2 | |
418 | + | let creatorAddr = $t01468014738._3 | |
419 | + | if (!(isValidNFT)) | |
420 | + | then throw("Something went wrong") | |
421 | + | else { | |
422 | + | let saleOwner = getSaleOwnerAndStatus(nftId) | |
423 | + | [StringEntry((getBidKey(offerOwner, nftId, saleOwner, id) + "_OPEN"), ((((((((((((((toString(date) + "_") + toString(amount)) + "_") + assetId) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_") + offerOwner) + "_") + id))] | |
424 | + | } | |
425 | + | } | |
426 | + | } | |
427 | + | ||
428 | + | ||
429 | + | ||
430 | + | @Callable(i) | |
431 | + | func acceptOffer (nftId,offerId,offerOwner) = { | |
432 | + | let $t01527415345 = idCallerDate(i) | |
433 | + | let id = $t01527415345._1 | |
434 | + | let caller = $t01527415345._2 | |
435 | + | let date = $t01527415345._3 | |
436 | + | let saleOwner = getSaleOwnerAndStatus(nftId) | |
437 | + | if ((caller != saleOwner)) | |
438 | + | then throw("You cannot do this action") | |
439 | + | else { | |
440 | + | let bidKey = getBidKey(offerOwner, nftId, saleOwner, offerId) | |
441 | + | let bidValue = getStrByK((bidKey + "_OPEN")) | |
442 | + | if ((bidValue == "")) | |
443 | + | then throw("Offer not found or not for sale") | |
444 | + | else { | |
445 | + | let $t01566215720 = checkNFTInfo(nftId) | |
446 | + | let isValidNFT = $t01566215720._1 | |
447 | + | let artId = $t01566215720._2 | |
448 | + | let creatorAddr = $t01566215720._3 | |
449 | + | if (!(isValidNFT)) | |
450 | + | then throw("Something went wrong") | |
451 | + | else { | |
452 | + | let saleKey = getSaleKey(saleOwner, nftId, artId, creatorAddr) | |
453 | + | let saleValue = getStrByK((saleKey + "_OPEN")) | |
454 | + | if ((size(saleValue) == 0)) | |
455 | + | then throw("Sale Not found!") | |
456 | + | else { | |
457 | + | let saleValArr = split(saleValue, "_") | |
458 | + | let $t01606116116 = getBidData(bidKey) | |
459 | + | let bidDataArr = $t01606116116._1 | |
460 | + | let assetId = $t01606116116._2 | |
461 | + | let bidData = $t01606116116._3 | |
462 | + | let amount = value(parseInt(bidDataArr[1])) | |
463 | + | let $t01617316300 = setTransfers(amount, assetId, nftId, creatorAddr, saleOwner, bidDataArr[6]) | |
464 | + | let signFee = $t01617316300._1 | |
465 | + | let creatorFee = $t01617316300._2 | |
466 | + | let ownerFee = $t01617316300._3 | |
467 | + | let collectorNFT = $t01617316300._4 | |
468 | + | [DeleteEntry((saleKey + "_OPEN")), DeleteEntry((bidKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftId)), DeleteEntry(("current_owner_on_dapp_" + nftId)), StringEntry((bidKey + "_CLOSED"), ((((bidValue + "_CLOSED_") + toString(date)) + "_") + id)), StringEntry((((saleKey + "_") + id) + "_CLOSED"), ((((((((((makeString(saleValArr, "_") + "_CLOSED-OFFER_") + toString(date)) + "_") + id) + "_") + offerOwner) + "_") + toString(amount)) + "_") + toBase58String(value(assetId)))), signFee, creatorFee, ownerFee, collectorNFT] | |
469 | + | } | |
470 | + | } | |
471 | + | } | |
472 | + | } | |
473 | + | } | |
474 | + | ||
475 | + | ||
476 | + | ||
477 | + | @Callable(i) | |
478 | + | func cancelOffer (nftId,offerId,saleOwner) = { | |
479 | + | let $t01696717029 = idCallerDate(i) | |
480 | + | let id = $t01696717029._1 | |
481 | + | let caller = $t01696717029._2 | |
482 | + | let date = $t01696717029._3 | |
483 | + | let bidKey = getBidKey(caller, nftId, saleOwner, offerId) | |
484 | + | let $t01709417149 = getBidData(bidKey) | |
485 | + | let bidDataArr = $t01709417149._1 | |
486 | + | let assetId = $t01709417149._2 | |
487 | + | let bidData = $t01709417149._3 | |
488 | + | [DeleteEntry((bidKey + "_OPEN")), StringEntry((bidKey + "_CANCELLED"), ((((bidData + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
489 | + | } | |
490 | + | ||
491 | + | ||
492 | + | ||
493 | + | @Callable(i) | |
494 | + | func makeRequest (artId,creatorAddr) = { | |
495 | + | let $t01748717531 = idCallerDate(i) | |
496 | + | let id = $t01748717531._1 | |
497 | + | let requestOwner = $t01748717531._2 | |
498 | + | let date = $t01748717531._3 | |
499 | + | let $t01753917575 = isPayment(i) | |
500 | + | let payment = $t01753917575._1 | |
501 | + | let amount = $t01753917575._2 | |
502 | + | let assetId = if (!(isDefined(payment.assetId))) | |
503 | + | then "WAVES" | |
504 | + | else toBase58String(value(payment.assetId)) | |
505 | + | if (!(acceptedAssetIds(assetId))) | |
506 | + | then throw("asset not accepted") | |
507 | + | else if (!(validateMinSell(assetId, amount))) | |
508 | + | then throw("Wrong minimum sell price") | |
509 | + | else { | |
510 | + | let isValidART = checkARTExist(artId, creatorAddr) | |
511 | + | if (!(isValidART)) | |
512 | + | then throw("Something went wrong") | |
513 | + | else [StringEntry((getRequestKey(requestOwner, creatorAddr, artId, id) + "_OPEN"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(payment.assetId))) + "_") + artId) + "_") + requestOwner) + "_") + id))] | |
514 | + | } | |
515 | + | } | |
516 | + | ||
517 | + | ||
518 | + | ||
519 | + | @Callable(i) | |
520 | + | func fillRequest (artId,requestOwner,offerId) = { | |
521 | + | let $t01838818430 = idCallerDate(i) | |
522 | + | let id = $t01838818430._1 | |
523 | + | let saleOwner = $t01838818430._2 | |
524 | + | let date = $t01838818430._3 | |
525 | + | let $t01843618480 = isPayment(i) | |
526 | + | let payment = $t01843618480._1 | |
527 | + | let amountAttached = $t01843618480._2 | |
528 | + | let NFTid = if (if (isDefined(payment.assetId)) | |
529 | + | then isSignArtNFT(value(payment.assetId)) | |
530 | + | else false) | |
531 | + | then payment.assetId | |
532 | + | else throw("No NFT found") | |
533 | + | let NFTdata = split(getArtStrByK(("nft_" + toBase58String(value(NFTid)))), "_") | |
534 | + | if ((size(NFTdata) == 0)) | |
535 | + | then throw("No NFT found") | |
536 | + | else { | |
537 | + | let requestKey = getRequestKey(requestOwner, NFTdata[6], artId, offerId) | |
538 | + | let requestData = split(getStrByK((requestKey + "_OPEN")), "_") | |
539 | + | if ((size(requestData) == 1)) | |
540 | + | then throw("No request found") | |
541 | + | else if ((requestData[3] != NFTdata[5])) | |
542 | + | then throw("This NFT don't match the requested artwork") | |
543 | + | else { | |
544 | + | let amount = value(parseInt(requestData[1])) | |
545 | + | let $t01923519410 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4]) | |
546 | + | let signFee = $t01923519410._1 | |
547 | + | let creatorFee = $t01923519410._2 | |
548 | + | let ownerFee = $t01923519410._3 | |
549 | + | let collectorNFT = $t01923519410._4 | |
550 | + | [DeleteEntry((requestKey + "_OPEN")), StringEntry((requestKey + "_CLOSED"), ((((((((((((toString(date) + "_") + toString(amount)) + "_") + requestData[2]) + "_") + artId) + "_") + requestOwner) + "_") + saleOwner) + "_") + id)), signFee, creatorFee, ownerFee, collectorNFT] | |
551 | + | } | |
552 | + | } | |
553 | + | } | |
554 | + | ||
555 | + | ||
556 | + | ||
557 | + | @Callable(i) | |
558 | + | func cancelRequest (artId,creatorAddr,requestId) = { | |
559 | + | let $t01987319917 = idCallerDate(i) | |
560 | + | let id = $t01987319917._1 | |
561 | + | let requestOwner = $t01987319917._2 | |
562 | + | let date = $t01987319917._3 | |
563 | + | let requestKey = getRequestKey(requestOwner, creatorAddr, artId, requestId) | |
564 | + | let requestData = getStrByK((requestKey + "_OPEN")) | |
565 | + | if ((size(requestData) == 0)) | |
566 | + | then throw("Request not found") | |
567 | + | else { | |
568 | + | let requestDataArr = split(requestData, "_") | |
569 | + | [DeleteEntry((requestKey + "_OPEN")), StringEntry((((((requestKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((requestData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(requestOwner)), parseIntValue(requestDataArr[1]), fromBase58String(requestDataArr[2]))] | |
570 | + | } | |
571 | + | } | |
572 | + | ||
573 | + |
github/deemru/w8io/026f985 41.97 ms ◑