tx · GvrtjXhiQYAFFMt6yFBYRYfg3GnkJSqSUME8xTdR52nB 3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M: -0.01000000 Waves 2023.03.23 15:54 [2502674] smart account 3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M > SELF 0.00000000 Waves
{ "type": 13, "id": "GvrtjXhiQYAFFMt6yFBYRYfg3GnkJSqSUME8xTdR52nB", "fee": 1000000, "feeAssetId": null, "timestamp": 1679576078749, "version": 2, "chainId": 84, "sender": "3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M", "senderPublicKey": "CPR2z4Q8kdV2M4JHaFVVTRzdEWPUA1Whqtw6SWE8kyU9", "proofs": [ "55kZUA1gSwRhMXopBo4J6FwVETY29486m4L9CgxNNUY6NvCqxJKEHFzrqcRAsiqbLoN5R81BW5RwT2WzP4gEmXiz" ], "script": "base64:BgIRCAISBAoCAQESABIFCgMBAREAAwFpAQx0ZXN0SW50ZXJuYWwCDW1heEl0ZXJhdGlvbnMQY3VycmVudEl0ZXJhdGlvbgoBBXRlc3QzAQV2YWx1ZQADCgEDc3VtAgVhY2N1bQRuZXh0CQBkAgUFYWNjdW0FBG5leHQEA2FycgkAzAgCAAEJAMwIAgACCQDMCAIAAwUDbmlsBAdyZXN1bHQxCgACJGwFA2FycgoAAiRzCQCQAwEFAiRsCgAFJGFjYzAAAAoBBSRmMF8xAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQEDc3VtAgUCJGEJAJEDAgUCJGwFAiRpCgEFJGYwXzICAiRhAiRpAwkAZwIFAiRpBQIkcwUCJGEJAAIBAhNMaXN0IHNpemUgZXhjZWVkcyAyCQEFJGYwXzICCQEFJGYwXzECCQEFJGYwXzECBQUkYWNjMAAAAAEAAgkAzAgCCQEMSW50ZWdlckVudHJ5AgIISW50ZXJnYWwFB3Jlc3VsdDEFA25pbAFpAQtleGFtcGxlQ2FsbAAEAXoJAPwHBAUEdGhpcwIRaW50ZXJuYWxSZWN1cnNpb24JA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==", "height": 2502674, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8PsbrCs5YnSCHPVEwFZPJeCzHHWrPf8JekWvFkRbw953 Next: A1oXLbwtcMF7LfhhZpnHps4dGpexEM96p9q8XEyQtjih Diff:
Old | New | Differences | |
---|---|---|---|
20 | 20 | ||
21 | 21 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
22 | 22 | then $a | |
23 | - | else throw("List size exceeds | |
23 | + | else throw("List size exceeds 2") | |
24 | 24 | ||
25 | - | $f0_2 | |
25 | + | $f0_2($f0_1($f0_1($acc0, 0), 1), 2) | |
26 | 26 | } | |
27 | 27 | [IntegerEntry("Intergal", result1)] | |
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(i) | |
7 | 7 | func testInternal (maxIterations,currentIteration) = { | |
8 | 8 | func test3 (value) = 3 | |
9 | 9 | ||
10 | 10 | func sum (accum,next) = (accum + next) | |
11 | 11 | ||
12 | 12 | let arr = [1, 2, 3] | |
13 | 13 | let result1 = { | |
14 | 14 | let $l = arr | |
15 | 15 | let $s = size($l) | |
16 | 16 | let $acc0 = 0 | |
17 | 17 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
18 | 18 | then $a | |
19 | 19 | else sum($a, $l[$i]) | |
20 | 20 | ||
21 | 21 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
22 | 22 | then $a | |
23 | - | else throw("List size exceeds | |
23 | + | else throw("List size exceeds 2") | |
24 | 24 | ||
25 | - | $f0_2 | |
25 | + | $f0_2($f0_1($f0_1($acc0, 0), 1), 2) | |
26 | 26 | } | |
27 | 27 | [IntegerEntry("Intergal", result1)] | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | ||
32 | 32 | @Callable(i) | |
33 | 33 | func exampleCall () = { | |
34 | 34 | let z = invoke(this, "internalRecursion", [101, 0, nil], nil) | |
35 | 35 | if ((z == z)) | |
36 | 36 | then match z { | |
37 | 37 | case list: Int => | |
38 | 38 | [IntegerEntry(("EXECUTED__" + toString(list)), list)] | |
39 | 39 | case _ => | |
40 | 40 | throw("Wrong internal function result") | |
41 | 41 | } | |
42 | 42 | else throw("Strict value is not equal to itself.") | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | ||
47 | 47 | @Callable(i) | |
48 | 48 | func internalRecursion (maxIterations,currentIteration,accumulatedResult) = if ((i.caller != this)) | |
49 | 49 | then throw("Only can be called by this contract") | |
50 | 50 | else if ((maxIterations > currentIteration)) | |
51 | 51 | then { | |
52 | 52 | let z = invoke(this, "internalRecursion", [maxIterations, (currentIteration + 1), (accumulatedResult :+ currentIteration)], nil) | |
53 | 53 | if ((z == z)) | |
54 | 54 | then $Tuple2([IntegerEntry(("current_iteration__" + toString(currentIteration)), currentIteration)], currentIteration) | |
55 | 55 | else throw("Strict value is not equal to itself.") | |
56 | 56 | } | |
57 | 57 | else $Tuple2(nil, 40) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | @Verifier(tx) | |
61 | 61 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
62 | 62 |
github/deemru/w8io/026f985 41.55 ms ◑