tx · FxwTrrqwGEq2s3CJZjmGWvfRSGnZBFzUsGLWx8MdLXmA 3Myg9C6tNDTG6uXmwvkhAU3uLkA6WzNrTx8: -0.02000000 Waves 2023.10.29 18:37 [2820115] smart account 3Myg9C6tNDTG6uXmwvkhAU3uLkA6WzNrTx8 > SELF 0.00000000 Waves
{ "type": 13, "id": "FxwTrrqwGEq2s3CJZjmGWvfRSGnZBFzUsGLWx8MdLXmA", "fee": 2000000, "feeAssetId": null, "timestamp": 1698593898063, "version": 2, "chainId": 84, "sender": "3Myg9C6tNDTG6uXmwvkhAU3uLkA6WzNrTx8", "senderPublicKey": "8EXR9gFY3exPzo6wV3v2oa96CYznA1QszMLFXiwWuptJ", "proofs": [ "2JqzpZRpgdFZcfyVraWCy9UtWMvCGSHTZsSntSbr5U3MEZXvFQzngwZRx4WzL3Kfb4BTqFKwbxJCE3LZEvuUM6rf" ], "script": "base64:BgIECAISAAIAA2FycgkAzAgCAAEJAMwIAgACCQDMCAIAAwkAzAgCAAQJAMwIAgAFBQNuaWwBAWYCBWFjY3VtBG5leHQJAGQCBQVhY2N1bQUEbmV4dAEBaQEBYQAEA3BtdAkAkQMCCAUBaQhwYXltZW50cwAABAFhCgACJGwFA2FycgoAAiRzCQCQAwEFAiRsCgAFJGFjYzAIBQNwbXQGYW1vdW50CgEFJGYwXzECAiRhAiRpAwkAZwIFAiRpBQIkcwUCJGEJAQFmAgUCJGEJAJEDAgUCJGwFAiRpCgEFJGYwXzICAiRhAiRpAwkAZwIFAiRpBQIkcwUCJGEJAAIBAhVMaXN0IHNpemUgZXhjZWVkcyAxMDAJAQUkZjBfMgIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfM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QACAAMABAAFAAYABwAIAAkACgALAAwADQAOAA8AEAARABIAEwAUABUAFgAXABgAGQAaABsAHAAdAB4AHwAgACEAIgAjACQAJQAmACcAKAApACoAKwAsAC0ALgAvADAAMQAyADMANAA1ADYANwA4ADkAOgA7ADwAPQA+AD8AQABBAEIAQwBEAEUARgBHAEgASQBKAEsATABNAE4ATwBQAFEAUgBTAFQAVQBWAFcAWABZAFoAWwBcAF0AXgBfAGAAYQBiAGMAZAkAzAgCCQEMSW50ZWdlckVudHJ5AgIFVG90YWwFAWEFA25pbAAxdwGY", "height": 2820115, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CWqqHfH7iNeksXLagoLLTDDvHtzFXK4SWM3Vmv7C35U6 Next: CKNpbhhSuCXxN8fjCreVk5xYeJqJE4nN72FVngSTjAVq Diff:
Old | New | Differences | |
---|---|---|---|
8 | 8 | ||
9 | 9 | @Callable(f) | |
10 | 10 | func a () = { | |
11 | - | let g = { | |
12 | - | let h = b | |
13 | - | let i = size(h) | |
14 | - | let j = 0 | |
15 | - | func k (l,m) = if ((m >= i)) | |
16 | - | then l | |
17 | - | else c(l, h[m]) | |
11 | + | let g = f.payments[0] | |
12 | + | let h = { | |
13 | + | let i = b | |
14 | + | let j = size(i) | |
15 | + | let k = g.amount | |
16 | + | func l (m,n) = if ((n >= j)) | |
17 | + | then m | |
18 | + | else c(m, i[n]) | |
18 | 19 | ||
19 | - | func | |
20 | - | then | |
20 | + | func o (m,n) = if ((n >= j)) | |
21 | + | then m | |
21 | 22 | else throw("List size exceeds 100") | |
22 | 23 | ||
23 | - | | |
24 | + | o(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(k, 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) | |
24 | 25 | } | |
25 | - | [IntegerEntry("Total", | |
26 | + | [IntegerEntry("Total", h)] | |
26 | 27 | } | |
27 | 28 | ||
28 | 29 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let b = [1, 2, 3, 4, 5] | |
5 | 5 | ||
6 | 6 | func c (d,e) = (d + e) | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | @Callable(f) | |
10 | 10 | func a () = { | |
11 | - | let g = { | |
12 | - | let h = b | |
13 | - | let i = size(h) | |
14 | - | let j = 0 | |
15 | - | func k (l,m) = if ((m >= i)) | |
16 | - | then l | |
17 | - | else c(l, h[m]) | |
11 | + | let g = f.payments[0] | |
12 | + | let h = { | |
13 | + | let i = b | |
14 | + | let j = size(i) | |
15 | + | let k = g.amount | |
16 | + | func l (m,n) = if ((n >= j)) | |
17 | + | then m | |
18 | + | else c(m, i[n]) | |
18 | 19 | ||
19 | - | func | |
20 | - | then | |
20 | + | func o (m,n) = if ((n >= j)) | |
21 | + | then m | |
21 | 22 | else throw("List size exceeds 100") | |
22 | 23 | ||
23 | - | | |
24 | + | o(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(k, 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) | |
24 | 25 | } | |
25 | - | [IntegerEntry("Total", | |
26 | + | [IntegerEntry("Total", h)] | |
26 | 27 | } | |
27 | 28 | ||
28 | 29 |
github/deemru/w8io/026f985 38.03 ms ◑