tx · D3L17WrcPvxL1cgMjE5o1Dav9TQB8MDZyZ4RZzqJPwhb 3NA5nfHGkw5RmrKTo2RaRThn4xb63emBvJG: -0.01000000 Waves 2021.10.21 15:30 [1756064] smart account 3NA5nfHGkw5RmrKTo2RaRThn4xb63emBvJG > SELF 0.00000000 Waves
{ "type": 13, "id": "D3L17WrcPvxL1cgMjE5o1Dav9TQB8MDZyZ4RZzqJPwhb", "fee": 1000000, "feeAssetId": null, "timestamp": 1634819449363, "version": 2, "chainId": 84, "sender": "3NA5nfHGkw5RmrKTo2RaRThn4xb63emBvJG", "senderPublicKey": "EtTrzb83xVzgLMho1F2JJBSXKhxJoUX1Evt7osfvXNgP", "proofs": [ "3mtst1AzmmtGdUmjLEkWxBtNNSAgEzn3QB8RaWL5zKNd5Hj87ZKLefiuJxkuxgQHpbsBitfNFSBBVD1vR9ehZmSA" ], "script": "base64:AAIFAAAAAAAAAAIIAgAAAAIBAAAAC2ZvbGRFbnRyaWVzAAAAAgAAAAZudW1iZXIAAAAEbmV4dAkAAGQAAAACBQAAAAZudW1iZXIFAAAABG5leHQBAAAACGZvbGRUZXN0AAAAAAQAAAAHZW50cmllcwkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAIJAARMAAAAAgAAAAAAAAAAAwkABEwAAAACAAAAAAAAAAAECQAETAAAAAIAAAAAAAAAAAUFAAAAA25pbAoAAAAAAiRsBQAAAAdlbnRyaWVzCgAAAAACJHMJAAGQAAAAAQUAAAACJGwKAAAAAAUkYWNjMAAAAAAAAAAAAAoBAAAAATEAAAACAAAAAiRhAAAAAiRpAwkAAGcAAAACBQAAAAIkaQUAAAACJHMFAAAAAiRhCQEAAAALZm9sZEVudHJpZXMAAAACBQAAAAIkYQkAAZEAAAACBQAAAAIkbAUAAAACJGkKAQAAAAEyAAAAAgAAAAIkYQAAAAIkaQMJAABnAAAAAgUAAAACJGkFAAAAAiRzBQAAAAIkYQkAAAIAAAABAgAAABNMaXN0IHNpemUgZXhjZWVkcyA1CQEAAAABMgAAAAIJAQAAAAExAAAAAgkBAAAAATEAAAACCQEAAAABMQAAAAIJAQAAAAExAAAAAgkBAAAAATEAAAACBQAAAAUkYWNjMAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAgAAAAAAAAAAAwAAAAAAAAAABAAAAAAAAAAABQAAAAAAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlecsF920=", "height": 1756064, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 9vJ2u6Ap4Fk8m7PQmkoa4dD7K2Q4oFpFjPUzqDgcVHUr Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func foldEntries (number,next) = (number + next) | |
5 | + | ||
6 | + | ||
7 | + | func foldTest () = { | |
8 | + | let entries = [1, 2, 3, 4, 5] | |
9 | + | let $l = entries | |
10 | + | let $s = size($l) | |
11 | + | let $acc0 = 0 | |
12 | + | func 1 ($a,$i) = if (($i >= $s)) | |
13 | + | then $a | |
14 | + | else foldEntries($a, $l[$i]) | |
15 | + | ||
16 | + | func 2 ($a,$i) = if (($i >= $s)) | |
17 | + | then $a | |
18 | + | else throw("List size exceeds 5") | |
19 | + | ||
20 | + | 2(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5) | |
21 | + | } | |
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | @Verifier(tx) | |
26 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
27 | + |
github/deemru/w8io/169f3d6 34.03 ms ◑