tx · BhwyR6Lt6r2hK1KaUiyLhvcuykF7kfxmUrhPQWuttXZM 3N54JoRXk5QW3xx9xDpxUpUkoDzriibARu1: -0.01400000 Waves 2021.02.09 16:59 [1390746] smart account 3N54JoRXk5QW3xx9xDpxUpUkoDzriibARu1 > SELF 0.00000000 Waves
{ "type": 13, "id": "BhwyR6Lt6r2hK1KaUiyLhvcuykF7kfxmUrhPQWuttXZM", "fee": 1400000, "feeAssetId": null, "timestamp": 1612879272589, "version": 2, "chainId": 84, "sender": "3N54JoRXk5QW3xx9xDpxUpUkoDzriibARu1", "senderPublicKey": "4ZSmQKKSEVi7FUZVartg8PJgDtovcTaKW3HWpdXKkjx2", "proofs": [ "2NssP74q3WRCZvbqtMi1wwCRKvYdhT7vANuAJ26fgeAct4QFLsH423n8pAZfMWnsAeKs4JeCWCsAWtvh45ryyEfs" ], "script": "base64:AAIDAAAAAAAAAA0IARIHCgUBAQEBCBIAAAAAEAAAAAANbG90dGVyeWFtb3VudAIAAAAHX2Ftb3VudAAAAAASbG90dGVyeXByb2JhYmlsaXR5AgAAAAxfcHJvYmFiaWxpdHkAAAAAGWxvdHRlcnlwcm9iYWJpbGl0eWRlY2ltYWwCAAAAFF9wcm9iYWJpbGl0eV9kZWNpbWFsAAAAAAxsb3R0ZXJ5UHJpY2UCAAAABl9wcmljZQAAAAANbG90dGVyeVByaWNlcwIAAAAPX2xvdHRlcnlfcHJpY2VzAAAAAA5sb3R0ZXJ5QXNzZXRJZAIAAAARX2xvdHRlcnlfYXNzZXRfaWQAAAAADWNvdW50T2ZQcmljZXMCAAAADV9jb3VudF9wcmljZXMAAAAAFGxhc3RIYXNoUmFuZG9tTnVtYmVyAgAAABVsYXN0X3NwaW5fcmFuZG9tX2hhc2gAAAAAE2xhc3RUb2tlblJhbmRvbUhhc2gCAAAAFmxhc3RfdG9rZW5fcmFuZG9tX2hhc2gAAAAACmRBcHBBZGRyZXMCAAAALDNCS0ZRTGVvNUV4WjVZMXB0OUZ0enNubzdhUn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AAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmO995B", "height": 1390746, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 31bjaN1YfGZPDNYwMk5LS453WySmxRiNfZFT9TirEvzp Next: none Diff:
Old | New | Differences | |
---|---|---|---|
73 | 73 | } | |
74 | 74 | ||
75 | 75 | ||
76 | - | func B (C,y) = if (isDefined(y)) | |
76 | + | func B (C,y) = if (if (isDefined(y)) | |
77 | + | then true | |
78 | + | else (y != "")) | |
77 | 79 | then { | |
78 | 80 | let D = getIntegerValue(this, (y + b)) | |
79 | 81 | let E = getIntegerValue(this, (y + c)) | |
272 | 274 | } | |
273 | 275 | } | |
274 | 276 | let as = size(ai) | |
275 | - | if ((as == | |
277 | + | if ((as == 1)) | |
276 | 278 | then { | |
277 | 279 | let at = WriteSet(nil) | |
278 | 280 | ScriptResult(at, TransferSet(nil)) | |
279 | 281 | } | |
280 | 282 | else { | |
281 | - | let y = ai[1] | |
282 | - | throw(y) | |
283 | + | let y = ai[0] | |
284 | + | let au = getIntegerValue(this, (y + a)) | |
285 | + | throw(toString(au)) | |
283 | 286 | } | |
284 | 287 | } | |
285 | 288 | ||
286 | 289 | ||
287 | - | @Verifier( | |
288 | - | func | |
289 | - | let o = | |
290 | + | @Verifier(av) | |
291 | + | func aw () = { | |
292 | + | let o = av | |
290 | 293 | if ($isInstanceOf(o, "DataTransaction")) | |
291 | 294 | then true | |
292 | 295 | else if ($isInstanceOf(o, "SetScriptTransaction")) | |
293 | 296 | then true | |
294 | - | else sigVerify( | |
297 | + | else sigVerify(av.bodyBytes, av.proofs[0], av.senderPublicKey) | |
295 | 298 | } | |
296 | 299 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "_amount" | |
5 | 5 | ||
6 | 6 | let b = "_probability" | |
7 | 7 | ||
8 | 8 | let c = "_probability_decimal" | |
9 | 9 | ||
10 | 10 | let d = "_price" | |
11 | 11 | ||
12 | 12 | let e = "_lottery_prices" | |
13 | 13 | ||
14 | 14 | let f = "_lottery_asset_id" | |
15 | 15 | ||
16 | 16 | let g = "_count_prices" | |
17 | 17 | ||
18 | 18 | let h = "last_spin_random_hash" | |
19 | 19 | ||
20 | 20 | let i = "last_token_random_hash" | |
21 | 21 | ||
22 | 22 | let j = "3BKFQLeo5ExZ5Y1pt9Ftzsno7aRwzD96zoYVHP3tcLgV" | |
23 | 23 | ||
24 | 24 | let k = 5 | |
25 | 25 | ||
26 | 26 | func l (m) = { | |
27 | 27 | let n = { | |
28 | 28 | let o = getBinary(this, h) | |
29 | 29 | if ($isInstanceOf(o, "ByteVector")) | |
30 | 30 | then { | |
31 | 31 | let p = o | |
32 | 32 | p | |
33 | 33 | } | |
34 | 34 | else if ($isInstanceOf(o, "Unit")) | |
35 | 35 | then base58'2ee4oFDYriWJ9EMeR' | |
36 | 36 | else throw("Match error") | |
37 | 37 | } | |
38 | 38 | let q = (((((n + m.transactionId) + m.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
39 | 39 | sha256(q) | |
40 | 40 | } | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func r (m) = { | |
44 | 44 | let s = { | |
45 | 45 | let o = getBinary(this, i) | |
46 | 46 | if ($isInstanceOf(o, "ByteVector")) | |
47 | 47 | then { | |
48 | 48 | let p = o | |
49 | 49 | p | |
50 | 50 | } | |
51 | 51 | else if ($isInstanceOf(o, "Unit")) | |
52 | 52 | then base58'4dD7osCQzvuXJdTiGfKvTwnKT' | |
53 | 53 | else throw("Match error") | |
54 | 54 | } | |
55 | 55 | let q = (((((s + m.transactionId) + m.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
56 | 56 | sha256(q) | |
57 | 57 | } | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func t () = { | |
61 | 61 | let u = getStringValue(this, e) | |
62 | 62 | let v = take(u, (size(u) - 1)) | |
63 | 63 | let w = split(v, ",") | |
64 | 64 | w | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func x (y,z) = { | |
69 | 69 | let A = indexOf(y, ",") | |
70 | 70 | if ((A == unit)) | |
71 | 71 | then (z + ",") | |
72 | 72 | else ((y + z) + ",") | |
73 | 73 | } | |
74 | 74 | ||
75 | 75 | ||
76 | - | func B (C,y) = if (isDefined(y)) | |
76 | + | func B (C,y) = if (if (isDefined(y)) | |
77 | + | then true | |
78 | + | else (y != "")) | |
77 | 79 | then { | |
78 | 80 | let D = getIntegerValue(this, (y + b)) | |
79 | 81 | let E = getIntegerValue(this, (y + c)) | |
80 | 82 | let F = (E * 1000) | |
81 | 83 | let G = (E % F) | |
82 | 84 | let H = size(C) | |
83 | 85 | if ((H == 1)) | |
84 | 86 | then { | |
85 | 87 | let I = C[0] | |
86 | 88 | let J = toInt(fromBase64String(I)) | |
87 | 89 | if ((G > J)) | |
88 | 90 | then y :: C | |
89 | 91 | else C | |
90 | 92 | } | |
91 | 93 | else C | |
92 | 94 | } | |
93 | 95 | else C | |
94 | 96 | ||
95 | 97 | ||
96 | 98 | @Callable(K) | |
97 | 99 | func updateprobability (L,M,N,O,P) = { | |
98 | 100 | let y = toBase64String(r(K)) | |
99 | 101 | let Q = if (!(isDefined(K.payment))) | |
100 | 102 | then false | |
101 | 103 | else true | |
102 | 104 | let R = if ((P == "")) | |
103 | 105 | then true | |
104 | 106 | else false | |
105 | 107 | let S = (M * N) | |
106 | 108 | if ((Q == true)) | |
107 | 109 | then { | |
108 | 110 | let T = extract(K.payment) | |
109 | 111 | let U = { | |
110 | 112 | let o = T.assetId | |
111 | 113 | if ($isInstanceOf(o, "ByteVector")) | |
112 | 114 | then { | |
113 | 115 | let V = o | |
114 | 116 | toBase64String(V) | |
115 | 117 | } | |
116 | 118 | else if ($isInstanceOf(o, "Unit")) | |
117 | 119 | then "" | |
118 | 120 | else throw("Match error") | |
119 | 121 | } | |
120 | 122 | let W = T.amount | |
121 | 123 | if ((U != P)) | |
122 | 124 | then throw("Asset Id not matching with Payment Asset Id") | |
123 | 125 | else if ((S > W)) | |
124 | 126 | then throw("Not enough Asset Amount") | |
125 | 127 | else { | |
126 | 128 | let X = { | |
127 | 129 | let o = getString(this, e) | |
128 | 130 | if ($isInstanceOf(o, "String")) | |
129 | 131 | then { | |
130 | 132 | let V = o | |
131 | 133 | V | |
132 | 134 | } | |
133 | 135 | else if ($isInstanceOf(o, "Unit")) | |
134 | 136 | then "" | |
135 | 137 | else throw("Match error") | |
136 | 138 | } | |
137 | 139 | let Y = indexOf(X, y) | |
138 | 140 | let Z = { | |
139 | 141 | let o = Y | |
140 | 142 | if ($isInstanceOf(o, "Unit")) | |
141 | 143 | then ((X + y) + ",") | |
142 | 144 | else if ($isInstanceOf(o, "Int")) | |
143 | 145 | then { | |
144 | 146 | let aa = o | |
145 | 147 | throw("Token is duplicated") | |
146 | 148 | } | |
147 | 149 | else throw("Match error") | |
148 | 150 | } | |
149 | 151 | let ab = { | |
150 | 152 | let o = getInteger(this, g) | |
151 | 153 | if ($isInstanceOf(o, "Int")) | |
152 | 154 | then { | |
153 | 155 | let V = o | |
154 | 156 | V | |
155 | 157 | } | |
156 | 158 | else if ($isInstanceOf(o, "Unit")) | |
157 | 159 | then 0 | |
158 | 160 | else throw("Match error") | |
159 | 161 | } | |
160 | 162 | if ((k > ab)) | |
161 | 163 | then { | |
162 | 164 | let ac = WriteSet([DataEntry((y + a), M), DataEntry((y + b), L), DataEntry((y + d), N), DataEntry(e, Z), DataEntry(g, (ab + 1)), DataEntry((y + c), O), DataEntry((y + f), P), DataEntry(i, y)]) | |
163 | 165 | ScriptResult(ac, TransferSet(nil)) | |
164 | 166 | } | |
165 | 167 | else throw(("Lottery prices has reached maximum " + toString(k))) | |
166 | 168 | } | |
167 | 169 | } | |
168 | 170 | else { | |
169 | 171 | let ad = if (R) | |
170 | 172 | then wavesBalance(this) | |
171 | 173 | else assetBalance(this, fromBase64String(P)) | |
172 | 174 | if ((S > ad)) | |
173 | 175 | then throw("Not enough Asset Amount") | |
174 | 176 | else { | |
175 | 177 | let X = { | |
176 | 178 | let o = getString(this, e) | |
177 | 179 | if ($isInstanceOf(o, "String")) | |
178 | 180 | then { | |
179 | 181 | let V = o | |
180 | 182 | V | |
181 | 183 | } | |
182 | 184 | else if ($isInstanceOf(o, "Unit")) | |
183 | 185 | then "" | |
184 | 186 | else throw("Match error") | |
185 | 187 | } | |
186 | 188 | let Y = indexOf(X, y) | |
187 | 189 | let Z = { | |
188 | 190 | let o = Y | |
189 | 191 | if ($isInstanceOf(o, "Unit")) | |
190 | 192 | then ((X + y) + ",") | |
191 | 193 | else if ($isInstanceOf(o, "Int")) | |
192 | 194 | then { | |
193 | 195 | let aa = o | |
194 | 196 | throw("Token is duplicated") | |
195 | 197 | } | |
196 | 198 | else throw("Match error") | |
197 | 199 | } | |
198 | 200 | let ab = { | |
199 | 201 | let o = getInteger(this, g) | |
200 | 202 | if ($isInstanceOf(o, "Int")) | |
201 | 203 | then { | |
202 | 204 | let V = o | |
203 | 205 | V | |
204 | 206 | } | |
205 | 207 | else if ($isInstanceOf(o, "Unit")) | |
206 | 208 | then 0 | |
207 | 209 | else throw("Match error") | |
208 | 210 | } | |
209 | 211 | if ((k > ab)) | |
210 | 212 | then { | |
211 | 213 | let ac = WriteSet([DataEntry((y + a), M), DataEntry((y + b), L), DataEntry((y + d), N), DataEntry(e, Z), DataEntry(g, (ab + 1)), DataEntry((y + c), O), DataEntry((y + f), P), DataEntry(i, y)]) | |
212 | 214 | ScriptResult(ac, TransferSet(nil)) | |
213 | 215 | } | |
214 | 216 | else throw(("Lottery prices has reached maximum " + toString(k))) | |
215 | 217 | } | |
216 | 218 | } | |
217 | 219 | } | |
218 | 220 | ||
219 | 221 | ||
220 | 222 | ||
221 | 223 | @Callable(K) | |
222 | 224 | func startlotto () = { | |
223 | 225 | let ae = toBase58String(K.caller.bytes) | |
224 | 226 | let af = l(K) | |
225 | 227 | let ab = { | |
226 | 228 | let o = getInteger(this, g) | |
227 | 229 | if ($isInstanceOf(o, "Int")) | |
228 | 230 | then { | |
229 | 231 | let V = o | |
230 | 232 | V | |
231 | 233 | } | |
232 | 234 | else if ($isInstanceOf(o, "Unit")) | |
233 | 235 | then 0 | |
234 | 236 | else throw("Match error") | |
235 | 237 | } | |
236 | 238 | let ag = t() | |
237 | 239 | let ah = toBase64String(af) | |
238 | 240 | let ai = { | |
239 | 241 | let aj = ag | |
240 | 242 | let ak = size(aj) | |
241 | 243 | let al = [ah] | |
242 | 244 | if ((ak == 0)) | |
243 | 245 | then al | |
244 | 246 | else { | |
245 | 247 | let am = B(al, aj[0]) | |
246 | 248 | if ((ak == 1)) | |
247 | 249 | then am | |
248 | 250 | else { | |
249 | 251 | let an = B(am, aj[1]) | |
250 | 252 | if ((ak == 2)) | |
251 | 253 | then an | |
252 | 254 | else { | |
253 | 255 | let ao = B(an, aj[2]) | |
254 | 256 | if ((ak == 3)) | |
255 | 257 | then ao | |
256 | 258 | else { | |
257 | 259 | let ap = B(ao, aj[3]) | |
258 | 260 | if ((ak == 4)) | |
259 | 261 | then ap | |
260 | 262 | else { | |
261 | 263 | let aq = B(ap, aj[4]) | |
262 | 264 | if ((ak == 5)) | |
263 | 265 | then aq | |
264 | 266 | else { | |
265 | 267 | let ar = B(aq, aj[5]) | |
266 | 268 | throw("List size exceed 5") | |
267 | 269 | } | |
268 | 270 | } | |
269 | 271 | } | |
270 | 272 | } | |
271 | 273 | } | |
272 | 274 | } | |
273 | 275 | } | |
274 | 276 | let as = size(ai) | |
275 | - | if ((as == | |
277 | + | if ((as == 1)) | |
276 | 278 | then { | |
277 | 279 | let at = WriteSet(nil) | |
278 | 280 | ScriptResult(at, TransferSet(nil)) | |
279 | 281 | } | |
280 | 282 | else { | |
281 | - | let y = ai[1] | |
282 | - | throw(y) | |
283 | + | let y = ai[0] | |
284 | + | let au = getIntegerValue(this, (y + a)) | |
285 | + | throw(toString(au)) | |
283 | 286 | } | |
284 | 287 | } | |
285 | 288 | ||
286 | 289 | ||
287 | - | @Verifier( | |
288 | - | func | |
289 | - | let o = | |
290 | + | @Verifier(av) | |
291 | + | func aw () = { | |
292 | + | let o = av | |
290 | 293 | if ($isInstanceOf(o, "DataTransaction")) | |
291 | 294 | then true | |
292 | 295 | else if ($isInstanceOf(o, "SetScriptTransaction")) | |
293 | 296 | then true | |
294 | - | else sigVerify( | |
297 | + | else sigVerify(av.bodyBytes, av.proofs[0], av.senderPublicKey) | |
295 | 298 | } | |
296 | 299 |
github/deemru/w8io/026f985 37.75 ms ◑