tx · Dh8kjvZAYVQSqh72hbTvFhJfmWpryBrAfUEdP6fgGtdc 3N9yxjwDM9T8cFxAxjrw8k5wiGxRxHh9FdW: -0.01400000 Waves 2021.05.18 11:31 [1530885] smart account 3N9yxjwDM9T8cFxAxjrw8k5wiGxRxHh9FdW > SELF 0.00000000 Waves
{ "type": 13, "id": "Dh8kjvZAYVQSqh72hbTvFhJfmWpryBrAfUEdP6fgGtdc", "fee": 1400000, "feeAssetId": null, "timestamp": 1621326726786, "version": 2, "chainId": 84, "sender": "3N9yxjwDM9T8cFxAxjrw8k5wiGxRxHh9FdW", "senderPublicKey": "7nc1RVTNTXy1DvKS2F4boNQWQir3Lqpvi8zMoo42M3nP", "proofs": [ "pb7mZPwJoB3VSdsLLViqUpsnCzn8QagYaR7Zyp8uptXwd5V37RLLQmtPLxe6UXzq3NjtdtvQqzdNDNLG2tJBr9D" ], "script": "base64:AAIEAAAAAAAAAD4IAhIECgIBCBIDCgEIEgMKAQgSAwoBCBIFCgMICAgSBQoDCAgIEgQKAggIEgUKAwgICBIFCgMICAgSAwoBCAAAACgAAAAACHVuaXRUZXN0BwAAAAAJb3JhY2xlRmVlCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAAhzaWduRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAAMYXJ0d29ya3NEYXBwCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOQnluZmJYQzJLYXN0VXhodWtjTVVhRTU4SzljQmRCOVVZAAAAAAtmZWVSZWNlaXZlcgIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIAAAAACHVzZXJEYXBwAwUAAAAIdW5pdFRlc3QJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM010NFJ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AAAJpZAIAAAAKX0NBTkNFTExFRAkAASwAAAACCQABLAAAAAIFAAAAC3JlcXVlc3REYXRhAgAAAAFfCQABpAAAAAEFAAAABGRhdGUJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABCQACWQAAAAEFAAAADHJlcXVlc3RPd25lcgkBAAAADXBhcnNlSW50VmFsdWUAAAABCQABkQAAAAIFAAAADnJlcXVlc3REYXRhQXJyAAAAAAAAAAABCQACWQAAAAEJAAGRAAAAAgUAAAAOcmVxdWVzdERhdGFBcnIAAAAAAAAAAAIFAAAAA25pbAAAAAFpAQAAAAtkZWxldGVFbnRyeQAAAAEAAAAFZW50cnkEAAAABmNhbGxlcgkABCUAAAABCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQAAAAAAAAIFAAAABmNhbGxlcgUAAAAFY2hyaXMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAFZW50cnkFAAAAA25pbAkAAAIAAAABAgAAAAJubwAAAADRbxqV", "height": 1530885, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CJqUAa2NWJtuKE3Xb91VywcL4dQtRjdsHK6bQr1wBWDe Next: EyajSE7nubYAW2kg9wjL5UGCzK2fcSg4zmdiVnMB9uqD Diff:
Old | New | Differences | |
---|---|---|---|
179 | 179 | } | |
180 | 180 | ||
181 | 181 | ||
182 | + | func setTransfers (amount,assetId,nftid,creatorAddr,saleOwner,caller) = { | |
183 | + | let amountForSign = fraction(amount, signCut, 100) | |
184 | + | let amountForCreator = fraction(amount, creatorCut, 100) | |
185 | + | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
186 | + | let signFee = ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId) | |
187 | + | let creatorFee = ScriptTransfer(Address(fromBase58String(creatorAddr)), amountForCreator, assetId) | |
188 | + | let ownerFee = ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId) | |
189 | + | let collectorFee = ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid)) | |
190 | + | $Tuple4(signFee, creatorFee, ownerFee, collectorFee) | |
191 | + | } | |
192 | + | ||
193 | + | ||
182 | 194 | @Callable(i) | |
183 | 195 | func sellNFT (price,asset) = { | |
184 | - | let $ | |
185 | - | let id = $ | |
186 | - | let caller = $ | |
187 | - | let date = $ | |
188 | - | let $ | |
189 | - | let payment = $ | |
190 | - | let amount = $ | |
196 | + | let $t070747113 = idCallerDate(i) | |
197 | + | let id = $t070747113._1 | |
198 | + | let caller = $t070747113._2 | |
199 | + | let date = $t070747113._3 | |
200 | + | let $t071187154 = isPayment(i) | |
201 | + | let payment = $t071187154._1 | |
202 | + | let amount = $t071187154._2 | |
191 | 203 | let assetId = if (if (isDefined(payment.assetId)) | |
192 | 204 | then isSignArtNFT(value(payment.assetId)) | |
193 | 205 | else false) | |
196 | 208 | if (!(acceptedAssetIds(asset))) | |
197 | 209 | then throw("Only SIGN, USDN or WAVES accepted") | |
198 | 210 | else { | |
199 | - | let $ | |
200 | - | let isValidNFT = $ | |
201 | - | let creatorAddr = $ | |
211 | + | let $t074197495 = checkNFTInfo(toBase58String(value(assetId))) | |
212 | + | let isValidNFT = $t074197495._1 | |
213 | + | let creatorAddr = $t074197495._2 | |
202 | 214 | if (!(isValidNFT)) | |
203 | 215 | then throw("Something went wrong") | |
204 | 216 | 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)] | |
209 | 221 | ||
210 | 222 | @Callable(i) | |
211 | 223 | func cancelSale (nftid) = { | |
212 | - | let $ | |
213 | - | let id = $ | |
214 | - | let caller = $ | |
215 | - | let date = $ | |
224 | + | let $t081718210 = idCallerDate(i) | |
225 | + | let id = $t081718210._1 | |
226 | + | let caller = $t081718210._2 | |
227 | + | let date = $t081718210._3 | |
216 | 228 | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
217 | 229 | if ((saleOwner != caller)) | |
218 | 230 | then throw("You don't own this NFT") | |
232 | 244 | ||
233 | 245 | @Callable(i) | |
234 | 246 | func buyNFT (nftid) = { | |
235 | - | let $ | |
236 | - | let id = $ | |
237 | - | let caller = $ | |
238 | - | let date = $ | |
247 | + | let $t093399410 = idCallerDate(i) | |
248 | + | let id = $t093399410._1 | |
249 | + | let caller = $t093399410._2 | |
250 | + | let date = $t093399410._3 | |
239 | 251 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
240 | - | let $ | |
241 | - | let isValidNFT = $ | |
242 | - | let creatorAddr = $ | |
252 | + | let $t094659516 = checkNFTInfo(nftid) | |
253 | + | let isValidNFT = $t094659516._1 | |
254 | + | let creatorAddr = $t094659516._2 | |
243 | 255 | if (!(isValidNFT)) | |
244 | 256 | then throw("Something went wrong") | |
245 | 257 | else { | |
251 | 263 | if ((parseInt(saleInfoArray[1]) == 0)) | |
252 | 264 | then throw("Offer only") | |
253 | 265 | else { | |
254 | - | let $ | |
255 | - | let payment = $ | |
256 | - | let amount = $ | |
266 | + | let $t098529888 = isPayment(i) | |
267 | + | let payment = $t098529888._1 | |
268 | + | let amount = $t098529888._2 | |
257 | 269 | if (if ((saleInfoArray[1] != toString(amount))) | |
258 | 270 | then true | |
259 | 271 | else (saleInfoArray[2] != toBase58String(value(payment.assetId)))) | |
262 | 274 | let amountForSign = fraction(amount, signCut, 100) | |
263 | 275 | let amountForCreator = fraction(amount, creatorCut, 100) | |
264 | 276 | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
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))] | |
277 | + | let $t01031110439 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller) | |
278 | + | let signFee = $t01031110439._1 | |
279 | + | let creatorFee = $t01031110439._2 | |
280 | + | let ownerFee = $t01031110439._3 | |
281 | + | let collectorFee = $t01031110439._4 | |
282 | + | [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)), signFee, creatorFee, ownerFee, collectorFee] | |
266 | 283 | } | |
267 | 284 | } | |
268 | 285 | } | |
273 | 290 | ||
274 | 291 | @Callable(i) | |
275 | 292 | func setOffer (nftid) = { | |
276 | - | let $ | |
277 | - | let id = $ | |
278 | - | let offerOwner = $ | |
279 | - | let date = $ | |
280 | - | let $ | |
281 | - | let payment = $ | |
282 | - | let amount = $ | |
293 | + | let $t01152711569 = idCallerDate(i) | |
294 | + | let id = $t01152711569._1 | |
295 | + | let offerOwner = $t01152711569._2 | |
296 | + | let date = $t01152711569._3 | |
297 | + | let $t01157411610 = isPayment(i) | |
298 | + | let payment = $t01157411610._1 | |
299 | + | let amount = $t01157411610._2 | |
283 | 300 | let assetId = if (!(isDefined(payment.assetId))) | |
284 | 301 | then "WAVES" | |
285 | 302 | else toBase58String(value(payment.assetId)) | |
286 | 303 | if (!(acceptedAssetIds(assetId))) | |
287 | 304 | then throw("asset not accepted") | |
288 | 305 | else { | |
289 | - | let $ | |
290 | - | let isValidNFT = $ | |
291 | - | let creatorAddr = $ | |
306 | + | let $t01179611847 = checkNFTInfo(nftid) | |
307 | + | let isValidNFT = $t01179611847._1 | |
308 | + | let creatorAddr = $t01179611847._2 | |
292 | 309 | if (!(isValidNFT)) | |
293 | 310 | then throw("Something went wrong") | |
294 | 311 | else { | |
302 | 319 | ||
303 | 320 | @Callable(i) | |
304 | 321 | func acceptOffer (nftid,offerId,offerOwner) = { | |
305 | - | let $ | |
306 | - | let id = $ | |
307 | - | let caller = $ | |
308 | - | let date = $ | |
322 | + | let $t01239512465 = idCallerDate(i) | |
323 | + | let id = $t01239512465._1 | |
324 | + | let caller = $t01239512465._2 | |
325 | + | let date = $t01239512465._3 | |
309 | 326 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
310 | 327 | if ((caller != saleOwner)) | |
311 | 328 | then throw("You cannot do this action") | |
314 | 331 | if ((offerExist == "")) | |
315 | 332 | then throw("Offer not found or not for sale") | |
316 | 333 | else { | |
317 | - | let $ | |
318 | - | let isValidNFT = $ | |
319 | - | let creatorAddr = $ | |
334 | + | let $t01277012821 = checkNFTInfo(nftid) | |
335 | + | let isValidNFT = $t01277012821._1 | |
336 | + | let creatorAddr = $t01277012821._2 | |
320 | 337 | if (!(isValidNFT)) | |
321 | 338 | then throw("Something went wrong") | |
322 | 339 | else { | |
325 | 342 | then throw("Sale Not found!") | |
326 | 343 | else { | |
327 | 344 | let bidDataKey = ((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) | |
328 | - | let $ | |
329 | - | let bidDataArr = $ | |
330 | - | let assetId = $ | |
331 | - | let bidData = $ | |
345 | + | let $t01315713216 = getBidData(bidDataKey) | |
346 | + | let bidDataArr = $t01315713216._1 | |
347 | + | let assetId = $t01315713216._2 | |
348 | + | let bidData = $t01315713216._3 | |
332 | 349 | let amount = value(parseInt(bidDataArr[1])) | |
333 | - | let amountForSign = fraction(amount, signCut, 100) | |
334 | - | let amountForCreator = fraction(amount, creatorCut, 100) | |
335 | - | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
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))] | |
350 | + | let $t01327013397 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[3]) | |
351 | + | let signFee = $t01327013397._1 | |
352 | + | let creatorFee = $t01327013397._2 | |
353 | + | let ownerFee = $t01327013397._3 | |
354 | + | let collectorFee = $t01327013397._4 | |
355 | + | [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)), signFee, creatorFee, ownerFee, collectorFee] | |
337 | 356 | } | |
338 | 357 | } | |
339 | 358 | } | |
344 | 363 | ||
345 | 364 | @Callable(i) | |
346 | 365 | func cancelOffer (nftid,offerId,saleOwner) = { | |
347 | - | let $ | |
348 | - | let id = $ | |
349 | - | let caller = $ | |
350 | - | let date = $ | |
366 | + | let $t01417114232 = idCallerDate(i) | |
367 | + | let id = $t01417114232._1 | |
368 | + | let caller = $t01417114232._2 | |
369 | + | let date = $t01417114232._3 | |
351 | 370 | let bidDataKey = ((((((("offer2nd_" + caller) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) | |
352 | - | let $ | |
353 | - | let bidDataArr = $ | |
354 | - | let assetId = $ | |
355 | - | let bidData = $ | |
371 | + | let $t01431314372 = getBidData(bidDataKey) | |
372 | + | let bidDataArr = $t01431314372._1 | |
373 | + | let assetId = $t01431314372._2 | |
374 | + | let bidData = $t01431314372._3 | |
356 | 375 | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry((((((bidDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((bidData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
357 | 376 | } | |
358 | 377 | ||
360 | 379 | ||
361 | 380 | @Callable(i) | |
362 | 381 | func makeRequest (artId,creatorAddr) = { | |
363 | - | let $ | |
364 | - | let id = $ | |
365 | - | let requestOwner = $ | |
366 | - | let date = $ | |
367 | - | let $ | |
368 | - | let payment = $ | |
369 | - | let amount = $ | |
382 | + | let $t01470714751 = idCallerDate(i) | |
383 | + | let id = $t01470714751._1 | |
384 | + | let requestOwner = $t01470714751._2 | |
385 | + | let date = $t01470714751._3 | |
386 | + | let $t01475614792 = isPayment(i) | |
387 | + | let payment = $t01475614792._1 | |
388 | + | let amount = $t01475614792._2 | |
370 | 389 | let assetId = if (!(isDefined(payment.assetId))) | |
371 | 390 | then "WAVES" | |
372 | 391 | else toBase58String(value(payment.assetId)) | |
384 | 403 | ||
385 | 404 | @Callable(i) | |
386 | 405 | func fillRequest (artId,requestOwner,offerId) = { | |
387 | - | let $ | |
388 | - | let id = $ | |
389 | - | let saleOwner = $ | |
390 | - | let date = $ | |
391 | - | let $ | |
392 | - | let payment = $ | |
393 | - | let amountAttached = $ | |
394 | - | let | |
406 | + | let $t01556715609 = idCallerDate(i) | |
407 | + | let id = $t01556715609._1 | |
408 | + | let saleOwner = $t01556715609._2 | |
409 | + | let date = $t01556715609._3 | |
410 | + | let $t01561415658 = isPayment(i) | |
411 | + | let payment = $t01561415658._1 | |
412 | + | let amountAttached = $t01561415658._2 | |
413 | + | let NFTid = if (if (isDefined(payment.assetId)) | |
395 | 414 | then isSignArtNFT(value(payment.assetId)) | |
396 | 415 | else false) | |
397 | 416 | then payment.assetId | |
398 | 417 | else throw("No NFT found") | |
399 | - | let | |
400 | - | if ((size( | |
418 | + | let NFTdata = split(getArtStrByK(("nft_" + toBase58String(value(NFTid)))), "_") | |
419 | + | if ((size(NFTdata) == 0)) | |
401 | 420 | then throw("No NFT found") | |
402 | 421 | else { | |
403 | - | let requestData = split(getStrByK((((((((("request2nd_" + requestOwner) + "_") + | |
422 | + | let requestData = split(getStrByK((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_OPEN")), "_") | |
404 | 423 | if ((size(requestData) == 1)) | |
405 | 424 | then throw("No request found") | |
406 | - | else if ((requestData[3] != | |
425 | + | else if ((requestData[3] != NFTdata[5])) | |
407 | 426 | then throw("This NFT don't match the requested artwork") | |
408 | 427 | else { | |
409 | 428 | 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[6]) + "_") + artId) + "_") + offerId) + "_OPEN")), StringEntry((((((((("request2nd_" + requestOwner) + "_") + attachedNft[6]) + "_") + artId) + "_") + offerId) + "_CLOSED"), ((((((((((((toString(date) + "_") + toString(amount)) + "_") + requestData[2]) + "_") + artId) + "_") + requestOwner) + "_") + saleOwner) + "_") + id)), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, fromBase58String(requestData[2])), ScriptTransfer(Address(fromBase58String(attachedNft[6])), amountForCreator, fromBase58String(requestData[2])), ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, fromBase58String(requestData[2])), ScriptTransfer(Address(fromBase58String(requestData[4])), 1, assetId)] | |
429 | + | let $t01637816553 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4]) | |
430 | + | let signFee = $t01637816553._1 | |
431 | + | let creatorFee = $t01637816553._2 | |
432 | + | let ownerFee = $t01637816553._3 | |
433 | + | let collectorFee = $t01637816553._4 | |
434 | + | [DeleteEntry((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_OPEN")), StringEntry((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_CLOSED"), ((((((((((((toString(date) + "_") + toString(amount)) + "_") + requestData[2]) + "_") + artId) + "_") + requestOwner) + "_") + saleOwner) + "_") + id)), signFee, creatorFee, ownerFee, collectorFee] | |
414 | 435 | } | |
415 | 436 | } | |
416 | 437 | } | |
419 | 440 | ||
420 | 441 | @Callable(i) | |
421 | 442 | func cancelRequest (artId,creatorAddr,requestId) = { | |
422 | - | let $ | |
423 | - | let id = $ | |
424 | - | let requestOwner = $ | |
425 | - | let date = $ | |
443 | + | let $t01701317057 = idCallerDate(i) | |
444 | + | let id = $t01701317057._1 | |
445 | + | let requestOwner = $t01701317057._2 | |
446 | + | let date = $t01701317057._3 | |
426 | 447 | let requesDataKey = ((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + requestId) | |
427 | 448 | let requestData = getStrByK((requesDataKey + "_OPEN")) | |
428 | 449 | if ((size(requestData) == 0)) |
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 | 139 | func checkArtStatus (addr,id) = { | |
140 | 140 | let artStatus = getArtStrByK(keyFlag(addr, id)) | |
141 | 141 | if (if ((artStatus == artIllegal)) | |
142 | 142 | then true | |
143 | 143 | else (artStatus == artSuspended)) | |
144 | 144 | then throw(("Original Artwork flagged as " + artStatus)) | |
145 | 145 | else true | |
146 | 146 | } | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func checkArtistStatus (addr) = { | |
150 | 150 | let artistStatus = getUserStrByK(keyUserStatus(addr)) | |
151 | 151 | if (containsElement([userSuspended, userRemoved], artistStatus)) | |
152 | 152 | then throw(("Original Artist " + artistStatus)) | |
153 | 153 | else true | |
154 | 154 | } | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func checkNFTInfo (assetId) = { | |
158 | 158 | let nftData = split(getArtStrByK(keyNFTData(assetId)), "_") | |
159 | 159 | let artSignID = getArtStrByK(keySignID(nftData[6], nftData[5])) | |
160 | 160 | if ((size(artSignID) == 0)) | |
161 | 161 | then throw("Artwork not found on SIGN Art") | |
162 | 162 | else if (if (!(checkArtStatus(nftData[6], nftData[5]))) | |
163 | 163 | then !(checkArtistStatus(nftData[6])) | |
164 | 164 | else false) | |
165 | 165 | then $Tuple2(false, nftData[6]) | |
166 | 166 | else $Tuple2(true, nftData[6]) | |
167 | 167 | } | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func checkARTExist (artId,creatorAddr) = { | |
171 | 171 | let artSignID = getArtStrByK(keySignID(creatorAddr, artId)) | |
172 | 172 | if ((size(artSignID) == 0)) | |
173 | 173 | then throw("Artwork not found on SIGN Art") | |
174 | 174 | else if (if (!(checkArtStatus(creatorAddr, artId))) | |
175 | 175 | then !(checkArtistStatus(creatorAddr)) | |
176 | 176 | else false) | |
177 | 177 | then false | |
178 | 178 | else true | |
179 | 179 | } | |
180 | 180 | ||
181 | 181 | ||
182 | + | func setTransfers (amount,assetId,nftid,creatorAddr,saleOwner,caller) = { | |
183 | + | let amountForSign = fraction(amount, signCut, 100) | |
184 | + | let amountForCreator = fraction(amount, creatorCut, 100) | |
185 | + | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
186 | + | let signFee = ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId) | |
187 | + | let creatorFee = ScriptTransfer(Address(fromBase58String(creatorAddr)), amountForCreator, assetId) | |
188 | + | let ownerFee = ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId) | |
189 | + | let collectorFee = ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid)) | |
190 | + | $Tuple4(signFee, creatorFee, ownerFee, collectorFee) | |
191 | + | } | |
192 | + | ||
193 | + | ||
182 | 194 | @Callable(i) | |
183 | 195 | func sellNFT (price,asset) = { | |
184 | - | let $ | |
185 | - | let id = $ | |
186 | - | let caller = $ | |
187 | - | let date = $ | |
188 | - | let $ | |
189 | - | let payment = $ | |
190 | - | let amount = $ | |
196 | + | let $t070747113 = idCallerDate(i) | |
197 | + | let id = $t070747113._1 | |
198 | + | let caller = $t070747113._2 | |
199 | + | let date = $t070747113._3 | |
200 | + | let $t071187154 = isPayment(i) | |
201 | + | let payment = $t071187154._1 | |
202 | + | let amount = $t071187154._2 | |
191 | 203 | let assetId = if (if (isDefined(payment.assetId)) | |
192 | 204 | then isSignArtNFT(value(payment.assetId)) | |
193 | 205 | else false) | |
194 | 206 | then payment.assetId | |
195 | 207 | else throw("No NFT found") | |
196 | 208 | if (!(acceptedAssetIds(asset))) | |
197 | 209 | then throw("Only SIGN, USDN or WAVES accepted") | |
198 | 210 | else { | |
199 | - | let $ | |
200 | - | let isValidNFT = $ | |
201 | - | let creatorAddr = $ | |
211 | + | let $t074197495 = checkNFTInfo(toBase58String(value(assetId))) | |
212 | + | let isValidNFT = $t074197495._1 | |
213 | + | let creatorAddr = $t074197495._2 | |
202 | 214 | if (!(isValidNFT)) | |
203 | 215 | then throw("Something went wrong") | |
204 | 216 | 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)] | |
205 | 217 | } | |
206 | 218 | } | |
207 | 219 | ||
208 | 220 | ||
209 | 221 | ||
210 | 222 | @Callable(i) | |
211 | 223 | func cancelSale (nftid) = { | |
212 | - | let $ | |
213 | - | let id = $ | |
214 | - | let caller = $ | |
215 | - | let date = $ | |
224 | + | let $t081718210 = idCallerDate(i) | |
225 | + | let id = $t081718210._1 | |
226 | + | let caller = $t081718210._2 | |
227 | + | let date = $t081718210._3 | |
216 | 228 | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
217 | 229 | if ((saleOwner != caller)) | |
218 | 230 | then throw("You don't own this NFT") | |
219 | 231 | else { | |
220 | 232 | let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid)) | |
221 | 233 | if ((saleStatus != "OPEN")) | |
222 | 234 | then throw("Sale not active") | |
223 | 235 | else { | |
224 | 236 | let creatorAddr = split(getArtStrByK(keyNFTData(nftid)), "_")[6] | |
225 | 237 | let saleInfo = getStrByK(((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + saleStatus)) | |
226 | 238 | [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))] | |
227 | 239 | } | |
228 | 240 | } | |
229 | 241 | } | |
230 | 242 | ||
231 | 243 | ||
232 | 244 | ||
233 | 245 | @Callable(i) | |
234 | 246 | func buyNFT (nftid) = { | |
235 | - | let $ | |
236 | - | let id = $ | |
237 | - | let caller = $ | |
238 | - | let date = $ | |
247 | + | let $t093399410 = idCallerDate(i) | |
248 | + | let id = $t093399410._1 | |
249 | + | let caller = $t093399410._2 | |
250 | + | let date = $t093399410._3 | |
239 | 251 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
240 | - | let $ | |
241 | - | let isValidNFT = $ | |
242 | - | let creatorAddr = $ | |
252 | + | let $t094659516 = checkNFTInfo(nftid) | |
253 | + | let isValidNFT = $t094659516._1 | |
254 | + | let creatorAddr = $t094659516._2 | |
243 | 255 | if (!(isValidNFT)) | |
244 | 256 | then throw("Something went wrong") | |
245 | 257 | else { | |
246 | 258 | let saleInfo = getStrByK((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")) | |
247 | 259 | if ((size(saleInfo) == 0)) | |
248 | 260 | then throw("Sale Not found!") | |
249 | 261 | else { | |
250 | 262 | let saleInfoArray = split(saleInfo, "_") | |
251 | 263 | if ((parseInt(saleInfoArray[1]) == 0)) | |
252 | 264 | then throw("Offer only") | |
253 | 265 | else { | |
254 | - | let $ | |
255 | - | let payment = $ | |
256 | - | let amount = $ | |
266 | + | let $t098529888 = isPayment(i) | |
267 | + | let payment = $t098529888._1 | |
268 | + | let amount = $t098529888._2 | |
257 | 269 | if (if ((saleInfoArray[1] != toString(amount))) | |
258 | 270 | then true | |
259 | 271 | else (saleInfoArray[2] != toBase58String(value(payment.assetId)))) | |
260 | 272 | then throw("Payment infos don't match.") | |
261 | 273 | else { | |
262 | 274 | let amountForSign = fraction(amount, signCut, 100) | |
263 | 275 | let amountForCreator = fraction(amount, creatorCut, 100) | |
264 | 276 | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
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))] | |
277 | + | let $t01031110439 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller) | |
278 | + | let signFee = $t01031110439._1 | |
279 | + | let creatorFee = $t01031110439._2 | |
280 | + | let ownerFee = $t01031110439._3 | |
281 | + | let collectorFee = $t01031110439._4 | |
282 | + | [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)), signFee, creatorFee, ownerFee, collectorFee] | |
266 | 283 | } | |
267 | 284 | } | |
268 | 285 | } | |
269 | 286 | } | |
270 | 287 | } | |
271 | 288 | ||
272 | 289 | ||
273 | 290 | ||
274 | 291 | @Callable(i) | |
275 | 292 | func setOffer (nftid) = { | |
276 | - | let $ | |
277 | - | let id = $ | |
278 | - | let offerOwner = $ | |
279 | - | let date = $ | |
280 | - | let $ | |
281 | - | let payment = $ | |
282 | - | let amount = $ | |
293 | + | let $t01152711569 = idCallerDate(i) | |
294 | + | let id = $t01152711569._1 | |
295 | + | let offerOwner = $t01152711569._2 | |
296 | + | let date = $t01152711569._3 | |
297 | + | let $t01157411610 = isPayment(i) | |
298 | + | let payment = $t01157411610._1 | |
299 | + | let amount = $t01157411610._2 | |
283 | 300 | let assetId = if (!(isDefined(payment.assetId))) | |
284 | 301 | then "WAVES" | |
285 | 302 | else toBase58String(value(payment.assetId)) | |
286 | 303 | if (!(acceptedAssetIds(assetId))) | |
287 | 304 | then throw("asset not accepted") | |
288 | 305 | else { | |
289 | - | let $ | |
290 | - | let isValidNFT = $ | |
291 | - | let creatorAddr = $ | |
306 | + | let $t01179611847 = checkNFTInfo(nftid) | |
307 | + | let isValidNFT = $t01179611847._1 | |
308 | + | let creatorAddr = $t01179611847._2 | |
292 | 309 | if (!(isValidNFT)) | |
293 | 310 | then throw("Something went wrong") | |
294 | 311 | else { | |
295 | 312 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
296 | 313 | [StringEntry((((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + id) + "_OPEN"), ((((((((toString(date) + "_") + toString(amount)) + "_") + assetId) + "_") + offerOwner) + "_") + id))] | |
297 | 314 | } | |
298 | 315 | } | |
299 | 316 | } | |
300 | 317 | ||
301 | 318 | ||
302 | 319 | ||
303 | 320 | @Callable(i) | |
304 | 321 | func acceptOffer (nftid,offerId,offerOwner) = { | |
305 | - | let $ | |
306 | - | let id = $ | |
307 | - | let caller = $ | |
308 | - | let date = $ | |
322 | + | let $t01239512465 = idCallerDate(i) | |
323 | + | let id = $t01239512465._1 | |
324 | + | let caller = $t01239512465._2 | |
325 | + | let date = $t01239512465._3 | |
309 | 326 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
310 | 327 | if ((caller != saleOwner)) | |
311 | 328 | then throw("You cannot do this action") | |
312 | 329 | else { | |
313 | 330 | let offerExist = getStrByK((((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) + "_OPEN")) | |
314 | 331 | if ((offerExist == "")) | |
315 | 332 | then throw("Offer not found or not for sale") | |
316 | 333 | else { | |
317 | - | let $ | |
318 | - | let isValidNFT = $ | |
319 | - | let creatorAddr = $ | |
334 | + | let $t01277012821 = checkNFTInfo(nftid) | |
335 | + | let isValidNFT = $t01277012821._1 | |
336 | + | let creatorAddr = $t01277012821._2 | |
320 | 337 | if (!(isValidNFT)) | |
321 | 338 | then throw("Something went wrong") | |
322 | 339 | else { | |
323 | 340 | let saleInfo = getStrByK((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")) | |
324 | 341 | if ((size(saleInfo) == 0)) | |
325 | 342 | then throw("Sale Not found!") | |
326 | 343 | else { | |
327 | 344 | let bidDataKey = ((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) | |
328 | - | let $ | |
329 | - | let bidDataArr = $ | |
330 | - | let assetId = $ | |
331 | - | let bidData = $ | |
345 | + | let $t01315713216 = getBidData(bidDataKey) | |
346 | + | let bidDataArr = $t01315713216._1 | |
347 | + | let assetId = $t01315713216._2 | |
348 | + | let bidData = $t01315713216._3 | |
332 | 349 | let amount = value(parseInt(bidDataArr[1])) | |
333 | - | let amountForSign = fraction(amount, signCut, 100) | |
334 | - | let amountForCreator = fraction(amount, creatorCut, 100) | |
335 | - | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
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))] | |
350 | + | let $t01327013397 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[3]) | |
351 | + | let signFee = $t01327013397._1 | |
352 | + | let creatorFee = $t01327013397._2 | |
353 | + | let ownerFee = $t01327013397._3 | |
354 | + | let collectorFee = $t01327013397._4 | |
355 | + | [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)), signFee, creatorFee, ownerFee, collectorFee] | |
337 | 356 | } | |
338 | 357 | } | |
339 | 358 | } | |
340 | 359 | } | |
341 | 360 | } | |
342 | 361 | ||
343 | 362 | ||
344 | 363 | ||
345 | 364 | @Callable(i) | |
346 | 365 | func cancelOffer (nftid,offerId,saleOwner) = { | |
347 | - | let $ | |
348 | - | let id = $ | |
349 | - | let caller = $ | |
350 | - | let date = $ | |
366 | + | let $t01417114232 = idCallerDate(i) | |
367 | + | let id = $t01417114232._1 | |
368 | + | let caller = $t01417114232._2 | |
369 | + | let date = $t01417114232._3 | |
351 | 370 | let bidDataKey = ((((((("offer2nd_" + caller) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) | |
352 | - | let $ | |
353 | - | let bidDataArr = $ | |
354 | - | let assetId = $ | |
355 | - | let bidData = $ | |
371 | + | let $t01431314372 = getBidData(bidDataKey) | |
372 | + | let bidDataArr = $t01431314372._1 | |
373 | + | let assetId = $t01431314372._2 | |
374 | + | let bidData = $t01431314372._3 | |
356 | 375 | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry((((((bidDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((bidData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
357 | 376 | } | |
358 | 377 | ||
359 | 378 | ||
360 | 379 | ||
361 | 380 | @Callable(i) | |
362 | 381 | func makeRequest (artId,creatorAddr) = { | |
363 | - | let $ | |
364 | - | let id = $ | |
365 | - | let requestOwner = $ | |
366 | - | let date = $ | |
367 | - | let $ | |
368 | - | let payment = $ | |
369 | - | let amount = $ | |
382 | + | let $t01470714751 = idCallerDate(i) | |
383 | + | let id = $t01470714751._1 | |
384 | + | let requestOwner = $t01470714751._2 | |
385 | + | let date = $t01470714751._3 | |
386 | + | let $t01475614792 = isPayment(i) | |
387 | + | let payment = $t01475614792._1 | |
388 | + | let amount = $t01475614792._2 | |
370 | 389 | let assetId = if (!(isDefined(payment.assetId))) | |
371 | 390 | then "WAVES" | |
372 | 391 | else toBase58String(value(payment.assetId)) | |
373 | 392 | if (!(acceptedAssetIds(assetId))) | |
374 | 393 | then throw("asset not accepted") | |
375 | 394 | else { | |
376 | 395 | let isValidART = checkARTExist(artId, creatorAddr) | |
377 | 396 | if (!(isValidART)) | |
378 | 397 | then throw("Something went wrong") | |
379 | 398 | else [StringEntry((((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + id) + "_OPEN"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(payment.assetId))) + "_") + artId) + "_") + requestOwner) + "_") + id))] | |
380 | 399 | } | |
381 | 400 | } | |
382 | 401 | ||
383 | 402 | ||
384 | 403 | ||
385 | 404 | @Callable(i) | |
386 | 405 | func fillRequest (artId,requestOwner,offerId) = { | |
387 | - | let $ | |
388 | - | let id = $ | |
389 | - | let saleOwner = $ | |
390 | - | let date = $ | |
391 | - | let $ | |
392 | - | let payment = $ | |
393 | - | let amountAttached = $ | |
394 | - | let | |
406 | + | let $t01556715609 = idCallerDate(i) | |
407 | + | let id = $t01556715609._1 | |
408 | + | let saleOwner = $t01556715609._2 | |
409 | + | let date = $t01556715609._3 | |
410 | + | let $t01561415658 = isPayment(i) | |
411 | + | let payment = $t01561415658._1 | |
412 | + | let amountAttached = $t01561415658._2 | |
413 | + | let NFTid = if (if (isDefined(payment.assetId)) | |
395 | 414 | then isSignArtNFT(value(payment.assetId)) | |
396 | 415 | else false) | |
397 | 416 | then payment.assetId | |
398 | 417 | else throw("No NFT found") | |
399 | - | let | |
400 | - | if ((size( | |
418 | + | let NFTdata = split(getArtStrByK(("nft_" + toBase58String(value(NFTid)))), "_") | |
419 | + | if ((size(NFTdata) == 0)) | |
401 | 420 | then throw("No NFT found") | |
402 | 421 | else { | |
403 | - | let requestData = split(getStrByK((((((((("request2nd_" + requestOwner) + "_") + | |
422 | + | let requestData = split(getStrByK((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_OPEN")), "_") | |
404 | 423 | if ((size(requestData) == 1)) | |
405 | 424 | then throw("No request found") | |
406 | - | else if ((requestData[3] != | |
425 | + | else if ((requestData[3] != NFTdata[5])) | |
407 | 426 | then throw("This NFT don't match the requested artwork") | |
408 | 427 | else { | |
409 | 428 | 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[6]) + "_") + artId) + "_") + offerId) + "_OPEN")), StringEntry((((((((("request2nd_" + requestOwner) + "_") + attachedNft[6]) + "_") + artId) + "_") + offerId) + "_CLOSED"), ((((((((((((toString(date) + "_") + toString(amount)) + "_") + requestData[2]) + "_") + artId) + "_") + requestOwner) + "_") + saleOwner) + "_") + id)), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, fromBase58String(requestData[2])), ScriptTransfer(Address(fromBase58String(attachedNft[6])), amountForCreator, fromBase58String(requestData[2])), ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, fromBase58String(requestData[2])), ScriptTransfer(Address(fromBase58String(requestData[4])), 1, assetId)] | |
429 | + | let $t01637816553 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4]) | |
430 | + | let signFee = $t01637816553._1 | |
431 | + | let creatorFee = $t01637816553._2 | |
432 | + | let ownerFee = $t01637816553._3 | |
433 | + | let collectorFee = $t01637816553._4 | |
434 | + | [DeleteEntry((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_OPEN")), StringEntry((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_CLOSED"), ((((((((((((toString(date) + "_") + toString(amount)) + "_") + requestData[2]) + "_") + artId) + "_") + requestOwner) + "_") + saleOwner) + "_") + id)), signFee, creatorFee, ownerFee, collectorFee] | |
414 | 435 | } | |
415 | 436 | } | |
416 | 437 | } | |
417 | 438 | ||
418 | 439 | ||
419 | 440 | ||
420 | 441 | @Callable(i) | |
421 | 442 | func cancelRequest (artId,creatorAddr,requestId) = { | |
422 | - | let $ | |
423 | - | let id = $ | |
424 | - | let requestOwner = $ | |
425 | - | let date = $ | |
443 | + | let $t01701317057 = idCallerDate(i) | |
444 | + | let id = $t01701317057._1 | |
445 | + | let requestOwner = $t01701317057._2 | |
446 | + | let date = $t01701317057._3 | |
426 | 447 | let requesDataKey = ((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + requestId) | |
427 | 448 | let requestData = getStrByK((requesDataKey + "_OPEN")) | |
428 | 449 | if ((size(requestData) == 0)) | |
429 | 450 | then throw("Request not found") | |
430 | 451 | else { | |
431 | 452 | let requestDataArr = split(requestData, "_") | |
432 | 453 | [DeleteEntry((requesDataKey + "_OPEN")), StringEntry((((((requesDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((requestData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(requestOwner)), parseIntValue(requestDataArr[1]), fromBase58String(requestDataArr[2]))] | |
433 | 454 | } | |
434 | 455 | } | |
435 | 456 | ||
436 | 457 | ||
437 | 458 | ||
438 | 459 | @Callable(i) | |
439 | 460 | func deleteEntry (entry) = { | |
440 | 461 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
441 | 462 | if ((caller == chris)) | |
442 | 463 | then [DeleteEntry(entry)] | |
443 | 464 | else throw("no") | |
444 | 465 | } | |
445 | 466 | ||
446 | 467 |
github/deemru/w8io/169f3d6 93.63 ms ◑