tx · HukkxP9SGBGLdk7pYSCdWRwKzaeoJv4sAxpW3QzDXnTH
3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB: -0.01400000 Waves
2021.06.03 05:29 [1553575] smart account 3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB > SELF 0.00000000 Waves
{
"type": 13,
"id": "HukkxP9SGBGLdk7pYSCdWRwKzaeoJv4sAxpW3QzDXnTH",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1622687405401,
"version": 2,
"chainId": 84,
"sender": "3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB",
"senderPublicKey": "CQ7vntBAYh2QZcKcqiiyEnQWWXsr98ysDptD23Wgxmvb",
"proofs": [
"2QRKjUyWJctCeF1CQgiRvhN7rrMJYNXEzxJUYmsyxMabx5WD6G9fw7gLsms1Ynh1yvXJZ46agrhvm5xMVbuFAhcm"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAgEAAAAQbGlzdFRvU3RyaW5nRnVuYwAAAAEAAAALSW50ZWdlckxpc3QKAQAAAAxsaXN0VG9TdHJpbmcAAAACAAAAA2FjYwAAAAFpCQAETQAAAAIFAAAAA2FjYwkAAaQAAAABCQABkQAAAAIFAAAAC0ludGVnZXJMaXN0BQAAAAFpBAAAAAskbGlzdDIzMjI3MAUAAAALSW50ZWdlckxpc3QEAAAACyRzaXplMjMyMjcwCQABkAAAAAEFAAAACyRsaXN0MjMyMjcwBAAAAAskYWNjMDIzMjI3MAUAAAADbmlsAwkAAAAAAAACBQAAAAskc2l6ZTIzMjI3MAAAAAAAAAAAAAUAAAALJGFjYzAyMzIyNzAEAAAACyRhY2MxMjMyMjcwCQEAAAAMbGlzdFRvU3RyaW5nAAAAAgUAAAALJGFjYzAyMzIyNzAJAAGRAAAAAgUAAAALJGxpc3QyMzIyNzAAAAAAAAAAAAADCQAAAAAAAAIFAAAACyRzaXplMjMyMjcwAAAAAAAAAAABBQAAAAskYWNjMTIzMjI3MAQAAAALJ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AAAAAAAAQAAAAAAAAAAAAYFAAAABHVuaXQAAAAAAAAAAAAEAAAAB2Fzc2V0SWQJAAQ4AAAAAQUAAAAFYXNzZXQEAAAABGxpc3QJAQAAAA5maWx0ZXJTdGVwRnVuYwAAAAEJAARMAAAAAgAAAAAAAAAAAgkABEwAAAACAAAAAAAAAAADCQAETAAAAAIAAAAAAAAAAAQFAAAAA25pbAMJAAAAAAAAAgUAAAAEbGlzdAUAAAAEbGlzdAMJAAAAAAAAAgUAAAAFY291bnQAAAAAAAAAAAEJAAACAAAAAQkAASwAAAACAgAAAAlsaXN0XzE9PT4JAAGkAAAAAQkAAZEAAAACBQAAAARsaXN0AAAAAAAAAAAACQAETAAAAAIFAAAABWFzc2V0BQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXl8ix0h",
"height": 1553575,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 6gPQ9QHqFZtsojcrwfccHMAMahdVZm9mJ4Jvzp5UETvz
Next: HdcAd1TUHb9rqRr3LCqWqprLidQRkzUKmus2ALQRaAJ1
Diff:
Old | New | | Differences |
---|
4 | 4 | | func listToStringFunc (IntegerList) = { |
---|
5 | 5 | | func listToString (acc,i) = (acc :+ toString(IntegerList[i])) |
---|
6 | 6 | | |
---|
7 | | - | let $list242280 = IntegerList |
---|
8 | | - | let $size242280 = size($list242280) |
---|
9 | | - | let $acc0242280 = nil |
---|
10 | | - | if (($size242280 == 0)) |
---|
11 | | - | then $acc0242280 |
---|
| 7 | + | let $list232270 = IntegerList |
---|
| 8 | + | let $size232270 = size($list232270) |
---|
| 9 | + | let $acc0232270 = nil |
---|
| 10 | + | if (($size232270 == 0)) |
---|
| 11 | + | then $acc0232270 |
---|
12 | 12 | | else { |
---|
13 | | - | let $acc1242280 = listToString($acc0242280, $list242280[0]) |
---|
14 | | - | if (($size242280 == 1)) |
---|
15 | | - | then $acc1242280 |
---|
| 13 | + | let $acc1232270 = listToString($acc0232270, $list232270[0]) |
---|
| 14 | + | if (($size232270 == 1)) |
---|
| 15 | + | then $acc1232270 |
---|
16 | 16 | | else { |
---|
17 | | - | let $acc2242280 = listToString($acc1242280, $list242280[1]) |
---|
18 | | - | if (($size242280 == 2)) |
---|
19 | | - | then $acc2242280 |
---|
| 17 | + | let $acc2232270 = listToString($acc1232270, $list232270[1]) |
---|
| 18 | + | if (($size232270 == 2)) |
---|
| 19 | + | then $acc2232270 |
---|
20 | 20 | | else { |
---|
21 | | - | let $acc3242280 = listToString($acc2242280, $list242280[2]) |
---|
22 | | - | if (($size242280 == 3)) |
---|
23 | | - | then $acc3242280 |
---|
| 21 | + | let $acc3232270 = listToString($acc2232270, $list232270[2]) |
---|
| 22 | + | if (($size232270 == 3)) |
---|
| 23 | + | then $acc3232270 |
---|
24 | 24 | | else { |
---|
25 | | - | let $acc4242280 = listToString($acc3242280, $list242280[3]) |
---|
| 25 | + | let $acc4232270 = listToString($acc3232270, $list232270[3]) |
---|
26 | 26 | | throw("List size exceed 3") |
---|
| 27 | + | } |
---|
| 28 | + | } |
---|
| 29 | + | } |
---|
| 30 | + | } |
---|
| 31 | + | } |
---|
| 32 | + | |
---|
| 33 | + | |
---|
| 34 | + | func filterStepFunc (IntegerList) = { |
---|
| 35 | + | func filterStep (accumulated,a) = if (((a % 2) == 0)) |
---|
| 36 | + | then a :: accumulated |
---|
| 37 | + | else accumulated |
---|
| 38 | + | |
---|
| 39 | + | let arr = IntegerList |
---|
| 40 | + | let $list452480 = arr |
---|
| 41 | + | let $size452480 = size($list452480) |
---|
| 42 | + | let $acc0452480 = nil |
---|
| 43 | + | if (($size452480 == 0)) |
---|
| 44 | + | then $acc0452480 |
---|
| 45 | + | else { |
---|
| 46 | + | let $acc1452480 = filterStep($acc0452480, $list452480[0]) |
---|
| 47 | + | if (($size452480 == 1)) |
---|
| 48 | + | then $acc1452480 |
---|
| 49 | + | else { |
---|
| 50 | + | let $acc2452480 = filterStep($acc1452480, $list452480[1]) |
---|
| 51 | + | if (($size452480 == 2)) |
---|
| 52 | + | then $acc2452480 |
---|
| 53 | + | else { |
---|
| 54 | + | let $acc3452480 = filterStep($acc2452480, $list452480[2]) |
---|
| 55 | + | if (($size452480 == 3)) |
---|
| 56 | + | then $acc3452480 |
---|
| 57 | + | else { |
---|
| 58 | + | let $acc4452480 = filterStep($acc3452480, $list452480[3]) |
---|
| 59 | + | if (($size452480 == 4)) |
---|
| 60 | + | then $acc4452480 |
---|
| 61 | + | else { |
---|
| 62 | + | let $acc5452480 = filterStep($acc4452480, $list452480[4]) |
---|
| 63 | + | if (($size452480 == 5)) |
---|
| 64 | + | then $acc5452480 |
---|
| 65 | + | else { |
---|
| 66 | + | let $acc6452480 = filterStep($acc5452480, $list452480[5]) |
---|
| 67 | + | throw("List size exceed 5") |
---|
| 68 | + | } |
---|
| 69 | + | } |
---|
27 | 70 | | } |
---|
28 | 71 | | } |
---|
29 | 72 | | } |
---|
|
36 | 79 | | let count = 1 |
---|
37 | 80 | | let asset = Issue("Asset", "", 1, 0, true, unit, 0) |
---|
38 | 81 | | let assetId = calculateAssetId(asset) |
---|
39 | | - | let listToString = listToStringFunc([2, 3, 4]) |
---|
40 | | - | if ((listToString == listToString)) |
---|
| 82 | + | let list = filterStepFunc([2, 3, 4]) |
---|
| 83 | + | if ((list == list)) |
---|
41 | 84 | | then if ((count == 1)) |
---|
42 | | - | then throw(("list_1==>" + listToString[0])) |
---|
| 85 | + | then throw(("list_1==>" + toString(list[0]))) |
---|
43 | 86 | | else [asset] |
---|
44 | 87 | | else throw("Strict value is not equal to itself.") |
---|
45 | 88 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func listToStringFunc (IntegerList) = { |
---|
5 | 5 | | func listToString (acc,i) = (acc :+ toString(IntegerList[i])) |
---|
6 | 6 | | |
---|
7 | | - | let $list242280 = IntegerList |
---|
8 | | - | let $size242280 = size($list242280) |
---|
9 | | - | let $acc0242280 = nil |
---|
10 | | - | if (($size242280 == 0)) |
---|
11 | | - | then $acc0242280 |
---|
| 7 | + | let $list232270 = IntegerList |
---|
| 8 | + | let $size232270 = size($list232270) |
---|
| 9 | + | let $acc0232270 = nil |
---|
| 10 | + | if (($size232270 == 0)) |
---|
| 11 | + | then $acc0232270 |
---|
12 | 12 | | else { |
---|
13 | | - | let $acc1242280 = listToString($acc0242280, $list242280[0]) |
---|
14 | | - | if (($size242280 == 1)) |
---|
15 | | - | then $acc1242280 |
---|
| 13 | + | let $acc1232270 = listToString($acc0232270, $list232270[0]) |
---|
| 14 | + | if (($size232270 == 1)) |
---|
| 15 | + | then $acc1232270 |
---|
16 | 16 | | else { |
---|
17 | | - | let $acc2242280 = listToString($acc1242280, $list242280[1]) |
---|
18 | | - | if (($size242280 == 2)) |
---|
19 | | - | then $acc2242280 |
---|
| 17 | + | let $acc2232270 = listToString($acc1232270, $list232270[1]) |
---|
| 18 | + | if (($size232270 == 2)) |
---|
| 19 | + | then $acc2232270 |
---|
20 | 20 | | else { |
---|
21 | | - | let $acc3242280 = listToString($acc2242280, $list242280[2]) |
---|
22 | | - | if (($size242280 == 3)) |
---|
23 | | - | then $acc3242280 |
---|
| 21 | + | let $acc3232270 = listToString($acc2232270, $list232270[2]) |
---|
| 22 | + | if (($size232270 == 3)) |
---|
| 23 | + | then $acc3232270 |
---|
24 | 24 | | else { |
---|
25 | | - | let $acc4242280 = listToString($acc3242280, $list242280[3]) |
---|
| 25 | + | let $acc4232270 = listToString($acc3232270, $list232270[3]) |
---|
26 | 26 | | throw("List size exceed 3") |
---|
| 27 | + | } |
---|
| 28 | + | } |
---|
| 29 | + | } |
---|
| 30 | + | } |
---|
| 31 | + | } |
---|
| 32 | + | |
---|
| 33 | + | |
---|
| 34 | + | func filterStepFunc (IntegerList) = { |
---|
| 35 | + | func filterStep (accumulated,a) = if (((a % 2) == 0)) |
---|
| 36 | + | then a :: accumulated |
---|
| 37 | + | else accumulated |
---|
| 38 | + | |
---|
| 39 | + | let arr = IntegerList |
---|
| 40 | + | let $list452480 = arr |
---|
| 41 | + | let $size452480 = size($list452480) |
---|
| 42 | + | let $acc0452480 = nil |
---|
| 43 | + | if (($size452480 == 0)) |
---|
| 44 | + | then $acc0452480 |
---|
| 45 | + | else { |
---|
| 46 | + | let $acc1452480 = filterStep($acc0452480, $list452480[0]) |
---|
| 47 | + | if (($size452480 == 1)) |
---|
| 48 | + | then $acc1452480 |
---|
| 49 | + | else { |
---|
| 50 | + | let $acc2452480 = filterStep($acc1452480, $list452480[1]) |
---|
| 51 | + | if (($size452480 == 2)) |
---|
| 52 | + | then $acc2452480 |
---|
| 53 | + | else { |
---|
| 54 | + | let $acc3452480 = filterStep($acc2452480, $list452480[2]) |
---|
| 55 | + | if (($size452480 == 3)) |
---|
| 56 | + | then $acc3452480 |
---|
| 57 | + | else { |
---|
| 58 | + | let $acc4452480 = filterStep($acc3452480, $list452480[3]) |
---|
| 59 | + | if (($size452480 == 4)) |
---|
| 60 | + | then $acc4452480 |
---|
| 61 | + | else { |
---|
| 62 | + | let $acc5452480 = filterStep($acc4452480, $list452480[4]) |
---|
| 63 | + | if (($size452480 == 5)) |
---|
| 64 | + | then $acc5452480 |
---|
| 65 | + | else { |
---|
| 66 | + | let $acc6452480 = filterStep($acc5452480, $list452480[5]) |
---|
| 67 | + | throw("List size exceed 5") |
---|
| 68 | + | } |
---|
| 69 | + | } |
---|
27 | 70 | | } |
---|
28 | 71 | | } |
---|
29 | 72 | | } |
---|
30 | 73 | | } |
---|
31 | 74 | | } |
---|
32 | 75 | | |
---|
33 | 76 | | |
---|
34 | 77 | | @Callable(i) |
---|
35 | 78 | | func call () = { |
---|
36 | 79 | | let count = 1 |
---|
37 | 80 | | let asset = Issue("Asset", "", 1, 0, true, unit, 0) |
---|
38 | 81 | | let assetId = calculateAssetId(asset) |
---|
39 | | - | let listToString = listToStringFunc([2, 3, 4]) |
---|
40 | | - | if ((listToString == listToString)) |
---|
| 82 | + | let list = filterStepFunc([2, 3, 4]) |
---|
| 83 | + | if ((list == list)) |
---|
41 | 84 | | then if ((count == 1)) |
---|
42 | | - | then throw(("list_1==>" + listToString[0])) |
---|
| 85 | + | then throw(("list_1==>" + toString(list[0]))) |
---|
43 | 86 | | else [asset] |
---|
44 | 87 | | else throw("Strict value is not equal to itself.") |
---|
45 | 88 | | } |
---|
46 | 89 | | |
---|
47 | 90 | | |
---|
48 | 91 | | @Verifier(tx) |
---|
49 | 92 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
50 | 93 | | |
---|