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