tx · Dt5FWBqNqxLccb1KU7zLKENfod9QnPrCxv6EvYp2zRQo 3MrfHoPDiF2nJb6T6Z6J7MdhpX3LeVaLaW2: -0.05000000 Waves 2021.09.01 23:18 [1684437] smart account 3MrfHoPDiF2nJb6T6Z6J7MdhpX3LeVaLaW2 > SELF 0.00000000 Waves
{ "type": 13, "id": "Dt5FWBqNqxLccb1KU7zLKENfod9QnPrCxv6EvYp2zRQo", "fee": 5000000, "feeAssetId": null, "timestamp": 1630527512505, "version": 2, "chainId": 84, "sender": "3MrfHoPDiF2nJb6T6Z6J7MdhpX3LeVaLaW2", "senderPublicKey": "ANm32Ptz6YTMKvYUJBEYd4CYiTVn6XEvYjZhewQMphSJ", "proofs": [ "57LEB3SgYa1FPYEkPPXAdcCmprDJLYY4hvE7bCj1FFhEYNo1L3vsRi6YnkmDWqyubbLPn7CVgJUJeRREQ1QdmoVz" ], "script": "base64:AAIFAAAAAAAAAoMIAhIDCgEBEgMKAQgSAwoBCBIECgIICBIECgIICBoWCgJhMRIQTkZUSXNzdWVyQWRkcmVzcxoaCgJhMhIUTkZUSXNzdWVyZmVlUmVjZWl2ZXIaGQoCYTMSE05GVElzc3VlcmZlZVBlcmNlbnQaFgoCYTQSEEFydGlzdGZlZVBlcmNlbnQaEwoCYTUSDXNjb25leEFzc2V0SWQaEwoCYTYSDXRyeUdldEludGVnZXIaCQoCYTcSA2tleRoJCgJhOBIDdmFsGg0KAmE5EgckbWF0Y2gwGgcKAmIxEgFiGhIKAmIyEgx0cnlHZXRTdHJpbmcaEgoCYjMSDGdldE5GVElzc3VlchoNCgJiNBIHYXNzZXRJZBoRCgJiNRILbXlhc3NldGluZm8aEgoCYjYSDGdldE5GVEFydGlzdBoTCgJiNxINQXJ0aXN0QWRkcmVzcxoWCgJiOBIQYWNjZXB0ZWRBc3NldElkcxoHCgJiORIBaRoQCgJjMRIKc3RhcnRQcmljZRoPCgJjMhIJYXVjdGlvbklkGgcKAmMzEgF4GggKAmM0EgJ4MRoJCg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AAZAUAAAACYTUJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABBQAAAAJhMgkAAGsAAAADBQAAAAJkNAUAAAACYTMAAAAAAAAAAGQFAAAAAmE1CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAAAmQzAAAAAAAAAAABCQACWQAAAAEFAAAAAmI0BQAAAANuaWwAAAABAAAAAmQ4AQAAAAJkOQAAAAAJAAH0AAAAAwgFAAAAAmQ4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACZDgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACZDgAAAAPc2VuZGVyUHVibGljS2V53O1JRg==", "height": 1684437, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8G8BGrUyjndxQhEgXCQzFFTF4ze7GFm8ALWsyxsbtHY1 Next: 5MuQSjKxfgBqaUEVGqdjar2drsH2P7cGYJEJpurd267w Diff:
Old | New | Differences | |
---|---|---|---|
60 | 60 | @Callable(i) | |
61 | 61 | func initAuction (startPrice) = { | |
62 | 62 | let auctionId = toBase58String(i.transactionId) | |
63 | - | let x = if ( | |
64 | - | then value(i.payments | |
63 | + | let x = if ((size(i.payments) == 0)) | |
64 | + | then value(i.payments) | |
65 | 65 | else throw("No payment attached") | |
66 | + | let x1 = if ((size(i.payments) > 1)) | |
67 | + | then value(i.payments) | |
68 | + | else throw("Too many payments attached") | |
66 | 69 | let pmt = value(i.payments[0]) | |
67 | 70 | let assetId = value(pmt.assetId) | |
68 | 71 | 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 ( | |
64 | - | then value(i.payments | |
63 | + | let x = if ((size(i.payments) == 0)) | |
64 | + | then value(i.payments) | |
65 | 65 | else throw("No payment attached") | |
66 | + | let x1 = if ((size(i.payments) > 1)) | |
67 | + | then value(i.payments) | |
68 | + | else throw("Too many payments attached") | |
66 | 69 | let pmt = value(i.payments[0]) | |
67 | 70 | let assetId = value(pmt.assetId) | |
68 | 71 | let asset = getNFTIssuer(assetId) | |
69 | 72 | if ((asset == "")) | |
70 | 73 | then throw("You can only sell an NFT created on SCONE Marketplace") | |
71 | 74 | 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))] | |
72 | 75 | } | |
73 | 76 | ||
74 | 77 | ||
75 | 78 | ||
76 | 79 | @Callable(i) | |
77 | 80 | func cancelAuction (auctionId) = { | |
78 | 81 | let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner")) | |
79 | 82 | if ((toString(i.caller) != auctionOwner)) | |
80 | 83 | then throw("Only allowed to auction owner") | |
81 | 84 | else if ((tryGetString((("auction_" + auctionId) + "_status")) != "open")) | |
82 | 85 | then throw("auction is close") | |
83 | 86 | else [StringEntry((("auction_" + auctionId) + "_status"), "cancelled"), DeleteEntry((((("address_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(i.caller, 1, fromBase58String(getStringValue(this, (("auction_" + auctionId) + "_assetId"))))] | |
84 | 87 | } | |
85 | 88 | ||
86 | 89 | ||
87 | 90 | ||
88 | 91 | @Callable(i) | |
89 | 92 | func placeBid (auctionId) = { | |
90 | 93 | let pmt = value(i.payments[0]) | |
91 | 94 | let amount = pmt.amount | |
92 | 95 | let bidId = toBase58String(i.transactionId) | |
93 | 96 | let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId")) | |
94 | 97 | let PayAssetId = if (!(isDefined(pmt.assetId))) | |
95 | 98 | then throw("Only sconex is accepted!") | |
96 | 99 | else toBase58String(value(pmt.assetId)) | |
97 | 100 | if (!(acceptedAssetIds(PayAssetId))) | |
98 | 101 | then throw("Auction does only support sconex payments") | |
99 | 102 | else { | |
100 | 103 | let minPrice = tryGetInteger((("auction_" + auctionId) + "_startPrice")) | |
101 | 104 | if ((minPrice > amount)) | |
102 | 105 | then throw(("The minimal initial price is set as " + toString(minPrice))) | |
103 | 106 | 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")] | |
104 | 107 | } | |
105 | 108 | } | |
106 | 109 | ||
107 | 110 | ||
108 | 111 | ||
109 | 112 | @Callable(i) | |
110 | 113 | func cancelBid (auctionId,bidId) = { | |
111 | 114 | let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId")) | |
112 | 115 | let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author")) | |
113 | 116 | let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount")) | |
114 | 117 | if (if ((toString(i.caller) != bidAuthor)) | |
115 | 118 | then (i.caller != this) | |
116 | 119 | else false) | |
117 | 120 | then throw("Only allowed to the bid author or admin") | |
118 | 121 | else if ((tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_status")) != "open")) | |
119 | 122 | then throw("bid is not open") | |
120 | 123 | 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)] | |
121 | 124 | } | |
122 | 125 | ||
123 | 126 | ||
124 | 127 | ||
125 | 128 | @Callable(i) | |
126 | 129 | func acceptBid (auctionId,bidId) = { | |
127 | 130 | let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner")) | |
128 | 131 | let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author")) | |
129 | 132 | let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount")) | |
130 | 133 | let bidStatus = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_status")) | |
131 | 134 | let assetId = tryGetString((("auction_" + auctionId) + "_assetId")) | |
132 | 135 | if ((toString(i.caller) != auctionOwner)) | |
133 | 136 | then throw("Only allowed to auction owner") | |
134 | 137 | else if ((bidStatus != "open")) | |
135 | 138 | then throw("Bid was cancelled and cannot be accepted") | |
136 | 139 | else { | |
137 | 140 | let recordPrice = tryGetInteger((assetId + "_recordPrice")) | |
138 | 141 | let newRecordPrice = max([recordPrice, bidAmount]) | |
139 | 142 | let ArtistAddress = getNFTArtist(assetId) | |
140 | 143 | if ((ArtistAddress == "")) | |
141 | 144 | 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))] | |
142 | 145 | 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))] | |
143 | 146 | } | |
144 | 147 | } | |
145 | 148 | ||
146 | 149 | ||
147 | 150 | @Verifier(tx) | |
148 | 151 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
149 | 152 |
github/deemru/w8io/026f985 43.38 ms ◑