tx · 9cSYNsLTd3fx3hGfXi44uWrhEdpLxew9z4kXYiePdUDK
3N49shcErzZepEy7HDR1fjAce8humpL7QiH: -0.01000000 Waves
2022.12.18 12:01 [2365521] smart account 3N49shcErzZepEy7HDR1fjAce8humpL7QiH > SELF 0.00000000 Waves
{
"type": 13,
"id": "9cSYNsLTd3fx3hGfXi44uWrhEdpLxew9z4kXYiePdUDK",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1671354188555,
"version": 2,
"chainId": 84,
"sender": "3N49shcErzZepEy7HDR1fjAce8humpL7QiH",
"senderPublicKey": "9frGdXQHcSntKXRWwZ4YJZWnnKREWwYH4cEzMVQwcwYj",
"proofs": [
"5cuD1bVJHCXzuGKQX7kzTYrbcJ7WpPYQUeB9tDJoKiLVaFyJJntht5DdCCG7j1HMhwQNtncrHZHEdNjBqmw1Dmtq"
],
"script": "base64:BgIHCAISAwoBAQIAB2ZlZVRhbmsJAQdBZGRyZXNzAQEaAVT0a9RUk0VehJePvE6ZZrUjKYothFBWfP8AA2M1YQkAzAgCCQDMCAIJAQdBZGRyZXNzAQEaAVRLd+b7vlOc2D4ee4t82/CQ9p9WvVIXlJYJAMwIAgkBB0FkZHJlc3MBARoBVEt35vu+U5zYPh57i3zb8JD2n1a9UheUlgUDbmlsCQDMCAIJAMwIAgkBB0FkZHJlc3MBARoBVEt35vu+U5zYPh57i3zb8JD2n1a9UheUlgkAzAgCCQEHQWRkcmVzcwEBGgFUS3fm+75TnNg+HnuLfNvwkPafVr1SF5SWCQDMCAIJAQdBZGRyZXNzAQEaAVRLd+b7vlOc2D4ee4t82/CQ9p9WvVIXlJYFA25pbAUDbmlsAQFpAQJjNQECY2kKAQF3AgVhY2N1bQdhZGRyZXNzBANyZXMJAPwHBAUHYWRkcmVzcwICdmYJAMwIAgcJAMwIAgYFA25pbAUDbmlsAwkAAAIFA3JlcwUDcmVzBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4DCQECIT0CCAUBaQZjYWxsZXIFBHRoaXMJAAIBAhJvbmx5IGFkbWluIGFsbG93ZWQEBGFkZHIJAJEDAgUDYzVhBQJjaQQEZm9sZAoAAiRsBQRhZGRyCgACJHMJAJADAQUCJGwKAAUkYWNjMAIACgEFJGYwXzECAiRhAiRpAwkAZwIFAiRpBQIkcwUCJGEJAQF3AgUCJGEJAJEDAgUCJGwFAiRpCgEFJGYwXzICAiRhAiRpAwkAZwIFAiRpBQIkcwUCJGEJAAIBAhNMaXN0IHNpemUgZXhjZWVkcyA1CQEFJGYwXzICCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECBQUkYWNjMAAAAAEAAgADAAQABQMJAAACBQRmb2xkBQRmb2xkBARnRmVlCQD8BwQFB2ZlZVRhbmsCA3NtZgkAzAgCCAUBaQNmZWUFA25pbAUDbmlsAwkAAAIFBGdGZWUFBGdGZWUFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAEByRtYXRjaDAFAnR4AwkAAQIFByRtYXRjaDACF0ludm9rZVNjcmlwdFRyYW5zYWN0aW9uBANpbnYFByRtYXRjaDADCQAAAgkApAgBCAUDaW52BGRBcHAFBHRoaXMGCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5CQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5DqlE3A==",
"height": 2365521,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: F7Una8HMpMRRtASbWs4FRQAegsqm4xUQcdDSW8DWUAPA
Next: 7nPcngL6m7yVQMSrXsP9mLzEqsWeSbSCYYxHf8WthQeR
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let feeTank = Address(base58'3NCCTpr3CvajyxfmNGFv2nzx6iajXDk2zPg') |
---|
4 | 5 | | |
---|
| 6 | + | let c5a = [[Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM')], [Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM')]] |
---|
5 | 7 | | |
---|
6 | 8 | | @Callable(i) |
---|
7 | | - | func v (f) = if ((i.caller != this)) |
---|
8 | | - | then throw("only admin allowed") |
---|
9 | | - | else { |
---|
10 | | - | let inv = invoke(addressFromStringValue(f), "vf", [false, true], nil) |
---|
11 | | - | if ((inv == inv)) |
---|
12 | | - | then nil |
---|
13 | | - | else throw("Strict value is not equal to itself.") |
---|
14 | | - | } |
---|
15 | | - | |
---|
16 | | - | |
---|
17 | | - | |
---|
18 | | - | @Callable(i) |
---|
19 | | - | func vfa5 (addresses) = { |
---|
| 9 | + | func c5 (ci) = { |
---|
20 | 10 | | func w (accum,address) = { |
---|
21 | | - | let res = invoke(addressFromStringValue(address), "vf", [false, true], nil) |
---|
| 11 | + | let res = invoke(address, "vf", [false, true], nil) |
---|
22 | 12 | | if ((res == res)) |
---|
23 | 13 | | then nil |
---|
24 | 14 | | else throw("Strict value is not equal to itself.") |
---|
|
27 | 17 | | if ((i.caller != this)) |
---|
28 | 18 | | then throw("only admin allowed") |
---|
29 | 19 | | else { |
---|
30 | | - | let list = split(addresses, ",") |
---|
| 20 | + | let addr = c5a[ci] |
---|
31 | 21 | | let fold = { |
---|
32 | | - | let $l = list |
---|
| 22 | + | let $l = addr |
---|
33 | 23 | | let $s = size($l) |
---|
34 | 24 | | let $acc0 = "" |
---|
35 | 25 | | func $f0_1 ($a,$i) = if (($i >= $s)) |
---|
|
43 | 33 | | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) |
---|
44 | 34 | | } |
---|
45 | 35 | | if ((fold == fold)) |
---|
46 | | - | then nil |
---|
| 36 | + | then { |
---|
| 37 | + | let gFee = invoke(feeTank, "smf", [i.fee], nil) |
---|
| 38 | + | if ((gFee == gFee)) |
---|
| 39 | + | then nil |
---|
| 40 | + | else throw("Strict value is not equal to itself.") |
---|
| 41 | + | } |
---|
47 | 42 | | else throw("Strict value is not equal to itself.") |
---|
48 | 43 | | } |
---|
49 | 44 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let feeTank = Address(base58'3NCCTpr3CvajyxfmNGFv2nzx6iajXDk2zPg') |
---|
4 | 5 | | |
---|
| 6 | + | let c5a = [[Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM')], [Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM')]] |
---|
5 | 7 | | |
---|
6 | 8 | | @Callable(i) |
---|
7 | | - | func v (f) = if ((i.caller != this)) |
---|
8 | | - | then throw("only admin allowed") |
---|
9 | | - | else { |
---|
10 | | - | let inv = invoke(addressFromStringValue(f), "vf", [false, true], nil) |
---|
11 | | - | if ((inv == inv)) |
---|
12 | | - | then nil |
---|
13 | | - | else throw("Strict value is not equal to itself.") |
---|
14 | | - | } |
---|
15 | | - | |
---|
16 | | - | |
---|
17 | | - | |
---|
18 | | - | @Callable(i) |
---|
19 | | - | func vfa5 (addresses) = { |
---|
| 9 | + | func c5 (ci) = { |
---|
20 | 10 | | func w (accum,address) = { |
---|
21 | | - | let res = invoke(addressFromStringValue(address), "vf", [false, true], nil) |
---|
| 11 | + | let res = invoke(address, "vf", [false, true], nil) |
---|
22 | 12 | | if ((res == res)) |
---|
23 | 13 | | then nil |
---|
24 | 14 | | else throw("Strict value is not equal to itself.") |
---|
25 | 15 | | } |
---|
26 | 16 | | |
---|
27 | 17 | | if ((i.caller != this)) |
---|
28 | 18 | | then throw("only admin allowed") |
---|
29 | 19 | | else { |
---|
30 | | - | let list = split(addresses, ",") |
---|
| 20 | + | let addr = c5a[ci] |
---|
31 | 21 | | let fold = { |
---|
32 | | - | let $l = list |
---|
| 22 | + | let $l = addr |
---|
33 | 23 | | let $s = size($l) |
---|
34 | 24 | | let $acc0 = "" |
---|
35 | 25 | | func $f0_1 ($a,$i) = if (($i >= $s)) |
---|
36 | 26 | | then $a |
---|
37 | 27 | | else w($a, $l[$i]) |
---|
38 | 28 | | |
---|
39 | 29 | | func $f0_2 ($a,$i) = if (($i >= $s)) |
---|
40 | 30 | | then $a |
---|
41 | 31 | | else throw("List size exceeds 5") |
---|
42 | 32 | | |
---|
43 | 33 | | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) |
---|
44 | 34 | | } |
---|
45 | 35 | | if ((fold == fold)) |
---|
46 | | - | then nil |
---|
| 36 | + | then { |
---|
| 37 | + | let gFee = invoke(feeTank, "smf", [i.fee], nil) |
---|
| 38 | + | if ((gFee == gFee)) |
---|
| 39 | + | then nil |
---|
| 40 | + | else throw("Strict value is not equal to itself.") |
---|
| 41 | + | } |
---|
47 | 42 | | else throw("Strict value is not equal to itself.") |
---|
48 | 43 | | } |
---|
49 | 44 | | } |
---|
50 | 45 | | |
---|
51 | 46 | | |
---|
52 | 47 | | @Verifier(tx) |
---|
53 | 48 | | func verify () = match tx { |
---|
54 | 49 | | case inv: InvokeScriptTransaction => |
---|
55 | 50 | | if ((addressFromRecipient(inv.dApp) == this)) |
---|
56 | 51 | | then true |
---|
57 | 52 | | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
58 | 53 | | case _ => |
---|
59 | 54 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
60 | 55 | | } |
---|
61 | 56 | | |
---|