tx · 3yN1yEeZu5hYdPLbGUj6pcyk2dwECEQpfSenY5mmifk6 3Myg9C6tNDTG6uXmwvkhAU3uLkA6WzNrTx8: -0.01000000 Waves 2023.10.21 10:15 [2808040] smart account 3Myg9C6tNDTG6uXmwvkhAU3uLkA6WzNrTx8 > SELF 0.00000000 Waves
{ "type": 13, "id": "3yN1yEeZu5hYdPLbGUj6pcyk2dwECEQpfSenY5mmifk6", "fee": 1000000, "feeAssetId": null, "timestamp": 1697872547099, "version": 2, "chainId": 84, "sender": "3Myg9C6tNDTG6uXmwvkhAU3uLkA6WzNrTx8", "senderPublicKey": "8EXR9gFY3exPzo6wV3v2oa96CYznA1QszMLFXiwWuptJ", "proofs": [ "63idojdRbfRtsK7YBmCoPf2VV8Xj63CFb3Da4Q85vib9Pm6XATe69oEJyCuVNKB1E1xxuENBYDfvY75KC31SMHvP" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEYAAAAAAAAAAEAAAABaQEAAAADZm9vAAAAAQAAAANhcmcEAAAABGtleXMJAARMAAAAAgIAAAAEa2V5MQkABEwAAAACAgAAAARrZXkyCQAETAAAAAICAAAABGtleTMFAAAAA25pbAQAAAAGdmFsdWVzCQAETAAAAAICAAAABnZhbHVlMQkABEwAAAACAgAAAAZ2YWx1ZTIJAARMAAAAAgIAAAAGdmFsdWUzBQAAAANuaWwKAQAAAA5hZGRTdHJpbmdFbnRyeQAAAAIAAAAFYWNjdW0AAAAJbmV4dFZhbHVlBAAAAAkkdDAyOTIzMTUFAAAABWFjY3VtBAAAAAZyZXN1bHQIBQAAAAkkdDAyOTIzMTUAAAACXzEEAAAAAWoIBQAAAAkkdDAyOTIzMTUAAAACXzIJAAUUAAAAAgkABE0AAAACBQAAAAZyZXN1bHQJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAGRAAAAAgUAAAAEa2V5cwUAAAABagUAAAAJbmV4dFZhbHVlCQAAZAAAAAIFAAAAAWoAAAAAAAAAAAEEAAAAAXIKAAAAAAIkbAUAAAAGdmFsdWVzCgAAAAACJHMJAAGQAAAAAQUAAAACJGwKAAAAAAUkYWNjMAkABRQAAAACBQAAAANuaWwAAAAAAAAAAAAKAQAAAAUkZjBfMQAAAAIAAAACJGEAAAACJGkDCQAAZwAAAAIFAAAAAiRpBQAAAAIkcwUAAAACJGEJAQAAAA5hZGRTdHJpbmdFbnRyeQAAAAIFAAAAAiRhCQABkQAAAAIFAAAAAiRsBQAAAAIkaQoBAAAABSRmMF8yAAAAAgAAAAIkYQAAAAIkaQMJAABnAAAAAgUAAAACJGkFAAAAAiRzBQAAAAIkYQkAAAIAAAABAgAAABRMaXN0IHNpemUgZXhjZWVkcyAxMAkBAAAABSRmMF8yAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgUAAAAFJGFjYzAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAIAAAAAAAAAAAMAAAAAAAAAAAQAAAAAAAAAAAUAAAAAAAAAAAYAAAAAAAAAAAcAAAAAAAAAAAgAAAAAAAAAAAkAAAAAAAAAAAoIBQAAAAFyAAAAAl8xAAAAAIV7hyk=", "height": 2808040, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AoQSeDVSFK8kXauAUT9FFX3ZejpHmRsys4G3oWcvAyZc Next: HVfMTunQnA58WvYZ8ofZxaFhH8ukt1HYyDDbgHU8zRdP Diff:
Old | New | Differences | |
---|---|---|---|
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | - | func foo (arg) = nil | |
7 | + | func foo (arg) = { | |
8 | + | let keys = ["key1", "key2", "key3"] | |
9 | + | let values = ["value1", "value2", "value3"] | |
10 | + | func addStringEntry (accum,nextValue) = { | |
11 | + | let $t0292315 = accum | |
12 | + | let result = $t0292315._1 | |
13 | + | let j = $t0292315._2 | |
14 | + | $Tuple2((result :+ StringEntry(keys[j], nextValue)), (j + 1)) | |
15 | + | } | |
16 | + | ||
17 | + | let r = { | |
18 | + | let $l = values | |
19 | + | let $s = size($l) | |
20 | + | let $acc0 = $Tuple2(nil, 0) | |
21 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
22 | + | then $a | |
23 | + | else addStringEntry($a, $l[$i]) | |
24 | + | ||
25 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
26 | + | then $a | |
27 | + | else throw("List size exceeds 10") | |
28 | + | ||
29 | + | $f0_2($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) | |
30 | + | } | |
31 | + | r._1 | |
32 | + | } | |
8 | 33 | ||
9 | 34 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | - | func foo (arg) = nil | |
7 | + | func foo (arg) = { | |
8 | + | let keys = ["key1", "key2", "key3"] | |
9 | + | let values = ["value1", "value2", "value3"] | |
10 | + | func addStringEntry (accum,nextValue) = { | |
11 | + | let $t0292315 = accum | |
12 | + | let result = $t0292315._1 | |
13 | + | let j = $t0292315._2 | |
14 | + | $Tuple2((result :+ StringEntry(keys[j], nextValue)), (j + 1)) | |
15 | + | } | |
16 | + | ||
17 | + | let r = { | |
18 | + | let $l = values | |
19 | + | let $s = size($l) | |
20 | + | let $acc0 = $Tuple2(nil, 0) | |
21 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
22 | + | then $a | |
23 | + | else addStringEntry($a, $l[$i]) | |
24 | + | ||
25 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
26 | + | then $a | |
27 | + | else throw("List size exceeds 10") | |
28 | + | ||
29 | + | $f0_2($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) | |
30 | + | } | |
31 | + | r._1 | |
32 | + | } | |
8 | 33 | ||
9 | 34 |
github/deemru/w8io/026f985 20.57 ms ◑