tx · 7661siHEKKZTTQJBmJHNu3w1aaKrf8Fes8poNNytHcHL 3Mv2MfC2igdCTgGx1wpEF3GxPqvFD3rwvgL: -0.01000000 Waves 2023.11.01 11:44 [2824028] smart account 3Mv2MfC2igdCTgGx1wpEF3GxPqvFD3rwvgL > SELF 0.00000000 Waves
{ "type": 13, "id": "7661siHEKKZTTQJBmJHNu3w1aaKrf8Fes8poNNytHcHL", "fee": 1000000, "feeAssetId": null, "timestamp": 1698828270201, "version": 2, "chainId": 84, "sender": "3Mv2MfC2igdCTgGx1wpEF3GxPqvFD3rwvgL", "senderPublicKey": "rbYfYDr4NWugEviYfXbUNGouFowM3uaXcYowkW8PXAa", "proofs": [ "3c8Lb8S6JEZFJW4U878MKqef4EZXqvtKgBhLnEZFACDTSLE9BGAaDeYAmCbjZvYkCA8QK243wqLJ2DaN1c54KzpT" ], "script": "base64:BgIECAISAAMAC1N0cmluZ1ZhbHVlAgsxXzJfM180XzVfNgEEZm9sZAIFYWNjdW0EbmV4dAkAzQgCBQVhY2N1bQkBDXBhcnNlSW50VmFsdWUBBQRuZXh0AQNhZGQCBWFjY3VtBE5leHQJAGQCBQVhY2N1bQUETmV4dAEBaQEBYQAEBExpc3QKAAIkbAkAtQkCBQtTdHJpbmdWYWx1ZQIBXwoAAiRzCQCQAwEFAiRsCgAFJGFjYzAFA25pbAoBBSRmMF8xAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQEEZm9sZAIFAiRhCQCRAwIFAiRsBQIkaQoBBSRmMF8yAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQACAQITTGlzdCBzaXplIGV4Y2VlZHMgMwkBBSRmMF8yAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgUFJGFjYzAAAAABAAIAAwQFdG90YWwKAAIkbAUETGlzdAoAAiRzCQCQAwEFAiRsCgAFJGFjYzAAAAoBBSRmMV8xAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQEDYWRkAgUCJGEJAJ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MQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIFBSRhY2MwAAAAAQACAAMABAAFAAYABwAIAAkACgALAAwADQAOAA8AEAARABIAEwAUABUAFgAXABgAGQAaABsAHAAdAB4AHwAgACEAIgAjACQAJQAmACcAKAApACoAKwAsAC0ALgAvADAAMQAyADMANAA1ADYANwA4ADkAOgA7ADwAPQA+AD8AQABBAEIAQwBEAEUARgBHAEgASQBKAEsATABNAE4ATwBQAFEAUgBTAFQAVQBWAFcAWABZAFoAWwBcAF0AXgBfAGAAYQBiAGMAZAkAzAgCCQEMSW50ZWdlckVudHJ5AgIFVG90YWwFBXRvdGFsBQNuaWwAs/+M0A==", "height": 2824028, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Fxt74oMFSYgXRGYAGb9winQxQyVE4xTodcx7U3Lxtcie Next: 4Wc2tXbyJBUvPKkxSYEAqQ9ouy5mdJuqQEHwdW2m7XKN Diff:
Old | New | Differences | |
---|---|---|---|
9 | 9 | func add (accum,Next) = (accum + Next) | |
10 | 10 | ||
11 | 11 | ||
12 | + | @Callable(i) | |
12 | 13 | func a () = { | |
13 | 14 | let List = { | |
14 | 15 | let $l = split(StringValue, "_") | |
42 | 43 | } | |
43 | 44 | ||
44 | 45 | ||
45 | - |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let StringValue = "1_2_3_4_5_6" | |
5 | 5 | ||
6 | 6 | func fold (accum,next) = (accum :+ parseIntValue(next)) | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | func add (accum,Next) = (accum + Next) | |
10 | 10 | ||
11 | 11 | ||
12 | + | @Callable(i) | |
12 | 13 | func a () = { | |
13 | 14 | let List = { | |
14 | 15 | let $l = split(StringValue, "_") | |
15 | 16 | let $s = size($l) | |
16 | 17 | let $acc0 = nil | |
17 | 18 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
18 | 19 | then $a | |
19 | 20 | else fold($a, $l[$i]) | |
20 | 21 | ||
21 | 22 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
22 | 23 | then $a | |
23 | 24 | else throw("List size exceeds 3") | |
24 | 25 | ||
25 | 26 | $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3) | |
26 | 27 | } | |
27 | 28 | let total = { | |
28 | 29 | let $l = List | |
29 | 30 | let $s = size($l) | |
30 | 31 | let $acc0 = 0 | |
31 | 32 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
32 | 33 | then $a | |
33 | 34 | else add($a, $l[$i]) | |
34 | 35 | ||
35 | 36 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
36 | 37 | then $a | |
37 | 38 | else throw("List size exceeds 100") | |
38 | 39 | ||
39 | 40 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
40 | 41 | } | |
41 | 42 | [IntegerEntry("Total", total)] | |
42 | 43 | } | |
43 | 44 | ||
44 | 45 | ||
45 | - |
github/deemru/w8io/169f3d6 40.44 ms ◑