tx · CPHX19BH6pSacwrDaiubkjp9XR65DxudYJQrNWKXcPKt 3MxbbkRa5VF14vB5ZtTfTmhMjWmBpGn46tF: -0.01500000 Waves 2019.07.04 20:33 [571014] smart account 3MxbbkRa5VF14vB5ZtTfTmhMjWmBpGn46tF > SELF 0.00000000 Waves
{ "type": 13, "id": "CPHX19BH6pSacwrDaiubkjp9XR65DxudYJQrNWKXcPKt", "fee": 1500000, "feeAssetId": null, "timestamp": 1562261660024, "version": 1, "sender": "3MxbbkRa5VF14vB5ZtTfTmhMjWmBpGn46tF", "senderPublicKey": "Cbypqw9xC4dKPhUE9Mor41PKzgcxwcN9Uf4Y3P9EyCVe", "proofs": [ "5mZnpYgmDcv3EPqmAJse6Pn28ooGd5n8CKJQ2m9Aqwh3KRAU3R9quc8Ng5zuo9B1HxZRmbvAEJzPzKEgtroFy2fk" ], "script": "base64:AAIDAAAAAAAAAAAAAAAcAAAAAAlSU0FQVUJMSUMJAAJbAAAAAQIAAAGPYmFzZTY0Ok1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBcWxBaUFOU21CcERIWUtQOXNLZ2VOL2wxYkFiMjhnL3RHbGdEa3dUNUZpTU40WDNwd2R2ZHhFN212U1I4LzQxZFU5cng0akcrNnRacGIxVUxWRFBzNDMxdFIySVJhVFh3NUNqK0FjMnZoTCs1SmFtQ2VyR0QxVVcrYmgvRUdRdHhvOFczWUxEcm9mWEI1UUhKeDRQa3oyS2dmK29TL0M4aEh1Qi9VNGtyTzc2VTA1MDdHVGpaUFA5a1JRMHVMU01lcVFYdDh3WFMrbk1wNXdhanF4UHBETE1hU1JFZ3NLd3YvQUVrUDRkenBUWWJpa0xCWWw0cXRkSnNEODRITEZTa2l3ZDNCaGNPclBqb0lZbUx4UXVCRDVUSU1LVEtEM3NkWmdhWTlyc3lxeDNBMDBpbm55eEQ2enAzYjRnRnBVT1g4SnhLWmRFQzJteUVxbGVOZ2c3R3p3SURBUUFCAAA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AEZGF0YQAAAAAAAAAABQUAAAAQZGF0YUVudHJpZXNDb3VudAAAAAAAAAAABQcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAARzc3R4BQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAADdHR4BQAAAAckbWF0Y2gwBgdHbjfG", "chainId": 84, "height": 571014, "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 = sha256(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 = toString((aT - aW)) | |
261 | + | let aY = aU[2] | |
262 | + | WriteSet([DataEntry(J, y(n, A, aP, aQ, aL, aX, aY, aV))]) | |
263 | + | } | |
264 | + | } | |
265 | + | ||
266 | + | ||
267 | + | @Verifier(aZ) | |
268 | + | func ba () = { | |
269 | + | let aH = aZ | |
270 | + | if ($isInstanceOf(aH, "DataTransaction")) | |
271 | + | then { | |
272 | + | let bb = aH | |
273 | + | let bc = bb.data[0] | |
274 | + | let J = take(bc.key, i) | |
275 | + | let aN = I(J) | |
276 | + | let z = aN[0] | |
277 | + | let A = aN[1] | |
278 | + | let aR = fromBase58String(A) | |
279 | + | let aE = size(bb.data) | |
280 | + | if (if (if (if (if (if (if (if (if ((z == l)) | |
281 | + | then sigVerify(aZ.bodyBytes, aZ.proofs[0], aR) | |
282 | + | else false) | |
283 | + | then (aE > 0) | |
284 | + | else false) | |
285 | + | then (5 >= aE) | |
286 | + | else false) | |
287 | + | then aC(J, bc, aE, 0) | |
288 | + | else false) | |
289 | + | then aC(J, bb.data[1], aE, 1) | |
290 | + | else false) | |
291 | + | then aC(J, bb.data[2], aE, 2) | |
292 | + | else false) | |
293 | + | then aC(J, bb.data[3], aE, 3) | |
294 | + | else false) | |
295 | + | then aC(J, bb.data[4], aE, 4) | |
296 | + | else false) | |
297 | + | then aC(J, bb.data[5], aE, 5) | |
298 | + | else false | |
299 | + | } | |
300 | + | else if ($isInstanceOf(aH, "SetScriptTransaction")) | |
301 | + | then { | |
302 | + | let bd = aH | |
303 | + | true | |
304 | + | } | |
305 | + | else if ($isInstanceOf(aH, "TransferTransaction")) | |
306 | + | then { | |
307 | + | let be = aH | |
308 | + | true | |
309 | + | } | |
310 | + | else false | |
311 | + | } | |
312 | + |
github/deemru/w8io/169f3d6 28.53 ms ◑