tx · EvYhsjomyyYdXFzaphZLbAdRhrB9fukMfP1ibkqUw1c1 3MrNhYDkkKMf6jbPozAaAeAcii27BvvmrNx: -0.01400000 Waves 2019.08.26 18:53 [648331] smart account 3MrNhYDkkKMf6jbPozAaAeAcii27BvvmrNx > SELF 0.00000000 Waves
{ "type": 13, "id": "EvYhsjomyyYdXFzaphZLbAdRhrB9fukMfP1ibkqUw1c1", "fee": 1400000, "feeAssetId": null, "timestamp": 1566834803673, "version": 1, "sender": "3MrNhYDkkKMf6jbPozAaAeAcii27BvvmrNx", "senderPublicKey": "2C2v28Sit3VE5vELnFzvJo5ndJ4YxrSX45S8VUJpEgsF", "proofs": [ "5RTHhcXNVEqVEB6f8o3BGspQdU1MTejUFWp1T9UuAeN7rKNGb7d7hA7MLXxroSiPpoLjutNCRPx4ak3Kq8PJye5N" ], "script": "base64:AAIDAAAAAAAAAAAAAAAFAAAAABJtYXhBdWN0aW9uRHVyYXRpb24JAABoAAAAAgAAAAAAAAAFoAAAAAAAAAAAHgAAAAAOcmV2ZWFsRHVyYXRpb24JAABoAAAAAgAAAAAAAAAFoAAAAAAAAAAABwEAAAAKaGFzaFN0cmluZwAAAAEAAAAEZGF0YQQAAAAGcmVzdWx0CQACWgAAAAEJAAH3AAAAAQkAAZsAAAABBQAAAARkYXRhBQAAAAZyZXN1bHQBAAAACWFkZFRvTGlzdAAAAAIAAAAEbGlzdAAAAAl3aGF0VG9BZGQEAAAABnJlc3VsdAkAASwAAAACCQABLAAAAAIFAAAABGxpc3QCAAAAASAFAAAACXdoYXRUb0FkZAUAAAAGcmVzdWx0AQAAAA5yZW1vdmVGcm9tTGlzdAAAAAIAAAAEbGlzdAAAAAx3aGF0VG9SZW1vdmUEAAAAA2lkeAkABLMAAAACBQAAAARsaXN0BQAAAAx3aGF0VG9SZW1vdmUEAAAABnJlc3VsdAMJAQAAAAlpc0RlZmluZWQAAAABBQAAAANpZHgJAAEsAAAAAgkAAS8AAAACBQAAAARsaXN0CQEAAAAFdm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UAAAALc2Vjb25kUHJpY2UFAAAACnByaWNlQXNzZXQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAKd2lubmVyQWRkcgkAAGUAAAACBQAAAAdkZXBvc2l0BQAAAAtzZWNvbmRQcmljZQUAAAAKcHJpY2VBc3NldAUAAAADbmlsAwkAAAAAAAACBQAAAAZzZXR0bGUGCQAAAgAAAAECAAAAJklsbGVnYWwgc3RhdGUsIHNldHRsZSBzaG9vdWxkIGJlIGZhbHNlCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAlhdWN0aW9uSWQCAAAAB19zZXR0bGUGCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAAEGNhbGxlckFkZHJlc3NTdHICAAAAB19iaWRkZXIJAQAAAA5yZW1vdmVGcm9tTGlzdAAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAQY2FsbGVyQWRkcmVzc1N0cgIAAAAHX2JpZGRlcgUAAAAJYXVjdGlvbklkBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAAdkZXBvc2l0BQAAAApwcmljZUFzc2V0BQAAAANuaWwAAAAAf2qTxg==", "chainId": 84, "height": 648331, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let maxAuctionDuration = (1440 * 30) | |
5 | + | ||
6 | + | let revealDuration = (1440 * 7) | |
7 | + | ||
8 | + | func hashString (data) = { | |
9 | + | let result = toBase64String(sha256(toBytes(data))) | |
10 | + | result | |
11 | + | } | |
12 | + | ||
13 | + | ||
14 | + | func addToList (list,whatToAdd) = { | |
15 | + | let result = ((list + " ") + whatToAdd) | |
16 | + | result | |
17 | + | } | |
18 | + | ||
19 | + | ||
20 | + | func removeFromList (list,whatToRemove) = { | |
21 | + | let idx = indexOf(list, whatToRemove) | |
22 | + | let result = if (isDefined(idx)) | |
23 | + | then (take(list, value(idx)) + takeRight(list, (value(idx) + size(whatToRemove)))) | |
24 | + | else list | |
25 | + | result | |
26 | + | } | |
27 | + | ||
28 | + | ||
29 | + | @Callable(i) | |
30 | + | func startAuction (duration,startPrice,priceAssetId,deposit) = { | |
31 | + | let auctionId = toBase58String(i.transactionId) | |
32 | + | let revealStart = (lastBlock.height + duration) | |
33 | + | let closingStart = (revealStart + revealDuration) | |
34 | + | let organizer = toBase58String(i.caller.bytes) | |
35 | + | let organizerKey = (organizer + "_organizer") | |
36 | + | let maybeOrganizerList = getString(this, organizerKey) | |
37 | + | let organizerList = if (isDefined(maybeOrganizerList)) | |
38 | + | then value(maybeOrganizerList) | |
39 | + | else "" | |
40 | + | let newOrganizerList = ((organizerList + " ") + auctionId) | |
41 | + | let pmt = extract(i.payment) | |
42 | + | if ((duration > maxAuctionDuration)) | |
43 | + | then throw(("Duration is too long. Must be less than " + toString(maxAuctionDuration))) | |
44 | + | else if (!(isDefined(pmt.assetId))) | |
45 | + | then throw("Payment currency should not be in WAVES") | |
46 | + | else if ((pmt.amount != 1)) | |
47 | + | then throw("Payment amount should be only one NFT") | |
48 | + | else if ((0 >= startPrice)) | |
49 | + | then throw("Start price should be > 0") | |
50 | + | else if ((startPrice >= deposit)) | |
51 | + | then throw((("Start price should be < deposit (" + toString(deposit)) + ")")) | |
52 | + | else if ((0 >= duration)) | |
53 | + | then throw("Duration should be > 0") | |
54 | + | else WriteSet([DataEntry((auctionId + "_reveal_start"), revealStart), DataEntry((auctionId + "_closing_start"), closingStart), DataEntry((auctionId + "_deposit"), deposit), DataEntry((auctionId + "_unrevealed_count"), 0), DataEntry((auctionId + "_top_price"), 0), DataEntry((auctionId + "_second_price"), 0), DataEntry((auctionId + "_settle"), false), DataEntry((auctionId + "_organizer"), organizer), DataEntry((auctionId + "_lot_assetId"), if (isDefined(pmt.assetId)) | |
55 | + | then toBase58String(value(pmt.assetId)) | |
56 | + | else "WAVES"), DataEntry((auctionId + "_lot_amount"), pmt.amount), DataEntry((auctionId + "_startPrice"), startPrice), DataEntry((auctionId + "_priceAssetId"), priceAssetId), DataEntry(organizerKey, newOrganizerList), DataEntry("test", hashString(("123" + toString(startPrice))))]) | |
57 | + | } | |
58 | + | ||
59 | + | ||
60 | + | ||
61 | + | @Callable(i) | |
62 | + | func bid (auctionId,hashBidAmount) = { | |
63 | + | let pmt = extract(i.payment) | |
64 | + | let pmtAssetIdStr = if (isDefined(pmt.assetId)) | |
65 | + | then toBase58String(value(pmt.assetId)) | |
66 | + | else "WAVES" | |
67 | + | let callerAddressStr = toBase58String(i.caller.bytes) | |
68 | + | let endHeight = getIntegerValue(this, (auctionId + "_reveal_start")) | |
69 | + | let startPrice = getIntegerValue(this, (auctionId + "_startPrice")) | |
70 | + | let priceAssetId = getStringValue(this, (auctionId + "_priceAssetId")) | |
71 | + | let organizer = getStringValue(this, (auctionId + "_organizer")) | |
72 | + | let deposit = getIntegerValue(this, (auctionId + "_deposit")) | |
73 | + | let unrevealedCount = getIntegerValue(this, (auctionId + "_unrevealed_count")) | |
74 | + | let bidder = getString(this, (callerAddressStr + "_bidder")) | |
75 | + | let bidFromTheSameUser = isDefined(getString(this, ((auctionId + callerAddressStr) + "bid_hash"))) | |
76 | + | if ((lastBlock.height >= endHeight)) | |
77 | + | then throw("Auction already finished") | |
78 | + | else if (if (!(bidFromTheSameUser)) | |
79 | + | then (priceAssetId != pmtAssetIdStr) | |
80 | + | else false) | |
81 | + | then throw((("Bid must be in asset '" + priceAssetId) + "'")) | |
82 | + | else if (!(isDefined(organizer))) | |
83 | + | then throw("Organizer should be defined") | |
84 | + | else if (if (!(bidFromTheSameUser)) | |
85 | + | then (pmt.amount != deposit) | |
86 | + | else false) | |
87 | + | then throw("Payment should be equel to deposit") | |
88 | + | else { | |
89 | + | let inc = if (bidFromTheSameUser) | |
90 | + | then 0 | |
91 | + | else 1 | |
92 | + | WriteSet([DataEntry(((auctionId + callerAddressStr) + "_revealed"), false), DataEntry(((auctionId + callerAddressStr) + "_bid_hash"), hashBidAmount), DataEntry(((auctionId + callerAddressStr) + "_settle"), false), DataEntry((auctionId + "_unrevealed_count"), (unrevealedCount + inc)), DataEntry((callerAddressStr + "_bidder"), (((if (isDefined(bidder)) | |
93 | + | then value(bidder) | |
94 | + | else "") + " ") + auctionId))]) | |
95 | + | } | |
96 | + | } | |
97 | + | ||
98 | + | ||
99 | + | ||
100 | + | @Callable(i) | |
101 | + | func reveal (auctionId,bidAmount,salt) = { | |
102 | + | let callerAddressStr = toBase58String(i.caller.bytes) | |
103 | + | let organizer = getStringValue(this, (auctionId + "_organizer")) | |
104 | + | let bidHash = getStringValue(this, ((auctionId + callerAddressStr) + "_bid_hash")) | |
105 | + | let revealed = getBooleanValue(this, ((auctionId + callerAddressStr) + "_revealed")) | |
106 | + | let revealStart = getIntegerValue(this, (auctionId + "_reveal_start")) | |
107 | + | let closingStart = getIntegerValue(this, (auctionId + "_closing_start")) | |
108 | + | let topPrice = getIntegerValue(this, (auctionId + "_top_price")) | |
109 | + | let secondPrice = getIntegerValue(this, (auctionId + "_second_price")) | |
110 | + | let winner = getString(this, (auctionId + "_winner")) | |
111 | + | let unrevealedCount = getIntegerValue(this, (auctionId + "_unrevealed_count")) | |
112 | + | let bidAmountAsStr = toString(bidAmount) | |
113 | + | let stringToHash = (salt + bidAmountAsStr) | |
114 | + | let hash = hashString(stringToHash) | |
115 | + | if (!(isDefined(organizer))) | |
116 | + | then throw("Organizer is not defined") | |
117 | + | else if (!(isDefined(bidHash))) | |
118 | + | then throw("Bid is not defined") | |
119 | + | else if (if ((revealStart > lastBlock.height)) | |
120 | + | then true | |
121 | + | else (lastBlock.height > closingStart)) | |
122 | + | then throw(((((("Auction should be revealed between reveal (" + toString(revealStart)) + ") and closing (") + toString(closingStart)) + ") time, now is ") + toString(lastBlock.height))) | |
123 | + | else if (isDefined(i.payment)) | |
124 | + | then throw("Payment shoud not exist") | |
125 | + | else if ((hash != bidHash)) | |
126 | + | then throw("Bid hash from bidMount and sault is not equel with hash from the caller bid") | |
127 | + | else if ((revealed == true)) | |
128 | + | then throw("The bid has been already revealed") | |
129 | + | else { | |
130 | + | let topPrice2 = if ((bidAmount > topPrice)) | |
131 | + | then bidAmount | |
132 | + | else topPrice | |
133 | + | let secondPrice2 = if ((bidAmount > topPrice)) | |
134 | + | then topPrice | |
135 | + | else if ((bidAmount > secondPrice)) | |
136 | + | then bidAmount | |
137 | + | else secondPrice | |
138 | + | let winner2 = if ((bidAmount > topPrice)) | |
139 | + | then callerAddressStr | |
140 | + | else value(winner) | |
141 | + | WriteSet([DataEntry((auctionId + "_top_price"), topPrice2), DataEntry((auctionId + "_second_price"), secondPrice2), DataEntry((auctionId + "_winner"), winner2), DataEntry(((auctionId + callerAddressStr) + "_revealed"), true), DataEntry((auctionId + "_unrevealed_count"), (unrevealedCount - 1))]) | |
142 | + | } | |
143 | + | } | |
144 | + | ||
145 | + | ||
146 | + | ||
147 | + | @Callable(i) | |
148 | + | func withdraw (auctionId) = { | |
149 | + | let pmt = i.payment | |
150 | + | let callerAddressStr = toBase58String(i.caller.bytes) | |
151 | + | let closingStart = getIntegerValue(this, (auctionId + "_closing_start")) | |
152 | + | let unrevealedCount = getIntegerValue(this, (auctionId + "_unrevealed_count")) | |
153 | + | let organizer = getStringValue(this, (auctionId + "_organizer")) | |
154 | + | let revealTime = getIntegerValue(this, (auctionId + "_reveal_start")) | |
155 | + | let winner = getString(this, (auctionId + "_winner")) | |
156 | + | let lotAssetId = getStringValue(this, (auctionId + "_lot_assetId")) | |
157 | + | let lotAmount = getIntegerValue(this, (auctionId + "_lot_amount")) | |
158 | + | let priceAssetId = getStringValue(this, (auctionId + "_priceAssetId")) | |
159 | + | let settle = getBooleanValue(this, (auctionId + "_settle")) | |
160 | + | let secondPrice = getIntegerValue(this, (auctionId + "_second_price")) | |
161 | + | let deposit = getIntegerValue(this, (auctionId + "_deposit")) | |
162 | + | let lotAsset = if ((lotAssetId == "WAVES")) | |
163 | + | then unit | |
164 | + | else fromBase58String(lotAssetId) | |
165 | + | let priceAsset = if (if ((priceAssetId == "WAVES")) | |
166 | + | then true | |
167 | + | else (priceAssetId == "")) | |
168 | + | then unit | |
169 | + | else fromBase58String(priceAssetId) | |
170 | + | if (isDefined(pmt)) | |
171 | + | then throw("Payment shoud not exist") | |
172 | + | else if (!(isDefined(organizer))) | |
173 | + | then throw("Organizer shoud exist") | |
174 | + | else if (if ((closingStart > (revealTime - lastBlock.height))) | |
175 | + | then (unrevealedCount != 0) | |
176 | + | else false) | |
177 | + | then throw("Its too early to withdraw") | |
178 | + | else if (if ((callerAddressStr == organizer)) | |
179 | + | then true | |
180 | + | else (callerAddressStr == winner)) | |
181 | + | then if ((settle == true)) | |
182 | + | then throw("Illegal state, settle shoould be false") | |
183 | + | else if (!(isDefined(winner))) | |
184 | + | then if (isDefined(getString(this, (auctionId + "_lot_passed")))) | |
185 | + | then throw("Organizer has already got his lot back") | |
186 | + | else { | |
187 | + | let organizerAddr = addressFromStringValue(value(organizer)) | |
188 | + | ScriptResult(WriteSet([DataEntry((auctionId + "_settle"), true), DataEntry((organizer + "_organizer"), removeFromList(getStringValue(this, (organizer + "_organizer")), auctionId))]), TransferSet([ScriptTransfer(organizerAddr, lotAmount, lotAsset)])) | |
189 | + | } | |
190 | + | else { | |
191 | + | let winnerAddr = addressFromStringValue(value(winner)) | |
192 | + | let organizerAddr = addressFromStringValue(value(organizer)) | |
193 | + | ScriptResult(WriteSet([DataEntry((auctionId + "_settle"), true), DataEntry((value(winner) + "_bidder"), removeFromList(getStringValue(this, (value(winner) + "_bidder")), auctionId)), DataEntry((organizer + "_organizer"), removeFromList(getStringValue(this, (organizer + "_organizer")), auctionId))]), TransferSet([ScriptTransfer(winnerAddr, lotAmount, lotAsset), ScriptTransfer(organizerAddr, secondPrice, priceAsset), ScriptTransfer(winnerAddr, (deposit - secondPrice), priceAsset), ScriptTransfer(winnerAddr, (deposit - secondPrice), priceAsset)])) | |
194 | + | } | |
195 | + | else if ((settle == true)) | |
196 | + | then throw("Illegal state, settle shoould be false") | |
197 | + | else ScriptResult(WriteSet([DataEntry((auctionId + "_settle"), true), DataEntry((callerAddressStr + "_bidder"), removeFromList(getStringValue(this, (callerAddressStr + "_bidder")), auctionId))]), TransferSet([ScriptTransfer(i.caller, deposit, priceAsset)])) | |
198 | + | } | |
199 | + | ||
200 | + |
github/deemru/w8io/026f985 25.61 ms ◑