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:AAIEAAAAAAAAAAQIAhIAAAAAAQEAAAAMcGFyc2VJbnRMaXN0AAAAAQAAAApzdHJpbmdMaXN0BAAAAAdsaXN0SW50BQAAAANuaWwKAQAAAAdpbnRMaXN0AAAAAgAAAARsaXN0AAAAAWEKAQAAAAtpbnRMaXN0RnVuYwAAAAAJAARNAAAAAgUAAAAHbGlzdEludAkABLYAAAABBQAAAAFhBAAAAAFjCQEAAAALaW50TGlzdEZ1bmMAAAAACQAETQAAAAIFAAAABGxpc3QFAAAAAWEEAAAAAWIEAAAACyRsaXN0MzE5MzUxBQAAAApzdHJpbmdMaXN0BAAAAAskc2l6ZTMxOTM1MQkAAZAAAAABBQAAAAskbGlzdDMxOTM1MQQAAAALJGFjYzAzMTkzNTEFAAAAA25pbAMJAAAAAAAAAgUAAAALJHNpemUzMTkzNTEAAAAAAAAAAAAFAAAACyRhY2MwMzE5MzUxBAAAAAskYWNjMTMxOTM1MQkBAAAAB2ludExpc3QAAAACBQAAAAskYWNjMDMxOTM1MQkAAZEAAAACBQAAAAskbGlzdDMxOTM1MQAAAAAAAAAAAAMJAAAA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pc3QJAQAAAAxwYXJzZUludExpc3QAAAABCQAETAAAAAICAAAAAjExCQAETAAAAAICAAAAAjEyCQAETAAAAAICAAAAAjEzCQAETAAAAAICAAAAAjE0CQAETAAAAAICAAAAAjE1BQAAAANuaWwDCQAAAAAAAAIFAAAABWNvdW50AAAAAAAAAAABCQAAAgAAAAEJAAEsAAAAAgIAAAALL2xpc3RbMF09PT4JAAGRAAAAAgUAAAAEbGlzdAAAAAAAAAAAAAkABEwAAAACBQAAAAVhc3NldAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmZfeP8", "height": 1553700, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6XiHx8ncfMxUg2yuRg2qhLwemFmnEkrJGCAVb4bRxTpn Next: ES9FvYdsHrZewz11gKBzx7LkEYT4dcsoXMAYvJt5nVPv Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | func listToStringFunc (IntegerList) = { | |
5 | - | func listToString (intList,a) = (intList :+ a) | |
4 | + | func parseIntList (stringList) = { | |
5 | + | let listInt = nil | |
6 | + | func intList (list,a) = { | |
7 | + | func intListFunc () = (listInt :+ parseInt(a)) | |
6 | 8 | ||
7 | - | let $list222260 = IntegerList | |
8 | - | let $size222260 = size($list222260) | |
9 | - | let $acc0222260 = nil | |
10 | - | if (($size222260 == 0)) | |
11 | - | then $acc0222260 | |
12 | - | else { | |
13 | - | let $acc1222260 = listToString($acc0222260, $list222260[0]) | |
14 | - | if (($size222260 == 1)) | |
15 | - | then $acc1222260 | |
16 | - | else { | |
17 | - | let $acc2222260 = listToString($acc1222260, $list222260[1]) | |
18 | - | if (($size222260 == 2)) | |
19 | - | then $acc2222260 | |
20 | - | else { | |
21 | - | let $acc3222260 = listToString($acc2222260, $list222260[2]) | |
22 | - | if (($size222260 == 3)) | |
23 | - | then $acc3222260 | |
24 | - | else { | |
25 | - | let $acc4222260 = listToString($acc3222260, $list222260[3]) | |
26 | - | throw("List size exceed 3") | |
27 | - | } | |
28 | - | } | |
29 | - | } | |
30 | - | } | |
9 | + | let c = intListFunc() | |
10 | + | (list :+ a) | |
11 | + | } | |
12 | + | ||
13 | + | let b = { | |
14 | + | let $list319351 = stringList | |
15 | + | let $size319351 = size($list319351) | |
16 | + | let $acc0319351 = nil | |
17 | + | if (($size319351 == 0)) | |
18 | + | then $acc0319351 | |
19 | + | else { | |
20 | + | let $acc1319351 = intList($acc0319351, $list319351[0]) | |
21 | + | if (($size319351 == 1)) | |
22 | + | then $acc1319351 | |
23 | + | else { | |
24 | + | let $acc2319351 = intList($acc1319351, $list319351[1]) | |
25 | + | if (($size319351 == 2)) | |
26 | + | then $acc2319351 | |
27 | + | else { | |
28 | + | let $acc3319351 = intList($acc2319351, $list319351[2]) | |
29 | + | if (($size319351 == 3)) | |
30 | + | then $acc3319351 | |
31 | + | else { | |
32 | + | let $acc4319351 = intList($acc3319351, $list319351[3]) | |
33 | + | if (($size319351 == 4)) | |
34 | + | then $acc4319351 | |
35 | + | else { | |
36 | + | let $acc5319351 = intList($acc4319351, $list319351[4]) | |
37 | + | if (($size319351 == 5)) | |
38 | + | then $acc5319351 | |
39 | + | else { | |
40 | + | let $acc6319351 = intList($acc5319351, $list319351[5]) | |
41 | + | throw("List size exceed 5") | |
42 | + | } | |
43 | + | } | |
44 | + | } | |
45 | + | } | |
46 | + | } | |
47 | + | } | |
48 | + | } | |
49 | + | listInt | |
31 | 50 | } | |
32 | 51 | ||
33 | 52 | ||
35 | 54 | func call () = { | |
36 | 55 | let count = 1 | |
37 | 56 | let asset = Issue("Asset", "", 1, 0, true, unit, 0) | |
38 | - | let assetId = calculateAssetId(asset) | |
39 | - | let list = listToStringFunc([2, 3, 4]) | |
40 | - | if ((list == list)) | |
41 | - | then if ((count == 1)) | |
42 | - | then throw(((((((("/list[0]==>" + toString(list[0])) + "/list[1]==>") + toString(list[1])) + "/list[2]==>") + toString(list[2])) + "/list[2]==>") + toString(list[3]))) | |
43 | - | else [asset] | |
44 | - | else throw("Strict value is not equal to itself.") | |
57 | + | let list = parseIntList(["11", "12", "13", "14", "15"]) | |
58 | + | if ((count == 1)) | |
59 | + | then throw(("/list[0]==>" + list[0])) | |
60 | + | else [asset] | |
45 | 61 | } | |
46 | 62 | ||
47 | 63 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | func listToStringFunc (IntegerList) = { | |
5 | - | func listToString (intList,a) = (intList :+ a) | |
4 | + | func parseIntList (stringList) = { | |
5 | + | let listInt = nil | |
6 | + | func intList (list,a) = { | |
7 | + | func intListFunc () = (listInt :+ parseInt(a)) | |
6 | 8 | ||
7 | - | let $list222260 = IntegerList | |
8 | - | let $size222260 = size($list222260) | |
9 | - | let $acc0222260 = nil | |
10 | - | if (($size222260 == 0)) | |
11 | - | then $acc0222260 | |
12 | - | else { | |
13 | - | let $acc1222260 = listToString($acc0222260, $list222260[0]) | |
14 | - | if (($size222260 == 1)) | |
15 | - | then $acc1222260 | |
16 | - | else { | |
17 | - | let $acc2222260 = listToString($acc1222260, $list222260[1]) | |
18 | - | if (($size222260 == 2)) | |
19 | - | then $acc2222260 | |
20 | - | else { | |
21 | - | let $acc3222260 = listToString($acc2222260, $list222260[2]) | |
22 | - | if (($size222260 == 3)) | |
23 | - | then $acc3222260 | |
24 | - | else { | |
25 | - | let $acc4222260 = listToString($acc3222260, $list222260[3]) | |
26 | - | throw("List size exceed 3") | |
27 | - | } | |
28 | - | } | |
29 | - | } | |
30 | - | } | |
9 | + | let c = intListFunc() | |
10 | + | (list :+ a) | |
11 | + | } | |
12 | + | ||
13 | + | let b = { | |
14 | + | let $list319351 = stringList | |
15 | + | let $size319351 = size($list319351) | |
16 | + | let $acc0319351 = nil | |
17 | + | if (($size319351 == 0)) | |
18 | + | then $acc0319351 | |
19 | + | else { | |
20 | + | let $acc1319351 = intList($acc0319351, $list319351[0]) | |
21 | + | if (($size319351 == 1)) | |
22 | + | then $acc1319351 | |
23 | + | else { | |
24 | + | let $acc2319351 = intList($acc1319351, $list319351[1]) | |
25 | + | if (($size319351 == 2)) | |
26 | + | then $acc2319351 | |
27 | + | else { | |
28 | + | let $acc3319351 = intList($acc2319351, $list319351[2]) | |
29 | + | if (($size319351 == 3)) | |
30 | + | then $acc3319351 | |
31 | + | else { | |
32 | + | let $acc4319351 = intList($acc3319351, $list319351[3]) | |
33 | + | if (($size319351 == 4)) | |
34 | + | then $acc4319351 | |
35 | + | else { | |
36 | + | let $acc5319351 = intList($acc4319351, $list319351[4]) | |
37 | + | if (($size319351 == 5)) | |
38 | + | then $acc5319351 | |
39 | + | else { | |
40 | + | let $acc6319351 = intList($acc5319351, $list319351[5]) | |
41 | + | throw("List size exceed 5") | |
42 | + | } | |
43 | + | } | |
44 | + | } | |
45 | + | } | |
46 | + | } | |
47 | + | } | |
48 | + | } | |
49 | + | listInt | |
31 | 50 | } | |
32 | 51 | ||
33 | 52 | ||
34 | 53 | @Callable(i) | |
35 | 54 | func call () = { | |
36 | 55 | let count = 1 | |
37 | 56 | let asset = Issue("Asset", "", 1, 0, true, unit, 0) | |
38 | - | let assetId = calculateAssetId(asset) | |
39 | - | let list = listToStringFunc([2, 3, 4]) | |
40 | - | if ((list == list)) | |
41 | - | then if ((count == 1)) | |
42 | - | then throw(((((((("/list[0]==>" + toString(list[0])) + "/list[1]==>") + toString(list[1])) + "/list[2]==>") + toString(list[2])) + "/list[2]==>") + toString(list[3]))) | |
43 | - | else [asset] | |
44 | - | else throw("Strict value is not equal to itself.") | |
57 | + | let list = parseIntList(["11", "12", "13", "14", "15"]) | |
58 | + | if ((count == 1)) | |
59 | + | then throw(("/list[0]==>" + list[0])) | |
60 | + | else [asset] | |
45 | 61 | } | |
46 | 62 | ||
47 | 63 | ||
48 | 64 | @Verifier(tx) | |
49 | 65 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
50 | 66 |
github/deemru/w8io/026f985 35.24 ms ◑