tx · 3GG2khXKdwueXNWeXZPHcXQWpUnK9jAc5HJQMQxW4N4J 3N76KUacWfHQVxPDUer7zLgFtEAgCQSmmsd: -0.01000000 Waves 2023.06.14 16:40 [2622397] smart account 3N76KUacWfHQVxPDUer7zLgFtEAgCQSmmsd > SELF 0.00000000 Waves
{ "type": 13, "id": "3GG2khXKdwueXNWeXZPHcXQWpUnK9jAc5HJQMQxW4N4J", "fee": 1000000, "feeAssetId": null, "timestamp": 1686750102060, "version": 2, "chainId": 84, "sender": "3N76KUacWfHQVxPDUer7zLgFtEAgCQSmmsd", "senderPublicKey": "DNDe2ziQMdDJSijzg5hDggeA1yxxwiAdqiu2hKo6dPSb", "proofs": [ "5S6swnUkirgFnBRyzjtsXR8eW5uPzMpcMBXyWW9NsC4LRvV7yZyg7Epc6SrHb7rsPG5HrsfmMj6Dov7mSZo7uHoQ" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAQEAAAANdGVzdEZvbGRBcnJheQAAAAAEAAAABWFycmF5CQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAAAAAgkABEwAAAACAAAAAAAAAAADCQAETAAAAAIAAAAAAAAAAAQJAARMAAAAAgAAAAAAAAAABQUAAAADbmlsCgEAAAADc3VtAAAAAgAAAAVhY2N1bQAAAARuZXh0CQAAZAAAAAIFAAAABWFjY3VtBQAAAARuZXh0CgAAAAACJGwFAAAABWFycmF5CgAAAAACJHMJAAGQAAAAAQUAAAACJGwKAAAAAAUkYWNjMAAAAAAAAAAAAAoBAAAABSRmMF8xAAAAAgAAAAIkYQAAAAIkaQMJAABnAAAAAgUAAAACJGkFAAAAAiRzBQAAAAIkYQkBAAAAA3N1bQAAAAIFAAAAAiRhCQABkQAAAAIFAAAAAiRsBQAAAAIkaQoBAAAABSRmMF8yAAAAAgAAAAIkYQAAAAIkaQMJAABnAAAAAgUAAAACJGkFAAAAAiRzBQAAAAIkYQkAAAIAAAABAgAAABRMaXN0IHNpemUgZXhjZWVkcyAxNQkBAAAABSRmMF8yAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgUAAAAFJGFjYzAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAIAAAAAAAAAAAMAAAAAAAAAAAQAAAAAAAAAAAUAAAAAAAAAAAYAAAAAAAAAAAcAAAAAAAAAAAgAAAAAAAAAAAkAAAAAAAAAAAoAAAAAAAAAAAsAAAAAAAAAAAwAAAAAAAAAAA0AAAAAAAAAAA4AAAAAAAAAAA8AAAABAAAAAWkBAAAABGNhbGwAAAAACQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAApmb2xkUmVzdWx0CQEAAAANdGVzdEZvbGRBcnJheQAAAAAFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5HCGU+Q==", "height": 2622397, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 9kTedHVJK4fWtQEenvG3nvZjirYfihoYPtK5tmZN1vhc Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func testFoldArray () = { | |
5 | + | let array = [1, 2, 3, 4, 5] | |
6 | + | func sum (accum,next) = (accum + next) | |
7 | + | ||
8 | + | let $l = array | |
9 | + | let $s = size($l) | |
10 | + | let $acc0 = 0 | |
11 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
12 | + | then $a | |
13 | + | else sum($a, $l[$i]) | |
14 | + | ||
15 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
16 | + | then $a | |
17 | + | else throw("List size exceeds 15") | |
18 | + | ||
19 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
20 | + | } | |
21 | + | ||
22 | + | ||
23 | + | @Callable(i) | |
24 | + | func call () = [IntegerEntry("foldResult", testFoldArray())] | |
25 | + | ||
26 | + | ||
27 | + | @Verifier(tx) | |
28 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
29 | + |
github/deemru/w8io/169f3d6 13.36 ms ◑