tx · ESPXiFzV2cNiv3BctT2wH1PEiqcnbSXSfkzDinhjatRi
3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB: -0.01400000 Waves
2021.06.03 07:22 [1553700] smart account 3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB > SELF 0.00000000 Waves
{
"type": 13,
"id": "ESPXiFzV2cNiv3BctT2wH1PEiqcnbSXSfkzDinhjatRi",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1622694108715,
"version": 2,
"chainId": 84,
"sender": "3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB",
"senderPublicKey": "CQ7vntBAYh2QZcKcqiiyEnQWWXsr98ysDptD23Wgxmvb",
"proofs": [
"5Rjj5X9ff9gBC24SyY5bUXbVc7rfpuZnui74UjbKpH6VDsAQ5EZdXpv1n4QPLw2gqxjYAD59eSWfUFLcWpxVpX1T"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAQEAAAAMcGFyc2VJbnRMaXN0AAAAAQAAAApzdHJpbmdMaXN0BAAAAAdsaXN0SW50BQAAAANuaWwKAQAAAAdpbnRMaXN0AAAAAgAAAARsaXN0AAAAAWEKAQAAAAtpbnRMaXN0RnVuYwAAAAAJAARNAAAAAgUAAAAHbGlzdEludAkABLYAAAABBQAAAAFhBAAAAAFjCQEAAAALaW50TGlzdEZ1bmMAAAAACQAETQAAAAIFAAAABGxpc3QFAAAAAWEEAAAAAWIEAAAACyRsaXN0MzE5MzUxBQAAAApzdHJpbmdMaXN0BAAAAAskc2l6ZTMxOTM1MQkAAZAAAAABBQAAAAskbGlzdDMxOTM1MQQAAAALJGFjYzAzMTkzNTEFAAAAA25pbAMJAAAAAAAAAgUAAAALJHNpemUzMTkzNTEAAAAAAAAAAAAFAAAACyRhY2MwMzE5MzUxBAAAAAskYWNjMTMxOTM1MQkBAAAAB2ludExpc3QAAAACBQAAAAskYWNjMDMxOTM1MQkAAZEAAAACBQAAAAskbGlzdDMxOTM1MQAAAAAAAA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AAAEAAAABGxpc3QJAQAAAAxwYXJzZUludExpc3QAAAABCQAETAAAAAICAAAAAjExCQAETAAAAAICAAAAAjEyCQAETAAAAAICAAAAAjEzCQAETAAAAAICAAAAAjE0CQAETAAAAAICAAAAAjE1BQAAAANuaWwDCQAAAAAAAAIFAAAABWNvdW50AAAAAAAAAAABCQAAAgAAAAEJAAEsAAAAAgIAAAALL2xpc3RbMF09PT4JAAGRAAAAAgUAAAAEbGlzdAAAAAAAAAAAAAkABEwAAAACBQAAAAVhc3NldAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmZfeP8",
"height": 1553700,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 6XiHx8ncfMxUg2yuRg2qhLwemFmnEkrJGCAVb4bRxTpn
Next: ES9FvYdsHrZewz11gKBzx7LkEYT4dcsoXMAYvJt5nVPv
Diff:
Old | New | | Differences |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a (b) = { |
---|
5 | | - | func c (d,e) = (d :+ e) |
---|
| 5 | + | let c = nil |
---|
| 6 | + | func d (e,f) = { |
---|
| 7 | + | func g () = (c :+ parseInt(f)) |
---|
6 | 8 | | |
---|
7 | | - | let f = b |
---|
8 | | - | let g = size(f) |
---|
9 | | - | let h = nil |
---|
10 | | - | if ((g == 0)) |
---|
11 | | - | then h |
---|
12 | | - | else { |
---|
13 | | - | let i = c(h, f[0]) |
---|
14 | | - | if ((g == 1)) |
---|
15 | | - | then i |
---|
16 | | - | else { |
---|
17 | | - | let j = c(i, f[1]) |
---|
18 | | - | if ((g == 2)) |
---|
19 | | - | then j |
---|
20 | | - | else { |
---|
21 | | - | let k = c(j, f[2]) |
---|
22 | | - | if ((g == 3)) |
---|
23 | | - | then k |
---|
24 | | - | else { |
---|
25 | | - | let l = c(k, f[3]) |
---|
26 | | - | throw("List size exceed 3") |
---|
27 | | - | } |
---|
28 | | - | } |
---|
29 | | - | } |
---|
30 | | - | } |
---|
| 9 | + | let h = g() |
---|
| 10 | + | (e :+ f) |
---|
| 11 | + | } |
---|
| 12 | + | |
---|
| 13 | + | let i = { |
---|
| 14 | + | let j = b |
---|
| 15 | + | let k = size(j) |
---|
| 16 | + | let l = nil |
---|
| 17 | + | if ((k == 0)) |
---|
| 18 | + | then l |
---|
| 19 | + | else { |
---|
| 20 | + | let m = d(l, j[0]) |
---|
| 21 | + | if ((k == 1)) |
---|
| 22 | + | then m |
---|
| 23 | + | else { |
---|
| 24 | + | let n = d(m, j[1]) |
---|
| 25 | + | if ((k == 2)) |
---|
| 26 | + | then n |
---|
| 27 | + | else { |
---|
| 28 | + | let o = d(n, j[2]) |
---|
| 29 | + | if ((k == 3)) |
---|
| 30 | + | then o |
---|
| 31 | + | else { |
---|
| 32 | + | let p = d(o, j[3]) |
---|
| 33 | + | if ((k == 4)) |
---|
| 34 | + | then p |
---|
| 35 | + | else { |
---|
| 36 | + | let q = d(p, j[4]) |
---|
| 37 | + | if ((k == 5)) |
---|
| 38 | + | then q |
---|
| 39 | + | else { |
---|
| 40 | + | let r = d(q, j[5]) |
---|
| 41 | + | throw("List size exceed 5") |
---|
| 42 | + | } |
---|
| 43 | + | } |
---|
| 44 | + | } |
---|
| 45 | + | } |
---|
| 46 | + | } |
---|
| 47 | + | } |
---|
| 48 | + | } |
---|
| 49 | + | c |
---|
31 | 50 | | } |
---|
32 | 51 | | |
---|
33 | 52 | | |
---|
34 | | - | @Callable(m) |
---|
| 53 | + | @Callable(s) |
---|
35 | 54 | | func call () = { |
---|
36 | | - | let n = 1 |
---|
37 | | - | let o = Issue("Asset", "", 1, 0, true, unit, 0) |
---|
38 | | - | let p = calculateAssetId(o) |
---|
39 | | - | let q = a([2, 3, 4]) |
---|
40 | | - | if ((q == q)) |
---|
41 | | - | then if ((n == 1)) |
---|
42 | | - | then throw(((((((("/list[0]==>" + toString(q[0])) + "/list[1]==>") + toString(q[1])) + "/list[2]==>") + toString(q[2])) + "/list[2]==>") + toString(q[3]))) |
---|
43 | | - | else [o] |
---|
44 | | - | else throw("Strict value is not equal to itself.") |
---|
| 55 | + | let t = 1 |
---|
| 56 | + | let u = Issue("Asset", "", 1, 0, true, unit, 0) |
---|
| 57 | + | let e = a(["11", "12", "13", "14", "15"]) |
---|
| 58 | + | if ((t == 1)) |
---|
| 59 | + | then throw(("/list[0]==>" + e[0])) |
---|
| 60 | + | else [u] |
---|
45 | 61 | | } |
---|
46 | 62 | | |
---|
47 | 63 | | |
---|
48 | | - | @Verifier(r) |
---|
49 | | - | func s () = sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey) |
---|
| 64 | + | @Verifier(v) |
---|
| 65 | + | func w () = sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey) |
---|
50 | 66 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a (b) = { |
---|
5 | | - | func c (d,e) = (d :+ e) |
---|
| 5 | + | let c = nil |
---|
| 6 | + | func d (e,f) = { |
---|
| 7 | + | func g () = (c :+ parseInt(f)) |
---|
6 | 8 | | |
---|
7 | | - | let f = b |
---|
8 | | - | let g = size(f) |
---|
9 | | - | let h = nil |
---|
10 | | - | if ((g == 0)) |
---|
11 | | - | then h |
---|
12 | | - | else { |
---|
13 | | - | let i = c(h, f[0]) |
---|
14 | | - | if ((g == 1)) |
---|
15 | | - | then i |
---|
16 | | - | else { |
---|
17 | | - | let j = c(i, f[1]) |
---|
18 | | - | if ((g == 2)) |
---|
19 | | - | then j |
---|
20 | | - | else { |
---|
21 | | - | let k = c(j, f[2]) |
---|
22 | | - | if ((g == 3)) |
---|
23 | | - | then k |
---|
24 | | - | else { |
---|
25 | | - | let l = c(k, f[3]) |
---|
26 | | - | throw("List size exceed 3") |
---|
27 | | - | } |
---|
28 | | - | } |
---|
29 | | - | } |
---|
30 | | - | } |
---|
| 9 | + | let h = g() |
---|
| 10 | + | (e :+ f) |
---|
| 11 | + | } |
---|
| 12 | + | |
---|
| 13 | + | let i = { |
---|
| 14 | + | let j = b |
---|
| 15 | + | let k = size(j) |
---|
| 16 | + | let l = nil |
---|
| 17 | + | if ((k == 0)) |
---|
| 18 | + | then l |
---|
| 19 | + | else { |
---|
| 20 | + | let m = d(l, j[0]) |
---|
| 21 | + | if ((k == 1)) |
---|
| 22 | + | then m |
---|
| 23 | + | else { |
---|
| 24 | + | let n = d(m, j[1]) |
---|
| 25 | + | if ((k == 2)) |
---|
| 26 | + | then n |
---|
| 27 | + | else { |
---|
| 28 | + | let o = d(n, j[2]) |
---|
| 29 | + | if ((k == 3)) |
---|
| 30 | + | then o |
---|
| 31 | + | else { |
---|
| 32 | + | let p = d(o, j[3]) |
---|
| 33 | + | if ((k == 4)) |
---|
| 34 | + | then p |
---|
| 35 | + | else { |
---|
| 36 | + | let q = d(p, j[4]) |
---|
| 37 | + | if ((k == 5)) |
---|
| 38 | + | then q |
---|
| 39 | + | else { |
---|
| 40 | + | let r = d(q, j[5]) |
---|
| 41 | + | throw("List size exceed 5") |
---|
| 42 | + | } |
---|
| 43 | + | } |
---|
| 44 | + | } |
---|
| 45 | + | } |
---|
| 46 | + | } |
---|
| 47 | + | } |
---|
| 48 | + | } |
---|
| 49 | + | c |
---|
31 | 50 | | } |
---|
32 | 51 | | |
---|
33 | 52 | | |
---|
34 | | - | @Callable(m) |
---|
| 53 | + | @Callable(s) |
---|
35 | 54 | | func call () = { |
---|
36 | | - | let n = 1 |
---|
37 | | - | let o = Issue("Asset", "", 1, 0, true, unit, 0) |
---|
38 | | - | let p = calculateAssetId(o) |
---|
39 | | - | let q = a([2, 3, 4]) |
---|
40 | | - | if ((q == q)) |
---|
41 | | - | then if ((n == 1)) |
---|
42 | | - | then throw(((((((("/list[0]==>" + toString(q[0])) + "/list[1]==>") + toString(q[1])) + "/list[2]==>") + toString(q[2])) + "/list[2]==>") + toString(q[3]))) |
---|
43 | | - | else [o] |
---|
44 | | - | else throw("Strict value is not equal to itself.") |
---|
| 55 | + | let t = 1 |
---|
| 56 | + | let u = Issue("Asset", "", 1, 0, true, unit, 0) |
---|
| 57 | + | let e = a(["11", "12", "13", "14", "15"]) |
---|
| 58 | + | if ((t == 1)) |
---|
| 59 | + | then throw(("/list[0]==>" + e[0])) |
---|
| 60 | + | else [u] |
---|
45 | 61 | | } |
---|
46 | 62 | | |
---|
47 | 63 | | |
---|
48 | | - | @Verifier(r) |
---|
49 | | - | func s () = sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey) |
---|
| 64 | + | @Verifier(v) |
---|
| 65 | + | func w () = sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey) |
---|
50 | 66 | | |
---|