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 | |
---|---|---|---|
69 | 69 | @Callable(r) | |
70 | 70 | func initAuction (s) = { | |
71 | 71 | let t = toBase58String(r.transactionId) | |
72 | - | let u = if (isDefined(r.payments)) | |
73 | - | then value(r.payments) | |
72 | + | let u = if (isDefined(r.payments[0])) | |
73 | + | then value(r.payments[0]) | |
74 | 74 | else throw("No payment attached") | |
75 | 75 | let v = value(r.payments[0]) | |
76 | 76 | let m = value(v.assetId) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'3MrWNTqFcHBqb58Za1A5crQrMV5KJ5DYhtA' | |
5 | 5 | ||
6 | 6 | let b = base58'3N65xLq8JcCeaEiR1TJQ7dBqXBvEy6E48Wz' | |
7 | 7 | ||
8 | 8 | let c = 3 | |
9 | 9 | ||
10 | 10 | let d = 7 | |
11 | 11 | ||
12 | 12 | let e = base58'DZ8ALmuLeSZ2ocsYLAcL9MiXBFDbMNQG9LtitREyU5ZC' | |
13 | 13 | ||
14 | 14 | func f (g) = { | |
15 | 15 | let h = { | |
16 | 16 | let i = getInteger(this, g) | |
17 | 17 | if ($isInstanceOf(i, "Int")) | |
18 | 18 | then { | |
19 | 19 | let j = i | |
20 | 20 | j | |
21 | 21 | } | |
22 | 22 | else 0 | |
23 | 23 | } | |
24 | 24 | h | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func k (g) = { | |
29 | 29 | let h = { | |
30 | 30 | let i = getString(this, g) | |
31 | 31 | if ($isInstanceOf(i, "String")) | |
32 | 32 | then { | |
33 | 33 | let j = i | |
34 | 34 | j | |
35 | 35 | } | |
36 | 36 | else "" | |
37 | 37 | } | |
38 | 38 | h | |
39 | 39 | } | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func l (m) = { | |
43 | 43 | let n = value(assetInfo(m)) | |
44 | 44 | if ((n.issuer == Address(a))) | |
45 | 45 | then "true" | |
46 | 46 | else "" | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func o (m) = { | |
51 | 51 | let p = { | |
52 | 52 | let i = getString(Address(a), ("nft_issued_" + m)) | |
53 | 53 | if ($isInstanceOf(i, "String")) | |
54 | 54 | then { | |
55 | 55 | let j = i | |
56 | 56 | j | |
57 | 57 | } | |
58 | 58 | else "" | |
59 | 59 | } | |
60 | 60 | p | |
61 | 61 | } | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func q (m) = if ((m != toBase58String(e))) | |
65 | 65 | then throw("Only Sconex accepted") | |
66 | 66 | else true | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | @Callable(r) | |
70 | 70 | func initAuction (s) = { | |
71 | 71 | let t = toBase58String(r.transactionId) | |
72 | - | let u = if (isDefined(r.payments)) | |
73 | - | then value(r.payments) | |
72 | + | let u = if (isDefined(r.payments[0])) | |
73 | + | then value(r.payments[0]) | |
74 | 74 | else throw("No payment attached") | |
75 | 75 | let v = value(r.payments[0]) | |
76 | 76 | let m = value(v.assetId) | |
77 | 77 | let w = l(m) | |
78 | 78 | if ((w == "")) | |
79 | 79 | then throw("You can only sell an NFT created on SCONE Marketplace") | |
80 | 80 | else [StringEntry((("auction_" + t) + "_status"), "open"), StringEntry((("auction_" + toBase58String(m)) + "_last"), t), StringEntry((("auction_" + t) + "_assetName"), w), StringEntry((("auction_" + t) + "_assetId"), toBase58String(m)), IntegerEntry((("auction_" + t) + "_startedAt"), lastBlock.timestamp), StringEntry((("auction_" + t) + "_owner"), toString(r.caller)), IntegerEntry((("auction_" + t) + "_startPrice"), s), StringEntry((((("address_" + toString(r.caller)) + "_auction_") + t) + "_lockedNFT"), toBase58String(m))] | |
81 | 81 | } | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | ||
85 | 85 | @Callable(r) | |
86 | 86 | func cancelAuction (t) = { | |
87 | 87 | let x = k((("auction_" + t) + "_owner")) | |
88 | 88 | if ((toString(r.caller) != x)) | |
89 | 89 | then throw("Only allowed to auction owner") | |
90 | 90 | else if ((k((("auction_" + t) + "_status")) != "open")) | |
91 | 91 | then throw("auction is close") | |
92 | 92 | else [StringEntry((("auction_" + t) + "_status"), "cancelled"), DeleteEntry((((("address_" + x) + "_auction_") + t) + "_lockedNFT")), ScriptTransfer(r.caller, 1, fromBase58String(getStringValue(this, (("auction_" + t) + "_assetId"))))] | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | ||
97 | 97 | @Callable(r) | |
98 | 98 | func placeBid (t) = { | |
99 | 99 | let v = value(r.payments[0]) | |
100 | 100 | let y = v.amount | |
101 | 101 | let z = toBase58String(r.transactionId) | |
102 | 102 | let m = getStringValue(this, (("auction_" + t) + "_assetId")) | |
103 | 103 | let A = if (!(isDefined(v.assetId))) | |
104 | 104 | then throw("Only sconex is accepted!") | |
105 | 105 | else toBase58String(value(v.assetId)) | |
106 | 106 | if (!(q(A))) | |
107 | 107 | then throw("Auction does only support sconex payments") | |
108 | 108 | else { | |
109 | 109 | let B = f((("auction_" + t) + "_startPrice")) | |
110 | 110 | if ((B > y)) | |
111 | 111 | then throw(("The minimal initial price is set as " + toString(B))) | |
112 | 112 | else [StringEntry((((("auction_" + t) + "_bid_") + z) + "_author"), toString(r.caller)), StringEntry((((("assetId_" + m) + "_bid_") + z) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(y)) + "\", \"status\": \"open\"}")), IntegerEntry((((("auction_" + t) + "_bid_") + z) + "_amount"), y), StringEntry(((((("address_" + toString(r.caller)) + "_auction_") + t) + "_bid_") + z), m), StringEntry((((("auction_" + t) + "_bid_") + z) + "_status"), "open")] | |
113 | 113 | } | |
114 | 114 | } | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | ||
118 | 118 | @Callable(r) | |
119 | 119 | func cancelBid (t,z) = { | |
120 | 120 | let m = getStringValue(this, (("auction_" + t) + "_assetId")) | |
121 | 121 | let C = k((((("auction_" + t) + "_bid_") + z) + "_author")) | |
122 | 122 | let D = f((((("auction_" + t) + "_bid_") + z) + "_amount")) | |
123 | 123 | if (if ((toString(r.caller) != C)) | |
124 | 124 | then (r.caller != this) | |
125 | 125 | else false) | |
126 | 126 | then throw("Only allowed to the bid author or admin") | |
127 | 127 | else if ((k((((("auction_" + t) + "_bid_") + z) + "_status")) != "open")) | |
128 | 128 | then throw("bid is not open") | |
129 | 129 | else [StringEntry((((("assetId_" + m) + "_bid_") + z) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(D)) + "\", \"status\": \"cancelled\"}")), StringEntry((((("auction_" + t) + "_bid_") + z) + "_status"), "cancelled"), DeleteEntry(((((("address_" + C) + "_auction_") + t) + "_bid_") + z)), ScriptTransfer(Address(fromBase58String(C)), D, e)] | |
130 | 130 | } | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | ||
134 | 134 | @Callable(r) | |
135 | 135 | func acceptBid (t,z) = { | |
136 | 136 | let x = k((("auction_" + t) + "_owner")) | |
137 | 137 | let C = k((((("auction_" + t) + "_bid_") + z) + "_author")) | |
138 | 138 | let D = f((((("auction_" + t) + "_bid_") + z) + "_amount")) | |
139 | 139 | let E = k((((("auction_" + t) + "_bid_") + z) + "_status")) | |
140 | 140 | let m = k((("auction_" + t) + "_assetId")) | |
141 | 141 | if ((toString(r.caller) != x)) | |
142 | 142 | then throw("Only allowed to auction owner") | |
143 | 143 | else if ((E != "open")) | |
144 | 144 | then throw("Bid was cancelled and cannot be accepted") | |
145 | 145 | else { | |
146 | 146 | let F = f((m + "_recordPrice")) | |
147 | 147 | let G = max([F, D]) | |
148 | 148 | let p = o(m) | |
149 | 149 | if ((p == "")) | |
150 | 150 | then [StringEntry((((("auction_" + t) + "_bid_") + z) + "_status"), "finished"), StringEntry((("auction_" + t) + "_status"), "finished"), StringEntry((((("assetId_" + m) + "_bid_") + z) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(D)) + "\", \"status\": \"finished\"}")), IntegerEntry((("auction_" + t) + "_finalPrice"), D), IntegerEntry((m + "_recordPrice"), G), DeleteEntry(((((("address_" + C) + "_auction_") + t) + "_bid_") + z)), DeleteEntry((((("address_" + x) + "_auction_") + t) + "_lockedNFT")), ScriptTransfer(r.caller, fraction(D, ((100 - c) - d), 100), e), ScriptTransfer(Address(b), fraction(D, d, 100), e), ScriptTransfer(Address(b), fraction(D, c, 100), e), ScriptTransfer(addressFromStringValue(C), 1, fromBase58String(m))] | |
151 | 151 | else [StringEntry((((("auction_" + t) + "_bid_") + z) + "_status"), "finished"), StringEntry((("auction_" + t) + "_status"), "finished"), StringEntry((((("assetId_" + m) + "_bid_") + z) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(D)) + "\", \"status\": \"finished\"}")), IntegerEntry((("auction_" + t) + "_finalPrice"), D), IntegerEntry((m + "_recordPrice"), G), DeleteEntry(((((("address_" + C) + "_auction_") + t) + "_bid_") + z)), DeleteEntry((((("address_" + x) + "_auction_") + t) + "_lockedNFT")), ScriptTransfer(r.caller, fraction(D, ((100 - c) - d), 100), e), ScriptTransfer(Address(fromBase58String(p)), fraction(D, d, 100), e), ScriptTransfer(Address(b), fraction(D, c, 100), e), ScriptTransfer(addressFromStringValue(C), 1, fromBase58String(m))] | |
152 | 152 | } | |
153 | 153 | } | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | @Verifier(H) | |
157 | 157 | func I () = sigVerify(H.bodyBytes, H.proofs[0], H.senderPublicKey) | |
158 | 158 |
github/deemru/w8io/026f985 34.09 ms ◑