tx · ExNyL3Zr8xAWERCbhpUiq7WksvzsZ3V6rxuR2F4RmgpH 3MvJDKBFzztnd7KCU78zgJ8qUuzVux4c9yw: -0.01000000 Waves 2022.10.23 14:32 [2284987] smart account 3MvJDKBFzztnd7KCU78zgJ8qUuzVux4c9yw > SELF 0.00000000 Waves
{ "type": 13, "id": "ExNyL3Zr8xAWERCbhpUiq7WksvzsZ3V6rxuR2F4RmgpH", "fee": 1000000, "feeAssetId": null, "timestamp": 1666524852334, "version": 2, "chainId": 84, "sender": "3MvJDKBFzztnd7KCU78zgJ8qUuzVux4c9yw", "senderPublicKey": "9gVuyFNzke49pnadJxJ312ZWhYudDhdcqP5hsm5pGQw6", "proofs": [ "tH6UQ9UTwADE17VrpM9FP2xtbbDp5PjXxicqab6DzgdRbwFLKuPNnRUJAGt6tqQxBdDftBogEBQh8mESTnC67Tq" ], "script": "base64:BgIyCAISAwoBCBIDCgEIEgYKBAgBAQgSBQoDCAEIEgUKAwgIARIAEgQKAggEEgQKAggEEgAtAAl1bmRlZmluZWQCCXVuZGVmaW5lZAAJc2VwYXJhdG9yAgE7ABBjb25maWdBZGRyZXNzS2V5AgZjb25maWcAE2NvbGxlY3RvckFkZHJlc3NLZXkCEWNvbGxlY3Rvcl9hZGRyZXNzABFoaXN0b3J5QWRkcmVzc0tleQIPaGlzdG9yeV9hZGRyZXNzABJwYXltYWtlckFkZHJlc3NLZXkCEHBheW1ha2VyX2FkZHJlc3MACWFkbWluc0tleQIGYWRtaW5zAA1jb25maWdBZGRyZXNzCQERQGV4dHJOYXRpdmUoMTA2MikBCQERQGV4dHJOYXRpdmUoMTA1MykCBQR0aGlzBRBjb25maWdBZGRyZXNzS2V5ABBjb2xsZWN0b3JBZGRyZXNzCQERQGV4dHJOYXRpdmUoMTA2MikBCQERQGV4dHJOYXRpdmUoMTA1MykCBQ1jb25maWdBZGRyZXNzBRNjb2xsZWN0b3JBZGRyZXNzS2V5AA5oaXN0b3J5QWRkcmVzcwkBEUBleHRyTmF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luaXNoZWRFdmVudAkAzAgCCQELU3RyaW5nRW50cnkCCQEPZ2V0UHJldkV2ZW50S2V5AQUSZmlyc3RGaW5pc2hlZEV2ZW50BQ9sYXN0QWN0aXZlRXZlbnQFA25pbAkAzAgCCQELU3RyaW5nRW50cnkCBQ1maXJzdEV2ZW50S2V5BQpmaXJzdEV2ZW50CQDMCAIJAQtTdHJpbmdFbnRyeQIFDGxhc3RFdmVudEtleQUJbGFzdEV2ZW50BQNuaWwAwt2ucw==", "height": 2284987, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HSuraZZehPmJxi7MVzuyvyJvuzjnteD67u56tSC5kFR3 Next: 62hNWXLTe1uXx2fyH8UUaPACY8Kw2GmLdrNecuuspgxk Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "undefined" | |
5 | 5 | ||
6 | 6 | let b = ";" | |
7 | 7 | ||
8 | 8 | let c = "config" | |
9 | 9 | ||
10 | 10 | let d = "collector_address" | |
11 | 11 | ||
12 | 12 | let e = "history_address" | |
13 | 13 | ||
14 | 14 | let f = "paymaker_address" | |
15 | 15 | ||
16 | 16 | let g = "admins" | |
17 | 17 | ||
18 | 18 | let h = addressFromStringValue(getStringValue(this, c)) | |
19 | 19 | ||
20 | 20 | let i = addressFromStringValue(getStringValue(h, d)) | |
21 | 21 | ||
22 | 22 | let j = addressFromStringValue(getStringValue(h, e)) | |
23 | 23 | ||
24 | 24 | let k = addressFromStringValue(getStringValue(h, f)) | |
25 | 25 | ||
26 | 26 | func l (m) = { | |
27 | 27 | let n = valueOrElse(getString(h, g), "") | |
28 | 28 | if (if ((m == this)) | |
29 | 29 | then true | |
30 | 30 | else contains(n, toString(m))) | |
31 | 31 | then true | |
32 | 32 | else false | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func o (p) = ("checker_" + p) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func q (p) = { | |
40 | 40 | let r = isDefined(getBoolean(h, o(p))) | |
41 | 41 | r | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | let s = base58'2eFPx8M5qwNFRbW91pzsyBKMz1FZmYMUW3BVZzTQmbFD' | |
46 | 46 | ||
47 | 47 | let t = 10000000 | |
48 | 48 | ||
49 | 49 | let u = 5 | |
50 | 50 | ||
51 | 51 | let v = 100 | |
52 | 52 | ||
53 | 53 | let w = 3 | |
54 | 54 | ||
55 | 55 | let x = "first_event" | |
56 | 56 | ||
57 | 57 | let y = "last_event" | |
58 | 58 | ||
59 | 59 | let z = "first_finished_event" | |
60 | 60 | ||
61 | 61 | let A = "last_finished_event" | |
62 | 62 | ||
63 | 63 | let B = "first_active_event" | |
64 | 64 | ||
65 | 65 | let C = "last_active_event" | |
66 | 66 | ||
67 | 67 | func D (E) = (E + "_start_block") | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func F (E) = (E + "_end_block") | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func G (E) = (E + "_finish_at_block") | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func H (E) = (E + "_id") | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func I (E) = (E + "_status") | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func J (E) = (E + "_description") | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func K (E) = (E + "_prev_event") | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func L (E) = (E + "_next_event") | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func M (E) = (E + "_asset_id") | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func N (E) = (E + "_total_amount") | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func O (E) = (E + "_prices_group_count") | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func P (E) = (E + "_prices_list_count") | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func Q (E,R) = ((E + "_prices_list_") + toString(R)) | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func S (E,T) = (((E + "_") + toString(T)) + "_bets_count") | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func U (E,V) = (((E + "_") + V) + "_price") | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func W (X) = { | |
113 | 113 | let Y = X | |
114 | 114 | if ($isInstanceOf(Y, "Int")) | |
115 | 115 | then { | |
116 | 116 | let Z = Y | |
117 | 117 | Z | |
118 | 118 | } | |
119 | 119 | else { | |
120 | 120 | let aa = Y | |
121 | 121 | throw("#err") | |
122 | 122 | } | |
123 | 123 | } | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func ab (X) = { | |
127 | 127 | let Y = X | |
128 | 128 | if ($isInstanceOf(Y, "String")) | |
129 | 129 | then { | |
130 | 130 | let Z = Y | |
131 | 131 | Z | |
132 | 132 | } | |
133 | 133 | else throw("#err") | |
134 | 134 | } | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func ac (ad) = { | |
138 | 138 | let ae = fromBase58String(ad) | |
139 | 139 | let Z = { | |
140 | 140 | let Y = assetInfo(ae) | |
141 | 141 | if ($isInstanceOf(Y, "Asset")) | |
142 | 142 | then { | |
143 | 143 | let af = Y | |
144 | 144 | $Tuple2(ad, af.decimals) | |
145 | 145 | } | |
146 | 146 | else $Tuple2("WAVES", 0) | |
147 | 147 | } | |
148 | 148 | Z | |
149 | 149 | } | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func ag (E) = { | |
153 | 153 | let ah = getStringValue(this, I(E)) | |
154 | 154 | if (if (if ((ah == "finished")) | |
155 | 155 | then true | |
156 | 156 | else (ah == "#")) | |
157 | 157 | then true | |
158 | 158 | else (ah == "ended")) | |
159 | 159 | then ah | |
160 | 160 | else { | |
161 | 161 | let ai = getIntegerValue(this, G(E)) | |
162 | 162 | let aj = getIntegerValue(this, D(E)) | |
163 | 163 | let ak = getIntegerValue(this, F(E)) | |
164 | 164 | if ((aj > height)) | |
165 | 165 | then "awaiting" | |
166 | 166 | else if (if ((height >= aj)) | |
167 | 167 | then (ak >= height) | |
168 | 168 | else false) | |
169 | 169 | then "active" | |
170 | 170 | else if (if ((height > ak)) | |
171 | 171 | then (ai >= height) | |
172 | 172 | else false) | |
173 | 173 | then "confirmation" | |
174 | 174 | else if ((height > ai)) | |
175 | 175 | then "finished" | |
176 | 176 | else throw("unknown status") | |
177 | 177 | } | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func al (am,an,aj,ak,ai,ad) = { | |
182 | 182 | let E = am | |
183 | 183 | let ao = invoke(this, "insertToList", [E, true], nil) | |
184 | 184 | if ((ao == ao)) | |
185 | 185 | then { | |
186 | 186 | let ap = invoke(this, "concatLists", nil, nil) | |
187 | 187 | if ((ap == ap)) | |
188 | 188 | then { | |
189 | 189 | let aq = ac(ad) | |
190 | 190 | let ae = aq._1 | |
191 | 191 | let ar = aq._2 | |
192 | 192 | [IntegerEntry(D(E), aj), IntegerEntry(F(E), ak), IntegerEntry(G(E), ai), StringEntry(J(E), an), StringEntry(I(E), "new"), StringEntry(H(E), E), StringEntry(M(E), ae)] | |
193 | 193 | } | |
194 | 194 | else throw("Strict value is not equal to itself.") | |
195 | 195 | } | |
196 | 196 | else throw("Strict value is not equal to itself.") | |
197 | 197 | } | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | @Callable(as) | |
201 | 201 | func init (at) = if ((as.caller != this)) | |
202 | 202 | then throw("only main can do") | |
203 | 203 | else { | |
204 | 204 | let r = isDefined(getString(this, c)) | |
205 | 205 | if (!(r)) | |
206 | 206 | then [StringEntry(c, at)] | |
207 | 207 | else throw("already inited") | |
208 | 208 | } | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | ||
212 | 212 | @Callable(as) | |
213 | 213 | func appendEventer (an) = if (!(l(as.caller))) | |
214 | 214 | then throw("only admin can do") | |
215 | 215 | else { | |
216 | 216 | let au = invoke(h, "setEventer", [toString(this), an], nil) | |
217 | 217 | if ((au == au)) | |
218 | 218 | then nil | |
219 | 219 | else throw("Strict value is not equal to itself.") | |
220 | 220 | } | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | ||
224 | 224 | @Callable(as) | |
225 | 225 | func fullRegisterEvent (an,aj,av,ad) = { | |
226 | 226 | let aw = if ((aj == 0)) | |
227 | 227 | then height | |
228 | 228 | else aj | |
229 | 229 | let ak = (aw + av) | |
230 | 230 | let ai = (ak + 1440) | |
231 | 231 | if (!(l(as.caller))) | |
232 | 232 | then throw("only admin can do") | |
233 | 233 | else { | |
234 | 234 | let am = toBase58String(as.transactionId) | |
235 | 235 | al(am, an, aw, ak, ai, ad) | |
236 | 236 | } | |
237 | 237 | } | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | ||
241 | 241 | @Callable(as) | |
242 | 242 | func choice (E,T,V) = { | |
243 | 243 | let ah = ag(E) | |
244 | 244 | if ((ah == "active")) | |
245 | 245 | then { | |
246 | 246 | let ax = 10000000 | |
247 | 247 | let ay = s | |
248 | 248 | if (if (if ((size(as.payments) == 1)) | |
249 | 249 | then (as.payments[0].assetId == ay) | |
250 | 250 | else false) | |
251 | 251 | then (as.payments[0].amount == ax) | |
252 | 252 | else false) | |
253 | 253 | then { | |
254 | 254 | let az = invoke(this, "appendBetsList", [E, V, T], nil) | |
255 | 255 | if ((az == az)) | |
256 | 256 | then { | |
257 | 257 | let aA = valueOrElse(getInteger(this, N(E)), 0) | |
258 | 258 | [IntegerEntry(N(E), (aA + as.payments[0].amount))] | |
259 | 259 | } | |
260 | 260 | else throw("Strict value is not equal to itself.") | |
261 | 261 | } | |
262 | 262 | else throw("Bad payment") | |
263 | 263 | } | |
264 | 264 | else throw("You can`t do it") | |
265 | 265 | } | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | ||
269 | 269 | @Callable(as) | |
270 | 270 | func appendBetsList (E,aB,T) = if ((as.caller != this)) | |
271 | 271 | then throw("only main can do") | |
272 | 272 | else if (isDefined(getString(this, U(E, aB)))) | |
273 | 273 | then throw("betting from this address is exists") | |
274 | 274 | else { | |
275 | 275 | let aC = valueOrElse(getInteger(this, S(E, T)), 0) | |
276 | 276 | if ((aC >= w)) | |
277 | 277 | then throw("to many bets") | |
278 | 278 | else { | |
279 | 279 | let aD = valueOrElse(getInteger(this, P(E)), 1) | |
280 | 280 | let aE = valueOrElse(getString(this, Q(E, aD)), "") | |
281 | 281 | let aF = split_4C(aE, b) | |
282 | 282 | let aG = size(aF) | |
283 | 283 | let aH = if ((aC == 0)) | |
284 | 284 | then if ((100 > aG)) | |
285 | 285 | then if ((size(aE) == 0)) | |
286 | 286 | then toString(T) | |
287 | 287 | else ((aE + b) + toString(T)) | |
288 | 288 | else toString(T) | |
289 | 289 | else aE | |
290 | 290 | let aI = if (if ((aG >= 100)) | |
291 | 291 | then (aC == 0) | |
292 | 292 | else false) | |
293 | 293 | then (aD + 1) | |
294 | 294 | else aD | |
295 | 295 | let aJ = (((aI - 1) / 10) + 1) | |
296 | 296 | [IntegerEntry(U(E, aB), T), IntegerEntry(P(E), aI), IntegerEntry(O(E), aJ), IntegerEntry(S(E, T), (aC + 1)), StringEntry(Q(E, aI), aH)] | |
297 | 297 | } | |
298 | 298 | } | |
299 | 299 | ||
300 | 300 | ||
301 | 301 | ||
302 | 302 | @Callable(as) | |
303 | 303 | func resetList () = if (!(l(as.caller))) | |
304 | 304 | then throw("only admin can do") | |
305 | 305 | else [StringEntry(x, a), StringEntry(y, a), StringEntry(B, a), StringEntry(C, a), StringEntry(z, a), StringEntry(A, a)] | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | ||
309 | 309 | @Callable(as) | |
310 | 310 | func insertToList (E,aK) = if ((this != as.caller)) | |
311 | 311 | then throw("only main can do") | |
312 | 312 | else { | |
313 | 313 | let aL = if (aK) | |
314 | 314 | then C | |
315 | 315 | else A | |
316 | 316 | let aM = if (aK) | |
317 | 317 | then B | |
318 | 318 | else z | |
319 | 319 | let aN = valueOrElse(getString(this, aM), a) | |
320 | 320 | let aO = valueOrElse(getString(this, aL), a) | |
321 | 321 | let aP = if ((aO == a)) | |
322 | 322 | then aL | |
323 | 323 | else K(aN) | |
324 | 324 | [StringEntry(aM, E), StringEntry(aP, E), StringEntry(L(E), aN)] | |
325 | 325 | } | |
326 | 326 | ||
327 | 327 | ||
328 | 328 | ||
329 | 329 | @Callable(as) | |
330 | 330 | func deleteFromList (E,aK) = if ((this != as.caller)) | |
331 | 331 | then throw("only main can do") | |
332 | 332 | else { | |
333 | 333 | let aL = if (aK) | |
334 | 334 | then C | |
335 | 335 | else A | |
336 | 336 | let aM = if (aK) | |
337 | 337 | then B | |
338 | 338 | else z | |
339 | 339 | let aN = valueOrElse(getString(this, aM), a) | |
340 | 340 | let aO = valueOrElse(getString(this, aL), a) | |
341 | 341 | let aQ = valueOrElse(getString(this, K(E)), a) | |
342 | 342 | let aR = valueOrElse(getString(this, L(E)), a) | |
343 | 343 | let aS = if ((E == aN)) | |
344 | 344 | then a | |
345 | 345 | else aQ | |
346 | 346 | let aT = if ((E == aO)) | |
347 | 347 | then a | |
348 | 348 | else aR | |
349 | 349 | if (if ((aS == a)) | |
350 | 350 | then (aT == a) | |
351 | 351 | else false) | |
352 | 352 | then [StringEntry(aM, a), StringEntry(aL, a)] | |
353 | 353 | else if (if ((aS != a)) | |
354 | 354 | then (aT != a) | |
355 | 355 | else false) | |
356 | 356 | then [StringEntry(K(aT), aS), StringEntry(L(aS), aT)] | |
357 | 357 | else if ((aS != a)) | |
358 | 358 | then [StringEntry(aL, aS), StringEntry(L(aS), a)] | |
359 | 359 | else [StringEntry(aM, aT), StringEntry(K(aT), a)] | |
360 | 360 | } | |
361 | 361 | ||
362 | 362 | ||
363 | 363 | ||
364 | 364 | @Callable(as) | |
365 | 365 | func concatLists () = if (!(l(as.caller))) | |
366 | 366 | then throw("only admin can do") | |
367 | 367 | else { | |
368 | 368 | let aU = valueOrElse(getString(this, B), a) | |
369 | 369 | let aV = valueOrElse(getString(this, C), a) | |
370 | 370 | let aW = valueOrElse(getString(this, z), a) | |
371 | 371 | let aX = valueOrElse(getString(this, A), a) | |
372 | 372 | let aN = if ((aU != a)) | |
373 | 373 | then aU | |
374 | 374 | else aW | |
375 | 375 | let aO = if ((aX != a)) | |
376 | 376 | then aX | |
377 | 377 | else aV | |
378 | 378 | if (if ((aW != a)) | |
379 | 379 | then (aV != a) | |
380 | 380 | else false) | |
381 | 381 | then [StringEntry(x, aN), StringEntry(y, aO), StringEntry(L(aV), aW), StringEntry(K(aW), aV)] | |
382 | 382 | else [StringEntry(x, aN), StringEntry(y, aO)] | |
383 | 383 | } | |
384 | 384 | ||
385 | 385 |
github/deemru/w8io/fabc49c 40.55 ms ◑