tx · EJXS2Vy7tjHgmdsBWYnHDgaZQN52C5W2P6Cztq9m7Vkw 3MrfHoPDiF2nJb6T6Z6J7MdhpX3LeVaLaW2: -0.05000000 Waves 2021.09.01 23:04 [1684424] smart account 3MrfHoPDiF2nJb6T6Z6J7MdhpX3LeVaLaW2 > SELF 0.00000000 Waves
{ "type": 13, "id": "EJXS2Vy7tjHgmdsBWYnHDgaZQN52C5W2P6Cztq9m7Vkw", "fee": 5000000, "feeAssetId": null, "timestamp": 1630526678029, "version": 2, "chainId": 84, "sender": "3MrfHoPDiF2nJb6T6Z6J7MdhpX3LeVaLaW2", "senderPublicKey": "ANm32Ptz6YTMKvYUJBEYd4CYiTVn6XEvYjZhewQMphSJ", "proofs": [ "5ZqKz8MQrWvidsb3GmGNdo2j6zvawpnyFcQ7Fv42d72DUQQANDweShuXPjn55xx2pQT4yVvXCNzPGPUnUednHSc5" ], "script": "base64:AAIFAAAAAAAAAnkIAhIDCgEBEgMKAQgSAwoBCBIECgIICBIECgIICBoWCgJhMRIQTkZUSXNzdWVyQWRkcmVzcxoaCgJhMhIUTkZUSXNzdWVyZmVlUmVjZWl2ZXIaGQoCYTMSE05GVElzc3VlcmZlZVBlcmNlbnQaFgoCYTQSEEFydGlzdGZlZVBlcmNlbnQaEwoCYTUSDXNjb25leEFzc2V0SWQaEwoCYTYSDXRyeUdldEludGVnZXIaCQoCYTcSA2tleRoJCgJhOBIDdmFsGg0KAmE5EgckbWF0Y2gwGgcKAmIxEgFiGhIKAmIyEgx0cnlHZXRTdHJpbmcaEgoCYjMSDGdldE5GVElzc3VlchoNCgJiNBIHYXNzZXRJZBoRCgJiNRILbXlhc3NldGluZm8aEgoCYjYSDGdldE5GVEFydGlzdBoTCgJiNxINQXJ0aXN0QWRkcmVzcxoWCgJiOBIQYWNjZXB0ZWRBc3NldElkcxoHCgJiORIBaRoQCgJjMRIKc3RhcnRQcmljZRoPCgJjMhIJYXVjdGlvbklkGgcKAmMzEgF4GgkKAmM0EgNwbXQa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AAAAAQkAAlkAAAABBQAAAAJiNAUAAAADbmlsAAAAAQAAAAJkNwEAAAACZDgAAAAACQAB9AAAAAMIBQAAAAJkNwAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAmQ3AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAmQ3AAAAD3NlbmRlclB1YmxpY0tleZ22Mgg=", "height": 1684424, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7vtCEUydiZCRDR4UNQgTQS3tDR9NaBBrMBnXxEWDCDL6 Next: 8G8BGrUyjndxQhEgXCQzFFTF4ze7GFm8ALWsyxsbtHY1 Diff:
Old | New | Differences | |
---|---|---|---|
60 | 60 | @Callable(i) | |
61 | 61 | func initAuction (startPrice) = { | |
62 | 62 | let auctionId = toBase58String(i.transactionId) | |
63 | + | let x = if (isDefined(i.payments)) | |
64 | + | then value(i.payments) | |
65 | + | else throw("No payment attached") | |
63 | 66 | let pmt = value(i.payments[0]) | |
64 | 67 | let assetId = value(pmt.assetId) | |
65 | 68 | let asset = getNFTIssuer(assetId) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let NFTIssuerAddress = base58'3MrWNTqFcHBqb58Za1A5crQrMV5KJ5DYhtA' | |
5 | 5 | ||
6 | 6 | let NFTIssuerfeeReceiver = base58'3N65xLq8JcCeaEiR1TJQ7dBqXBvEy6E48Wz' | |
7 | 7 | ||
8 | 8 | let NFTIssuerfeePercent = 3 | |
9 | 9 | ||
10 | 10 | let ArtistfeePercent = 7 | |
11 | 11 | ||
12 | 12 | let sconexAssetId = base58'DZ8ALmuLeSZ2ocsYLAcL9MiXBFDbMNQG9LtitREyU5ZC' | |
13 | 13 | ||
14 | 14 | func tryGetInteger (key) = { | |
15 | 15 | let val = match getInteger(this, key) { | |
16 | 16 | case b: Int => | |
17 | 17 | b | |
18 | 18 | case _ => | |
19 | 19 | 0 | |
20 | 20 | } | |
21 | 21 | val | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func tryGetString (key) = { | |
26 | 26 | let val = match getString(this, key) { | |
27 | 27 | case b: String => | |
28 | 28 | b | |
29 | 29 | case _ => | |
30 | 30 | "" | |
31 | 31 | } | |
32 | 32 | val | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func getNFTIssuer (assetId) = { | |
37 | 37 | let myassetinfo = value(assetInfo(assetId)) | |
38 | 38 | if ((myassetinfo.issuer == Address(NFTIssuerAddress))) | |
39 | 39 | then "true" | |
40 | 40 | else "" | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func getNFTArtist (assetId) = { | |
45 | 45 | let ArtistAddress = match getString(Address(NFTIssuerAddress), ("nft_issued_" + assetId)) { | |
46 | 46 | case b: String => | |
47 | 47 | b | |
48 | 48 | case _ => | |
49 | 49 | "" | |
50 | 50 | } | |
51 | 51 | ArtistAddress | |
52 | 52 | } | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func acceptedAssetIds (assetId) = if ((assetId != toBase58String(sconexAssetId))) | |
56 | 56 | then throw("Only Sconex accepted") | |
57 | 57 | else true | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | @Callable(i) | |
61 | 61 | func initAuction (startPrice) = { | |
62 | 62 | let auctionId = toBase58String(i.transactionId) | |
63 | + | let x = if (isDefined(i.payments)) | |
64 | + | then value(i.payments) | |
65 | + | else throw("No payment attached") | |
63 | 66 | let pmt = value(i.payments[0]) | |
64 | 67 | let assetId = value(pmt.assetId) | |
65 | 68 | let asset = getNFTIssuer(assetId) | |
66 | 69 | if ((asset == "")) | |
67 | 70 | then throw("You can only sell an NFT created on SCONE Marketplace") | |
68 | 71 | else [StringEntry((("auction_" + auctionId) + "_status"), "open"), StringEntry((("auction_" + toBase58String(assetId)) + "_last"), auctionId), StringEntry((("auction_" + auctionId) + "_assetName"), asset), StringEntry((("auction_" + auctionId) + "_assetId"), toBase58String(assetId)), IntegerEntry((("auction_" + auctionId) + "_startedAt"), lastBlock.timestamp), StringEntry((("auction_" + auctionId) + "_owner"), toString(i.caller)), IntegerEntry((("auction_" + auctionId) + "_startPrice"), startPrice), StringEntry((((("address_" + toString(i.caller)) + "_auction_") + auctionId) + "_lockedNFT"), toBase58String(assetId))] | |
69 | 72 | } | |
70 | 73 | ||
71 | 74 | ||
72 | 75 | ||
73 | 76 | @Callable(i) | |
74 | 77 | func cancelAuction (auctionId) = { | |
75 | 78 | let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner")) | |
76 | 79 | if ((toString(i.caller) != auctionOwner)) | |
77 | 80 | then throw("Only allowed to auction owner") | |
78 | 81 | else if ((tryGetString((("auction_" + auctionId) + "_status")) != "open")) | |
79 | 82 | then throw("auction is close") | |
80 | 83 | else [StringEntry((("auction_" + auctionId) + "_status"), "cancelled"), DeleteEntry((((("address_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(i.caller, 1, fromBase58String(getStringValue(this, (("auction_" + auctionId) + "_assetId"))))] | |
81 | 84 | } | |
82 | 85 | ||
83 | 86 | ||
84 | 87 | ||
85 | 88 | @Callable(i) | |
86 | 89 | func placeBid (auctionId) = { | |
87 | 90 | let pmt = value(i.payments[0]) | |
88 | 91 | let amount = pmt.amount | |
89 | 92 | let bidId = toBase58String(i.transactionId) | |
90 | 93 | let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId")) | |
91 | 94 | let PayAssetId = if (!(isDefined(pmt.assetId))) | |
92 | 95 | then throw("Only sconex is accepted!") | |
93 | 96 | else toBase58String(value(pmt.assetId)) | |
94 | 97 | if (!(acceptedAssetIds(PayAssetId))) | |
95 | 98 | then throw("Auction does only support sconex payments") | |
96 | 99 | else { | |
97 | 100 | let minPrice = tryGetInteger((("auction_" + auctionId) + "_startPrice")) | |
98 | 101 | if ((minPrice > amount)) | |
99 | 102 | then throw(("The minimal initial price is set as " + toString(minPrice))) | |
100 | 103 | else [StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_author"), toString(i.caller)), StringEntry((((("assetId_" + assetId) + "_bid_") + bidId) + "_data"), (((((("{\"auctionId\": \"" + auctionId) + "\", \"author\": \"") + toString(i.caller)) + "\", \"amount\": \"") + toString(amount)) + "\", \"status\": \"open\"}")), IntegerEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount"), amount), StringEntry(((((("address_" + toString(i.caller)) + "_auction_") + auctionId) + "_bid_") + bidId), assetId), StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_status"), "open")] | |
101 | 104 | } | |
102 | 105 | } | |
103 | 106 | ||
104 | 107 | ||
105 | 108 | ||
106 | 109 | @Callable(i) | |
107 | 110 | func cancelBid (auctionId,bidId) = { | |
108 | 111 | let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId")) | |
109 | 112 | let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author")) | |
110 | 113 | let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount")) | |
111 | 114 | if (if ((toString(i.caller) != bidAuthor)) | |
112 | 115 | then (i.caller != this) | |
113 | 116 | else false) | |
114 | 117 | then throw("Only allowed to the bid author or admin") | |
115 | 118 | else if ((tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_status")) != "open")) | |
116 | 119 | then throw("bid is not open") | |
117 | 120 | else [StringEntry((((("assetId_" + assetId) + "_bid_") + bidId) + "_data"), (((((("{\"auctionId\": \"" + auctionId) + "\", \"author\": \"") + toString(i.caller)) + "\", \"amount\": \"") + toString(bidAmount)) + "\", \"status\": \"cancelled\"}")), StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_status"), "cancelled"), DeleteEntry(((((("address_" + bidAuthor) + "_auction_") + auctionId) + "_bid_") + bidId)), ScriptTransfer(Address(fromBase58String(bidAuthor)), bidAmount, sconexAssetId)] | |
118 | 121 | } | |
119 | 122 | ||
120 | 123 | ||
121 | 124 | ||
122 | 125 | @Callable(i) | |
123 | 126 | func acceptBid (auctionId,bidId) = { | |
124 | 127 | let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner")) | |
125 | 128 | let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author")) | |
126 | 129 | let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount")) | |
127 | 130 | let bidStatus = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_status")) | |
128 | 131 | let assetId = tryGetString((("auction_" + auctionId) + "_assetId")) | |
129 | 132 | if ((toString(i.caller) != auctionOwner)) | |
130 | 133 | then throw("Only allowed to auction owner") | |
131 | 134 | else if ((bidStatus != "open")) | |
132 | 135 | then throw("Bid was cancelled and cannot be accepted") | |
133 | 136 | else { | |
134 | 137 | let recordPrice = tryGetInteger((assetId + "_recordPrice")) | |
135 | 138 | let newRecordPrice = max([recordPrice, bidAmount]) | |
136 | 139 | let ArtistAddress = getNFTArtist(assetId) | |
137 | 140 | if ((ArtistAddress == "")) | |
138 | 141 | then [StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_status"), "finished"), StringEntry((("auction_" + auctionId) + "_status"), "finished"), StringEntry((((("assetId_" + assetId) + "_bid_") + bidId) + "_data"), (((((("{\"auctionId\": \"" + auctionId) + "\", \"author\": \"") + toString(i.caller)) + "\", \"amount\": \"") + toString(bidAmount)) + "\", \"status\": \"finished\"}")), IntegerEntry((("auction_" + auctionId) + "_finalPrice"), bidAmount), IntegerEntry((assetId + "_recordPrice"), newRecordPrice), DeleteEntry(((((("address_" + bidAuthor) + "_auction_") + auctionId) + "_bid_") + bidId)), DeleteEntry((((("address_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(i.caller, fraction(bidAmount, ((100 - NFTIssuerfeePercent) - ArtistfeePercent), 100), sconexAssetId), ScriptTransfer(Address(NFTIssuerfeeReceiver), fraction(bidAmount, ArtistfeePercent, 100), sconexAssetId), ScriptTransfer(Address(NFTIssuerfeeReceiver), fraction(bidAmount, NFTIssuerfeePercent, 100), sconexAssetId), ScriptTransfer(addressFromStringValue(bidAuthor), 1, fromBase58String(assetId))] | |
139 | 142 | else [StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_status"), "finished"), StringEntry((("auction_" + auctionId) + "_status"), "finished"), StringEntry((((("assetId_" + assetId) + "_bid_") + bidId) + "_data"), (((((("{\"auctionId\": \"" + auctionId) + "\", \"author\": \"") + toString(i.caller)) + "\", \"amount\": \"") + toString(bidAmount)) + "\", \"status\": \"finished\"}")), IntegerEntry((("auction_" + auctionId) + "_finalPrice"), bidAmount), IntegerEntry((assetId + "_recordPrice"), newRecordPrice), DeleteEntry(((((("address_" + bidAuthor) + "_auction_") + auctionId) + "_bid_") + bidId)), DeleteEntry((((("address_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(i.caller, fraction(bidAmount, ((100 - NFTIssuerfeePercent) - ArtistfeePercent), 100), sconexAssetId), ScriptTransfer(Address(fromBase58String(ArtistAddress)), fraction(bidAmount, ArtistfeePercent, 100), sconexAssetId), ScriptTransfer(Address(NFTIssuerfeeReceiver), fraction(bidAmount, NFTIssuerfeePercent, 100), sconexAssetId), ScriptTransfer(addressFromStringValue(bidAuthor), 1, fromBase58String(assetId))] | |
140 | 143 | } | |
141 | 144 | } | |
142 | 145 | ||
143 | 146 | ||
144 | 147 | @Verifier(tx) | |
145 | 148 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
146 | 149 |
github/deemru/w8io/026f985 39.15 ms ◑