tx · 5fG3Agtrdb1dvz29fTaNF4URLWGnAQVa5zDKAFvJ7E4A 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6: -0.01000000 Waves 2023.02.02 05:37 [2431394] smart account 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6 > SELF 0.00000000 Waves
{ "type": 13, "id": "5fG3Agtrdb1dvz29fTaNF4URLWGnAQVa5zDKAFvJ7E4A", "fee": 1000000, "feeAssetId": null, "timestamp": 1675305429293, "version": 2, "chainId": 84, "sender": "3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6", "senderPublicKey": "GmYZFRssDr88KiZt3x4LsJ6qfqaTfMUycQTKZVdipUgS", "proofs": [ "25P6Cs4aiZCZnQaaMfb2TE9DNq1KkE1gdiJxJbwaaKX55i16pKqdfp4aY5VCvvo8ShJ1cyihbKYNTVnJvnHkcYQA" ], "script": "base64:BgIVCAISBAoCGBgSBAoCCAgSBQoDCAgIAAMBaQEKc2V0T3B0aW9ucwIEb3B0cwR2YWxzBAhvcHRfc2l6ZQkAkAMBBQRvcHRzAwkAZwIAZAUIb3B0X3NpemUECWFkbWluTGlzdAQHJG1hdGNoMAkAnQgCBQR0aGlzAgphZG1pbl9saXN0AwkAAQIFByRtYXRjaDACBFVuaXQCBXVuc2V0AwkAAQIFByRtYXRjaDACBlN0cmluZwQBeAUHJG1hdGNoMAUBeAkAAgECC01hdGNoIGVycm9yCgEOYWRkU3RyaW5nRW50cnkCBWFjY3VtCW5leHRWYWx1ZQQJJHQwNDcyNDk1BQVhY2N1bQQGcmVzdWx0CAUJJHQwNDcyNDk1Al8xBAFqCAUJJHQwNDcyNDk1Al8yCQCUCgIJAM0IAgUGcmVzdWx0CQELU3RyaW5nRW50cnkCCQCRAwIFBG9wdHMFAWoFCW5leHRWYWx1ZQkAZAIFAWoAAQQBcgoAAiRsBQR2YWxzCgACJHMJAJADAQUCJGwKAAUkYWNjMAkAlAoCBQNuaWwAAAoBBSRmMF8xAgIkYQIk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QtyZWdQcm92aWRlcgMEbmFtZQNpbm4Eb2dybgQNaXNLbm93bkNhbGxlcgQHJG1hdGNoMAkAnQgCBQR0aGlzCQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMDCQABAgUHJG1hdGNoMAIGU3RyaW5nBARoaXN0BQckbWF0Y2gwBQRoaXN0AgV1bnNldAQEdFVTRAEgqyRKarZCRuvS/ON5sGG6w65pV01SespFHKdAHRGwKQ4DCQECIT0CBQ1pc0tub3duQ2FsbGVyAgV1bnNldAkAlAoCCQDMCAIJAQtTdHJpbmdFbnRyeQIJANgEAQgIBQFpBmNhbGxlcgVieXRlcwkArAICCQCsAgIJAKwCAgkArAICBQRuYW1lAgF8BQNpbm4CAXwFBG9ncm4JAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyAMCEPQUEdW5pdAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIAwIQ9BQR0VVNEBQNuaWwFBHVuaXQJAAIBAhVDYW4gYmUgdXNlZCBvbmx5IG9uY2UBAnR4AQZ2ZXJpZnkABAckbWF0Y2gwBQJ0eAMJAAECBQckbWF0Y2gwAg9EYXRhVHJhbnNhY3Rpb24EA2R0eAUHJG1hdGNoMAcJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXk+EePr", "height": 2431394, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: E2TeSJy2qmKwooAP3jTgCGve8srUkrmV8jsHehVwEqj1 Next: AYCfzvxLSv2wQF3GLr19GoMEScDigfMsL42Te5gnnzHQ Diff:
Old | New | Differences | |
---|---|---|---|
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | - | func setOption (b,c) = { | |
8 | - | let d = { | |
9 | - | let e = getString(this, "admin_list") | |
10 | - | if ($isInstanceOf(e, "Unit")) | |
7 | + | func setOptions (b,c) = { | |
8 | + | let d = size(b) | |
9 | + | if ((100 >= d)) | |
10 | + | then { | |
11 | + | let e = { | |
12 | + | let f = getString(this, "admin_list") | |
13 | + | if ($isInstanceOf(f, "Unit")) | |
14 | + | then "unset" | |
15 | + | else if ($isInstanceOf(f, "String")) | |
16 | + | then { | |
17 | + | let g = f | |
18 | + | g | |
19 | + | } | |
20 | + | else throw("Match error") | |
21 | + | } | |
22 | + | func h (i,j) = { | |
23 | + | let k = i | |
24 | + | let l = k._1 | |
25 | + | let m = k._2 | |
26 | + | $Tuple2((l :+ StringEntry(b[m], j)), (m + 1)) | |
27 | + | } | |
28 | + | ||
29 | + | let n = { | |
30 | + | let o = c | |
31 | + | let p = size(o) | |
32 | + | let q = $Tuple2(nil, 0) | |
33 | + | func r (s,t) = if ((t >= p)) | |
34 | + | then s | |
35 | + | else h(s, o[t]) | |
36 | + | ||
37 | + | func u (s,t) = if ((t >= p)) | |
38 | + | then s | |
39 | + | else throw("List size exceeds 100") | |
40 | + | ||
41 | + | u(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(q, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
42 | + | } | |
43 | + | let v = toString(a.caller) | |
44 | + | if ((e != "unset")) | |
45 | + | then { | |
46 | + | let w = getString(addressFromStringValue(e), v) | |
47 | + | let x = { | |
48 | + | let f = w | |
49 | + | if ($isInstanceOf(f, "String")) | |
50 | + | then { | |
51 | + | let g = f | |
52 | + | g | |
53 | + | } | |
54 | + | else if ($isInstanceOf(f, "Unit")) | |
55 | + | then "no admin" | |
56 | + | else throw("Match error") | |
57 | + | } | |
58 | + | func y (z) = { | |
59 | + | let A = split(z, "|") | |
60 | + | StringEntry(A[0], A[1]) | |
61 | + | } | |
62 | + | ||
63 | + | if ((x != "no admin")) | |
64 | + | then n | |
65 | + | else throw((((((("You not admin: " + e) + ", isAdmin: ") + x) + ", callerAddressStr: ") + v) + ", ")) | |
66 | + | } | |
67 | + | else throw("Unset admin list") | |
68 | + | } | |
69 | + | else throw("The number of list elements must not exceed 100") | |
70 | + | } | |
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | @Callable(a) | |
75 | + | func setOption (B,C) = { | |
76 | + | let e = { | |
77 | + | let f = getString(this, "admin_list") | |
78 | + | if ($isInstanceOf(f, "Unit")) | |
11 | 79 | then "unset" | |
12 | - | else if ($isInstanceOf( | |
80 | + | else if ($isInstanceOf(f, "String")) | |
13 | 81 | then { | |
14 | - | let | |
15 | - | | |
82 | + | let g = f | |
83 | + | g | |
16 | 84 | } | |
17 | 85 | else throw("Match error") | |
18 | 86 | } | |
19 | - | let | |
20 | - | if (( | |
87 | + | let v = toString(a.caller) | |
88 | + | if ((e != "unset")) | |
21 | 89 | then { | |
22 | - | let | |
23 | - | let | |
24 | - | let | |
25 | - | if ($isInstanceOf( | |
90 | + | let w = getString(addressFromStringValue(e), v) | |
91 | + | let x = { | |
92 | + | let f = w | |
93 | + | if ($isInstanceOf(f, "String")) | |
26 | 94 | then { | |
27 | - | let | |
28 | - | | |
95 | + | let g = f | |
96 | + | g | |
29 | 97 | } | |
30 | - | else if ($isInstanceOf( | |
98 | + | else if ($isInstanceOf(f, "Unit")) | |
31 | 99 | then "no admin" | |
32 | 100 | else throw("Match error") | |
33 | 101 | } | |
34 | - | if (( | |
35 | - | then $Tuple2([StringEntry( | |
36 | - | else throw((((((("You not admin: " + | |
102 | + | if ((x != "no admin")) | |
103 | + | then $Tuple2([StringEntry(B, C)], unit) | |
104 | + | else throw((((((("You not admin: " + e) + ", isAdmin: ") + x) + ", callerAddressStr: ") + v) + ", ")) | |
37 | 105 | } | |
38 | 106 | else throw("Unset admin list") | |
39 | 107 | } | |
41 | 109 | ||
42 | 110 | ||
43 | 111 | @Callable(a) | |
44 | - | func | |
45 | - | let | |
46 | - | let | |
47 | - | if ($isInstanceOf( | |
112 | + | func regProvider (D,E,F) = { | |
113 | + | let G = { | |
114 | + | let f = getString(this, toBase58String(a.caller.bytes)) | |
115 | + | if ($isInstanceOf(f, "String")) | |
48 | 116 | then { | |
49 | - | let | |
50 | - | | |
117 | + | let H = f | |
118 | + | H | |
51 | 119 | } | |
52 | - | else | |
120 | + | else "unset" | |
53 | 121 | } | |
54 | - | let | |
55 | - | if (! | |
56 | - | then $Tuple2([ | |
122 | + | let I = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85' | |
123 | + | if ((G != "unset")) | |
124 | + | then $Tuple2([StringEntry(toBase58String(a.caller.bytes), ((((D + "|") + E) + "|") + F)), ScriptTransfer(a.caller, 1000000, unit), ScriptTransfer(a.caller, 1000000, I)], unit) | |
57 | 125 | else throw("Can be used only once") | |
58 | 126 | } | |
59 | 127 | ||
60 | 128 | ||
61 | - | @Verifier( | |
62 | - | func | |
63 | - | let | |
64 | - | if ($isInstanceOf( | |
129 | + | @Verifier(J) | |
130 | + | func K () = { | |
131 | + | let f = J | |
132 | + | if ($isInstanceOf(f, "DataTransaction")) | |
65 | 133 | then { | |
66 | - | let | |
134 | + | let L = f | |
67 | 135 | false | |
68 | 136 | } | |
69 | - | else sigVerify( | |
137 | + | else sigVerify(J.bodyBytes, J.proofs[0], J.senderPublicKey) | |
70 | 138 | } | |
71 | 139 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | - | func setOption (b,c) = { | |
8 | - | let d = { | |
9 | - | let e = getString(this, "admin_list") | |
10 | - | if ($isInstanceOf(e, "Unit")) | |
7 | + | func setOptions (b,c) = { | |
8 | + | let d = size(b) | |
9 | + | if ((100 >= d)) | |
10 | + | then { | |
11 | + | let e = { | |
12 | + | let f = getString(this, "admin_list") | |
13 | + | if ($isInstanceOf(f, "Unit")) | |
14 | + | then "unset" | |
15 | + | else if ($isInstanceOf(f, "String")) | |
16 | + | then { | |
17 | + | let g = f | |
18 | + | g | |
19 | + | } | |
20 | + | else throw("Match error") | |
21 | + | } | |
22 | + | func h (i,j) = { | |
23 | + | let k = i | |
24 | + | let l = k._1 | |
25 | + | let m = k._2 | |
26 | + | $Tuple2((l :+ StringEntry(b[m], j)), (m + 1)) | |
27 | + | } | |
28 | + | ||
29 | + | let n = { | |
30 | + | let o = c | |
31 | + | let p = size(o) | |
32 | + | let q = $Tuple2(nil, 0) | |
33 | + | func r (s,t) = if ((t >= p)) | |
34 | + | then s | |
35 | + | else h(s, o[t]) | |
36 | + | ||
37 | + | func u (s,t) = if ((t >= p)) | |
38 | + | then s | |
39 | + | else throw("List size exceeds 100") | |
40 | + | ||
41 | + | u(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(q, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
42 | + | } | |
43 | + | let v = toString(a.caller) | |
44 | + | if ((e != "unset")) | |
45 | + | then { | |
46 | + | let w = getString(addressFromStringValue(e), v) | |
47 | + | let x = { | |
48 | + | let f = w | |
49 | + | if ($isInstanceOf(f, "String")) | |
50 | + | then { | |
51 | + | let g = f | |
52 | + | g | |
53 | + | } | |
54 | + | else if ($isInstanceOf(f, "Unit")) | |
55 | + | then "no admin" | |
56 | + | else throw("Match error") | |
57 | + | } | |
58 | + | func y (z) = { | |
59 | + | let A = split(z, "|") | |
60 | + | StringEntry(A[0], A[1]) | |
61 | + | } | |
62 | + | ||
63 | + | if ((x != "no admin")) | |
64 | + | then n | |
65 | + | else throw((((((("You not admin: " + e) + ", isAdmin: ") + x) + ", callerAddressStr: ") + v) + ", ")) | |
66 | + | } | |
67 | + | else throw("Unset admin list") | |
68 | + | } | |
69 | + | else throw("The number of list elements must not exceed 100") | |
70 | + | } | |
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | @Callable(a) | |
75 | + | func setOption (B,C) = { | |
76 | + | let e = { | |
77 | + | let f = getString(this, "admin_list") | |
78 | + | if ($isInstanceOf(f, "Unit")) | |
11 | 79 | then "unset" | |
12 | - | else if ($isInstanceOf( | |
80 | + | else if ($isInstanceOf(f, "String")) | |
13 | 81 | then { | |
14 | - | let | |
15 | - | | |
82 | + | let g = f | |
83 | + | g | |
16 | 84 | } | |
17 | 85 | else throw("Match error") | |
18 | 86 | } | |
19 | - | let | |
20 | - | if (( | |
87 | + | let v = toString(a.caller) | |
88 | + | if ((e != "unset")) | |
21 | 89 | then { | |
22 | - | let | |
23 | - | let | |
24 | - | let | |
25 | - | if ($isInstanceOf( | |
90 | + | let w = getString(addressFromStringValue(e), v) | |
91 | + | let x = { | |
92 | + | let f = w | |
93 | + | if ($isInstanceOf(f, "String")) | |
26 | 94 | then { | |
27 | - | let | |
28 | - | | |
95 | + | let g = f | |
96 | + | g | |
29 | 97 | } | |
30 | - | else if ($isInstanceOf( | |
98 | + | else if ($isInstanceOf(f, "Unit")) | |
31 | 99 | then "no admin" | |
32 | 100 | else throw("Match error") | |
33 | 101 | } | |
34 | - | if (( | |
35 | - | then $Tuple2([StringEntry( | |
36 | - | else throw((((((("You not admin: " + | |
102 | + | if ((x != "no admin")) | |
103 | + | then $Tuple2([StringEntry(B, C)], unit) | |
104 | + | else throw((((((("You not admin: " + e) + ", isAdmin: ") + x) + ", callerAddressStr: ") + v) + ", ")) | |
37 | 105 | } | |
38 | 106 | else throw("Unset admin list") | |
39 | 107 | } | |
40 | 108 | ||
41 | 109 | ||
42 | 110 | ||
43 | 111 | @Callable(a) | |
44 | - | func | |
45 | - | let | |
46 | - | let | |
47 | - | if ($isInstanceOf( | |
112 | + | func regProvider (D,E,F) = { | |
113 | + | let G = { | |
114 | + | let f = getString(this, toBase58String(a.caller.bytes)) | |
115 | + | if ($isInstanceOf(f, "String")) | |
48 | 116 | then { | |
49 | - | let | |
50 | - | | |
117 | + | let H = f | |
118 | + | H | |
51 | 119 | } | |
52 | - | else | |
120 | + | else "unset" | |
53 | 121 | } | |
54 | - | let | |
55 | - | if (! | |
56 | - | then $Tuple2([ | |
122 | + | let I = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85' | |
123 | + | if ((G != "unset")) | |
124 | + | then $Tuple2([StringEntry(toBase58String(a.caller.bytes), ((((D + "|") + E) + "|") + F)), ScriptTransfer(a.caller, 1000000, unit), ScriptTransfer(a.caller, 1000000, I)], unit) | |
57 | 125 | else throw("Can be used only once") | |
58 | 126 | } | |
59 | 127 | ||
60 | 128 | ||
61 | - | @Verifier( | |
62 | - | func | |
63 | - | let | |
64 | - | if ($isInstanceOf( | |
129 | + | @Verifier(J) | |
130 | + | func K () = { | |
131 | + | let f = J | |
132 | + | if ($isInstanceOf(f, "DataTransaction")) | |
65 | 133 | then { | |
66 | - | let | |
134 | + | let L = f | |
67 | 135 | false | |
68 | 136 | } | |
69 | - | else sigVerify( | |
137 | + | else sigVerify(J.bodyBytes, J.proofs[0], J.senderPublicKey) | |
70 | 138 | } | |
71 | 139 |
github/deemru/w8io/169f3d6 58.56 ms ◑