tx · BY4nAvzjXuHiA9CaryGhknGYy5a5Hu9P9ECYrZpv7x4X 3N3Ctnjg7Fd3TXkwJFNg8eCbWZn9E1avQwS: -0.02500000 Waves 2024.10.07 20:23 [3316718] smart account 3N3Ctnjg7Fd3TXkwJFNg8eCbWZn9E1avQwS > SELF 0.00000000 Waves
{ "type": 13, "id": "BY4nAvzjXuHiA9CaryGhknGYy5a5Hu9P9ECYrZpv7x4X", "fee": 2500000, "feeAssetId": null, "timestamp": 1728321832298, "version": 2, "chainId": 84, "sender": "3N3Ctnjg7Fd3TXkwJFNg8eCbWZn9E1avQwS", "senderPublicKey": "9maeSzkCwNxdNx1gCh9CneMoJfF5gmzjZpjJHKgTMCbm", "proofs": [ "2iEKZf2wgeL2USczjCaHBFtB7gJSqYcaeghk3g2DNAEMPBsJQBoEbsbnDbFcZcVRLBU14MwstPfowR32rsvx6rdj" ], "script": "base64:AAIFAAAAAAAAACoIAhIDCgEIEgYKBAEBCAgSAwoBCBIDCgEIEgMKAQgSBAoCCAgSBAoCCAgAAAAhAQAAABR0cnlHZXRTdHJpbmdFeHRlcm5hbAAAAAIAAAAHYWRkcmVzcwAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAVdHJ5R2V0SW50ZWdlckV4dGVybmFsAAAAAgAAAAdhZGRyZXNzAAAAA2tleQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAdhZGRyZXNzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgAAAAAAAAAAAAEAAAAMdHJ5R2V0U3RyaW5nAAAAAQAAAANrZXkJAQAAABR0cnlHZXRTdHJpbmdFeHRlcm5hbAAAAAIFAAAABHRoaXMFAAAAA2tleQEAAAAYc3R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WQEAAAAByRtYXRjaDAFAAAAAnR4CQAAZwAAAAIFAAAAD3NpZ25hdHVyZXNDb3VudAAAAAAAAAAAAheM0f8=", "height": 3316718, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: FWai6dLr6TzYzUYJieGKhm2qDHCQisFRQsWtfqFzNnQr Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func tryGetStringExternal (address,key) = match getString(address, key) { | |
5 | + | case a: String => | |
6 | + | a | |
7 | + | case _ => | |
8 | + | "" | |
9 | + | } | |
10 | + | ||
11 | + | ||
12 | + | func tryGetIntegerExternal (address,key) = match getInteger(address, key) { | |
13 | + | case b: Int => | |
14 | + | b | |
15 | + | case _ => | |
16 | + | 0 | |
17 | + | } | |
18 | + | ||
19 | + | ||
20 | + | func tryGetString (key) = tryGetStringExternal(this, key) | |
21 | + | ||
22 | + | ||
23 | + | func staticKey_couponsAddress () = "static_couponsAddress" | |
24 | + | ||
25 | + | ||
26 | + | func staticKey_peteAddress () = "static_peteAddress" | |
27 | + | ||
28 | + | ||
29 | + | func getOracle () = Address(fromBase58String(tryGetString("static_oracleAddress"))) | |
30 | + | ||
31 | + | ||
32 | + | func getEggAssetId () = fromBase58String(tryGetStringExternal(getOracle(), "static_eggAssetId")) | |
33 | + | ||
34 | + | ||
35 | + | func getTurtleIncubatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_turtleIncubatorAddress"))) | |
36 | + | ||
37 | + | ||
38 | + | func getTurtleBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_turtleBreederAddress"))) | |
39 | + | ||
40 | + | ||
41 | + | func getIncubatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_incubatorAddress"))) | |
42 | + | ||
43 | + | ||
44 | + | func getBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_breederAddress"))) | |
45 | + | ||
46 | + | ||
47 | + | func getCanineIncubatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_canineIncubatorAddress"))) | |
48 | + | ||
49 | + | ||
50 | + | func getCanineBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_canineBreederAddress"))) | |
51 | + | ||
52 | + | ||
53 | + | func getFelineIncubatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_felineIncubatorAddress"))) | |
54 | + | ||
55 | + | ||
56 | + | func getFelineBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_felineBreederAddress"))) | |
57 | + | ||
58 | + | ||
59 | + | func getMutantBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_mutantIncubatorAddress"))) | |
60 | + | ||
61 | + | ||
62 | + | func getItemsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_itemsAddress"))) | |
63 | + | ||
64 | + | ||
65 | + | func getFeeAggregatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_feeAggregator"))) | |
66 | + | ||
67 | + | ||
68 | + | func getBurnAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_burnAddress"))) | |
69 | + | ||
70 | + | ||
71 | + | func getMarketPlaceProxy () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_marketPlaceProxyAddress"))) | |
72 | + | ||
73 | + | ||
74 | + | func getBuybackAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_buybackAddress"))) | |
75 | + | ||
76 | + | ||
77 | + | func getCouponsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_couponsAddress()))) | |
78 | + | ||
79 | + | ||
80 | + | func getPeteAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_peteAddress()))) | |
81 | + | ||
82 | + | ||
83 | + | let kGlobalCounter = "GLOBAL_COUNTER" | |
84 | + | ||
85 | + | func getFeePercent () = tryGetIntegerExternal(getOracle(), "static_marketPlaceFee") | |
86 | + | ||
87 | + | ||
88 | + | func getArtefactsFeePercent () = tryGetIntegerExternal(getOracle(), "static_marketPlaceFeeArtefacts") | |
89 | + | ||
90 | + | ||
91 | + | func tryGetInteger (key) = tryGetIntegerExternal(this, key) | |
92 | + | ||
93 | + | ||
94 | + | func tryGetBoolean (key) = match getBoolean(this, key) { | |
95 | + | case b: Boolean => | |
96 | + | b | |
97 | + | case _ => | |
98 | + | false | |
99 | + | } | |
100 | + | ||
101 | + | ||
102 | + | func getGlobalCounter () = tryGetInteger(kGlobalCounter) | |
103 | + | ||
104 | + | ||
105 | + | func getAssetGenotype (assetId) = { | |
106 | + | let issuer = value(assetInfo(assetId)).issuer | |
107 | + | let name = value(assetInfo(assetId)).name | |
108 | + | let description = value(assetInfo(assetId)).description | |
109 | + | if ((issuer == getPeteAddress())) | |
110 | + | then "PETE" | |
111 | + | else if ((issuer == getItemsAddress())) | |
112 | + | then "ART" | |
113 | + | else if (if ((issuer == getIncubatorAddress())) | |
114 | + | then true | |
115 | + | else (issuer == getBreederAddress())) | |
116 | + | then name | |
117 | + | else if (if ((issuer == getTurtleIncubatorAddress())) | |
118 | + | then true | |
119 | + | else (issuer == getTurtleBreederAddress())) | |
120 | + | then name | |
121 | + | else if (if ((issuer == getCanineIncubatorAddress())) | |
122 | + | then true | |
123 | + | else (issuer == getCanineBreederAddress())) | |
124 | + | then name | |
125 | + | else if (if ((issuer == getFelineIncubatorAddress())) | |
126 | + | then true | |
127 | + | else (issuer == getFelineBreederAddress())) | |
128 | + | then name | |
129 | + | else if ((issuer == getMutantBreederAddress())) | |
130 | + | then description | |
131 | + | else throw("MAG: Asset is not supported") | |
132 | + | } | |
133 | + | ||
134 | + | ||
135 | + | func getBidCancelResults (auctionId,bidId) = { | |
136 | + | let isEggSell = tryGetBoolean((("auction_" + auctionId) + "_eggSell")) | |
137 | + | let paymentAssetId = if ((isEggSell == true)) | |
138 | + | then getEggAssetId() | |
139 | + | else unit | |
140 | + | let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId")) | |
141 | + | let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author")) | |
142 | + | let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount")) | |
143 | + | [StringEntry((((("assetId_" + assetId) + "_bid_") + bidId) + "_data"), (((((("{\"auctionId\": \"" + auctionId) + "\", \"author\": \"") + bidAuthor) + "\", \"amount\": \"") + toString(bidAmount)) + "\", \"status\": \"cancelled\"}")), StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_status"), "cancelled"), DeleteEntry(((((("address_" + bidAuthor) + "_auction_") + auctionId) + "_bid_") + bidId)), ScriptTransfer(Address(fromBase58String(bidAuthor)), bidAmount, paymentAssetId)] | |
144 | + | } | |
145 | + | ||
146 | + | ||
147 | + | func getBool (key) = match getBoolean(this, key) { | |
148 | + | case b: Boolean => | |
149 | + | b | |
150 | + | case _ => | |
151 | + | false | |
152 | + | } | |
153 | + | ||
154 | + | ||
155 | + | func isTestEnv () = getBool("TESTENV") | |
156 | + | ||
157 | + | ||
158 | + | @Callable(i) | |
159 | + | func configureOracle (oracle) = if ((i.caller != this)) | |
160 | + | then throw("MCO: admin only") | |
161 | + | else [StringEntry("static_oracleAddress", oracle)] | |
162 | + | ||
163 | + | ||
164 | + | ||
165 | + | @Callable(i) | |
166 | + | func initAuction (startPrice,instantPrice,description,eggSell) = { | |
167 | + | let globalCounter = getGlobalCounter() | |
168 | + | let auctionId = (toBase58String(i.transactionId) + toString(globalCounter)) | |
169 | + | let pmt = value(i.payments[0]) | |
170 | + | let assetId = value(pmt.assetId) | |
171 | + | let asset = getAssetGenotype(assetId) | |
172 | + | if ((pmt.amount != 1)) | |
173 | + | then throw("MIA: NFT is not attached") | |
174 | + | else if ((eggSell == "true")) | |
175 | + | then throw("MIA: Same rules for everyone!") | |
176 | + | else if ((asset == "")) | |
177 | + | then throw("MIA: You can only sell an NFT-duck created in incubator or breeder") | |
178 | + | else { | |
179 | + | let issuer = value(assetInfo(assetId)).issuer | |
180 | + | [StringEntry((("auction_" + auctionId) + "_status"), "open"), BooleanEntry((("auction_" + auctionId) + "_eggSell"), (eggSell == "true")), IntegerEntry(kGlobalCounter, (globalCounter + 1)), StringEntry((("auction_" + toBase58String(assetId)) + "_last"), auctionId), StringEntry((("auction_" + auctionId) + "_assetGen"), asset), StringEntry((("auction_" + auctionId) + "_assetId"), toBase58String(assetId)), IntegerEntry((("auction_" + auctionId) + "_startedAt"), lastBlock.timestamp), StringEntry((("auction_" + auctionId) + "_owner"), toString(i.originCaller)), StringEntry((("auction_" + auctionId) + "_description"), description), IntegerEntry((("auction_" + auctionId) + "_startPrice"), startPrice), BooleanEntry((("auction_" + auctionId) + "_isArtefact"), (issuer == getItemsAddress())), BooleanEntry((("auction_" + auctionId) + "_isTurtle"), if ((issuer == getTurtleBreederAddress())) | |
181 | + | then true | |
182 | + | else (issuer == getTurtleIncubatorAddress())), BooleanEntry((("auction_" + auctionId) + "_isMutant"), (issuer == getMutantBreederAddress())), BooleanEntry((("auction_" + auctionId) + "_isCanine"), if ((issuer == getCanineBreederAddress())) | |
183 | + | then true | |
184 | + | else (issuer == getCanineIncubatorAddress())), BooleanEntry((("auction_" + auctionId) + "_isFeline"), if ((issuer == getFelineBreederAddress())) | |
185 | + | then true | |
186 | + | else (issuer == getFelineIncubatorAddress())), BooleanEntry((("auction_" + auctionId) + "_isThird"), (issuer == getPeteAddress())), IntegerEntry((("auction_" + auctionId) + "_instantPrice"), instantPrice), StringEntry((((("address_" + toString(i.originCaller)) + "_auction_") + auctionId) + "_lockedNFT"), toBase58String(assetId))] | |
187 | + | } | |
188 | + | } | |
189 | + | ||
190 | + | ||
191 | + | ||
192 | + | @Callable(i) | |
193 | + | func cancelAuction (auctionId) = { | |
194 | + | let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner")) | |
195 | + | if ((toString(i.originCaller) != auctionOwner)) | |
196 | + | then throw("MCA: Only allowed to auction owner") | |
197 | + | else if ((tryGetString((("auction_" + auctionId) + "_status")) != "open")) | |
198 | + | then throw("MCA: auction is close") | |
199 | + | else [StringEntry((("auction_" + auctionId) + "_status"), "cancelled"), DeleteEntry((((("address_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(i.originCaller, 1, fromBase58String(getStringValue(this, (("auction_" + auctionId) + "_assetId"))))] | |
200 | + | } | |
201 | + | ||
202 | + | ||
203 | + | ||
204 | + | @Callable(i) | |
205 | + | func instantBuy (auctionId) = { | |
206 | + | let isEggSell = tryGetBoolean((("auction_" + auctionId) + "_eggSell")) | |
207 | + | let paymentAssetId = if ((isEggSell == true)) | |
208 | + | then getEggAssetId() | |
209 | + | else unit | |
210 | + | let paymentAssetName = if ((isEggSell == true)) | |
211 | + | then "EGG" | |
212 | + | else "WAVES" | |
213 | + | let pmt = value(i.payments[0]) | |
214 | + | let amount = pmt.amount | |
215 | + | let assetId = tryGetString((("auction_" + auctionId) + "_assetId")) | |
216 | + | let bidId = toBase58String(i.transactionId) | |
217 | + | let auctionStatus = tryGetString((("auction_" + auctionId) + "_status")) | |
218 | + | let finalFee = if ((tryGetBoolean((("auction_" + auctionId) + "_isArtefact")) == true)) | |
219 | + | then getArtefactsFeePercent() | |
220 | + | else getFeePercent() | |
221 | + | if ((pmt.assetId != paymentAssetId)) | |
222 | + | then throw((("MIB: Auction does only support " + paymentAssetName) + " payments.")) | |
223 | + | else if ((auctionStatus != "open")) | |
224 | + | then throw("MIB: Auction is closed. You cannot place a bid.") | |
225 | + | else { | |
226 | + | let instantPrice = tryGetInteger((("auction_" + auctionId) + "_instantPrice")) | |
227 | + | if ((instantPrice > amount)) | |
228 | + | then throw(("MIB: For instant purchase you need to pay at least " + toString(instantPrice))) | |
229 | + | else { | |
230 | + | let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner")) | |
231 | + | let recordPrice = tryGetInteger((assetId + "_recordPrice")) | |
232 | + | let newRecordPrice = max([recordPrice, amount]) | |
233 | + | let burnCall = if (isEggSell) | |
234 | + | then { | |
235 | + | let invokeResult = invoke(getBurnAddress(), "burnAttachedPayments", nil, [AttachedPayment(getEggAssetId(), fraction(amount, finalFee, 1000))]) | |
236 | + | if ((invokeResult == invokeResult)) | |
237 | + | then nil | |
238 | + | else throw("Strict value is not equal to itself.") | |
239 | + | } | |
240 | + | else [ScriptTransfer(getFeeAggregatorAddress(), fraction(amount, fraction(finalFee, 6, 10), 1000), unit), ScriptTransfer(getBuybackAddress(), fraction(amount, fraction(finalFee, 6, 10), 1000), unit)] | |
241 | + | let caller = if ((getMarketPlaceProxy() == i.caller)) | |
242 | + | then i.originCaller | |
243 | + | else i.caller | |
244 | + | let recordAction = if ((amount > 5000000000)) | |
245 | + | then invoke(getCouponsAddress(), "recordAction", ["BUY50"], nil) | |
246 | + | else if ((amount > 2000000000)) | |
247 | + | then invoke(getCouponsAddress(), "recordAction", ["BUY20"], nil) | |
248 | + | else if ((amount > 500000000)) | |
249 | + | then invoke(getCouponsAddress(), "recordAction", ["BUY5"], nil) | |
250 | + | else nil | |
251 | + | if ((recordAction == recordAction)) | |
252 | + | then $Tuple2(([StringEntry((("auction_" + auctionId) + "_status"), "finished"), IntegerEntry((("auction_" + auctionId) + "_finalPrice"), amount), IntegerEntry((assetId + "_recordPrice"), newRecordPrice), StringEntry((((("assetId_" + assetId) + "_bid_") + bidId) + "_data"), (((((("{\"auctionId\": \"" + auctionId) + "\", \"author\": \"") + toString(caller)) + "\", \"amount\": \"") + toString(amount)) + "\", \"status\": \"finished\"}")), DeleteEntry((((("address_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(caller, 1, fromBase58String(getStringValue(this, (("auction_" + auctionId) + "_assetId")))), ScriptTransfer(addressFromStringValue(auctionOwner), fraction(amount, (1000 - finalFee), 1000), paymentAssetId)] ++ burnCall), fromBase58String(getStringValue(this, (("auction_" + auctionId) + "_assetId")))) | |
253 | + | else throw("Strict value is not equal to itself.") | |
254 | + | } | |
255 | + | } | |
256 | + | } | |
257 | + | ||
258 | + | ||
259 | + | ||
260 | + | @Callable(i) | |
261 | + | func placeBid (auctionId) = { | |
262 | + | let isEggSell = tryGetBoolean((("auction_" + auctionId) + "_eggSell")) | |
263 | + | let paymentAssetId = if ((isEggSell == true)) | |
264 | + | then getEggAssetId() | |
265 | + | else unit | |
266 | + | let paymentAssetName = if ((isEggSell == true)) | |
267 | + | then "EGG" | |
268 | + | else "WAVES" | |
269 | + | let pmt = value(i.payments[0]) | |
270 | + | let amount = pmt.amount | |
271 | + | let bidId = toBase58String(i.transactionId) | |
272 | + | let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId")) | |
273 | + | if ((pmt.assetId != paymentAssetId)) | |
274 | + | then throw((("MPB: Auction does only support " + paymentAssetName) + " payments.")) | |
275 | + | else { | |
276 | + | let minPrice = tryGetInteger((("auction_" + auctionId) + "_startPrice")) | |
277 | + | if ((minPrice > amount)) | |
278 | + | then throw(("MPB: The minimal initial price is set as " + toString(minPrice))) | |
279 | + | else [StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_author"), toString(i.originCaller)), StringEntry((((("assetId_" + assetId) + "_bid_") + bidId) + "_data"), (((((("{\"auctionId\": \"" + auctionId) + "\", \"author\": \"") + toString(i.originCaller)) + "\", \"amount\": \"") + toString(amount)) + "\", \"status\": \"open\"}")), IntegerEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount"), amount), StringEntry(((((("address_" + toString(i.originCaller)) + "_auction_") + auctionId) + "_bid_") + bidId), assetId), StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_status"), "open")] | |
280 | + | } | |
281 | + | } | |
282 | + | ||
283 | + | ||
284 | + | ||
285 | + | @Callable(i) | |
286 | + | func cancelBid (auctionId,bidId) = { | |
287 | + | let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId")) | |
288 | + | let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author")) | |
289 | + | let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount")) | |
290 | + | if ((toString(i.originCaller) != bidAuthor)) | |
291 | + | then throw("MCB: Only allowed to the bid author") | |
292 | + | else if ((tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_status")) != "open")) | |
293 | + | then throw("MCB: bid is not open") | |
294 | + | else getBidCancelResults(auctionId, bidId) | |
295 | + | } | |
296 | + | ||
297 | + | ||
298 | + | ||
299 | + | @Callable(i) | |
300 | + | func acceptBid (auctionId,bidId) = { | |
301 | + | let isEggSell = tryGetBoolean((("auction_" + auctionId) + "_eggSell")) | |
302 | + | let paymentAssetId = if ((isEggSell == true)) | |
303 | + | then getEggAssetId() | |
304 | + | else unit | |
305 | + | let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner")) | |
306 | + | let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author")) | |
307 | + | let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount")) | |
308 | + | let bidStatus = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_status")) | |
309 | + | let assetId = tryGetString((("auction_" + auctionId) + "_assetId")) | |
310 | + | let finalFee = if ((tryGetBoolean((("auction_" + auctionId) + "_isArtefact")) == true)) | |
311 | + | then getArtefactsFeePercent() | |
312 | + | else getFeePercent() | |
313 | + | if ((toString(i.originCaller) != auctionOwner)) | |
314 | + | then throw("MAB: Only allowed to auction owner") | |
315 | + | else if ((bidStatus != "open")) | |
316 | + | then throw("MAB: Bid was cancelled and cannot be accepted") | |
317 | + | else if ((tryGetString((("auction_" + auctionId) + "_status")) != "open")) | |
318 | + | then throw("MAB: Auction was closed") | |
319 | + | else { | |
320 | + | let recordPrice = tryGetInteger((assetId + "_recordPrice")) | |
321 | + | let newRecordPrice = max([recordPrice, bidAmount]) | |
322 | + | let burnCall = if (isEggSell) | |
323 | + | then { | |
324 | + | let invokeResult = invoke(getBurnAddress(), "burnAttachedPayments", nil, [AttachedPayment(getEggAssetId(), fraction(bidAmount, finalFee, 1000))]) | |
325 | + | if ((invokeResult == invokeResult)) | |
326 | + | then nil | |
327 | + | else throw("Strict value is not equal to itself.") | |
328 | + | } | |
329 | + | else [ScriptTransfer(getFeeAggregatorAddress(), fraction(bidAmount, fraction(finalFee, 6, 10), 1000), unit), ScriptTransfer(getBuybackAddress(), fraction(bidAmount, fraction(finalFee, 6, 10), 1000), unit)] | |
330 | + | ([StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_status"), "finished"), StringEntry((("auction_" + auctionId) + "_status"), "finished"), StringEntry((((("assetId_" + assetId) + "_bid_") + bidId) + "_data"), (((((("{\"auctionId\": \"" + auctionId) + "\", \"author\": \"") + toString(i.originCaller)) + "\", \"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.originCaller, fraction(bidAmount, (1000 - finalFee), 1000), paymentAssetId), ScriptTransfer(addressFromStringValue(bidAuthor), 1, fromBase58String(assetId))] ++ burnCall) | |
331 | + | } | |
332 | + | } | |
333 | + | ||
334 | + | ||
335 | + | @Verifier(tx) | |
336 | + | func verify () = if (isTestEnv()) | |
337 | + | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
338 | + | else { | |
339 | + | let firstUser = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
340 | + | let secondUser = base58'E23yUg8eun5nXB1nZRDf7RTyRADKxQhGNXdpTYonEvtU' | |
341 | + | let thirdUser = base58'Ga8WEBTPXbHuoXRD355mQ6ms8PsM2RFYKeA1mEP32CFe' | |
342 | + | let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
343 | + | then 1 | |
344 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
345 | + | then 1 | |
346 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
347 | + | then 1 | |
348 | + | else 0 | |
349 | + | let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
350 | + | then 1 | |
351 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
352 | + | then 1 | |
353 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
354 | + | then 1 | |
355 | + | else 0 | |
356 | + | let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
357 | + | then 1 | |
358 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
359 | + | then 1 | |
360 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser)) | |
361 | + | then 1 | |
362 | + | else 0 | |
363 | + | let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned) | |
364 | + | match tx { | |
365 | + | case _ => | |
366 | + | (signaturesCount >= 2) | |
367 | + | } | |
368 | + | } | |
369 | + |
github/deemru/w8io/169f3d6 27.78 ms ◑