tx · 2qtmq3xVEcet3YMSovPsvv4eG42iDybvvzVpZuRUnaBF 3N49shcErzZepEy7HDR1fjAce8humpL7QiH: -0.01000000 Waves 2022.12.14 14:50 [2359943] smart account 3N49shcErzZepEy7HDR1fjAce8humpL7QiH > SELF 0.00000000 Waves
{ "type": 13, "id": "2qtmq3xVEcet3YMSovPsvv4eG42iDybvvzVpZuRUnaBF", "fee": 1000000, "feeAssetId": null, "timestamp": 1671018647642, "version": 2, "chainId": 84, "sender": "3N49shcErzZepEy7HDR1fjAce8humpL7QiH", "senderPublicKey": "9frGdXQHcSntKXRWwZ4YJZWnnKREWwYH4cEzMVQwcwYj", "proofs": [ "2UQbCZv7eFMDcQfTtjJUYgWib5rzppFQpmwjQNdDdFNSWCMkEZ1NENaxdttfEh3tqVpPS6EguwgLGN6LEKGwjnuY" ], "script": "base64:BgIRCAISAwoBCBIDCgEIEgMKAQgAAwFpAQR2ZmE1AQFhAwkBAiE9AggFAWkGY2FsbGVyBQR0aGlzCQACAQISb25seSBhZG1pbiBhbGxvd2VkBANhZHMJALUJAgUBYQIBLAQCcjAJAPwHBAkBEUBleHRyTmF0aXZlKDEwNjIpAQkAkQMCBQNhZHMAAAICdmYJAMwIAgcJAMwIAgYFA25pbAUDbmlsAwkAAAIFAnIwBQJyMAQCcjEJAPwHBAkBEUBleHRyTmF0aXZlKDEwNjIpAQkAkQMCBQNhZHMAAQICdmYJAMwIAgcJAMwIAgYFA25pbAUDbmlsAwkAAAIFAnIxBQJyMQQCcjIJAPwHBAkBEUBleHRyTmF0aXZlKDEwNjIpAQkAkQMCBQNhZHMAAgICdmYJAMwIAgcJAMwIAgYFA25pbAUDbmlsAwkAAAIFAnIyBQJyMgQCcjMJAPwHBAkBEUBleHRyTmF0aXZlKDEwNjIpAQkAkQMCBQNhZHMAAwICdmYJAMwIAgcJAMwIAgYFA25pbAUDbmlsAwkAAAIFAnIzBQJyMwQCcjQJAPwHBAkBEUBleHRyTmF0aXZlKDEwNjIpAQkAkQMC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IwCQD8BwQJARFAZXh0ck5hdGl2ZSgxMDYyKQEJAJEDAgUDYWRzAAACAnZmCQDMCAIHCQDMCAIGBQNuaWwFA25pbAMJAAACBQJyMAUCcjAEAnIxCQD8BwQJARFAZXh0ck5hdGl2ZSgxMDYyKQEJAJEDAgUDYWRzAAECAnZmCQDMCAIHCQDMCAIGBQNuaWwFA25pbAMJAAACBQJyMQUCcjEFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgBlwzdF", "height": 2359943, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2Fw2Xye3SYiTC5X78YreLGxYfWoscK2SZf7sekigYML5 Next: H3iKbjWRDkYfJoHTeU9kFTdnHGahvep3hnGVqsaGhpZb Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | func w (accum,address) = invoke(addressFromStringValue(address), "vf", [false, true], nil) | |
5 | 4 | ||
6 | 5 | ||
7 | 6 | @Callable(i) | |
8 | - | func | |
7 | + | func vfa5 (a) = if ((i.caller != this)) | |
9 | 8 | then throw("only admin allowed") | |
10 | 9 | else { | |
11 | - | let inv = invoke(addressFromStringValue(f), "vf", [false, true], nil) | |
12 | - | if ((inv == inv)) | |
13 | - | then nil | |
10 | + | let ads = split(a, ",") | |
11 | + | let r0 = invoke(addressFromStringValue(ads[0]), "vf", [false, true], nil) | |
12 | + | if ((r0 == r0)) | |
13 | + | then { | |
14 | + | let r1 = invoke(addressFromStringValue(ads[1]), "vf", [false, true], nil) | |
15 | + | if ((r1 == r1)) | |
16 | + | then { | |
17 | + | let r2 = invoke(addressFromStringValue(ads[2]), "vf", [false, true], nil) | |
18 | + | if ((r2 == r2)) | |
19 | + | then { | |
20 | + | let r3 = invoke(addressFromStringValue(ads[3]), "vf", [false, true], nil) | |
21 | + | if ((r3 == r3)) | |
22 | + | then { | |
23 | + | let r4 = invoke(addressFromStringValue(ads[4]), "vf", [false, true], nil) | |
24 | + | if ((r4 == r4)) | |
25 | + | then nil | |
26 | + | else throw("Strict value is not equal to itself.") | |
27 | + | } | |
28 | + | else throw("Strict value is not equal to itself.") | |
29 | + | } | |
30 | + | else throw("Strict value is not equal to itself.") | |
31 | + | } | |
32 | + | else throw("Strict value is not equal to itself.") | |
33 | + | } | |
14 | 34 | else throw("Strict value is not equal to itself.") | |
15 | 35 | } | |
16 | 36 | ||
17 | 37 | ||
18 | 38 | ||
19 | 39 | @Callable(i) | |
20 | - | func | |
40 | + | func vfa3 (a) = if ((i.caller != this)) | |
21 | 41 | then throw("only admin allowed") | |
22 | 42 | else { | |
23 | - | let list = split(addresses, ",") | |
24 | - | let fold = { | |
25 | - | let $l = list | |
26 | - | let $s = size($l) | |
27 | - | let $acc0 = "" | |
28 | - | func $f0_1 ($a,$i) = if (($i >= $s)) | |
29 | - | then $a | |
30 | - | else w($a, $l[$i]) | |
43 | + | let ads = split(a, ",") | |
44 | + | let r0 = invoke(addressFromStringValue(ads[0]), "vf", [false, true], nil) | |
45 | + | if ((r0 == r0)) | |
46 | + | then { | |
47 | + | let r1 = invoke(addressFromStringValue(ads[1]), "vf", [false, true], nil) | |
48 | + | if ((r1 == r1)) | |
49 | + | then { | |
50 | + | let r2 = invoke(addressFromStringValue(ads[2]), "vf", [false, true], nil) | |
51 | + | if ((r2 == r2)) | |
52 | + | then nil | |
53 | + | else throw("Strict value is not equal to itself.") | |
54 | + | } | |
55 | + | else throw("Strict value is not equal to itself.") | |
56 | + | } | |
57 | + | else throw("Strict value is not equal to itself.") | |
58 | + | } | |
31 | 59 | ||
32 | - | func $f0_2 ($a,$i) = if (($i >= $s)) | |
33 | - | then $a | |
34 | - | else throw("List size exceeds 5") | |
35 | 60 | ||
36 | - | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
37 | - | } | |
38 | - | nil | |
61 | + | ||
62 | + | @Callable(i) | |
63 | + | func vfa2 (a) = if ((i.caller != this)) | |
64 | + | then throw("only admin allowed") | |
65 | + | else { | |
66 | + | let ads = split(a, ",") | |
67 | + | let r0 = invoke(addressFromStringValue(ads[0]), "vf", [false, true], nil) | |
68 | + | if ((r0 == r0)) | |
69 | + | then { | |
70 | + | let r1 = invoke(addressFromStringValue(ads[1]), "vf", [false, true], nil) | |
71 | + | if ((r1 == r1)) | |
72 | + | then nil | |
73 | + | else throw("Strict value is not equal to itself.") | |
74 | + | } | |
75 | + | else throw("Strict value is not equal to itself.") | |
39 | 76 | } | |
40 | 77 | ||
41 | 78 |
github/deemru/w8io/026f985 24.98 ms ◑