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