tx · 4qPafse2G3EmtELhYSk6gMh91PZpteAZWGfxM9tJxXu5 3NAqZp4JU25rEu6LRGmfeev3CKSvZuBW6Pf: -0.01000000 Waves 2019.08.08 00:01 [621052] smart account 3NAqZp4JU25rEu6LRGmfeev3CKSvZuBW6Pf > SELF 0.00000000 Waves
{ "type": 13, "id": "4qPafse2G3EmtELhYSk6gMh91PZpteAZWGfxM9tJxXu5", "fee": 1000000, "feeAssetId": null, "timestamp": 1565211682565, "version": 1, "sender": "3NAqZp4JU25rEu6LRGmfeev3CKSvZuBW6Pf", "senderPublicKey": "4CSfpGcDQwdBoMbefE6ThRukE9YviLUHakW9wZL3iEJS", "proofs": [ "3uhAevSDnNfRPKdbAGEVu5SxUqJa6rcDx6SDmt4auMmawFSpJY25iCHVBCGbfRU38qjrFEZhYRL3DgpMW7XTe9SS" ], "script": "base64:AAIDAAAAAAAAAAAAAAAzAAAAAAV3YXZlcwAAAAAABfXhAAAAAAAObGlnYUNvbW1pc3Npb24AAAAAAAAAAAQAAAAACnRvdGFsVGVhbXMAAAAAAAAAAAIAAAAADWxpZ2FQdWJsaWNLZXkBAAAAIDz1Wd7VAqxkhwXXdekZDWeZHlcDxk6CXoR+2JlrB7MjAAAAAA5ldmVudFB1YmxpY0tleQEAAAAgL4F5VaDxAb/2QCajLs4dZzYryJ9GOtHs3YkGAkyagS8AAAAAD29yYWNsZVB1YmxpY0tleQEAAAAgERY1OwPcvWXK4WymU5j1I5PUJmv5x/0UPoBbelPcvXsAAAAAEmxlYXNlTm9kZVB1YmxpY0tleQEAAAAgERY1OwPcvWXK4WymU5j1I5PUJmv5x/0UPoBbelPcvXsAAAAAEGV2ZW50RW5kc0F0QmxvY2sAAAAAAAAJef0AAAAAGXdpbm5lckRlY2xhcmF0aW9uSW50ZXJ2YWwAAAAAAAAAAAEAAAAADnBheW91dEludGVydmFsAAAAAAAAAAAEAQAAAAhnZXRJbnRPcgAAAAIAAAADa2V5AAAAB2RlZmF1bHQDCQEAAAAJaXNEZ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zAAAAAAAAAAAABQAAAA5ldmVudFB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAQTGVhc2VUcmFuc2FjdGlvbgQAAAABbAUAAAAHJG1hdGNoMAMDCQAAAAAAAAIJAQAAAAVzdGFnZQAAAAAFAAAABlNUQUdFMQkAAAAAAAACCAUAAAABbAAAAAlyZWNpcGllbnQJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAEmxlYXNlTm9kZVB1YmxpY0tleQcJAABmAAAAAggFAAAAAWwAAAAGYW1vdW50CQAAaAAAAAIAAAAAAAAAAGQFAAAABXdhdmVzBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAWTGVhc2VDYW5jZWxUcmFuc2FjdGlvbgQAAAACY2wFAAAAByRtYXRjaDAJAQAAAAIhPQAAAAIJAQAAAAVzdGFnZQAAAAAFAAAABlNUQUdFMQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAACY2wFAAAAByRtYXRjaDAGBx/bmHQ=", "chainId": 84, "height": 621052, "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 = 100000000 | |
5 | + | ||
6 | + | let b = 4 | |
7 | + | ||
8 | + | let c = 2 | |
9 | + | ||
10 | + | let d = base58'56xTC8QUv2imTCZqZSvWNbjiKbPLMqbfrUk9nNPd1ra6' | |
11 | + | ||
12 | + | let e = base58'4CSfpGcDQwdBoMbefE6ThRukE9YviLUHakW9wZL3iEJS' | |
13 | + | ||
14 | + | let f = base58'29haA6Z2fu7PyJZLz55Dzco9Z5g2PVtKAgte45XrRnAE' | |
15 | + | ||
16 | + | let g = base58'29haA6Z2fu7PyJZLz55Dzco9Z5g2PVtKAgte45XrRnAE' | |
17 | + | ||
18 | + | let h = 621053 | |
19 | + | ||
20 | + | let i = 1 | |
21 | + | ||
22 | + | let j = 4 | |
23 | + | ||
24 | + | func k (l,m) = if (isDefined(getInteger(this, l))) | |
25 | + | then getIntegerValue(this, l) | |
26 | + | else m | |
27 | + | ||
28 | + | ||
29 | + | func n (l) = getIntegerValue(this, l) | |
30 | + | ||
31 | + | ||
32 | + | func o (l,p) = DataEntry(l, p) | |
33 | + | ||
34 | + | ||
35 | + | func q (l,p) = DataEntry(l, p) | |
36 | + | ||
37 | + | ||
38 | + | func r (l) = getBinaryValue(this, l) | |
39 | + | ||
40 | + | ||
41 | + | func s (l) = if (if (if (isDefined(getBinary(this, l))) | |
42 | + | then true | |
43 | + | else isDefined(getString(this, l))) | |
44 | + | then true | |
45 | + | else isDefined(getBoolean(this, l))) | |
46 | + | then true | |
47 | + | else isDefined(getInteger(this, l)) | |
48 | + | ||
49 | + | ||
50 | + | func t (u) = (toBase58String(u) + "_SOLD") | |
51 | + | ||
52 | + | ||
53 | + | func v (u) = k(t(u), (extract(assetInfo(u)).quantity - assetBalance(this, u))) | |
54 | + | ||
55 | + | ||
56 | + | func w (u) = o(t(u), v(u)) | |
57 | + | ||
58 | + | ||
59 | + | func x (u) = (toBase58String(u) + "_BASE_PRICE") | |
60 | + | ||
61 | + | ||
62 | + | func y (z) = n(x(z)) | |
63 | + | ||
64 | + | ||
65 | + | func A (u) = (toBase58String(u) + "_OFF") | |
66 | + | ||
67 | + | ||
68 | + | func B (z) = o(A(z), 1) | |
69 | + | ||
70 | + | ||
71 | + | func C (z) = (k(A(z), 0) == 1) | |
72 | + | ||
73 | + | ||
74 | + | let D = "BALANCE_SNAPSHOT" | |
75 | + | ||
76 | + | func E () = k(D, wavesBalance(this)) | |
77 | + | ||
78 | + | ||
79 | + | func F () = o(D, E()) | |
80 | + | ||
81 | + | ||
82 | + | let G = "PRIZE_POOL" | |
83 | + | ||
84 | + | func H () = k(G, ((E() * (100 - b)) / 100)) | |
85 | + | ||
86 | + | ||
87 | + | func I () = o(G, H()) | |
88 | + | ||
89 | + | ||
90 | + | let J = "WINNER" | |
91 | + | ||
92 | + | func K () = r(J) | |
93 | + | ||
94 | + | ||
95 | + | func L (M) = q(J, M) | |
96 | + | ||
97 | + | ||
98 | + | let N = "TEAMS_LEFT" | |
99 | + | ||
100 | + | func O () = k(N, c) | |
101 | + | ||
102 | + | ||
103 | + | func P () = o(N, (O() - 1)) | |
104 | + | ||
105 | + | ||
106 | + | let Q = "TEAM_COUNTER" | |
107 | + | ||
108 | + | func R () = k(Q, 0) | |
109 | + | ||
110 | + | ||
111 | + | func S () = o(Q, (R() + 1)) | |
112 | + | ||
113 | + | ||
114 | + | let T = "BASE_PRIZE_POOL" | |
115 | + | ||
116 | + | func U () = k(T, 0) | |
117 | + | ||
118 | + | ||
119 | + | func V (p) = o(T, (U() + p)) | |
120 | + | ||
121 | + | ||
122 | + | let W = 1 | |
123 | + | ||
124 | + | let X = 2 | |
125 | + | ||
126 | + | let Y = 31 | |
127 | + | ||
128 | + | let Z = 32 | |
129 | + | ||
130 | + | let aa = 33 | |
131 | + | ||
132 | + | let ab = 4 | |
133 | + | ||
134 | + | let ac = "STAGE" | |
135 | + | ||
136 | + | func ad () = k(ac, W) | |
137 | + | ||
138 | + | ||
139 | + | func ae (ad) = o(ac, ad) | |
140 | + | ||
141 | + | ||
142 | + | @Callable(af) | |
143 | + | func stage2 () = if ((ad() != W)) | |
144 | + | then throw("Invalid current stage.") | |
145 | + | else if ((h >= height)) | |
146 | + | then throw("Event is not yet finished.") | |
147 | + | else WriteSet([ae(X), F()]) | |
148 | + | ||
149 | + | ||
150 | + | ||
151 | + | @Callable(af) | |
152 | + | func stage31 (M) = if ((ad() != X)) | |
153 | + | then throw("Invalid current stage.") | |
154 | + | else if ((af.callerPublicKey != f)) | |
155 | + | then throw("Only oracle could declare the winner.") | |
156 | + | else if (!(s(x(M)))) | |
157 | + | then throw("Team is not found.") | |
158 | + | else if (C(M)) | |
159 | + | then throw("Team that is off cannot be the winner.") | |
160 | + | else WriteSet([ae(Y), I(), L(M), w(M)]) | |
161 | + | ||
162 | + | ||
163 | + | ||
164 | + | @Callable(af) | |
165 | + | func stage32 (z) = if (if ((ad() != X)) | |
166 | + | then true | |
167 | + | else (ad() != Z)) | |
168 | + | then throw("Invalid current stage.") | |
169 | + | else if (((h + i) >= height)) | |
170 | + | then throw("Oracle is still have time to declare a winner.") | |
171 | + | else if (!(s(x(z)))) | |
172 | + | then throw("Team is not found.") | |
173 | + | else if (C(z)) | |
174 | + | then throw("Team that is off cannot participate in rollback.") | |
175 | + | else if (s(t(z))) | |
176 | + | then throw("Team sold amount already set.") | |
177 | + | else WriteSet([ae(Z), w(z), V((v(z) * y(z))), S()]) | |
178 | + | ||
179 | + | ||
180 | + | ||
181 | + | @Callable(af) | |
182 | + | func stage33 () = if ((ad() != Z)) | |
183 | + | then throw("Invalid current stage.") | |
184 | + | else if ((R() != O())) | |
185 | + | then throw("There are still teams without sold amount set.") | |
186 | + | else WriteSet([ae(aa)]) | |
187 | + | ||
188 | + | ||
189 | + | ||
190 | + | @Callable(af) | |
191 | + | func stage4 (ag) = if ((ad() != Y)) | |
192 | + | then throw("Invalid current stage.") | |
193 | + | else if ((((h + i) + j) >= height)) | |
194 | + | then throw("Payout is not yet finished.") | |
195 | + | else if ((af.callerPublicKey != d)) | |
196 | + | then throw("Only Liga could set the final stage and hold commission.") | |
197 | + | else ScriptResult(WriteSet([ae(ab)]), TransferSet([ScriptTransfer(addressFromPublicKey(ag), wavesBalance(this), unit)])) | |
198 | + | ||
199 | + | ||
200 | + | ||
201 | + | @Callable(af) | |
202 | + | func teamOff (z) = if ((ad() != W)) | |
203 | + | then throw("Invalid current stage.") | |
204 | + | else if ((af.callerPublicKey != f)) | |
205 | + | then throw("Only oracle could drop teams out off the game.") | |
206 | + | else if (!(s(x(z)))) | |
207 | + | then throw("Team is not found.") | |
208 | + | else if (C(z)) | |
209 | + | then throw("Team is already off") | |
210 | + | else if ((O() == 1)) | |
211 | + | then throw("There is only 1 team left.") | |
212 | + | else WriteSet([B(z), P()]) | |
213 | + | ||
214 | + | ||
215 | + | ||
216 | + | @Callable(af) | |
217 | + | func rollback () = if ((ad() != aa)) | |
218 | + | then throw("Invalid current stage.") | |
219 | + | else { | |
220 | + | let ah = extract(af.payment) | |
221 | + | let z = extract(ah.assetId) | |
222 | + | if (!(s(x(z)))) | |
223 | + | then throw("Team is not found.") | |
224 | + | else if (s(A(z))) | |
225 | + | then throw("You cannot receive rollback for an off team") | |
226 | + | else { | |
227 | + | let ai = v(z) | |
228 | + | let aj = (((E() * U()) * ah.amount) / ((y(z) * ai) * ai)) | |
229 | + | TransferSet([ScriptTransfer(af.caller, aj, unit)]) | |
230 | + | } | |
231 | + | } | |
232 | + | ||
233 | + | ||
234 | + | ||
235 | + | @Callable(af) | |
236 | + | func payout () = if ((ad() != Y)) | |
237 | + | then throw("Invalid current stage.") | |
238 | + | else { | |
239 | + | let ah = extract(af.payment) | |
240 | + | if ((ah.assetId != K())) | |
241 | + | then throw("You are allowed to get payout for the winner tokens only.") | |
242 | + | else { | |
243 | + | let ak = ((H() * ah.amount) / v(K())) | |
244 | + | TransferSet([ScriptTransfer(af.caller, ak, unit)]) | |
245 | + | } | |
246 | + | } | |
247 | + | ||
248 | + | ||
249 | + | @Verifier(al) | |
250 | + | func am () = { | |
251 | + | let an = al | |
252 | + | if ($isInstanceOf(an, "Order")) | |
253 | + | then { | |
254 | + | let ao = an | |
255 | + | sigVerify(ao.bodyBytes, ao.proofs[0], e) | |
256 | + | } | |
257 | + | else if ($isInstanceOf(an, "LeaseTransaction")) | |
258 | + | then { | |
259 | + | let ap = an | |
260 | + | if (if ((ad() == W)) | |
261 | + | then (ap.recipient == addressFromPublicKey(g)) | |
262 | + | else false) | |
263 | + | then (ap.amount > (100 * a)) | |
264 | + | else false | |
265 | + | } | |
266 | + | else if ($isInstanceOf(an, "LeaseCancelTransaction")) | |
267 | + | then { | |
268 | + | let aq = an | |
269 | + | (ad() != W) | |
270 | + | } | |
271 | + | else if ($isInstanceOf(an, "TransferTransaction")) | |
272 | + | then { | |
273 | + | let aq = an | |
274 | + | true | |
275 | + | } | |
276 | + | else false | |
277 | + | } | |
278 | + |
github/deemru/w8io/169f3d6 28.08 ms ◑