tx · D5Td2rbPe6mDS8JpFxjA4iKjmL2Eh7q69gtXFsJkT3FZ 3MuS6qVvhBR6wSynFRdcE3fVqmGBjoc7Hhx: -0.01400000 Waves 2023.08.07 15:47 [2700185] smart account 3MuS6qVvhBR6wSynFRdcE3fVqmGBjoc7Hhx > SELF 0.00000000 Waves
{ "type": 13, "id": "D5Td2rbPe6mDS8JpFxjA4iKjmL2Eh7q69gtXFsJkT3FZ", "fee": 1400000, "feeAssetId": null, "timestamp": 1691412554344, "version": 2, "chainId": 84, "sender": "3MuS6qVvhBR6wSynFRdcE3fVqmGBjoc7Hhx", "senderPublicKey": "62CHk4MqTdq3LqeUycy7TPnpvwrjgerSa2FqAY2EafXn", "proofs": [ "bQSuYtZ5qCcjGcZabzcrsPGVRzzV6XxnbiEnZfVgp2heCLhWKvs7r7eQqrmC88Z6iRFGqsaF1jhjxwxvXPbLANp" ], "script": "base64:BwJuCAISBAoCCAgSBAoCCAESBAoCCAQSBAoCCAISAwoBCBIDCgEBEgMKAQESBQoDAgECEgUKAwIYGBIECgICARIECgICARIFCgMBAQESBQoDAQEBEgASAwoBCBIAEgASAwoBCBIAEgQKAggIEgMKAQgxAANTRVACAl9fAAVXQVZFUwIFV0FWRVMAEGNvbnRyYWN0RmlsZW5hbWUCDGZhY3RvcnkucmlkZQEHd3JhcEVycgEBcwkArAICCQCsAgIFEGNvbnRyYWN0RmlsZW5hbWUCAjogBQFzAQh0aHJvd0VycgEBcwkAAgEJAQd3cmFwRXJyAQUBcwEPc3RyaW5nVG9Bc3NldElkAQFzAwkAAAIFAXMFBVdBVkVTBQR1bml0CQDZBAEFAXMAD0FETUlOX0xJU1RfU0laRQAFAAZRVU9SVU0AAwARVFhJRF9CWVRFU19MRU5HVEgAIAEYa2V5QWxsb3dlZFR4SWRWb3RlUHJlZml4AQR0eElkCQC5CQIJAMwIAgIGJXMlcyVzCQDMCAICCWFsbG93VHhJZAkAzAgCBQR0eElkBQNuaWwFA1NFUAEQa2V5RnVsbEFkb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, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FnjdA9Rj9FxjWAKpa45AtPk5xfNBPzmKCN2dqmAzu8xx Next: EP1UgKEVvxPxEhFsGZUbi8MrsVjuyR7Xbp1w4fdE1Pd3 Diff:
Old | New | Differences | |
---|---|---|---|
437 | 437 | ||
438 | 438 | ||
439 | 439 | @Callable(aB) | |
440 | + | func claimCollateralREADONLY (aq,ba) = $Tuple2(nil, reentrantInvoke(ah, "claimCollateralREADONLY", [fromBase58String(aq), fromBase58String(ba)], nil)) | |
441 | + | ||
442 | + | ||
443 | + | ||
444 | + | @Callable(aB) | |
440 | 445 | func voteForTxId (l) = { | |
441 | 446 | let U = toBase58String(aB.caller.bytes) | |
442 | 447 | let D = k(l) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 7 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = "WAVES" | |
7 | 7 | ||
8 | 8 | let c = "factory.ride" | |
9 | 9 | ||
10 | 10 | func d (e) = ((c + ": ") + e) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func f (e) = throw(d(e)) | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func g (e) = if ((e == b)) | |
17 | 17 | then unit | |
18 | 18 | else fromBase58String(e) | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | let h = 5 | |
22 | 22 | ||
23 | 23 | let i = 3 | |
24 | 24 | ||
25 | 25 | let j = 32 | |
26 | 26 | ||
27 | 27 | func k (l) = makeString(["%s%s%s", "allowTxId", l], a) | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func m (n,o) = makeString([n, o], a) | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func p () = makeString(["%s", "adminAddressList"], a) | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func q () = makeString(["%s", "txId"], a) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func r (n,s) = { | |
40 | 40 | let t = m(n, s) | |
41 | 41 | valueOrElse(getInteger(t), 0) | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func u () = { | |
46 | 46 | let v = getString(this, p()) | |
47 | 47 | if ($isInstanceOf(v, "String")) | |
48 | 48 | then { | |
49 | 49 | let e = v | |
50 | 50 | split(e, a) | |
51 | 51 | } | |
52 | 52 | else nil | |
53 | 53 | } | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func w (x) = containsElement(u(), x) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func y (z,o) = { | |
60 | 60 | let A = z | |
61 | 61 | let B = A._1 | |
62 | 62 | let n = A._2 | |
63 | 63 | $Tuple2((B :+ m(n, o)), n) | |
64 | 64 | } | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func C (D) = { | |
68 | 68 | let E = p() | |
69 | 69 | let F = { | |
70 | 70 | let G = u() | |
71 | 71 | let H = size(G) | |
72 | 72 | let I = $Tuple2(nil, D) | |
73 | 73 | func J (K,L) = if ((L >= H)) | |
74 | 74 | then K | |
75 | 75 | else y(K, G[L]) | |
76 | 76 | ||
77 | 77 | func M (K,L) = if ((L >= H)) | |
78 | 78 | then K | |
79 | 79 | else throw("List size exceeds 5") | |
80 | 80 | ||
81 | 81 | M(J(J(J(J(J(I, 0), 1), 2), 3), 4), 5) | |
82 | 82 | } | |
83 | 83 | let B = F._1 | |
84 | 84 | let n = F._2 | |
85 | 85 | B | |
86 | 86 | } | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func N (B,t) = (B + valueOrElse(getInteger(t), 0)) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func O (n) = { | |
93 | 93 | let P = C(n) | |
94 | 94 | let G = P | |
95 | 95 | let H = size(G) | |
96 | 96 | let I = 0 | |
97 | 97 | func J (K,L) = if ((L >= H)) | |
98 | 98 | then K | |
99 | 99 | else N(K, G[L]) | |
100 | 100 | ||
101 | 101 | func M (K,L) = if ((L >= H)) | |
102 | 102 | then K | |
103 | 103 | else throw("List size exceeds 5") | |
104 | 104 | ||
105 | 105 | M(J(J(J(J(J(I, 0), 1), 2), 3), 4), 5) | |
106 | 106 | } | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func Q (B,R) = (B :+ DeleteEntry(R)) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func S (n) = { | |
113 | 113 | let P = C(n) | |
114 | 114 | let G = P | |
115 | 115 | let H = size(G) | |
116 | 116 | let I = nil | |
117 | 117 | func J (K,L) = if ((L >= H)) | |
118 | 118 | then K | |
119 | 119 | else Q(K, G[L]) | |
120 | 120 | ||
121 | 121 | func M (K,L) = if ((L >= H)) | |
122 | 122 | then K | |
123 | 123 | else throw("List size exceeds 5") | |
124 | 124 | ||
125 | 125 | M(J(J(J(J(J(I, 0), 1), 2), 3), 4), 5) | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func T (U,D,V,W) = { | |
130 | 130 | let t = m(D, U) | |
131 | 131 | let X = r(D, U) | |
132 | 132 | let Y = if (!(w(U))) | |
133 | 133 | then f((("Address: " + U) + " not in Admin list")) | |
134 | 134 | else if ((X == 1)) | |
135 | 135 | then f((t + " you already voted")) | |
136 | 136 | else unit | |
137 | 137 | if ((Y == Y)) | |
138 | 138 | then { | |
139 | 139 | let P = O(D) | |
140 | 140 | if (((P + 1) >= V)) | |
141 | 141 | then { | |
142 | 142 | let Z = S(D) | |
143 | 143 | (Z ++ W) | |
144 | 144 | } | |
145 | 145 | else [IntegerEntry(t, 1)] | |
146 | 146 | } | |
147 | 147 | else throw("Strict value is not equal to itself.") | |
148 | 148 | } | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func aa () = "%s__calculator" | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func ab () = "%s__proxyTreasury" | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func ac () = "%s__child" | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func ad () = "%s__blockProcessingReward" | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func ae () = "%s__nextBlockToProcess" | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func af () = "%s__lpAssetId" | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | let ag = { | |
170 | 170 | let v = getString(this, aa()) | |
171 | 171 | if ($isInstanceOf(v, "String")) | |
172 | 172 | then { | |
173 | 173 | let e = v | |
174 | 174 | addressFromString(e) | |
175 | 175 | } | |
176 | 176 | else if ($isInstanceOf(v, "Unit")) | |
177 | 177 | then unit | |
178 | 178 | else throw("Match error") | |
179 | 179 | } | |
180 | 180 | ||
181 | 181 | let ah = valueOrErrorMessage(ag, d("invalid calculator address")) | |
182 | 182 | ||
183 | 183 | let ai = { | |
184 | 184 | let v = getString(this, ab()) | |
185 | 185 | if ($isInstanceOf(v, "String")) | |
186 | 186 | then { | |
187 | 187 | let e = v | |
188 | 188 | addressFromString(e) | |
189 | 189 | } | |
190 | 190 | else if ($isInstanceOf(v, "Unit")) | |
191 | 191 | then unit | |
192 | 192 | else throw("Match error") | |
193 | 193 | } | |
194 | 194 | ||
195 | 195 | let aj = valueOrErrorMessage(ai, d("invalid proxy treasury address")) | |
196 | 196 | ||
197 | 197 | func ak () = "%s__config" | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func al () = "contract_children" | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func am () = "contract_voting_result" | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | func an (x,l) = ((("proposal_allow_broadcast_" + toString(x)) + "_") + toBase58String(l)) | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func ao (ap,aq) = makeString(["investor", toString(ap), toString(aq)], "_") | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | let ar = { | |
213 | 213 | let v = getString(this, ak()) | |
214 | 214 | if ($isInstanceOf(v, "String")) | |
215 | 215 | then { | |
216 | 216 | let e = v | |
217 | 217 | addressFromString(e) | |
218 | 218 | } | |
219 | 219 | else if ($isInstanceOf(v, "Unit")) | |
220 | 220 | then unit | |
221 | 221 | else throw("Match error") | |
222 | 222 | } | |
223 | 223 | ||
224 | 224 | let as = valueOrErrorMessage(ar, d("invalid config address")) | |
225 | 225 | ||
226 | 226 | let at = { | |
227 | 227 | let v = ar | |
228 | 228 | if ($isInstanceOf(v, "Address")) | |
229 | 229 | then { | |
230 | 230 | let z = v | |
231 | 231 | let au = getString(z, am()) | |
232 | 232 | if ($isInstanceOf(au, "String")) | |
233 | 233 | then { | |
234 | 234 | let e = au | |
235 | 235 | addressFromString(e) | |
236 | 236 | } | |
237 | 237 | else if ($isInstanceOf(au, "Unit")) | |
238 | 238 | then unit | |
239 | 239 | else throw("Match error") | |
240 | 240 | } | |
241 | 241 | else if ($isInstanceOf(v, "Unit")) | |
242 | 242 | then unit | |
243 | 243 | else throw("Match error") | |
244 | 244 | } | |
245 | 245 | ||
246 | 246 | let av = valueOrErrorMessage(at, d("invalid voting result address")) | |
247 | 247 | ||
248 | 248 | let aw = { | |
249 | 249 | let v = ar | |
250 | 250 | if ($isInstanceOf(v, "Address")) | |
251 | 251 | then { | |
252 | 252 | let z = v | |
253 | 253 | let au = getString(z, al()) | |
254 | 254 | if ($isInstanceOf(au, "String")) | |
255 | 255 | then { | |
256 | 256 | let e = au | |
257 | 257 | addressFromString(e) | |
258 | 258 | } | |
259 | 259 | else if ($isInstanceOf(au, "Unit")) | |
260 | 260 | then unit | |
261 | 261 | else throw("Match error") | |
262 | 262 | } | |
263 | 263 | else if ($isInstanceOf(v, "Unit")) | |
264 | 264 | then unit | |
265 | 265 | else throw("Match error") | |
266 | 266 | } | |
267 | 267 | ||
268 | 268 | let ax = valueOrErrorMessage(aw, d("invalid children address")) | |
269 | 269 | ||
270 | 270 | let ay = { | |
271 | 271 | let v = getString(this, af()) | |
272 | 272 | if ($isInstanceOf(v, "String")) | |
273 | 273 | then { | |
274 | 274 | let e = v | |
275 | 275 | fromBase58String(e) | |
276 | 276 | } | |
277 | 277 | else if ($isInstanceOf(v, "Unit")) | |
278 | 278 | then unit | |
279 | 279 | else throw("Match error") | |
280 | 280 | } | |
281 | 281 | ||
282 | 282 | let az = valueOrErrorMessage(ay, d("invalid lpAssetId")) | |
283 | 283 | ||
284 | 284 | func aA (aB,x) = if ((aB.caller == x)) | |
285 | 285 | then true | |
286 | 286 | else f("permission denied") | |
287 | 287 | ||
288 | 288 | ||
289 | 289 | func aC (aB) = aA(aB, this) | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | func aD (aB) = aA(aB, ah) | |
293 | 293 | ||
294 | 294 | ||
295 | 295 | @Callable(aB) | |
296 | 296 | func stringEntry (R,aE) = if (aD(aB)) | |
297 | 297 | then $Tuple2([StringEntry(R, aE)], R) | |
298 | 298 | else $Tuple2(nil, unit) | |
299 | 299 | ||
300 | 300 | ||
301 | 301 | ||
302 | 302 | @Callable(aB) | |
303 | 303 | func integerEntry (R,aE) = if (aD(aB)) | |
304 | 304 | then $Tuple2([IntegerEntry(R, aE)], R) | |
305 | 305 | else $Tuple2(nil, unit) | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | ||
309 | 309 | @Callable(aB) | |
310 | 310 | func booleanEntry (R,aE) = if (aD(aB)) | |
311 | 311 | then $Tuple2([BooleanEntry(R, aE)], R) | |
312 | 312 | else $Tuple2(nil, unit) | |
313 | 313 | ||
314 | 314 | ||
315 | 315 | ||
316 | 316 | @Callable(aB) | |
317 | 317 | func binaryEntry (R,aE) = if (aD(aB)) | |
318 | 318 | then $Tuple2([BinaryEntry(R, aE)], R) | |
319 | 319 | else $Tuple2(nil, unit) | |
320 | 320 | ||
321 | 321 | ||
322 | 322 | ||
323 | 323 | @Callable(aB) | |
324 | 324 | func deleteEntry (R) = if (aD(aB)) | |
325 | 325 | then $Tuple2([DeleteEntry(R)], R) | |
326 | 326 | else $Tuple2(nil, unit) | |
327 | 327 | ||
328 | 328 | ||
329 | 329 | ||
330 | 330 | @Callable(aB) | |
331 | 331 | func reissue (aF) = if (aD(aB)) | |
332 | 332 | then $Tuple2([Reissue(az, aF, true)], aF) | |
333 | 333 | else $Tuple2(nil, unit) | |
334 | 334 | ||
335 | 335 | ||
336 | 336 | ||
337 | 337 | @Callable(aB) | |
338 | 338 | func burn (aF) = if (aD(aB)) | |
339 | 339 | then $Tuple2([Burn(az, aF)], aF) | |
340 | 340 | else $Tuple2(nil, unit) | |
341 | 341 | ||
342 | 342 | ||
343 | 343 | ||
344 | 344 | @Callable(aB) | |
345 | 345 | func transferAsset (aG,aF,aH) = if (aD(aB)) | |
346 | 346 | then $Tuple2([ScriptTransfer(Address(aG), aF, aH)], aF) | |
347 | 347 | else $Tuple2(nil, unit) | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | ||
351 | 351 | @Callable(aB) | |
352 | 352 | func transferAssets (aG,aI,aJ) = if (aD(aB)) | |
353 | 353 | then { | |
354 | 354 | func aK (aL,aM) = { | |
355 | 355 | let aN = aL | |
356 | 356 | let aO = aN._1 | |
357 | 357 | let aP = aN._2 | |
358 | 358 | let aQ = ScriptTransfer(Address(aG), parseIntValue(aJ[aP]), g(aI[aP])) | |
359 | 359 | let aR = (aO :+ aQ) | |
360 | 360 | $Tuple2(aR, (aP + 1)) | |
361 | 361 | } | |
362 | 362 | ||
363 | 363 | let aS = { | |
364 | 364 | let G = aI | |
365 | 365 | let H = size(G) | |
366 | 366 | let I = $Tuple2(nil, 0) | |
367 | 367 | func J (K,L) = if ((L >= H)) | |
368 | 368 | then K | |
369 | 369 | else aK(K, G[L]) | |
370 | 370 | ||
371 | 371 | func M (K,L) = if ((L >= H)) | |
372 | 372 | then K | |
373 | 373 | else throw("List size exceeds 10") | |
374 | 374 | ||
375 | 375 | M(J(J(J(J(J(J(J(J(J(J(I, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
376 | 376 | } | |
377 | 377 | let aT = aS._1 | |
378 | 378 | let aU = aS._2 | |
379 | 379 | $Tuple2(aT, unit) | |
380 | 380 | } | |
381 | 381 | else $Tuple2(nil, unit) | |
382 | 382 | ||
383 | 383 | ||
384 | 384 | ||
385 | 385 | @Callable(aB) | |
386 | 386 | func transferWaves (aG,aF) = if (aD(aB)) | |
387 | 387 | then $Tuple2([ScriptTransfer(Address(aG), aF, unit)], aF) | |
388 | 388 | else $Tuple2(nil, unit) | |
389 | 389 | ||
390 | 390 | ||
391 | 391 | ||
392 | 392 | @Callable(aB) | |
393 | 393 | func transferFromProxyTreasury (aV,aW) = if (aD(aB)) | |
394 | 394 | then $Tuple2(nil, invoke(aj, "transferWaves", [aV, aW], nil)) | |
395 | 395 | else $Tuple2(nil, unit) | |
396 | 396 | ||
397 | 397 | ||
398 | 398 | ||
399 | 399 | @Callable(aB) | |
400 | 400 | func finalize (aX,aY,aZ) = $Tuple2(nil, reentrantInvoke(ah, "finalize", [aB.caller.bytes, aX, aY, aZ], aB.payments)) | |
401 | 401 | ||
402 | 402 | ||
403 | 403 | ||
404 | 404 | @Callable(aB) | |
405 | 405 | func finalizeREADONLY (aX,aY,aZ) = $Tuple2(nil, reentrantInvoke(ah, "finalizeREADONLY", [aX, aY, aZ], nil)) | |
406 | 406 | ||
407 | 407 | ||
408 | 408 | ||
409 | 409 | @Callable(aB) | |
410 | 410 | func claimLP () = $Tuple2(nil, reentrantInvoke(ah, "claimLP", [aB.caller.bytes], aB.payments)) | |
411 | 411 | ||
412 | 412 | ||
413 | 413 | ||
414 | 414 | @Callable(aB) | |
415 | 415 | func claimCollateral (ba) = $Tuple2(nil, reentrantInvoke(ah, "claimCollateral", [aB.caller.bytes, fromBase58String(ba)], aB.payments)) | |
416 | 416 | ||
417 | 417 | ||
418 | 418 | ||
419 | 419 | @Callable(aB) | |
420 | 420 | func invest () = $Tuple2(nil, reentrantInvoke(ah, "invest", [aB.caller.bytes], aB.payments)) | |
421 | 421 | ||
422 | 422 | ||
423 | 423 | ||
424 | 424 | @Callable(aB) | |
425 | 425 | func withdraw () = $Tuple2(nil, reentrantInvoke(ah, "withdraw", [aB.caller.bytes], aB.payments)) | |
426 | 426 | ||
427 | 427 | ||
428 | 428 | ||
429 | 429 | @Callable(aB) | |
430 | 430 | func cancelWithdraw (ba) = $Tuple2(nil, reentrantInvoke(ah, "cancelWithdraw", [aB.caller.bytes, fromBase58String(ba)], aB.payments)) | |
431 | 431 | ||
432 | 432 | ||
433 | 433 | ||
434 | 434 | @Callable(aB) | |
435 | 435 | func processBlocks () = $Tuple2(nil, reentrantInvoke(ah, "processBlocks", [aB.caller.bytes], aB.payments)) | |
436 | 436 | ||
437 | 437 | ||
438 | 438 | ||
439 | 439 | @Callable(aB) | |
440 | + | func claimCollateralREADONLY (aq,ba) = $Tuple2(nil, reentrantInvoke(ah, "claimCollateralREADONLY", [fromBase58String(aq), fromBase58String(ba)], nil)) | |
441 | + | ||
442 | + | ||
443 | + | ||
444 | + | @Callable(aB) | |
440 | 445 | func voteForTxId (l) = { | |
441 | 446 | let U = toBase58String(aB.caller.bytes) | |
442 | 447 | let D = k(l) | |
443 | 448 | let B = [StringEntry(q(), l)] | |
444 | 449 | let bb = getString(this, q()) | |
445 | 450 | let Y = [if ((size(fromBase58String(l)) == j)) | |
446 | 451 | then true | |
447 | 452 | else f((l + " is not valid txId")), if (if ((bb == unit)) | |
448 | 453 | then true | |
449 | 454 | else (value(bb) != l)) | |
450 | 455 | then true | |
451 | 456 | else f((l + " is already allowed"))] | |
452 | 457 | if ((Y == Y)) | |
453 | 458 | then T(U, D, i, B) | |
454 | 459 | else throw("Strict value is not equal to itself.") | |
455 | 460 | } | |
456 | 461 | ||
457 | 462 | ||
458 | 463 | @Verifier(bc) | |
459 | 464 | func bd () = { | |
460 | 465 | let be = { | |
461 | 466 | let v = at | |
462 | 467 | if ($isInstanceOf(v, "Address")) | |
463 | 468 | then { | |
464 | 469 | let bf = v | |
465 | 470 | valueOrElse(getBoolean(bf, an(this, bc.id)), false) | |
466 | 471 | } | |
467 | 472 | else false | |
468 | 473 | } | |
469 | 474 | let bg = (bc.id == fromBase58String(valueOrElse(getString(this, q()), ""))) | |
470 | 475 | let bh = if ((size(u()) >= i)) | |
471 | 476 | then false | |
472 | 477 | else sigVerify(bc.bodyBytes, bc.proofs[0], bc.senderPublicKey) | |
473 | 478 | if (if (be) | |
474 | 479 | then true | |
475 | 480 | else bg) | |
476 | 481 | then true | |
477 | 482 | else bh | |
478 | 483 | } | |
479 | 484 |
github/deemru/w8io/026f985 50.12 ms ◑