tx · 3rRqscrY91bupF1ZszvbAuPCsU2sAmHAuiWAq9jdbR5u 3MwMNZ5PmZeVN8sDprmFuYbjJVeJVxMa46f: -0.00100000 Waves 2022.06.16 23:14 [2099396] smart account 3MwMNZ5PmZeVN8sDprmFuYbjJVeJVxMa46f > SELF 0.00000000 Waves
{ "type": 13, "id": "3rRqscrY91bupF1ZszvbAuPCsU2sAmHAuiWAq9jdbR5u", "fee": 100000, "feeAssetId": null, "timestamp": 1655410533107, "version": 2, "chainId": 84, "sender": "3MwMNZ5PmZeVN8sDprmFuYbjJVeJVxMa46f", "senderPublicKey": "CpLxySPGoDGRVBSTXHBZr9PxDduQz4JU6GK9jSAdpXse", "proofs": [ "2q25UT4z3T1voR9wfYMfSisnrxeximStppoZ92jSPpuskQMe9dG4JFEt1kMDFShE59qu97PqvzGeTC1KXVWcf12A" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAEY2FsbAAAAAAKAQAAAANzdW0AAAACAAAABWFjY3VtAAAABG5leHQJAABkAAAAAgUAAAAFYWNjdW0FAAAABG5leHQEAAAAA2FycgkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAIJAARMAAAAAgAAAAAAAAAAAwkABEwAAAACAAAAAAAAAAAECQAETAAAAAIAAAAAAAAAAAUFAAAAA25pbAQAAAADcmVzCgAAAAACJGwFAAAAA2FycgoAAAAAAiRzCQABkAAAAAEFAAAAAiRsCgAAAAAFJGFjYzAAAAAAAAAAAAAKAQAAAAUkZjBfMQAAAAIAAAACJGEAAAACJGkDCQAAZwAAAAIFAAAAAiRpBQAAAAIkcwUAAAACJGEJAQAAAANzdW0AAAACBQAAAAIkYQkAAZEAAAACBQAAAAIkbAUAAAACJGkKAQAAAAUkZjBfMgAAAAIAAAACJGEAAAACJGkDCQAAZwAAAAIFAAAAAiRpBQAAAAIkcwUAAAACJGEJAAACAAAAAQIAAAATTGlzdCBzaXplIGV4Y2VlZHMgNQkBAAAABSRmMF8yAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgUAAAAFJGFjYzAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAIAAAAAAAAAAAMAAAAAAAAAAAQAAAAAAAAAAAUJAAUUAAAAAgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAGcmVzdWx0BQAAAANyZXMFAAAAA25pbAUAAAADcmVzAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkHdF/u", "height": 2099396, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 4sq28Gh7mdP28SfANGYjTM57sqpPoYc8YV6iC7v5hU2R Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | ||
5 | + | ||
6 | + | @Callable(i) | |
7 | + | func call () = { | |
8 | + | func sum (accum,next) = (accum + next) | |
9 | + | ||
10 | + | let arr = [1, 2, 3, 4, 5] | |
11 | + | let res = { | |
12 | + | let $l = arr | |
13 | + | let $s = size($l) | |
14 | + | let $acc0 = 0 | |
15 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
16 | + | then $a | |
17 | + | else sum($a, $l[$i]) | |
18 | + | ||
19 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
20 | + | then $a | |
21 | + | else throw("List size exceeds 5") | |
22 | + | ||
23 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
24 | + | } | |
25 | + | $Tuple2([IntegerEntry("result", res)], res) | |
26 | + | } | |
27 | + | ||
28 | + | ||
29 | + | @Verifier(tx) | |
30 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
31 | + |
github/deemru/w8io/169f3d6 39.31 ms ◑