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