tx · BG4RC62midFT4Fgi1ByaNowSrwcu7XiHoPiKSp4bLUGe 3N9yxjwDM9T8cFxAxjrw8k5wiGxRxHh9FdW: -0.01400000 Waves 2021.05.17 14:04 [1529594] smart account 3N9yxjwDM9T8cFxAxjrw8k5wiGxRxHh9FdW > SELF 0.00000000 Waves
{ "type": 13, "id": "BG4RC62midFT4Fgi1ByaNowSrwcu7XiHoPiKSp4bLUGe", "fee": 1400000, "feeAssetId": null, "timestamp": 1621249474443, "version": 2, "chainId": 84, "sender": "3N9yxjwDM9T8cFxAxjrw8k5wiGxRxHh9FdW", "senderPublicKey": "7nc1RVTNTXy1DvKS2F4boNQWQir3Lqpvi8zMoo42M3nP", "proofs": [ "5KNY9K6CHXvY2D9cNpmq6KuGkVX794bB2iwAQhLaeQtWwhMujCdDSUQZLspPwG3obKpnVgXDmhjr6Gh91JFyYTTc" ], "script": "base64:AAIEAAAAAAAAAD4IAhIECgIBCBIDCgEIEgMKAQgSAwoBCBIFCgMICAgSBQoDCAgIEgQKAggIEgUKAwgICBIFCgMICAgSAwoBCAAAACcAAAAACHVuaXRUZXN0BwAAAAAJb3JhY2xlRmVlCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAAhzaWduRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAAMYXJ0d29ya3NEYXBwCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOQnluZmJYQzJLYXN0VXhodWtjTVVhRTU4SzljQmRCOVVZAAAAAAtmZWVSZWNlaXZlcgIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIAAAAACHVzZXJEYXBwAwUAAAAIdW5pdFRlc3QJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM010NFJHTUV5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GVsZXRlRW50cnkAAAABAAAABWVudHJ5BAAAAAZjYWxsZXIJAAQlAAAAAQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5AwkAAAAAAAACBQAAAAZjYWxsZXIFAAAABWNocmlzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAABWVudHJ5BQAAAANuaWwJAAACAAAAAQIAAAACbm8AAAAAwVI4IA==", "height": 1529594, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9H4N7vC4itkAQJPCifni3mLc5o9WDynpUY8kr9UcDptG Next: HV1X4YR7ZEa41RYkfyxBXiVGndUSUFQUV411caGamVUo Diff:
Old | New | Differences | |
---|---|---|---|
136 | 136 | } | |
137 | 137 | ||
138 | 138 | ||
139 | + | func checkArtStatus (addr,id) = { | |
140 | + | let artStatus = getArtStrByK(keyFlag(addr, id)) | |
141 | + | if (if ((artStatus == artIllegal)) | |
142 | + | then true | |
143 | + | else (artStatus == artSuspended)) | |
144 | + | then throw(("Original Artwork flagged as " + artStatus)) | |
145 | + | else true | |
146 | + | } | |
147 | + | ||
148 | + | ||
149 | + | func checkArtistStatus (addr) = { | |
150 | + | let artistStatus = getUserStrByK(keyUserStatus(addr)) | |
151 | + | if (containsElement([userSuspended, userRemoved], artistStatus)) | |
152 | + | then throw(("Original Artist " + artistStatus)) | |
153 | + | else true | |
154 | + | } | |
155 | + | ||
156 | + | ||
139 | 157 | func checkNFTInfo (assetId) = { | |
140 | 158 | let nftData = split(getArtStrByK(keyNFTData(assetId)), "_") | |
141 | 159 | let artSignID = getArtStrByK(keySignID(nftData[6], nftData[5])) | |
142 | 160 | if ((size(artSignID) == 0)) | |
143 | 161 | then throw("Artwork not found on SIGN Art") | |
144 | - | else { | |
145 | - | let artStatus = getArtStrByK(keyFlag(nftData[6], nftData[5])) | |
146 | - | if (if ((artStatus == artIllegal)) | |
147 | - | then true | |
148 | - | else (artStatus == artSuspended)) | |
149 | - | then throw(("Original Artwork flagged as " + artStatus)) | |
150 | - | else { | |
151 | - | let artistStatus = getUserStrByK(keyUserStatus(nftData[6])) | |
152 | - | if (containsElement([userSuspended, userRemoved], artistStatus)) | |
153 | - | then throw(("Original Artist " + artistStatus)) | |
154 | - | else $Tuple2(true, nftData[6]) | |
155 | - | } | |
156 | - | } | |
162 | + | else if (if (!(checkArtStatus(nftData[6], nftData[5]))) | |
163 | + | then !(checkArtistStatus(nftData[6])) | |
164 | + | else false) | |
165 | + | then $Tuple2(false, nftData[6]) | |
166 | + | else $Tuple2(true, nftData[6]) | |
167 | + | } | |
168 | + | ||
169 | + | ||
170 | + | func checkARTExist (artId,creatorAddr) = { | |
171 | + | let artSignID = getArtStrByK(keySignID(creatorAddr, artId)) | |
172 | + | if ((size(artSignID) == 0)) | |
173 | + | then throw("Artwork not found on SIGN Art") | |
174 | + | else if (if (!(checkArtStatus(creatorAddr, artId))) | |
175 | + | then !(checkArtistStatus(creatorAddr)) | |
176 | + | else false) | |
177 | + | then false | |
178 | + | else true | |
157 | 179 | } | |
158 | 180 | ||
159 | 181 | ||
160 | 182 | @Callable(i) | |
161 | 183 | func sellNFT (price,asset) = { | |
162 | - | let $ | |
163 | - | let id = $ | |
164 | - | let caller = $ | |
165 | - | let date = $ | |
166 | - | let $ | |
167 | - | let payment = $ | |
168 | - | let amount = $ | |
184 | + | let $t062996338 = idCallerDate(i) | |
185 | + | let id = $t062996338._1 | |
186 | + | let caller = $t062996338._2 | |
187 | + | let date = $t062996338._3 | |
188 | + | let $t063436379 = isPayment(i) | |
189 | + | let payment = $t063436379._1 | |
190 | + | let amount = $t063436379._2 | |
169 | 191 | let assetId = if (if (isDefined(payment.assetId)) | |
170 | 192 | then isSignArtNFT(value(payment.assetId)) | |
171 | 193 | else false) | |
174 | 196 | if (!(acceptedAssetIds(asset))) | |
175 | 197 | then throw("Only SIGN, USDN or WAVES accepted") | |
176 | 198 | else { | |
177 | - | let $ | |
178 | - | let isValidNFT = $ | |
179 | - | let creatorAddr = $ | |
199 | + | let $t066446720 = checkNFTInfo(toBase58String(value(assetId))) | |
200 | + | let isValidNFT = $t066446720._1 | |
201 | + | let creatorAddr = $t066446720._2 | |
180 | 202 | if (!(isValidNFT)) | |
181 | 203 | then throw("Something went wrong") | |
182 | 204 | else [StringEntry((((((("sale2nd_info_" + caller) + "_") + toBase58String(value(payment.assetId))) + "_") + creatorAddr) + "_OPEN"), ((((toString(date) + "_") + toString(price)) + "_") + asset)), StringEntry(((("sale2nd_status_" + caller) + "_") + toBase58String(value(payment.assetId))), "OPEN"), StringEntry(("current_owner_on_dapp_" + toBase58String(value(payment.assetId))), caller)] | |
187 | 209 | ||
188 | 210 | @Callable(i) | |
189 | 211 | func cancelSale (nftid) = { | |
190 | - | let $ | |
191 | - | let id = $ | |
192 | - | let caller = $ | |
193 | - | let date = $ | |
212 | + | let $t073967435 = idCallerDate(i) | |
213 | + | let id = $t073967435._1 | |
214 | + | let caller = $t073967435._2 | |
215 | + | let date = $t073967435._3 | |
194 | 216 | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
195 | 217 | if ((saleOwner != caller)) | |
196 | 218 | then throw("You don't own this NFT") | |
210 | 232 | ||
211 | 233 | @Callable(i) | |
212 | 234 | func buyNFT (nftid) = { | |
213 | - | let $ | |
214 | - | let id = $ | |
215 | - | let caller = $ | |
216 | - | let date = $ | |
235 | + | let $t085648635 = idCallerDate(i) | |
236 | + | let id = $t085648635._1 | |
237 | + | let caller = $t085648635._2 | |
238 | + | let date = $t085648635._3 | |
217 | 239 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
218 | - | let $ | |
219 | - | let isValidNFT = $ | |
220 | - | let creatorAddr = $ | |
240 | + | let $t086908741 = checkNFTInfo(nftid) | |
241 | + | let isValidNFT = $t086908741._1 | |
242 | + | let creatorAddr = $t086908741._2 | |
221 | 243 | if (!(isValidNFT)) | |
222 | 244 | then throw("Something went wrong") | |
223 | 245 | else { | |
229 | 251 | if ((parseInt(saleInfoArray[1]) == 0)) | |
230 | 252 | then throw("Offer only") | |
231 | 253 | else { | |
232 | - | let $ | |
233 | - | let payment = $ | |
234 | - | let amount = $ | |
254 | + | let $t090779113 = isPayment(i) | |
255 | + | let payment = $t090779113._1 | |
256 | + | let amount = $t090779113._2 | |
235 | 257 | if (if ((saleInfoArray[1] != toString(amount))) | |
236 | 258 | then true | |
237 | 259 | else (saleInfoArray[2] != toBase58String(value(payment.assetId)))) | |
251 | 273 | ||
252 | 274 | @Callable(i) | |
253 | 275 | func setOffer (nftid) = { | |
254 | - | let $ | |
255 | - | let id = $ | |
256 | - | let offerOwner = $ | |
257 | - | let date = $ | |
258 | - | let $ | |
259 | - | let payment = $ | |
260 | - | let amount = $ | |
276 | + | let $t01056110603 = idCallerDate(i) | |
277 | + | let id = $t01056110603._1 | |
278 | + | let offerOwner = $t01056110603._2 | |
279 | + | let date = $t01056110603._3 | |
280 | + | let $t01060810644 = isPayment(i) | |
281 | + | let payment = $t01060810644._1 | |
282 | + | let amount = $t01060810644._2 | |
261 | 283 | let assetId = if (!(isDefined(payment.assetId))) | |
262 | 284 | then "WAVES" | |
263 | 285 | else toBase58String(value(payment.assetId)) | |
264 | 286 | if (!(acceptedAssetIds(assetId))) | |
265 | 287 | then throw("asset not accepted") | |
266 | 288 | else { | |
267 | - | let $ | |
268 | - | let isValidNFT = $ | |
269 | - | let creatorAddr = $ | |
289 | + | let $t01083010881 = checkNFTInfo(nftid) | |
290 | + | let isValidNFT = $t01083010881._1 | |
291 | + | let creatorAddr = $t01083010881._2 | |
270 | 292 | if (!(isValidNFT)) | |
271 | 293 | then throw("Something went wrong") | |
272 | 294 | else { | |
280 | 302 | ||
281 | 303 | @Callable(i) | |
282 | 304 | func acceptOffer (nftid,offerId,offerOwner) = { | |
283 | - | let $ | |
284 | - | let id = $ | |
285 | - | let caller = $ | |
286 | - | let date = $ | |
305 | + | let $t01151211652 = idCallerDate(i) | |
306 | + | let id = $t01151211652._1 | |
307 | + | let caller = $t01151211652._2 | |
308 | + | let date = $t01151211652._3 | |
287 | 309 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
288 | 310 | if ((caller != saleOwner)) | |
289 | 311 | then throw("You cannot do this action") | |
292 | 314 | if ((offerExist == "")) | |
293 | 315 | then throw("Offer not found or not for sale") | |
294 | 316 | else { | |
295 | - | let $ | |
296 | - | let isValidNFT = $ | |
297 | - | let creatorAddr = $ | |
317 | + | let $t01195712008 = checkNFTInfo(nftid) | |
318 | + | let isValidNFT = $t01195712008._1 | |
319 | + | let creatorAddr = $t01195712008._2 | |
298 | 320 | if (!(isValidNFT)) | |
299 | 321 | then throw("Something went wrong") | |
300 | 322 | else { | |
303 | 325 | then throw("Sale Not found!") | |
304 | 326 | else { | |
305 | 327 | let bidDataKey = ((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) | |
306 | - | let $ | |
307 | - | let bidDataArr = $ | |
308 | - | let assetId = $ | |
309 | - | let bidData = $ | |
328 | + | let $t01234412403 = getBidData(bidDataKey) | |
329 | + | let bidDataArr = $t01234412403._1 | |
330 | + | let assetId = $t01234412403._2 | |
331 | + | let bidData = $t01234412403._3 | |
310 | 332 | let amount = value(parseInt(bidDataArr[1])) | |
311 | 333 | let amountForSign = fraction(amount, signCut, 100) | |
312 | 334 | let amountForCreator = fraction(amount, creatorCut, 100) | |
322 | 344 | ||
323 | 345 | @Callable(i) | |
324 | 346 | func cancelOffer (nftid,offerId,saleOwner) = { | |
325 | - | let $ | |
326 | - | let id = $ | |
327 | - | let caller = $ | |
328 | - | let date = $ | |
347 | + | let $t01379314075 = idCallerDate(i) | |
348 | + | let id = $t01379314075._1 | |
349 | + | let caller = $t01379314075._2 | |
350 | + | let date = $t01379314075._3 | |
329 | 351 | let bidDataKey = ((((((("offer2nd_" + caller) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) | |
330 | - | let $ | |
331 | - | let bidDataArr = $ | |
332 | - | let assetId = $ | |
333 | - | let bidData = $ | |
352 | + | let $t01416114220 = getBidData(bidDataKey) | |
353 | + | let bidDataArr = $t01416114220._1 | |
354 | + | let assetId = $t01416114220._2 | |
355 | + | let bidData = $t01416114220._3 | |
334 | 356 | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry((((((bidDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((bidData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
357 | + | } | |
358 | + | ||
359 | + | ||
360 | + | ||
361 | + | @Callable(i) | |
362 | + | func makeRequest (artId,creatorAddr) = { | |
363 | + | let $t01561015654 = idCallerDate(i) | |
364 | + | let id = $t01561015654._1 | |
365 | + | let requestOwner = $t01561015654._2 | |
366 | + | let date = $t01561015654._3 | |
367 | + | let $t01565915695 = isPayment(i) | |
368 | + | let payment = $t01565915695._1 | |
369 | + | let amount = $t01565915695._2 | |
370 | + | let assetId = if (!(isDefined(payment.assetId))) | |
371 | + | then "WAVES" | |
372 | + | else toBase58String(value(payment.assetId)) | |
373 | + | if (!(acceptedAssetIds(assetId))) | |
374 | + | then throw("asset not accepted") | |
375 | + | else { | |
376 | + | let isValidART = checkARTExist(artId, creatorAddr) | |
377 | + | if (!(isValidART)) | |
378 | + | then throw("Something went wrong") | |
379 | + | else [StringEntry((((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + id) + "_OPEN"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(payment.assetId))) + "_") + artId) + "_") + requestOwner) + "_") + id))] | |
380 | + | } | |
381 | + | } | |
382 | + | ||
383 | + | ||
384 | + | ||
385 | + | @Callable(i) | |
386 | + | func fillRequest (artId,requestOwner,offerId) = { | |
387 | + | let $t01647016512 = idCallerDate(i) | |
388 | + | let id = $t01647016512._1 | |
389 | + | let saleOwner = $t01647016512._2 | |
390 | + | let date = $t01647016512._3 | |
391 | + | let $t01651716561 = isPayment(i) | |
392 | + | let payment = $t01651716561._1 | |
393 | + | let amountAttached = $t01651716561._2 | |
394 | + | let assetId = if (if (isDefined(payment.assetId)) | |
395 | + | then isSignArtNFT(value(payment.assetId)) | |
396 | + | else false) | |
397 | + | then payment.assetId | |
398 | + | else throw("No NFT found") | |
399 | + | let attachedNft = split(getArtStrByK(("nft_" + toBase58String(value(assetId)))), "_") | |
400 | + | if ((size(attachedNft) == 0)) | |
401 | + | then throw("No NFT found") | |
402 | + | else { | |
403 | + | let requestData = split(getStrByK((((((((("request2nd_" + requestOwner) + "_") + attachedNft[5]) + "_") + artId) + "_") + offerId) + "_OPEN")), "_") | |
404 | + | if ((size(requestData) == 0)) | |
405 | + | then throw("No request found") | |
406 | + | else if ((requestData[3] != attachedNft[5])) | |
407 | + | then throw("This NFT don't match the requested artwork") | |
408 | + | else { | |
409 | + | let amount = value(parseInt(requestData[1])) | |
410 | + | let amountForSign = fraction(amount, signCut, 100) | |
411 | + | let amountForCreator = fraction(amount, creatorCut, 100) | |
412 | + | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
413 | + | [DeleteEntry((((((((("request2nd_" + requestOwner) + "_") + attachedNft[5]) + "_") + artId) + "_") + offerId) + "_OPEN")), StringEntry((((((((("request2nd_" + requestOwner) + "_") + attachedNft[5]) + "_") + artId) + "_") + offerId) + "_CLOSED"), ((((((((((((toString(date) + "_") + toString(amount)) + "_") + requestData[2]) + "_") + artId) + "_") + requestOwner) + "_") + saleOwner) + "_") + id)), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId), ScriptTransfer(Address(fromBase58String(attachedNft[6])), amountForCreator, assetId), ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId), ScriptTransfer(Address(fromBase58String(requestData[4])), 1, assetId)] | |
414 | + | } | |
415 | + | } | |
416 | + | } | |
417 | + | ||
418 | + | ||
419 | + | ||
420 | + | @Callable(i) | |
421 | + | func cancelRequest (artId,creatorAddr,requestId) = { | |
422 | + | let $t01833318377 = idCallerDate(i) | |
423 | + | let id = $t01833318377._1 | |
424 | + | let requestOwner = $t01833318377._2 | |
425 | + | let date = $t01833318377._3 | |
426 | + | let requesDataKey = ((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + requestId) | |
427 | + | let requestData = getStrByK((requesDataKey + "_OPEN")) | |
428 | + | let requestDataArr = split(getStrByK((requesDataKey + "_OPEN")), "_") | |
429 | + | [DeleteEntry((requesDataKey + "_OPEN")), StringEntry((((((requesDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((requestData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(requestOwner)), parseIntValue(requestDataArr[1]), fromBase58String(requestDataArr[2]))] | |
335 | 430 | } | |
336 | 431 | ||
337 | 432 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let unitTest = false | |
5 | 5 | ||
6 | 6 | let oracleFee = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
7 | 7 | ||
8 | 8 | let signDapp = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
9 | 9 | ||
10 | 10 | let artworksDapp = value(addressFromString("3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY")) | |
11 | 11 | ||
12 | 12 | let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
13 | 13 | ||
14 | 14 | let userDapp = if (unitTest) | |
15 | 15 | then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm")) | |
16 | 16 | else value(addressFromString("3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj")) | |
17 | 17 | ||
18 | 18 | let whitelistDapp = value(addressFromString("3N6BaV1dCB4zg43goNNHaCtvR13BcyJ5Gsq")) | |
19 | 19 | ||
20 | 20 | let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
21 | 21 | ||
22 | 22 | let usdnAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
23 | 23 | ||
24 | 24 | let wavesAssetId = base58'' | |
25 | 25 | ||
26 | 26 | let chris = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
27 | 27 | ||
28 | 28 | let joep = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
29 | 29 | ||
30 | 30 | let signCut = 3 | |
31 | 31 | ||
32 | 32 | let creatorCut = 10 | |
33 | 33 | ||
34 | 34 | let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true) | |
35 | 35 | ||
36 | 36 | let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "") | |
37 | 37 | ||
38 | 38 | let userSuspended = "SUSPENDED" | |
39 | 39 | ||
40 | 40 | let userRemoved = "REMOVED" | |
41 | 41 | ||
42 | 42 | let artIllegal = "ILLEGAL" | |
43 | 43 | ||
44 | 44 | let artSuspended = "SUSPENDED" | |
45 | 45 | ||
46 | 46 | func getUserStrByK (key) = valueOrElse(getString(userDapp, key), "Error") | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func getArtStrByK (key) = valueOrElse(getString(artworksDapp, key), "") | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func getStrByK (key) = valueOrElse(getString(this, key), "") | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func getIntByK (key) = valueOrElse(getInteger(this, key), 0) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func keyUserStatus (addr) = ("user_status_" + addr) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func keySignID (artistAddr,artId) = ((("art_signid_" + artId) + "_") + artistAddr) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func keyFlag (artistAddr,artId) = ((("art_flag_" + artId) + "_") + artistAddr) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func keyNFTData (id) = ("nft_" + id) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func idCallerDate (i) = if (!(dappRunning)) | |
71 | 71 | then throw(maintenanceMSG) | |
72 | 72 | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func isPayment (i) = if ((size(i.payments) == 0)) | |
76 | 76 | then throw("No payment attached") | |
77 | 77 | else { | |
78 | 78 | let payment = value(i.payments[0]) | |
79 | 79 | let amount = value(payment.amount) | |
80 | 80 | $Tuple2(payment, amount) | |
81 | 81 | } | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func isSignArtNFT (id) = { | |
85 | 85 | let assetDetails = value(assetInfo(id)) | |
86 | 86 | if (if (if (if ((assetDetails.quantity != 1)) | |
87 | 87 | then true | |
88 | 88 | else (assetDetails.decimals != 0)) | |
89 | 89 | then true | |
90 | 90 | else (assetDetails.reissuable != false)) | |
91 | 91 | then true | |
92 | 92 | else (assetDetails.issuer != artworksDapp)) | |
93 | 93 | then false | |
94 | 94 | else true | |
95 | 95 | } | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func acceptedAssetIds (assetId) = if (if (if (if ((assetId != toBase58String(signAssetId))) | |
99 | 99 | then (assetId != toBase58String(wavesAssetId)) | |
100 | 100 | else false) | |
101 | 101 | then (assetId != "WAVES") | |
102 | 102 | else false) | |
103 | 103 | then (assetId != toBase58String(usdnAssetId)) | |
104 | 104 | else false) | |
105 | 105 | then false | |
106 | 106 | else true | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func getBidAssetId (assetId) = if ((assetId == "WAVES")) | |
110 | 110 | then unit | |
111 | 111 | else fromBase58String(assetId) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func getSaleOwnerAndStatus (nftid) = { | |
115 | 115 | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
116 | 116 | if ((size(saleOwner) == 0)) | |
117 | 117 | then throw("NFT not found") | |
118 | 118 | else { | |
119 | 119 | let saleStatus = getStrByK(((("sale2nd_status_" + saleOwner) + "_") + nftid)) | |
120 | 120 | if ((saleStatus != "OPEN")) | |
121 | 121 | then throw("NFT not for sale") | |
122 | 122 | else saleOwner | |
123 | 123 | } | |
124 | 124 | } | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func getBidData (key) = { | |
128 | 128 | let bidData = getStrByK((key + "_OPEN")) | |
129 | 129 | if ((bidData == "")) | |
130 | 130 | then throw("Offer not found") | |
131 | 131 | else { | |
132 | 132 | let bidDataArr = split(bidData, "_") | |
133 | 133 | let assetId = getBidAssetId(bidDataArr[2]) | |
134 | 134 | $Tuple3(bidDataArr, assetId, bidData) | |
135 | 135 | } | |
136 | 136 | } | |
137 | 137 | ||
138 | 138 | ||
139 | + | func checkArtStatus (addr,id) = { | |
140 | + | let artStatus = getArtStrByK(keyFlag(addr, id)) | |
141 | + | if (if ((artStatus == artIllegal)) | |
142 | + | then true | |
143 | + | else (artStatus == artSuspended)) | |
144 | + | then throw(("Original Artwork flagged as " + artStatus)) | |
145 | + | else true | |
146 | + | } | |
147 | + | ||
148 | + | ||
149 | + | func checkArtistStatus (addr) = { | |
150 | + | let artistStatus = getUserStrByK(keyUserStatus(addr)) | |
151 | + | if (containsElement([userSuspended, userRemoved], artistStatus)) | |
152 | + | then throw(("Original Artist " + artistStatus)) | |
153 | + | else true | |
154 | + | } | |
155 | + | ||
156 | + | ||
139 | 157 | func checkNFTInfo (assetId) = { | |
140 | 158 | let nftData = split(getArtStrByK(keyNFTData(assetId)), "_") | |
141 | 159 | let artSignID = getArtStrByK(keySignID(nftData[6], nftData[5])) | |
142 | 160 | if ((size(artSignID) == 0)) | |
143 | 161 | then throw("Artwork not found on SIGN Art") | |
144 | - | else { | |
145 | - | let artStatus = getArtStrByK(keyFlag(nftData[6], nftData[5])) | |
146 | - | if (if ((artStatus == artIllegal)) | |
147 | - | then true | |
148 | - | else (artStatus == artSuspended)) | |
149 | - | then throw(("Original Artwork flagged as " + artStatus)) | |
150 | - | else { | |
151 | - | let artistStatus = getUserStrByK(keyUserStatus(nftData[6])) | |
152 | - | if (containsElement([userSuspended, userRemoved], artistStatus)) | |
153 | - | then throw(("Original Artist " + artistStatus)) | |
154 | - | else $Tuple2(true, nftData[6]) | |
155 | - | } | |
156 | - | } | |
162 | + | else if (if (!(checkArtStatus(nftData[6], nftData[5]))) | |
163 | + | then !(checkArtistStatus(nftData[6])) | |
164 | + | else false) | |
165 | + | then $Tuple2(false, nftData[6]) | |
166 | + | else $Tuple2(true, nftData[6]) | |
167 | + | } | |
168 | + | ||
169 | + | ||
170 | + | func checkARTExist (artId,creatorAddr) = { | |
171 | + | let artSignID = getArtStrByK(keySignID(creatorAddr, artId)) | |
172 | + | if ((size(artSignID) == 0)) | |
173 | + | then throw("Artwork not found on SIGN Art") | |
174 | + | else if (if (!(checkArtStatus(creatorAddr, artId))) | |
175 | + | then !(checkArtistStatus(creatorAddr)) | |
176 | + | else false) | |
177 | + | then false | |
178 | + | else true | |
157 | 179 | } | |
158 | 180 | ||
159 | 181 | ||
160 | 182 | @Callable(i) | |
161 | 183 | func sellNFT (price,asset) = { | |
162 | - | let $ | |
163 | - | let id = $ | |
164 | - | let caller = $ | |
165 | - | let date = $ | |
166 | - | let $ | |
167 | - | let payment = $ | |
168 | - | let amount = $ | |
184 | + | let $t062996338 = idCallerDate(i) | |
185 | + | let id = $t062996338._1 | |
186 | + | let caller = $t062996338._2 | |
187 | + | let date = $t062996338._3 | |
188 | + | let $t063436379 = isPayment(i) | |
189 | + | let payment = $t063436379._1 | |
190 | + | let amount = $t063436379._2 | |
169 | 191 | let assetId = if (if (isDefined(payment.assetId)) | |
170 | 192 | then isSignArtNFT(value(payment.assetId)) | |
171 | 193 | else false) | |
172 | 194 | then payment.assetId | |
173 | 195 | else throw("No NFT found") | |
174 | 196 | if (!(acceptedAssetIds(asset))) | |
175 | 197 | then throw("Only SIGN, USDN or WAVES accepted") | |
176 | 198 | else { | |
177 | - | let $ | |
178 | - | let isValidNFT = $ | |
179 | - | let creatorAddr = $ | |
199 | + | let $t066446720 = checkNFTInfo(toBase58String(value(assetId))) | |
200 | + | let isValidNFT = $t066446720._1 | |
201 | + | let creatorAddr = $t066446720._2 | |
180 | 202 | if (!(isValidNFT)) | |
181 | 203 | then throw("Something went wrong") | |
182 | 204 | else [StringEntry((((((("sale2nd_info_" + caller) + "_") + toBase58String(value(payment.assetId))) + "_") + creatorAddr) + "_OPEN"), ((((toString(date) + "_") + toString(price)) + "_") + asset)), StringEntry(((("sale2nd_status_" + caller) + "_") + toBase58String(value(payment.assetId))), "OPEN"), StringEntry(("current_owner_on_dapp_" + toBase58String(value(payment.assetId))), caller)] | |
183 | 205 | } | |
184 | 206 | } | |
185 | 207 | ||
186 | 208 | ||
187 | 209 | ||
188 | 210 | @Callable(i) | |
189 | 211 | func cancelSale (nftid) = { | |
190 | - | let $ | |
191 | - | let id = $ | |
192 | - | let caller = $ | |
193 | - | let date = $ | |
212 | + | let $t073967435 = idCallerDate(i) | |
213 | + | let id = $t073967435._1 | |
214 | + | let caller = $t073967435._2 | |
215 | + | let date = $t073967435._3 | |
194 | 216 | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
195 | 217 | if ((saleOwner != caller)) | |
196 | 218 | then throw("You don't own this NFT") | |
197 | 219 | else { | |
198 | 220 | let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid)) | |
199 | 221 | if ((saleStatus != "OPEN")) | |
200 | 222 | then throw("Sale not active") | |
201 | 223 | else { | |
202 | 224 | let creatorAddr = split(getArtStrByK(keyNFTData(nftid)), "_")[6] | |
203 | 225 | let saleInfo = getStrByK(((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + saleStatus)) | |
204 | 226 | [DeleteEntry((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")), DeleteEntry(((("sale2nd_status_" + caller) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + toString(date)) + "_") + id) + "_CANCELLED"), saleInfo), ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))] | |
205 | 227 | } | |
206 | 228 | } | |
207 | 229 | } | |
208 | 230 | ||
209 | 231 | ||
210 | 232 | ||
211 | 233 | @Callable(i) | |
212 | 234 | func buyNFT (nftid) = { | |
213 | - | let $ | |
214 | - | let id = $ | |
215 | - | let caller = $ | |
216 | - | let date = $ | |
235 | + | let $t085648635 = idCallerDate(i) | |
236 | + | let id = $t085648635._1 | |
237 | + | let caller = $t085648635._2 | |
238 | + | let date = $t085648635._3 | |
217 | 239 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
218 | - | let $ | |
219 | - | let isValidNFT = $ | |
220 | - | let creatorAddr = $ | |
240 | + | let $t086908741 = checkNFTInfo(nftid) | |
241 | + | let isValidNFT = $t086908741._1 | |
242 | + | let creatorAddr = $t086908741._2 | |
221 | 243 | if (!(isValidNFT)) | |
222 | 244 | then throw("Something went wrong") | |
223 | 245 | else { | |
224 | 246 | let saleInfo = getStrByK((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")) | |
225 | 247 | if ((size(saleInfo) == 0)) | |
226 | 248 | then throw("Sale Not found!") | |
227 | 249 | else { | |
228 | 250 | let saleInfoArray = split(saleInfo, "_") | |
229 | 251 | if ((parseInt(saleInfoArray[1]) == 0)) | |
230 | 252 | then throw("Offer only") | |
231 | 253 | else { | |
232 | - | let $ | |
233 | - | let payment = $ | |
234 | - | let amount = $ | |
254 | + | let $t090779113 = isPayment(i) | |
255 | + | let payment = $t090779113._1 | |
256 | + | let amount = $t090779113._2 | |
235 | 257 | if (if ((saleInfoArray[1] != toString(amount))) | |
236 | 258 | then true | |
237 | 259 | else (saleInfoArray[2] != toBase58String(value(payment.assetId)))) | |
238 | 260 | then throw("Payment infos don't match.") | |
239 | 261 | else { | |
240 | 262 | let amountForSign = fraction(amount, signCut, 100) | |
241 | 263 | let amountForCreator = fraction(amount, creatorCut, 100) | |
242 | 264 | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
243 | 265 | [DeleteEntry((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(payment.assetId))) + "_to_") + caller)), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, payment.assetId), ScriptTransfer(Address(fromBase58String(creatorAddr)), amountForCreator, payment.assetId), ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, payment.assetId), ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))] | |
244 | 266 | } | |
245 | 267 | } | |
246 | 268 | } | |
247 | 269 | } | |
248 | 270 | } | |
249 | 271 | ||
250 | 272 | ||
251 | 273 | ||
252 | 274 | @Callable(i) | |
253 | 275 | func setOffer (nftid) = { | |
254 | - | let $ | |
255 | - | let id = $ | |
256 | - | let offerOwner = $ | |
257 | - | let date = $ | |
258 | - | let $ | |
259 | - | let payment = $ | |
260 | - | let amount = $ | |
276 | + | let $t01056110603 = idCallerDate(i) | |
277 | + | let id = $t01056110603._1 | |
278 | + | let offerOwner = $t01056110603._2 | |
279 | + | let date = $t01056110603._3 | |
280 | + | let $t01060810644 = isPayment(i) | |
281 | + | let payment = $t01060810644._1 | |
282 | + | let amount = $t01060810644._2 | |
261 | 283 | let assetId = if (!(isDefined(payment.assetId))) | |
262 | 284 | then "WAVES" | |
263 | 285 | else toBase58String(value(payment.assetId)) | |
264 | 286 | if (!(acceptedAssetIds(assetId))) | |
265 | 287 | then throw("asset not accepted") | |
266 | 288 | else { | |
267 | - | let $ | |
268 | - | let isValidNFT = $ | |
269 | - | let creatorAddr = $ | |
289 | + | let $t01083010881 = checkNFTInfo(nftid) | |
290 | + | let isValidNFT = $t01083010881._1 | |
291 | + | let creatorAddr = $t01083010881._2 | |
270 | 292 | if (!(isValidNFT)) | |
271 | 293 | then throw("Something went wrong") | |
272 | 294 | else { | |
273 | 295 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
274 | 296 | [StringEntry((((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + id) + "_OPEN"), ((((((((toString(date) + "_") + toString(amount)) + "_") + assetId) + "_") + offerOwner) + "_") + id))] | |
275 | 297 | } | |
276 | 298 | } | |
277 | 299 | } | |
278 | 300 | ||
279 | 301 | ||
280 | 302 | ||
281 | 303 | @Callable(i) | |
282 | 304 | func acceptOffer (nftid,offerId,offerOwner) = { | |
283 | - | let $ | |
284 | - | let id = $ | |
285 | - | let caller = $ | |
286 | - | let date = $ | |
305 | + | let $t01151211652 = idCallerDate(i) | |
306 | + | let id = $t01151211652._1 | |
307 | + | let caller = $t01151211652._2 | |
308 | + | let date = $t01151211652._3 | |
287 | 309 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
288 | 310 | if ((caller != saleOwner)) | |
289 | 311 | then throw("You cannot do this action") | |
290 | 312 | else { | |
291 | 313 | let offerExist = getStrByK((((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) + "_OPEN")) | |
292 | 314 | if ((offerExist == "")) | |
293 | 315 | then throw("Offer not found or not for sale") | |
294 | 316 | else { | |
295 | - | let $ | |
296 | - | let isValidNFT = $ | |
297 | - | let creatorAddr = $ | |
317 | + | let $t01195712008 = checkNFTInfo(nftid) | |
318 | + | let isValidNFT = $t01195712008._1 | |
319 | + | let creatorAddr = $t01195712008._2 | |
298 | 320 | if (!(isValidNFT)) | |
299 | 321 | then throw("Something went wrong") | |
300 | 322 | else { | |
301 | 323 | let saleInfo = getStrByK((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")) | |
302 | 324 | if ((size(saleInfo) == 0)) | |
303 | 325 | then throw("Sale Not found!") | |
304 | 326 | else { | |
305 | 327 | let bidDataKey = ((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) | |
306 | - | let $ | |
307 | - | let bidDataArr = $ | |
308 | - | let assetId = $ | |
309 | - | let bidData = $ | |
328 | + | let $t01234412403 = getBidData(bidDataKey) | |
329 | + | let bidDataArr = $t01234412403._1 | |
330 | + | let assetId = $t01234412403._2 | |
331 | + | let bidData = $t01234412403._3 | |
310 | 332 | let amount = value(parseInt(bidDataArr[1])) | |
311 | 333 | let amountForSign = fraction(amount, signCut, 100) | |
312 | 334 | let amountForCreator = fraction(amount, creatorCut, 100) | |
313 | 335 | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
314 | 336 | [DeleteEntry((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")), DeleteEntry((bidDataKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((bidDataKey + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_") + offerOwner) + "_") + offerId)), StringEntry((((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_to_") + offerOwner)), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId), ScriptTransfer(Address(fromBase58String(creatorAddr)), amountForCreator, assetId), ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId), ScriptTransfer(Address(fromBase58String(bidDataArr[3])), 1, fromBase58String(nftid))] | |
315 | 337 | } | |
316 | 338 | } | |
317 | 339 | } | |
318 | 340 | } | |
319 | 341 | } | |
320 | 342 | ||
321 | 343 | ||
322 | 344 | ||
323 | 345 | @Callable(i) | |
324 | 346 | func cancelOffer (nftid,offerId,saleOwner) = { | |
325 | - | let $ | |
326 | - | let id = $ | |
327 | - | let caller = $ | |
328 | - | let date = $ | |
347 | + | let $t01379314075 = idCallerDate(i) | |
348 | + | let id = $t01379314075._1 | |
349 | + | let caller = $t01379314075._2 | |
350 | + | let date = $t01379314075._3 | |
329 | 351 | let bidDataKey = ((((((("offer2nd_" + caller) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) | |
330 | - | let $ | |
331 | - | let bidDataArr = $ | |
332 | - | let assetId = $ | |
333 | - | let bidData = $ | |
352 | + | let $t01416114220 = getBidData(bidDataKey) | |
353 | + | let bidDataArr = $t01416114220._1 | |
354 | + | let assetId = $t01416114220._2 | |
355 | + | let bidData = $t01416114220._3 | |
334 | 356 | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry((((((bidDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((bidData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
357 | + | } | |
358 | + | ||
359 | + | ||
360 | + | ||
361 | + | @Callable(i) | |
362 | + | func makeRequest (artId,creatorAddr) = { | |
363 | + | let $t01561015654 = idCallerDate(i) | |
364 | + | let id = $t01561015654._1 | |
365 | + | let requestOwner = $t01561015654._2 | |
366 | + | let date = $t01561015654._3 | |
367 | + | let $t01565915695 = isPayment(i) | |
368 | + | let payment = $t01565915695._1 | |
369 | + | let amount = $t01565915695._2 | |
370 | + | let assetId = if (!(isDefined(payment.assetId))) | |
371 | + | then "WAVES" | |
372 | + | else toBase58String(value(payment.assetId)) | |
373 | + | if (!(acceptedAssetIds(assetId))) | |
374 | + | then throw("asset not accepted") | |
375 | + | else { | |
376 | + | let isValidART = checkARTExist(artId, creatorAddr) | |
377 | + | if (!(isValidART)) | |
378 | + | then throw("Something went wrong") | |
379 | + | else [StringEntry((((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + id) + "_OPEN"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(payment.assetId))) + "_") + artId) + "_") + requestOwner) + "_") + id))] | |
380 | + | } | |
381 | + | } | |
382 | + | ||
383 | + | ||
384 | + | ||
385 | + | @Callable(i) | |
386 | + | func fillRequest (artId,requestOwner,offerId) = { | |
387 | + | let $t01647016512 = idCallerDate(i) | |
388 | + | let id = $t01647016512._1 | |
389 | + | let saleOwner = $t01647016512._2 | |
390 | + | let date = $t01647016512._3 | |
391 | + | let $t01651716561 = isPayment(i) | |
392 | + | let payment = $t01651716561._1 | |
393 | + | let amountAttached = $t01651716561._2 | |
394 | + | let assetId = if (if (isDefined(payment.assetId)) | |
395 | + | then isSignArtNFT(value(payment.assetId)) | |
396 | + | else false) | |
397 | + | then payment.assetId | |
398 | + | else throw("No NFT found") | |
399 | + | let attachedNft = split(getArtStrByK(("nft_" + toBase58String(value(assetId)))), "_") | |
400 | + | if ((size(attachedNft) == 0)) | |
401 | + | then throw("No NFT found") | |
402 | + | else { | |
403 | + | let requestData = split(getStrByK((((((((("request2nd_" + requestOwner) + "_") + attachedNft[5]) + "_") + artId) + "_") + offerId) + "_OPEN")), "_") | |
404 | + | if ((size(requestData) == 0)) | |
405 | + | then throw("No request found") | |
406 | + | else if ((requestData[3] != attachedNft[5])) | |
407 | + | then throw("This NFT don't match the requested artwork") | |
408 | + | else { | |
409 | + | let amount = value(parseInt(requestData[1])) | |
410 | + | let amountForSign = fraction(amount, signCut, 100) | |
411 | + | let amountForCreator = fraction(amount, creatorCut, 100) | |
412 | + | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
413 | + | [DeleteEntry((((((((("request2nd_" + requestOwner) + "_") + attachedNft[5]) + "_") + artId) + "_") + offerId) + "_OPEN")), StringEntry((((((((("request2nd_" + requestOwner) + "_") + attachedNft[5]) + "_") + artId) + "_") + offerId) + "_CLOSED"), ((((((((((((toString(date) + "_") + toString(amount)) + "_") + requestData[2]) + "_") + artId) + "_") + requestOwner) + "_") + saleOwner) + "_") + id)), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId), ScriptTransfer(Address(fromBase58String(attachedNft[6])), amountForCreator, assetId), ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId), ScriptTransfer(Address(fromBase58String(requestData[4])), 1, assetId)] | |
414 | + | } | |
415 | + | } | |
416 | + | } | |
417 | + | ||
418 | + | ||
419 | + | ||
420 | + | @Callable(i) | |
421 | + | func cancelRequest (artId,creatorAddr,requestId) = { | |
422 | + | let $t01833318377 = idCallerDate(i) | |
423 | + | let id = $t01833318377._1 | |
424 | + | let requestOwner = $t01833318377._2 | |
425 | + | let date = $t01833318377._3 | |
426 | + | let requesDataKey = ((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + requestId) | |
427 | + | let requestData = getStrByK((requesDataKey + "_OPEN")) | |
428 | + | let requestDataArr = split(getStrByK((requesDataKey + "_OPEN")), "_") | |
429 | + | [DeleteEntry((requesDataKey + "_OPEN")), StringEntry((((((requesDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((requestData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(requestOwner)), parseIntValue(requestDataArr[1]), fromBase58String(requestDataArr[2]))] | |
335 | 430 | } | |
336 | 431 | ||
337 | 432 | ||
338 | 433 | ||
339 | 434 | @Callable(i) | |
340 | 435 | func deleteEntry (entry) = { | |
341 | 436 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
342 | 437 | if ((caller == chris)) | |
343 | 438 | then [DeleteEntry(entry)] | |
344 | 439 | else throw("no") | |
345 | 440 | } | |
346 | 441 | ||
347 | 442 |
github/deemru/w8io/026f985 123.43 ms ◑