tx · 4RHX2RQ3TufUAWaBLFJcaTJZ5kBdpDxZfHCFuKkdmbi7 3N4g7H9nnQiD6HynbEKfQzYmFaxjNRrcdmu: -0.01500000 Waves 2019.07.04 21:10 [571057] smart account 3N4g7H9nnQiD6HynbEKfQzYmFaxjNRrcdmu > SELF 0.00000000 Waves
{ "type": 13, "id": "4RHX2RQ3TufUAWaBLFJcaTJZ5kBdpDxZfHCFuKkdmbi7", "fee": 1500000, "feeAssetId": null, "timestamp": 1562263866946, "version": 1, "sender": "3N4g7H9nnQiD6HynbEKfQzYmFaxjNRrcdmu", "senderPublicKey": "FdQ91MER6ypN6MSw3mR3BYXqSzzVg1pnKyNKPj2BgoPN", "proofs": [ "3MkCPkAysU6cZEft4ZwyuX1KSF6s4NRKobms2ER37H41ix8bscMQ4BkSqNE29XAYswgvksKCxBTMMn7Pc1s1GtYz" ], "script": "base64:AAIDAAAAAAAAAAAAAAAcAAAAAAlSU0FQVUJMSUMJAAJbAAAAAQIAAAGPYmFzZTY0Ok1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBcWxBaUFOU21CcERIWUtQOXNLZ2VOL2wxYkFiMjhnL3RHbGdEa3dUNUZpTU40WDNwd2R2ZHhFN212U1I4LzQxZFU5cng0akcrNnRacGIxVUxWRFBzNDMxdFIySVJhVFh3NUNqK0FjMnZoTCs1SmFtQ2VyR0QxVVcrYmgvRUdRdHhvOFczWUxEcm9mWEI1UUhKeDRQa3oyS2dmK29TL0M4aEh1Qi9VNGtyTzc2VTA1MDdHVGpaUFA5a1JRMHVMU01lcVFYdDh3WFMrbk1wNXdhanF4UHBETE1hU1JFZ3NLd3YvQUVrUDRkenBUWWJpa0xCWWw0cXRkSnNEODRITEZTa2l3ZDNCaGNPclBqb0lZbUx4UXVCRDVUSU1LVEtEM3NkWmdhWTlyc3lxeDNBMDBpbm55eEQ2enAzYjRnRnBVT1g4SnhLWmRFQzJteUVxbGVOZ2c3R3p3SURBUUF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AAAAAAAADBwkBAAAADnZhbGlkYXRlRHR4S2V5AAAABAUAAAAJc2Vzc2lvbklkCQABkQAAAAIIBQAAAANkdHgAAAAEZGF0YQAAAAAAAAAABAUAAAAQZGF0YUVudHJpZXNDb3VudAAAAAAAAAAABAcJAQAAAA52YWxpZGF0ZUR0eEtleQAAAAQFAAAACXNlc3Npb25JZAkAAZEAAAACCAUAAAADZHR4AAAABGRhdGEAAAAAAAAAAAUFAAAAEGRhdGFFbnRyaWVzQ291bnQAAAAAAAAAAAUHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAAEc3N0eAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAA3R0eAUAAAAHJG1hdGNoMAYHdvnuWw==", "chainId": 84, "height": 571057, "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 = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqlAiANSmBpDHYKP9sKgeN/l1bAb28g/tGlgDkwT5FiMN4X3pwdvdxE7mvSR8/41dU9rx4jG+6tZpb1ULVDPs431tR2IRaTXw5Cj+Ac2vhL+5JamCerGD1UW+bh/EGQtxo8W3YLDrofXB5QHJx4Pkz2Kgf+oS/C8hHuB/U4krO76U0507GTjZPP9kRQ0uLSMeqQXt8wXS+nMp5wajqxPpDLMaSREgsKwv/AEkP4dzpTYbikLBYl4qtdJsD84HLFSkiwd3BhcOrPjoIYmLxQuBD5TIMKTKD3sdZgaY9rsyqx3A00innyxD6zp3b4gFpUOX8JxKZdEC2myEqleNgg7GzwIDAQAB") | |
5 | + | ||
6 | + | let b = addressFromStringValue("3NCiG28LmWyTigWG13E5QnvdHBsZFYXSS2j") | |
7 | + | ||
8 | + | let c = ((100 * 1000) * 1000) | |
9 | + | ||
10 | + | let d = "" | |
11 | + | ||
12 | + | let e = "0" | |
13 | + | ||
14 | + | let f = toBytes(d) | |
15 | + | ||
16 | + | let g = "_" | |
17 | + | ||
18 | + | let h = "-" | |
19 | + | ||
20 | + | let i = 50 | |
21 | + | ||
22 | + | let j = ((5 * c) / 1000) | |
23 | + | ||
24 | + | let k = 14 | |
25 | + | ||
26 | + | let l = "INIT" | |
27 | + | ||
28 | + | let m = "READY" | |
29 | + | ||
30 | + | let n = "FINISHED" | |
31 | + | ||
32 | + | let o = 0 | |
33 | + | ||
34 | + | let p = 1 | |
35 | + | ||
36 | + | let q = 2 | |
37 | + | ||
38 | + | let r = 3 | |
39 | + | ||
40 | + | let s = 4 | |
41 | + | ||
42 | + | let t = 5 | |
43 | + | ||
44 | + | let u = 6 | |
45 | + | ||
46 | + | let v = 7 | |
47 | + | ||
48 | + | func w (x) = if ((0 > x)) | |
49 | + | then -(x) | |
50 | + | else x | |
51 | + | ||
52 | + | ||
53 | + | func y (z,A,B,C,D,E,F,G) = { | |
54 | + | let H = ((((((((((((z + g) + A) + g) + B) + g) + C) + g) + D) + g) + E) + g) + F) | |
55 | + | if ((G == d)) | |
56 | + | then ((H + g) + h) | |
57 | + | else ((H + g) + G) | |
58 | + | } | |
59 | + | ||
60 | + | ||
61 | + | func I (J) = { | |
62 | + | let K = getStringValue(this, J) | |
63 | + | split(K, g) | |
64 | + | } | |
65 | + | ||
66 | + | ||
67 | + | func L (M,N,O,P) = { | |
68 | + | let Q = ((w(toInt(P)) % M) + N) | |
69 | + | let R = toString(Q) | |
70 | + | let S = isDefined(indexOf(O, R)) | |
71 | + | if (!(S)) | |
72 | + | then [((O + h) + R), "yes"] | |
73 | + | else [O, d] | |
74 | + | } | |
75 | + | ||
76 | + | ||
77 | + | func T (J,U,V,W,O,E,X) = { | |
78 | + | let Y = W | |
79 | + | let M = ((V - U) + 1) | |
80 | + | let Z = L(M, U, O, drop(Y, (X + 1))) | |
81 | + | let aa = L(M, U, Z[0], drop(Y, (X + 2))) | |
82 | + | let ab = L(M, U, aa[0], drop(Y, (X + 3))) | |
83 | + | let ac = L(M, U, ab[0], drop(Y, (X + 4))) | |
84 | + | let ad = L(M, U, ac[0], drop(Y, (X + 5))) | |
85 | + | let ae = L(M, U, ad[0], drop(Y, (X + 6))) | |
86 | + | let af = L(M, U, ae[0], drop(Y, (X + 7))) | |
87 | + | let ag = L(M, U, af[0], drop(Y, (X + 8))) | |
88 | + | let ah = L(M, U, ag[0], drop(Y, (X + 9))) | |
89 | + | let ai = L(M, U, ah[0], drop(Y, (X + 10))) | |
90 | + | let aj = L(M, U, ai[0], drop(Y, (X + 11))) | |
91 | + | let ak = L(M, U, aj[0], drop(Y, (X + 12))) | |
92 | + | let al = L(M, U, ak[0], drop(Y, (X + 13))) | |
93 | + | let am = L(M, U, al[0], drop(Y, (X + 14))) | |
94 | + | let an = 0 | |
95 | + | let ao = if (if ((Z[1] != d)) | |
96 | + | then ((E - an) >= 0) | |
97 | + | else false) | |
98 | + | then (an + 1) | |
99 | + | else an | |
100 | + | let ap = if (if ((aa[1] != d)) | |
101 | + | then ((E - ao) >= 0) | |
102 | + | else false) | |
103 | + | then (ao + 1) | |
104 | + | else ao | |
105 | + | let aq = if (if ((ab[1] != d)) | |
106 | + | then ((E - ap) >= 0) | |
107 | + | else false) | |
108 | + | then (ap + 1) | |
109 | + | else ap | |
110 | + | let ar = if (if ((ac[1] != d)) | |
111 | + | then ((E - aq) >= 0) | |
112 | + | else false) | |
113 | + | then (aq + 1) | |
114 | + | else aq | |
115 | + | let as = if (if ((ad[1] != d)) | |
116 | + | then ((E - ar) >= 0) | |
117 | + | else false) | |
118 | + | then (ar + 1) | |
119 | + | else ar | |
120 | + | let at = if (if ((ae[1] != d)) | |
121 | + | then ((E - as) >= 0) | |
122 | + | else false) | |
123 | + | then (as + 1) | |
124 | + | else as | |
125 | + | let au = if (if ((af[1] != d)) | |
126 | + | then ((E - at) >= 0) | |
127 | + | else false) | |
128 | + | then (at + 1) | |
129 | + | else at | |
130 | + | let av = if (if ((ag[1] != d)) | |
131 | + | then ((E - au) >= 0) | |
132 | + | else false) | |
133 | + | then (au + 1) | |
134 | + | else au | |
135 | + | let aw = if (if ((ah[1] != d)) | |
136 | + | then ((E - av) >= 0) | |
137 | + | else false) | |
138 | + | then (av + 1) | |
139 | + | else av | |
140 | + | let ax = if (if ((ai[1] != d)) | |
141 | + | then ((E - aw) >= 0) | |
142 | + | else false) | |
143 | + | then (aw + 1) | |
144 | + | else aw | |
145 | + | let ay = if (if ((aj[1] != d)) | |
146 | + | then ((E - ax) >= 0) | |
147 | + | else false) | |
148 | + | then (ax + 1) | |
149 | + | else ax | |
150 | + | let az = if (if ((ak[1] != d)) | |
151 | + | then ((E - ay) >= 0) | |
152 | + | else false) | |
153 | + | then (ay + 1) | |
154 | + | else ay | |
155 | + | let aA = if (if ((al[1] != d)) | |
156 | + | then ((E - az) >= 0) | |
157 | + | else false) | |
158 | + | then (az + 1) | |
159 | + | else az | |
160 | + | let aB = if (if ((am[1] != d)) | |
161 | + | then ((E - aA) >= 0) | |
162 | + | else false) | |
163 | + | then (aA + 1) | |
164 | + | else aA | |
165 | + | [am[0], toString(aB), toString((X + 14))] | |
166 | + | } | |
167 | + | ||
168 | + | ||
169 | + | func aC (J,aD,aE,aF) = { | |
170 | + | let aG = take(aD.key, i) | |
171 | + | if ((aF >= aE)) | |
172 | + | then true | |
173 | + | else if (if (if ((J == aG)) | |
174 | + | then (size(aD.key) > i) | |
175 | + | else false) | |
176 | + | then !(isDefined(getString(this, aD.key))) | |
177 | + | else false) | |
178 | + | then { | |
179 | + | let aH = aD.value | |
180 | + | if ($isInstanceOf(aH, "String")) | |
181 | + | then { | |
182 | + | let aI = aH | |
183 | + | true | |
184 | + | } | |
185 | + | else throw((J + " draw: only String type is accepted for data transactions")) | |
186 | + | } | |
187 | + | else false | |
188 | + | } | |
189 | + | ||
190 | + | ||
191 | + | @Callable(aJ) | |
192 | + | func initDraw (J,B,C,D) = { | |
193 | + | let aK = (size(fromBase58String(J)) > 0) | |
194 | + | if ((size(J) != i)) | |
195 | + | then throw("Draw Id must be exactly 50 simbols") | |
196 | + | else if (!(aK)) | |
197 | + | then throw("Draw id must be in Base58 format") | |
198 | + | else if (if ((0 >= B)) | |
199 | + | then true | |
200 | + | else (0 >= C)) | |
201 | + | then throw("randFrom and randTo must be greater than 0") | |
202 | + | else if ((B >= C)) | |
203 | + | then throw("randFrom must be strict less then randTo") | |
204 | + | else if ((D > ((C - B) + 1))) | |
205 | + | then throw(((((("Impossible to generate " + toString(D)) + " for provided random range - from ") + toString(B)) + " to ") + toString(C))) | |
206 | + | else { | |
207 | + | let A = toBase58String(aJ.callerPublicKey) | |
208 | + | let aL = toString(D) | |
209 | + | let aM = y(l, A, toString(B), toString(C), aL, aL, e, d) | |
210 | + | ScriptResult(WriteSet([DataEntry(J, aM)]), TransferSet([ScriptTransfer(b, 1000, unit)])) | |
211 | + | } | |
212 | + | } | |
213 | + | ||
214 | + | ||
215 | + | ||
216 | + | @Callable(aJ) | |
217 | + | func ready (J) = { | |
218 | + | let aN = I(J) | |
219 | + | let z = aN[o] | |
220 | + | let A = aN[p] | |
221 | + | let aL = aN[s] | |
222 | + | let aO = aN[t] | |
223 | + | let aP = aN[q] | |
224 | + | let aQ = aN[r] | |
225 | + | let aR = fromBase58String(A) | |
226 | + | if ((z != l)) | |
227 | + | then throw((J + " draw: moving into READY state is allowed only from INIT state")) | |
228 | + | else if ((aR != aJ.callerPublicKey)) | |
229 | + | then throw((J + "draw: moving into READY state is allowed for organizer only")) | |
230 | + | else { | |
231 | + | let aS = y(m, A, aP, aQ, aL, aO, e, d) | |
232 | + | WriteSet([DataEntry(J, aS)]) | |
233 | + | } | |
234 | + | } | |
235 | + | ||
236 | + | ||
237 | + | ||
238 | + | @Callable(aJ) | |
239 | + | func random (J,W) = { | |
240 | + | let aN = I(J) | |
241 | + | let z = aN[o] | |
242 | + | let A = aN[p] | |
243 | + | let aL = aN[s] | |
244 | + | let aT = parseIntValue(aN[t]) | |
245 | + | let X = parseIntValue(aN[u]) | |
246 | + | let O = aN[v] | |
247 | + | let aP = aN[q] | |
248 | + | let aQ = aN[r] | |
249 | + | let U = parseIntValue(aP) | |
250 | + | let V = parseIntValue(aQ) | |
251 | + | let aR = fromBase58String(A) | |
252 | + | if ((z != m)) | |
253 | + | then throw((J + " draw: it must be in READY state to generate random numbers")) | |
254 | + | else if (!(rsaVerify(SHA256, toBytes(J), W, a))) | |
255 | + | then throw("Invalid RSA signature") | |
256 | + | else { | |
257 | + | let aU = T(J, U, V, W, O, aT, X) | |
258 | + | let aV = aU[0] | |
259 | + | let aW = parseIntValue(aU[1]) | |
260 | + | let aX = aU[2] | |
261 | + | let aY = (aT - aW) | |
262 | + | let aZ = if ((aY > 0)) | |
263 | + | then toString(aY) | |
264 | + | else "0" | |
265 | + | let ba = if ((aY > 0)) | |
266 | + | then m | |
267 | + | else n | |
268 | + | WriteSet([DataEntry(J, y(ba, A, aP, aQ, aL, aZ, aX, aV))]) | |
269 | + | } | |
270 | + | } | |
271 | + | ||
272 | + | ||
273 | + | @Verifier(bb) | |
274 | + | func bc () = { | |
275 | + | let aH = bb | |
276 | + | if ($isInstanceOf(aH, "DataTransaction")) | |
277 | + | then { | |
278 | + | let bd = aH | |
279 | + | let be = bd.data[0] | |
280 | + | let J = take(be.key, i) | |
281 | + | let aN = I(J) | |
282 | + | let z = aN[0] | |
283 | + | let A = aN[1] | |
284 | + | let aR = fromBase58String(A) | |
285 | + | let aE = size(bd.data) | |
286 | + | if (if (if (if (if (if (if (if (if ((z == l)) | |
287 | + | then sigVerify(bb.bodyBytes, bb.proofs[0], aR) | |
288 | + | else false) | |
289 | + | then (aE > 0) | |
290 | + | else false) | |
291 | + | then (5 >= aE) | |
292 | + | else false) | |
293 | + | then aC(J, be, aE, 0) | |
294 | + | else false) | |
295 | + | then aC(J, bd.data[1], aE, 1) | |
296 | + | else false) | |
297 | + | then aC(J, bd.data[2], aE, 2) | |
298 | + | else false) | |
299 | + | then aC(J, bd.data[3], aE, 3) | |
300 | + | else false) | |
301 | + | then aC(J, bd.data[4], aE, 4) | |
302 | + | else false) | |
303 | + | then aC(J, bd.data[5], aE, 5) | |
304 | + | else false | |
305 | + | } | |
306 | + | else if ($isInstanceOf(aH, "SetScriptTransaction")) | |
307 | + | then { | |
308 | + | let bf = aH | |
309 | + | true | |
310 | + | } | |
311 | + | else if ($isInstanceOf(aH, "TransferTransaction")) | |
312 | + | then { | |
313 | + | let bg = aH | |
314 | + | true | |
315 | + | } | |
316 | + | else false | |
317 | + | } | |
318 | + |
github/deemru/w8io/169f3d6 28.79 ms ◑