tx · 9PSozigb6iG8TeV7sJkhiDtXiiqagBaRN5jn7CDmKGCX 3N8oN3yLcrZHa6DcDfqE9Rz8GkzudXjnmrx: -0.01000000 Waves 2023.08.14 10:09 [2709908] smart account 3N8oN3yLcrZHa6DcDfqE9Rz8GkzudXjnmrx > SELF 0.00000000 Waves
{ "type": 13, "id": "9PSozigb6iG8TeV7sJkhiDtXiiqagBaRN5jn7CDmKGCX", "fee": 1000000, "feeAssetId": null, "timestamp": 1691997021225, "version": 2, "chainId": 84, "sender": "3N8oN3yLcrZHa6DcDfqE9Rz8GkzudXjnmrx", "senderPublicKey": "81tRXAgqfPdSG8kxEMcAuyLeBBRRrzyqQLXCtCj1dpk2", "proofs": [ "KCZZ3nSTtbi7qUWef4qQfNY6diS3NquiuYE8TuFXx2Sew18iEVNEeKMCrCynpAqMCcWm2t1jP9Ur9iYv5JJaNAo" ], "script": "base64:BgIICAISBAoCCAEBAQR0ZXN0AAQEbGlzdAkAzAgCCQCUCgICAWEAAAkAzAgCCQCUCgICAWIAAQkAzAgCCQCUCgICAWMAAgUDbmlsCgEDYmFyAgNhY2MEbmV4dAQJJHQwMTkxMjA4BQRuZXh0BAFhCAUJJHQwMTkxMjA4Al8xBAFiCAUJJHQwMTkxMjA4Al8yBAFjCQD8BwQFBHRoaXMCA2ZvbwkAzAgCBQFhCQDMCAIFAWIFA25pbAUDbmlsAwkAAAIFAWMFAWMAAAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgoAAiRsBQRsaXN0CgACJHMJAJADAQUCJGwKAAUkYWNjMAAACgEFJGYwXzECAiRhAiRpAwkAZwIFAiRpBQIkcwUCJGEJAQNiYXICBQIkYQkAkQMCBQIkbAUCJGkKAQUkZjBfMgICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkAAgECFExpc3Qgc2l6ZSBleGNlZWRzIDEwCQEFJGYwXzICCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECBQUkYWNjMAAAAAEAAgADAAQABQAGAAcACAAJAAoBAWkBA2ZvbwIBYQFiCQDMCAIJAQxJbnRlZ2VyRW50cnkCBQFhBQFiBQNuaWwAt7I8Ag==", "height": 2709908, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9AC3QE4mJ156Urue6oALVwSyNxjhXtzWTFVgnftDkzvA Next: Ar3H2sJ4TLB8wKZQGsxDKes1EkfphC8XQwSnwPZgLWWS Diff:
Old | New | Differences | |
---|---|---|---|
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func test () = { | |
5 | - | let list = [$Tuple2("a", 0), $Tuple2("b", | |
5 | + | let list = [$Tuple2("a", 0), $Tuple2("b", 1), $Tuple2("c", 2)] | |
6 | 6 | func bar (acc,next) = { | |
7 | 7 | let $t0191208 = next | |
8 | 8 | let a = $t0191208._1 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func test () = { | |
5 | - | let list = [$Tuple2("a", 0), $Tuple2("b", | |
5 | + | let list = [$Tuple2("a", 0), $Tuple2("b", 1), $Tuple2("c", 2)] | |
6 | 6 | func bar (acc,next) = { | |
7 | 7 | let $t0191208 = next | |
8 | 8 | let a = $t0191208._1 | |
9 | 9 | let b = $t0191208._2 | |
10 | 10 | let c = invoke(this, "foo", [a, b], nil) | |
11 | 11 | if ((c == c)) | |
12 | 12 | then 0 | |
13 | 13 | else throw("Strict value is not equal to itself.") | |
14 | 14 | } | |
15 | 15 | ||
16 | 16 | let $l = list | |
17 | 17 | let $s = size($l) | |
18 | 18 | let $acc0 = 0 | |
19 | 19 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
20 | 20 | then $a | |
21 | 21 | else bar($a, $l[$i]) | |
22 | 22 | ||
23 | 23 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
24 | 24 | then $a | |
25 | 25 | else throw("List size exceeds 10") | |
26 | 26 | ||
27 | 27 | $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) | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | @Callable(i) | |
32 | 32 | func foo (a,b) = [IntegerEntry(a, b)] | |
33 | 33 | ||
34 | 34 |
github/deemru/w8io/026f985 36.60 ms ◑