tx · D5sppYh4D8iGyPACMNs9ttAP6zKdZuSqhi35pDf4aEcw 3N7n7C2Tnb2RVNE6keyQXaZj7fpJhKYycuZ: -0.01400000 Waves 2019.08.25 15:26 [646681] smart account 3N7n7C2Tnb2RVNE6keyQXaZj7fpJhKYycuZ > SELF 0.00000000 Waves
{ "type": 13, "id": "D5sppYh4D8iGyPACMNs9ttAP6zKdZuSqhi35pDf4aEcw", "fee": 1400000, "feeAssetId": null, "timestamp": 1566735970505, "version": 1, "sender": "3N7n7C2Tnb2RVNE6keyQXaZj7fpJhKYycuZ", "senderPublicKey": "3Vz4cHjjw75vgsus5DCUDb6YBik3rW4F2WtnQbEexjFp", "proofs": [ "5ntofYMCYs31GjzsBLj7qdgrB7h6LxwfRPBAKJAaFHKdsjg9h6QjfEkd3jV2qQtSXmw7ojEUu3iZwPLtjHgwYVC3" ], "script": "base64:AAIDAAAAAAAAAAAAAAAFAAAAABJtYXhBdWN0aW9uRHVyYXRpb24JAABoAAAAAgAAAAAAAAAFoAAAAAAAAAAAHgAAAAAOcmV2ZWFsRHVyYXRpb24JAABoAAAAAgAAAAAAAAAFoAAAAAAAAAAABwEAAAAKaGFzaFN0cmluZwAAAAEAAAAEZGF0YQQAAAAGcmVzdWx0CQACWgAAAAEJAAH3AAAAAQkAAZsAAAABBQAAAARkYXRhBQAAAAZyZXN1bHQBAAAACWFkZFRvTGlzdAAAAAIAAAAEbGlzdAAAAAl3aGF0VG9BZGQEAAAABnJlc3VsdAkAASwAAAACCQABLAAAAAIFAAAABGxpc3QCAAAAASAFAAAACXdoYXRUb0FkZAUAAAAGcmVzdWx0AQAAAA5yZW1vdmVGcm9tTGlzdAAAAAIAAAAEbGlzdAAAAAx3aGF0VG9SZW1vdmUEAAAAA2lkeAkABLMAAAACBQAAAARsaXN0BQAAAAx3aGF0VG9SZW1vdmUEAAAABnJlc3VsdAMJAQAAAAlpc0RlZmluZWQAAAABBQAAAANpZHgJAAEsAAAAAgkAAS8AAAACBQAAAARsaXN0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zaXQFAAAAC3NlY29uZFByaWNlBQAAAApwcmljZUFzc2V0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAACndpbm5lckFkZHIJAABlAAAAAgUAAAAHZGVwb3NpdAUAAAALc2Vjb25kUHJpY2UFAAAACnByaWNlQXNzZXQFAAAAA25pbAMJAAAAAAAAAgUAAAAGc2V0dGxlBgkAAAIAAAABAgAAACZJbGxlZ2FsIHN0YXRlLCBzZXR0bGUgc2hvb3VsZCBiZSBmYWxzZQkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAJYXVjdGlvbklkAgAAAAdfc2V0dGxlBgkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAABBjYWxsZXJBZGRyZXNzU3RyAgAAAAdfYmlkZGVyCQEAAAAOcmVtb3ZlRnJvbUxpc3QAAAACCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzCQABLAAAAAIFAAAAEGNhbGxlckFkZHJlc3NTdHICAAAAB19iaWRkZXIFAAAACWF1Y3Rpb25JZAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAHZGVwb3NpdAUAAAAKcHJpY2VBc3NldAUAAAADbmlsAAAAAFAvdSw=", "chainId": 84, "height": 646681, "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 a = (1440 * 30) | |
5 | + | ||
6 | + | let b = (1440 * 7) | |
7 | + | ||
8 | + | func c (d) = { | |
9 | + | let e = toBase64String(sha256(toBytes(d))) | |
10 | + | e | |
11 | + | } | |
12 | + | ||
13 | + | ||
14 | + | func f (g,h) = { | |
15 | + | let e = ((g + " ") + h) | |
16 | + | e | |
17 | + | } | |
18 | + | ||
19 | + | ||
20 | + | func i (g,j) = { | |
21 | + | let k = indexOf(g, j) | |
22 | + | let e = if (isDefined(k)) | |
23 | + | then (take(g, value(k)) + takeRight(g, (value(k) + size(j)))) | |
24 | + | else g | |
25 | + | e | |
26 | + | } | |
27 | + | ||
28 | + | ||
29 | + | @Callable(l) | |
30 | + | func startAuction (m,n,o,p) = { | |
31 | + | let q = toBase58String(l.transactionId) | |
32 | + | let r = (lastBlock.height + m) | |
33 | + | let s = (r + b) | |
34 | + | let t = toBase58String(l.caller.bytes) | |
35 | + | let u = (t + "_organizer") | |
36 | + | let v = getString(this, u) | |
37 | + | let w = if (isDefined(v)) | |
38 | + | then value(v) | |
39 | + | else "" | |
40 | + | let x = ((w + " ") + q) | |
41 | + | let y = extract(l.payment) | |
42 | + | if ((m > a)) | |
43 | + | then throw(("Duration is too long. Must be less than " + toString(a))) | |
44 | + | else if (!(isDefined(y.assetId))) | |
45 | + | then throw("Payment currency should not be in WAVES") | |
46 | + | else if ((y.amount != 1)) | |
47 | + | then throw("Payment amount should be only one NFT") | |
48 | + | else if ((0 >= n)) | |
49 | + | then throw("Start price should be > 0") | |
50 | + | else if ((n >= p)) | |
51 | + | then throw((("Start price should be < deposit (" + toString(p)) + ")")) | |
52 | + | else if ((0 >= m)) | |
53 | + | then throw("Duration should be > 0") | |
54 | + | else WriteSet([DataEntry((q + "_reveal_start"), r), DataEntry((q + "_closing_start"), s), DataEntry((q + "_deposit"), p), DataEntry((q + "_unrevealed_count"), 0), DataEntry((q + "_top_price"), 0), DataEntry((q + "_second_price"), 0), DataEntry((q + "_settle"), false), DataEntry((q + "_organizer"), t), DataEntry((q + "_lot_assetId"), if (isDefined(y.assetId)) | |
55 | + | then toBase58String(value(y.assetId)) | |
56 | + | else "WAVES"), DataEntry((q + "_lot_amount"), y.amount), DataEntry((q + "_startPrice"), n), DataEntry((q + "_priceAssetId"), o), DataEntry(u, x), DataEntry("test", c(("123" + toString(n))))]) | |
57 | + | } | |
58 | + | ||
59 | + | ||
60 | + | ||
61 | + | @Callable(l) | |
62 | + | func bid (q,z) = { | |
63 | + | let y = extract(l.payment) | |
64 | + | let A = if (isDefined(y.assetId)) | |
65 | + | then toBase58String(value(y.assetId)) | |
66 | + | else "WAVES" | |
67 | + | let B = toBase58String(l.caller.bytes) | |
68 | + | let C = getIntegerValue(this, (q + "_reveal_start")) | |
69 | + | let n = getIntegerValue(this, (q + "_startPrice")) | |
70 | + | let o = getStringValue(this, (q + "_priceAssetId")) | |
71 | + | let t = getStringValue(this, (q + "_organizer")) | |
72 | + | let p = getIntegerValue(this, (q + "_deposit")) | |
73 | + | let D = getIntegerValue(this, (q + "_unrevealed_count")) | |
74 | + | let E = getString(this, (B + "_bidder")) | |
75 | + | let F = isDefined(getString(this, ((q + B) + "bid_hash"))) | |
76 | + | if ((lastBlock.height >= C)) | |
77 | + | then throw("Auction already finished") | |
78 | + | else if (if (!(F)) | |
79 | + | then (o != A) | |
80 | + | else false) | |
81 | + | then throw((("Bid must be in asset '" + o) + "'")) | |
82 | + | else if (!(isDefined(t))) | |
83 | + | then throw("Organizer should be defined") | |
84 | + | else if (if (!(F)) | |
85 | + | then (y.amount != p) | |
86 | + | else false) | |
87 | + | then throw("Payment should be equel to deposit") | |
88 | + | else { | |
89 | + | let G = if (F) | |
90 | + | then 0 | |
91 | + | else 1 | |
92 | + | WriteSet([DataEntry(((q + B) + "_revealed"), false), DataEntry(((q + B) + "_bid_hash"), z), DataEntry(((q + B) + "_settle"), false), DataEntry((q + "_unrevealed_cont"), (D + G)), DataEntry((B + "_bidder"), (((if (isDefined(E)) | |
93 | + | then value(E) | |
94 | + | else "") + " ") + q))]) | |
95 | + | } | |
96 | + | } | |
97 | + | ||
98 | + | ||
99 | + | ||
100 | + | @Callable(l) | |
101 | + | func reveal (q,H,I) = { | |
102 | + | let B = toBase58String(l.caller.bytes) | |
103 | + | let t = getStringValue(this, (q + "_organizer")) | |
104 | + | let J = getStringValue(this, ((q + B) + "_bid_hash")) | |
105 | + | let K = getBooleanValue(this, ((q + B) + "_revealed")) | |
106 | + | let r = getIntegerValue(this, (q + "_reveal_start")) | |
107 | + | let s = getIntegerValue(this, (q + "_closing_start")) | |
108 | + | let L = getIntegerValue(this, (q + "_top_price")) | |
109 | + | let M = getIntegerValue(this, (q + "_second_price")) | |
110 | + | let N = getString(this, (q + "_winner")) | |
111 | + | let D = getIntegerValue(this, (q + "_unrevealed_count")) | |
112 | + | let O = toString(H) | |
113 | + | let P = (I + O) | |
114 | + | let Q = c(P) | |
115 | + | if (!(isDefined(t))) | |
116 | + | then throw("Organizer is not defined") | |
117 | + | else if (!(isDefined(J))) | |
118 | + | then throw("Bid is not defined") | |
119 | + | else if (if ((r > lastBlock.height)) | |
120 | + | then true | |
121 | + | else (lastBlock.height > s)) | |
122 | + | then throw(((((("Auction should be revealed between reveal (" + toString(r)) + ") and closing (") + toString(s)) + ") time, now is ") + toString(lastBlock.height))) | |
123 | + | else if (isDefined(l.payment)) | |
124 | + | then throw("Payment shoud not exist") | |
125 | + | else if ((Q != J)) | |
126 | + | then throw("Bid hash from bidMount and sault is not equel with hash from the caller bid") | |
127 | + | else if ((K == true)) | |
128 | + | then throw("The bid has been already revealed") | |
129 | + | else { | |
130 | + | let R = if ((H > L)) | |
131 | + | then H | |
132 | + | else L | |
133 | + | let S = if ((H > L)) | |
134 | + | then L | |
135 | + | else if ((H > M)) | |
136 | + | then H | |
137 | + | else M | |
138 | + | let T = if ((H > L)) | |
139 | + | then B | |
140 | + | else value(N) | |
141 | + | WriteSet([DataEntry((q + "_top_price"), R), DataEntry((q + "_second_price"), S), DataEntry((q + "_winner"), T), DataEntry(((q + B) + "_revealed"), true), DataEntry((q + "_unrevealed_cont"), (D - 1))]) | |
142 | + | } | |
143 | + | } | |
144 | + | ||
145 | + | ||
146 | + | ||
147 | + | @Callable(l) | |
148 | + | func withdraw (q) = { | |
149 | + | let y = l.payment | |
150 | + | let B = toBase58String(l.caller.bytes) | |
151 | + | let s = getIntegerValue(this, (q + "_closing_start")) | |
152 | + | let D = getIntegerValue(this, (q + "_unrevealed_count")) | |
153 | + | let t = getStringValue(this, (q + "_organizer")) | |
154 | + | let U = getIntegerValue(this, (q + "_reveal_start")) | |
155 | + | let N = getString(this, (q + "_winner")) | |
156 | + | let V = getStringValue(this, (q + "_lot_assetId")) | |
157 | + | let W = getIntegerValue(this, (q + "_lot_amount")) | |
158 | + | let o = getStringValue(this, (q + "_priceAssetId")) | |
159 | + | let X = getBooleanValue(this, (q + "_settle")) | |
160 | + | let M = getIntegerValue(this, (q + "_second_price")) | |
161 | + | let p = getIntegerValue(this, (q + "_deposit")) | |
162 | + | let Y = if ((V == "WAVES")) | |
163 | + | then unit | |
164 | + | else fromBase58String(V) | |
165 | + | let Z = if (if ((o == "WAVES")) | |
166 | + | then true | |
167 | + | else (o == "")) | |
168 | + | then unit | |
169 | + | else fromBase58String(o) | |
170 | + | if (isDefined(y)) | |
171 | + | then throw("Payment shoud not exist") | |
172 | + | else if (!(isDefined(t))) | |
173 | + | then throw("Organizer shoud exist") | |
174 | + | else if (if ((s > (U - lastBlock.height))) | |
175 | + | then (D != 0) | |
176 | + | else false) | |
177 | + | then throw("Its too early to withdraw") | |
178 | + | else if (if ((B == t)) | |
179 | + | then true | |
180 | + | else (B == N)) | |
181 | + | then if ((X == true)) | |
182 | + | then throw("Illegal state, settle shoould be false") | |
183 | + | else if (!(isDefined(N))) | |
184 | + | then if (isDefined(getString(this, (q + "_lot_passed")))) | |
185 | + | then throw("Organizer has already got his lot back") | |
186 | + | else { | |
187 | + | let aa = addressFromStringValue(value(t)) | |
188 | + | ScriptResult(WriteSet([DataEntry((q + "_settle"), true), DataEntry((t + "_organizer"), i(getStringValue(this, (t + "_organizer")), q))]), TransferSet([ScriptTransfer(aa, W, Y)])) | |
189 | + | } | |
190 | + | else { | |
191 | + | let ab = addressFromStringValue(value(N)) | |
192 | + | let aa = addressFromStringValue(value(t)) | |
193 | + | ScriptResult(WriteSet([DataEntry((q + "_settle"), true), DataEntry((value(N) + "_bidder"), i(getStringValue(this, (value(N) + "_bidder")), q)), DataEntry((t + "_organizer"), i(getStringValue(this, (t + "_organizer")), q))]), TransferSet([ScriptTransfer(ab, W, Y), ScriptTransfer(aa, M, Z), ScriptTransfer(ab, (p - M), Z), ScriptTransfer(ab, (p - M), Z)])) | |
194 | + | } | |
195 | + | else if ((X == true)) | |
196 | + | then throw("Illegal state, settle shoould be false") | |
197 | + | else ScriptResult(WriteSet([DataEntry((q + "_settle"), true), DataEntry((B + "_bidder"), i(getStringValue(this, (B + "_bidder")), q))]), TransferSet([ScriptTransfer(l.caller, p, Z)])) | |
198 | + | } | |
199 | + | ||
200 | + |
github/deemru/w8io/169f3d6 67.95 ms ◑