tx · EneWmzuMyo8bPo935j7KBhNwm1sHMbCptMKdnJqiyDh 3MtVYGt1cJJB8g21cvSzJScK3hxUi9JHdcN: -0.01400000 Waves 2021.12.23 14:06 [1846823] smart account 3MtVYGt1cJJB8g21cvSzJScK3hxUi9JHdcN > SELF 0.00000000 Waves
{ "type": 13, "id": "EneWmzuMyo8bPo935j7KBhNwm1sHMbCptMKdnJqiyDh", "fee": 1400000, "feeAssetId": null, "timestamp": 1640257588130, "version": 2, "chainId": 84, "sender": "3MtVYGt1cJJB8g21cvSzJScK3hxUi9JHdcN", "senderPublicKey": "65qdY9G3EVQgF1GhvrT6rw2zPmUsFirt9Kjm5q5fdJvu", "proofs": [ "5mTPDzh2kQNPFocXPpWNj7XoqfwKN4X7GNaThzc2mPrSvoc9CTNWKRHHqEnZz1UnCByXDWwKqzo28kGGy2ejgYPU" ], "script": "base64:AAIFAAAAAAAAAo8IAhIGCgQBAQgIEgMKAQgSBAoCCAgSBAoCCAgSAwoBCBoICgFBEgNwbXQaCgoBQhIFYXNzZXQaFQoBQxIQcGF5bWVudEFzc2V0TmFtZRoLCgFEEgZhbW91bnQaDQoBRRIIbWluUHJpY2UaEQoBRhIMYXVjdGlvbk93bmVyGg4KAUcSCWJpZFN0YXR1cxoNCgFIEghmaW5hbEZlZRoQCgFJEgtyZWNvcmRQcmljZRoTCgFKEg5uZXdSZWNvcmRQcmljZRoHCgFLEgJ0eBoLCgFMEgZ2ZXJpZnkaFQoBYRIQTkZUSXNzdWVyQWRkcmVzcxoPCgFiEgplZ2dBc3NldElkGhEKAWMSDG93bmVyQWRkcmVzcxoPCgFkEgpmZWVQZXJjZW50GhgKAWUSE2FydGVmYWN0c0ZlZVBlcmNlbnQaEgoBZhINdHJ5R2V0SW50ZWdlchoICgFnEgNrZXkaCAoBaBIDdmFsGgwKAWkSByRtYXRjaDAaBgoBahIBYhoRCgFrEgx0cnlHZXRTdHJpbmcaEgoBbBINdHJ5R2V0Qm9vbGVhbhoYCgFtEhNnZXR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TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAF2AAAADG9yaWdpbkNhbGxlcgAAAAAAAAAAAQkAAlkAAAABCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzCQABLAAAAAIJAAEsAAAAAgIAAAAIYXVjdGlvbl8FAAAAAW4CAAAACF9hc3NldElkBQAAAANuaWwAAAABAAAAAUsBAAAAAUwAAAAACQAB9AAAAAMIBQAAAAFLAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABSwAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAFLAAAAD3NlbmRlclB1YmxpY0tleTltpfo=", "height": 1846823, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2iFt5Msdd8sjfZ3TgvBbZtwjgt3rYZ6cCvTRDgBoQyKc Next: FTEkwSbc8XAmWnCF4EFZgraG1amBjypGcxDuTJRiAdgE Diff:
Old | New | Differences | |
---|---|---|---|
39 | 39 | case _ => | |
40 | 40 | false | |
41 | 41 | } | |
42 | + | ||
43 | + | ||
44 | + | func getBidCancelResults (auctionId,bidId) = { | |
45 | + | let isEggSell = tryGetBoolean((("auction_" + auctionId) + "_eggSell")) | |
46 | + | let paymentAssetId = if ((isEggSell == true)) | |
47 | + | then eggAssetId | |
48 | + | else unit | |
49 | + | let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId")) | |
50 | + | let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author")) | |
51 | + | let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount")) | |
52 | + | [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)] | |
53 | + | } | |
42 | 54 | ||
43 | 55 | ||
44 | 56 | func getAssetGenotype (assetId) = if ((value(assetInfo(assetId)).issuer == Address(NFTIssuerAddress))) | |
112 | 124 | } | |
113 | 125 | ||
114 | 126 | ||
127 | + | ||
128 | + | @Callable(i) | |
129 | + | func cancelBid (auctionId,bidId) = { | |
130 | + | let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId")) | |
131 | + | let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author")) | |
132 | + | let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount")) | |
133 | + | if ((toString(i.originCaller) != bidAuthor)) | |
134 | + | then throw("Only allowed to the bid author") | |
135 | + | else if ((tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_status")) != "open")) | |
136 | + | then throw("bid is not open") | |
137 | + | else getBidCancelResults(auctionId, bidId) | |
138 | + | } | |
139 | + | ||
140 | + | ||
141 | + | ||
142 | + | @Callable(i) | |
143 | + | func cancelAuction (auctionId) = { | |
144 | + | let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner")) | |
145 | + | if ((toString(i.originCaller) != auctionOwner)) | |
146 | + | then throw("Only allowed to auction owner") | |
147 | + | else if ((tryGetString((("auction_" + auctionId) + "_status")) != "open")) | |
148 | + | then throw("auction is close") | |
149 | + | else [StringEntry((("auction_" + auctionId) + "_status"), "cancelled"), DeleteEntry((((("address_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(i.originCaller, 1, fromBase58String(getStringValue(this, (("auction_" + auctionId) + "_assetId"))))] | |
150 | + | } | |
151 | + | ||
152 | + | ||
115 | 153 | @Verifier(tx) | |
116 | 154 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
117 | 155 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let NFTIssuerAddress = base58'3N992tjd7EWM6dSHrdVjjjuJrLD4koNztZ9' | |
5 | 5 | ||
6 | 6 | let eggAssetId = base58'2cf6jyVG19oHU79R8iHfqFEesjstr3e7nSYEUhb2WagB' | |
7 | 7 | ||
8 | 8 | let ownerAddress = base58'3MpADDQFqadaCADNH9JDMQAGw9WEaMcymVU' | |
9 | 9 | ||
10 | 10 | let feePercent = 5 | |
11 | 11 | ||
12 | 12 | let artefactsFeePercent = 20 | |
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 tryGetBoolean (key) = match getBoolean(this, key) { | |
37 | 37 | case b: Boolean => | |
38 | 38 | b | |
39 | 39 | case _ => | |
40 | 40 | false | |
41 | 41 | } | |
42 | + | ||
43 | + | ||
44 | + | func getBidCancelResults (auctionId,bidId) = { | |
45 | + | let isEggSell = tryGetBoolean((("auction_" + auctionId) + "_eggSell")) | |
46 | + | let paymentAssetId = if ((isEggSell == true)) | |
47 | + | then eggAssetId | |
48 | + | else unit | |
49 | + | let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId")) | |
50 | + | let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author")) | |
51 | + | let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount")) | |
52 | + | [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)] | |
53 | + | } | |
42 | 54 | ||
43 | 55 | ||
44 | 56 | func getAssetGenotype (assetId) = if ((value(assetInfo(assetId)).issuer == Address(NFTIssuerAddress))) | |
45 | 57 | then "ART" | |
46 | 58 | else "" | |
47 | 59 | ||
48 | 60 | ||
49 | 61 | @Callable(i) | |
50 | 62 | func initAuction (startPrice,instantPrice,description,eggSell) = { | |
51 | 63 | let auctionId = toBase58String(i.transactionId) | |
52 | 64 | let pmt = value(i.payments[0]) | |
53 | 65 | let assetId = value(pmt.assetId) | |
54 | 66 | let asset = getAssetGenotype(assetId) | |
55 | 67 | if ((asset == "")) | |
56 | 68 | then throw("You can only sell an NFT-duck created in incubator or breeder") | |
57 | 69 | else [StringEntry((("auction_" + auctionId) + "_status"), "open"), BooleanEntry((("auction_" + auctionId) + "_eggSell"), (eggSell == "true")), 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"), (value(assetInfo(assetId)).issuer == Address(NFTIssuerAddress))), IntegerEntry((("auction_" + auctionId) + "_instantPrice"), instantPrice), StringEntry((((("address_" + toString(i.originCaller)) + "_auction_") + auctionId) + "_lockedNFT"), toBase58String(assetId))] | |
58 | 70 | } | |
59 | 71 | ||
60 | 72 | ||
61 | 73 | ||
62 | 74 | @Callable(i) | |
63 | 75 | func placeBid (auctionId) = { | |
64 | 76 | let isEggSell = tryGetBoolean((("auction_" + auctionId) + "_eggSell")) | |
65 | 77 | let paymentAssetId = if ((isEggSell == true)) | |
66 | 78 | then eggAssetId | |
67 | 79 | else unit | |
68 | 80 | let paymentAssetName = if ((isEggSell == true)) | |
69 | 81 | then "EGG" | |
70 | 82 | else "WAVES" | |
71 | 83 | let pmt = value(i.payments[0]) | |
72 | 84 | let amount = pmt.amount | |
73 | 85 | let bidId = toBase58String(i.transactionId) | |
74 | 86 | let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId")) | |
75 | 87 | if ((pmt.assetId != paymentAssetId)) | |
76 | 88 | then throw((("Auction does only support " + paymentAssetName) + " payments.")) | |
77 | 89 | else { | |
78 | 90 | let minPrice = tryGetInteger((("auction_" + auctionId) + "_startPrice")) | |
79 | 91 | if ((minPrice > amount)) | |
80 | 92 | then throw(("The minimal initial price is set as " + toString(minPrice))) | |
81 | 93 | 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")] | |
82 | 94 | } | |
83 | 95 | } | |
84 | 96 | ||
85 | 97 | ||
86 | 98 | ||
87 | 99 | @Callable(i) | |
88 | 100 | func acceptBid (auctionId,bidId) = { | |
89 | 101 | let isEggSell = tryGetBoolean((("auction_" + auctionId) + "_eggSell")) | |
90 | 102 | let paymentAssetId = if ((isEggSell == true)) | |
91 | 103 | then eggAssetId | |
92 | 104 | else unit | |
93 | 105 | let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner")) | |
94 | 106 | let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author")) | |
95 | 107 | let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount")) | |
96 | 108 | let bidStatus = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_status")) | |
97 | 109 | let assetId = tryGetString((("auction_" + auctionId) + "_assetId")) | |
98 | 110 | let finalFee = if ((tryGetBoolean((("auction_" + auctionId) + "_isArtefact")) == true)) | |
99 | 111 | then artefactsFeePercent | |
100 | 112 | else feePercent | |
101 | 113 | if ((toString(i.originCaller) != auctionOwner)) | |
102 | 114 | then throw("Only allowed to auction owner") | |
103 | 115 | else if ((bidStatus != "open")) | |
104 | 116 | then throw("Bid was cancelled and cannot be accepted") | |
105 | 117 | else if ((tryGetString((("auction_" + auctionId) + "_status")) != "open")) | |
106 | 118 | then throw("Auction was closed") | |
107 | 119 | else { | |
108 | 120 | let recordPrice = tryGetInteger((assetId + "_recordPrice")) | |
109 | 121 | let newRecordPrice = max([recordPrice, bidAmount]) | |
110 | 122 | [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.caller, fraction(bidAmount, (100 - finalFee), 100), paymentAssetId), ScriptTransfer(Address(ownerAddress), fraction(bidAmount, finalFee, 100), paymentAssetId), ScriptTransfer(addressFromStringValue(bidAuthor), 1, fromBase58String(assetId))] | |
111 | 123 | } | |
112 | 124 | } | |
113 | 125 | ||
114 | 126 | ||
127 | + | ||
128 | + | @Callable(i) | |
129 | + | func cancelBid (auctionId,bidId) = { | |
130 | + | let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId")) | |
131 | + | let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author")) | |
132 | + | let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount")) | |
133 | + | if ((toString(i.originCaller) != bidAuthor)) | |
134 | + | then throw("Only allowed to the bid author") | |
135 | + | else if ((tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_status")) != "open")) | |
136 | + | then throw("bid is not open") | |
137 | + | else getBidCancelResults(auctionId, bidId) | |
138 | + | } | |
139 | + | ||
140 | + | ||
141 | + | ||
142 | + | @Callable(i) | |
143 | + | func cancelAuction (auctionId) = { | |
144 | + | let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner")) | |
145 | + | if ((toString(i.originCaller) != auctionOwner)) | |
146 | + | then throw("Only allowed to auction owner") | |
147 | + | else if ((tryGetString((("auction_" + auctionId) + "_status")) != "open")) | |
148 | + | then throw("auction is close") | |
149 | + | else [StringEntry((("auction_" + auctionId) + "_status"), "cancelled"), DeleteEntry((((("address_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(i.originCaller, 1, fromBase58String(getStringValue(this, (("auction_" + auctionId) + "_assetId"))))] | |
150 | + | } | |
151 | + | ||
152 | + | ||
115 | 153 | @Verifier(tx) | |
116 | 154 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
117 | 155 |
github/deemru/w8io/03bedc9 47.30 ms ◑![]()