tx · 8PsbrCs5YnSCHPVEwFZPJeCzHHWrPf8JekWvFkRbw953 3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M: -0.01000000 Waves 2023.03.23 15:52 [2502672] smart account 3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M > SELF 0.00000000 Waves
{ "type": 13, "id": "8PsbrCs5YnSCHPVEwFZPJeCzHHWrPf8JekWvFkRbw953", "fee": 1000000, "feeAssetId": null, "timestamp": 1679576014345, "version": 2, "chainId": 84, "sender": "3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M", "senderPublicKey": "CPR2z4Q8kdV2M4JHaFVVTRzdEWPUA1Whqtw6SWE8kyU9", "proofs": [ "3cYh1qYC7dHtXyP9eLUioxHqPkWVz1KH5gtvpW5kWrPg4gA2S91pWaZ4mVpM2n2K5CPN13rsZMmLWHBrjLwxCBRB" ], "script": "base64:BgIRCAISBAoCAQESABIFCgMBAREAAwFpAQx0ZXN0SW50ZXJuYWwCDW1heEl0ZXJhdGlvbnMQY3VycmVudEl0ZXJhdGlvbgoBBXRlc3QzAQV2YWx1ZQADCgEDc3VtAgVhY2N1bQRuZXh0CQBkAgUFYWNjdW0FBG5leHQEA2FycgkAzAgCAAEJAMwIAgACCQDMCAIAAwUDbmlsBAdyZXN1bHQxCgACJGwFA2FycgoAAiRzCQCQAwEFAiRsCgAFJGFjYzAAAAoBBSRmMF8xAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQEDc3VtAgUCJGEJAJEDAgUCJGwFAiRpCgEFJGYwXzICAiRhAiRpAwkAZwIFAiRpBQIkcwUCJGEJAAIBAhNMaXN0IHNpemUgZXhjZWVkcyA1CQEFJGYwXzICCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECBQUkYWNjMAAAAAEAAgADAAQABQkAzAgCCQEMSW50ZWdlckVudHJ5AgIISW50ZXJnYWwFB3Jlc3VsdDEFA25pbAFpAQtleGFtcGxlQ2FsbAAEA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R4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5mlgMWg==", "height": 2502672, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Fpnmd341NSqrvJvEACDXgmHRxPnyYbGKF1gwX8kUSU8W Next: GvrtjXhiQYAFFMt6yFBYRYfg3GnkJSqSUME8xTdR52nB Diff:
Old | New | Differences | |
---|---|---|---|
20 | 20 | ||
21 | 21 | func q (o,p) = if ((p >= l)) | |
22 | 22 | then o | |
23 | - | else throw("List size exceeds | |
23 | + | else throw("List size exceeds 5") | |
24 | 24 | ||
25 | - | q(n(n(n(m, 0), 1), 2), 3) | |
25 | + | q(n(n(n(n(n(m, 0), 1), 2), 3), 4), 5) | |
26 | 26 | } | |
27 | 27 | [IntegerEntry("Intergal", j)] | |
28 | 28 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | 7 | func testInternal (b,c) = { | |
8 | 8 | func d (e) = 3 | |
9 | 9 | ||
10 | 10 | func f (g,h) = (g + h) | |
11 | 11 | ||
12 | 12 | let i = [1, 2, 3] | |
13 | 13 | let j = { | |
14 | 14 | let k = i | |
15 | 15 | let l = size(k) | |
16 | 16 | let m = 0 | |
17 | 17 | func n (o,p) = if ((p >= l)) | |
18 | 18 | then o | |
19 | 19 | else f(o, k[p]) | |
20 | 20 | ||
21 | 21 | func q (o,p) = if ((p >= l)) | |
22 | 22 | then o | |
23 | - | else throw("List size exceeds | |
23 | + | else throw("List size exceeds 5") | |
24 | 24 | ||
25 | - | q(n(n(n(m, 0), 1), 2), 3) | |
25 | + | q(n(n(n(n(n(m, 0), 1), 2), 3), 4), 5) | |
26 | 26 | } | |
27 | 27 | [IntegerEntry("Intergal", j)] | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | ||
32 | 32 | @Callable(a) | |
33 | 33 | func exampleCall () = { | |
34 | 34 | let r = invoke(this, "internalRecursion", [101, 0, nil], nil) | |
35 | 35 | if ((r == r)) | |
36 | 36 | then { | |
37 | 37 | let s = r | |
38 | 38 | if ($isInstanceOf(s, "Int")) | |
39 | 39 | then { | |
40 | 40 | let t = s | |
41 | 41 | [IntegerEntry(("EXECUTED__" + toString(t)), t)] | |
42 | 42 | } | |
43 | 43 | else throw("Wrong internal function result") | |
44 | 44 | } | |
45 | 45 | else throw("Strict value is not equal to itself.") | |
46 | 46 | } | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | ||
50 | 50 | @Callable(a) | |
51 | 51 | func internalRecursion (b,c,u) = if ((a.caller != this)) | |
52 | 52 | then throw("Only can be called by this contract") | |
53 | 53 | else if ((b > c)) | |
54 | 54 | then { | |
55 | 55 | let r = invoke(this, "internalRecursion", [b, (c + 1), (u :+ c)], nil) | |
56 | 56 | if ((r == r)) | |
57 | 57 | then $Tuple2([IntegerEntry(("current_iteration__" + toString(c)), c)], c) | |
58 | 58 | else throw("Strict value is not equal to itself.") | |
59 | 59 | } | |
60 | 60 | else $Tuple2(nil, 40) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | @Verifier(v) | |
64 | 64 | func w () = sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey) | |
65 | 65 |
github/deemru/w8io/169f3d6 26.10 ms ◑