tx · 14mZMMtP6knjarfWVxSygk3Pb7U1kuhq9VVFQxMx1ibh 3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh: -0.01000000 Waves 2023.04.19 10:35 [2541156] smart account 3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh > SELF 0.00000000 Waves
{ "type": 13, "id": "14mZMMtP6knjarfWVxSygk3Pb7U1kuhq9VVFQxMx1ibh", "fee": 1000000, "feeAssetId": null, "timestamp": 1681889754050, "version": 2, "chainId": 84, "sender": "3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh", "senderPublicKey": "EU9obW1yVhR8qug3EmXPeew3DMagvJFQzY5Ku8bmcsU7", "proofs": [ "3jtaCMuzeA5sHavBmFuqwWtPUC7rj1tuKNYKpa6yHXbY6ARkN3i453wiY4Zp1rAZHBjxRSwQ6XUm7UrUUq2zWfir" ], "script": "base64:BgIXCAISABIDCgEIEgASABIDCgEIEgMKAQgfAANTRVACAl9fABBjb250cmFjdEZpbGVuYW1lAhJtYW5hZ2VyX3ZhdWx0LnJpZGUBCHRocm93RXJyAQFzCQACAQkArAICCQCsAgIFEGNvbnRyYWN0RmlsZW5hbWUCAjogBQFzARlrZXlBY3RpdmVNYW5hZ2VyUHVibGljS2V5AAkAuQkCCQDMCAICAiVzCQDMCAICEG1hbmFnZXJQdWJsaWNLZXkFA25pbAUDU0VQARprZXlQZW5kaW5nTWFuYWdlclB1YmxpY0tleQAJALkJAgkAzAgCAgIlcwkAzAgCAhdwZW5kaW5nTWFuYWdlclB1YmxpY0tleQUDbmlsBQNTRVABGmtleVNldE5ld01hbmFnZXJWb3RlUHJlZml4ARBtYW5hZ2VyUHVibGljS2V5CQC5CQIJAMwIAgIGJXMlcyVzCQDMCAICCnNldE1hbmFnZXIJAMwIAgUQbWFuYWdlclB1YmxpY0tleQUDbmlsBQNTRVABFGtleVNldE5ld01hbmFnZXJWb3RlAhBtYW5hZ2VyUHVibGljS2V5BWFkbWluCQC5CQIJAMwIAgkB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C5CQIFDG5ld0FkbWluTGlzdAUDU0VQBQNuaWwJAQx2b3RlSU5URVJOQUwFBRNjYWxsZXJBZGRyZXNzU3RyaW5nBRBhZG1pbkN1cnJlbnRWb3RlBQlrZXlQcmVmaXgFCG1pblZvdGVzBQZyZXN1bHQJAQh0aHJvd0VycgEJAKwCAgUPcmVtb3ZlQ2FuZGlkYXRlAhggbm90IGZvdW5kIGluIEFkbWluIExpc3QAnAJZnQ==", "height": 2541156, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7EMmiyuuRuQAM5kJSwkW3wXL7hg1C9BZV52wmnsQ6vrm Next: EV5YW1beov4z2RbLv43sHGzkXaLY4NP94ukUEubTz7Np Diff:
Old | New | Differences | |
---|---|---|---|
50 | 50 | func u (s,j) = valueOrElse(getInteger(t(s, j)), 0) | |
51 | 51 | ||
52 | 52 | ||
53 | - | func v () = makeString(["%s", " | |
53 | + | func v (w) = makeString(["%s%s%s", "removeAdmin", w], a) | |
54 | 54 | ||
55 | 55 | ||
56 | - | func w () = { | |
57 | - | let x = getString(f()) | |
58 | - | if ($isInstanceOf(x, "String")) | |
56 | + | func x (w,j) = makeString([v(w), j], a) | |
57 | + | ||
58 | + | ||
59 | + | func y (w,j) = valueOrElse(getInteger(x(w, j)), 0) | |
60 | + | ||
61 | + | ||
62 | + | func z () = makeString(["%s", "adminAddressList"], a) | |
63 | + | ||
64 | + | ||
65 | + | func A () = { | |
66 | + | let B = getString(f()) | |
67 | + | if ($isInstanceOf(B, "String")) | |
59 | 68 | then { | |
60 | - | let d = | |
69 | + | let d = B | |
61 | 70 | fromBase58String(d) | |
62 | 71 | } | |
63 | - | else if ($isInstanceOf( | |
72 | + | else if ($isInstanceOf(B, "Unit")) | |
64 | 73 | then unit | |
65 | 74 | else throw("Match error") | |
66 | 75 | } | |
67 | 76 | ||
68 | 77 | ||
69 | - | func | |
78 | + | func C () = split(valueOrElse(getString(this, z()), ""), a) | |
70 | 79 | ||
71 | 80 | ||
72 | - | func | |
73 | - | let | |
74 | - | if ($isInstanceOf( | |
81 | + | func D (E) = { | |
82 | + | let B = indexOf(C(), E) | |
83 | + | if ($isInstanceOf(B, "Int")) | |
75 | 84 | then { | |
76 | - | let | |
85 | + | let F = B | |
77 | 86 | true | |
78 | 87 | } | |
79 | 88 | else false | |
80 | 89 | } | |
81 | 90 | ||
82 | 91 | ||
83 | - | func | |
84 | - | let | |
85 | - | let | |
86 | - | let | |
87 | - | $Tuple2(( | |
92 | + | func G (H,I) = { | |
93 | + | let J = H | |
94 | + | let K = J._1 | |
95 | + | let L = J._2 | |
96 | + | $Tuple2((K :+ makeString([L, I], a)), L) | |
88 | 97 | } | |
89 | 98 | ||
90 | 99 | ||
91 | - | func | |
92 | - | let | |
93 | - | let | |
94 | - | let | |
95 | - | let | |
96 | - | func | |
97 | - | then | |
98 | - | else | |
100 | + | func M (N) = { | |
101 | + | let O = z() | |
102 | + | let P = C() | |
103 | + | let Q = size(P) | |
104 | + | let R = $Tuple2(nil, N) | |
105 | + | func S (T,U) = if ((U >= Q)) | |
106 | + | then T | |
107 | + | else G(T, P[U]) | |
99 | 108 | ||
100 | - | func | |
101 | - | then | |
109 | + | func V (T,U) = if ((U >= Q)) | |
110 | + | then T | |
102 | 111 | else throw("List size exceeds 10") | |
103 | 112 | ||
104 | - | R | |
113 | + | V(S(S(S(S(S(S(S(S(S(S(R, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
105 | 114 | } | |
106 | 115 | ||
107 | 116 | ||
108 | - | func | |
117 | + | func W (K,X) = (K + valueOrElse(getInteger(X), 0)) | |
109 | 118 | ||
110 | 119 | ||
111 | - | func | |
112 | - | let | |
113 | - | let | |
114 | - | let | |
115 | - | let | |
116 | - | func | |
117 | - | then | |
118 | - | else | |
120 | + | func Y (L) = { | |
121 | + | let Z = M(L)._1 | |
122 | + | let P = Z | |
123 | + | let Q = size(P) | |
124 | + | let R = 0 | |
125 | + | func S (T,U) = if ((U >= Q)) | |
126 | + | then T | |
127 | + | else W(T, P[U]) | |
119 | 128 | ||
120 | - | func | |
121 | - | then | |
129 | + | func V (T,U) = if ((U >= Q)) | |
130 | + | then T | |
122 | 131 | else throw("List size exceeds 10") | |
123 | 132 | ||
124 | - | R | |
133 | + | V(S(S(S(S(S(S(S(S(S(S(R, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
125 | 134 | } | |
126 | 135 | ||
127 | 136 | ||
128 | - | func | |
137 | + | func aa (K,ab) = (K :+ DeleteEntry(ab)) | |
129 | 138 | ||
130 | 139 | ||
131 | - | func | |
132 | - | let | |
133 | - | let | |
134 | - | let | |
135 | - | let | |
136 | - | func | |
137 | - | then | |
138 | - | else | |
140 | + | func ac (L) = { | |
141 | + | let Z = M(L)._1 | |
142 | + | let P = Z | |
143 | + | let Q = size(P) | |
144 | + | let R = nil | |
145 | + | func S (T,U) = if ((U >= Q)) | |
146 | + | then T | |
147 | + | else aa(T, P[U]) | |
139 | 148 | ||
140 | - | func | |
141 | - | then | |
149 | + | func V (T,U) = if ((U >= Q)) | |
150 | + | then T | |
142 | 151 | else throw("List size exceeds 10") | |
143 | 152 | ||
144 | - | R | |
153 | + | V(S(S(S(S(S(S(S(S(S(S(R, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
145 | 154 | } | |
146 | 155 | ||
147 | 156 | ||
148 | - | func | |
149 | - | let | |
150 | - | if ( | |
151 | - | then if (( | |
152 | - | then c(( | |
157 | + | func ad (ae,af,N,ag,ah) = { | |
158 | + | let X = makeString([N, ae], a) | |
159 | + | if (D(ae)) | |
160 | + | then if ((af == 1)) | |
161 | + | then c((X + " you already voted")) | |
153 | 162 | else { | |
154 | - | let | |
155 | - | if ((( | |
163 | + | let Z = Y(N) | |
164 | + | if (((Z + 1) >= ag)) | |
156 | 165 | then { | |
157 | - | let | |
158 | - | ( | |
166 | + | let ai = ac(N) | |
167 | + | (ai ++ ah) | |
159 | 168 | } | |
160 | - | else [IntegerEntry( | |
169 | + | else [IntegerEntry(X, 1)] | |
161 | 170 | } | |
162 | - | else c((("Address: " + | |
171 | + | else c((("Address: " + ae) + " not in Admin list")) | |
163 | 172 | } | |
164 | 173 | ||
165 | 174 | ||
166 | - | @Callable( | |
175 | + | @Callable(aj) | |
167 | 176 | func confirmManager () = { | |
168 | - | let | |
169 | - | let | |
177 | + | let ak = A() | |
178 | + | let al = if (isDefined(ak)) | |
170 | 179 | then true | |
171 | 180 | else c("no pending manager") | |
172 | - | if (( | |
181 | + | if ((al == al)) | |
173 | 182 | then { | |
174 | - | let | |
183 | + | let am = if ((aj.callerPublicKey == value(ak))) | |
175 | 184 | then true | |
176 | 185 | else c("you are not pending manager") | |
177 | - | if (( | |
178 | - | then [StringEntry(e(), toBase58String(value( | |
186 | + | if ((am == am)) | |
187 | + | then [StringEntry(e(), toBase58String(value(ak)))] | |
179 | 188 | else throw("Strict value is not equal to itself.") | |
180 | 189 | } | |
181 | 190 | else throw("Strict value is not equal to itself.") | |
183 | 192 | ||
184 | 193 | ||
185 | 194 | ||
186 | - | @Callable( | |
187 | - | func voteForNewManger ( | |
188 | - | let | |
189 | - | let | |
190 | - | let | |
191 | - | let | |
192 | - | let | |
193 | - | | |
195 | + | @Callable(aj) | |
196 | + | func voteForNewManger (an) = { | |
197 | + | let ae = toBase58String(aj.caller.bytes) | |
198 | + | let N = g(an) | |
199 | + | let af = k(an, ae) | |
200 | + | let ag = 2 | |
201 | + | let K = [StringEntry(f(), an)] | |
202 | + | ad(ae, af, N, ag, K) | |
194 | 203 | } | |
195 | 204 | ||
196 | 205 | ||
197 | 206 | ||
198 | - | @Callable( | |
207 | + | @Callable(aj) | |
199 | 208 | func deactivateManager () = { | |
200 | - | let | |
201 | - | let | |
202 | - | let | |
203 | - | let | |
204 | - | let | |
205 | - | | |
209 | + | let ae = toBase58String(aj.caller.bytes) | |
210 | + | let N = l() | |
211 | + | let af = n(ae) | |
212 | + | let ag = 1 | |
213 | + | let K = [DeleteEntry(e())] | |
214 | + | ad(ae, af, N, ag, K) | |
206 | 215 | } | |
207 | 216 | ||
208 | 217 | ||
209 | 218 | ||
210 | - | @Callable( | |
219 | + | @Callable(aj) | |
211 | 220 | func activateManager () = { | |
212 | - | let | |
213 | - | let | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | let | |
218 | - | | |
221 | + | let ae = toBase58String(aj.caller.bytes) | |
222 | + | let N = o() | |
223 | + | let af = q(ae) | |
224 | + | let ag = 2 | |
225 | + | let ao = getStringValue(f()) | |
226 | + | let K = [StringEntry(e(), ao)] | |
227 | + | ad(ae, af, N, ag, K) | |
219 | 228 | } | |
220 | 229 | ||
221 | 230 | ||
222 | 231 | ||
223 | - | @Callable( | |
224 | - | func addNewAdmin ( | |
225 | - | let | |
226 | - | let | |
227 | - | let | |
228 | - | let | |
229 | - | let | |
230 | - | let | |
231 | - | if ($isInstanceOf( | |
232 | + | @Callable(aj) | |
233 | + | func addNewAdmin (ap) = { | |
234 | + | let ae = toBase58String(aj.caller.bytes) | |
235 | + | let N = r(ap) | |
236 | + | let af = u(ap, ae) | |
237 | + | let ag = 2 | |
238 | + | let aq = C() | |
239 | + | let B = indexOf(aq, ap) | |
240 | + | if ($isInstanceOf(B, "Int")) | |
232 | 241 | then { | |
233 | - | let | |
234 | - | c(( | |
242 | + | let H = B | |
243 | + | c((ap + " already in Admin List")) | |
235 | 244 | } | |
236 | 245 | else { | |
237 | - | let | |
238 | - | let | |
239 | - | | |
246 | + | let ar = (aq :+ ap) | |
247 | + | let K = [StringEntry(z(), makeString(ar, a))] | |
248 | + | ad(ae, af, N, ag, K) | |
240 | 249 | } | |
250 | + | } | |
251 | + | ||
252 | + | ||
253 | + | ||
254 | + | @Callable(aj) | |
255 | + | func removeAdmin (w) = { | |
256 | + | let ae = toBase58String(aj.caller.bytes) | |
257 | + | let N = v(w) | |
258 | + | let af = y(w, ae) | |
259 | + | let ag = 2 | |
260 | + | let aq = C() | |
261 | + | let B = indexOf(aq, w) | |
262 | + | if ($isInstanceOf(B, "Int")) | |
263 | + | then { | |
264 | + | let as = B | |
265 | + | let ar = removeByIndex(aq, as) | |
266 | + | let K = [StringEntry(z(), makeString(ar, a))] | |
267 | + | ad(ae, af, N, ag, K) | |
268 | + | } | |
269 | + | else c((w + " not found in Admin List")) | |
241 | 270 | } | |
242 | 271 | ||
243 | 272 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = "manager_vault.ride" | |
7 | 7 | ||
8 | 8 | func c (d) = throw(((b + ": ") + d)) | |
9 | 9 | ||
10 | 10 | ||
11 | 11 | func e () = makeString(["%s", "managerPublicKey"], a) | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func f () = makeString(["%s", "pendingManagerPublicKey"], a) | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func g (h) = makeString(["%s%s%s", "setManager", h], a) | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func i (h,j) = makeString([g(h), j], a) | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func k (h,j) = valueOrElse(getInteger(i(h, j)), 0) | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func l () = makeString(["%s%s", "deactivateManager"], a) | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func m (j) = makeString([l(), j], a) | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func n (j) = valueOrElse(getInteger(m(j)), 0) | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func o () = makeString(["%s%s", "activateManager"], a) | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func p (j) = makeString([o(), j], a) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func q (j) = valueOrElse(getInteger(p(j)), 0) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func r (s) = makeString(["%s%s%s", "addAdmin", s], a) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func t (s,j) = makeString([r(s), j], a) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func u (s,j) = valueOrElse(getInteger(t(s, j)), 0) | |
51 | 51 | ||
52 | 52 | ||
53 | - | func v () = makeString(["%s", " | |
53 | + | func v (w) = makeString(["%s%s%s", "removeAdmin", w], a) | |
54 | 54 | ||
55 | 55 | ||
56 | - | func w () = { | |
57 | - | let x = getString(f()) | |
58 | - | if ($isInstanceOf(x, "String")) | |
56 | + | func x (w,j) = makeString([v(w), j], a) | |
57 | + | ||
58 | + | ||
59 | + | func y (w,j) = valueOrElse(getInteger(x(w, j)), 0) | |
60 | + | ||
61 | + | ||
62 | + | func z () = makeString(["%s", "adminAddressList"], a) | |
63 | + | ||
64 | + | ||
65 | + | func A () = { | |
66 | + | let B = getString(f()) | |
67 | + | if ($isInstanceOf(B, "String")) | |
59 | 68 | then { | |
60 | - | let d = | |
69 | + | let d = B | |
61 | 70 | fromBase58String(d) | |
62 | 71 | } | |
63 | - | else if ($isInstanceOf( | |
72 | + | else if ($isInstanceOf(B, "Unit")) | |
64 | 73 | then unit | |
65 | 74 | else throw("Match error") | |
66 | 75 | } | |
67 | 76 | ||
68 | 77 | ||
69 | - | func | |
78 | + | func C () = split(valueOrElse(getString(this, z()), ""), a) | |
70 | 79 | ||
71 | 80 | ||
72 | - | func | |
73 | - | let | |
74 | - | if ($isInstanceOf( | |
81 | + | func D (E) = { | |
82 | + | let B = indexOf(C(), E) | |
83 | + | if ($isInstanceOf(B, "Int")) | |
75 | 84 | then { | |
76 | - | let | |
85 | + | let F = B | |
77 | 86 | true | |
78 | 87 | } | |
79 | 88 | else false | |
80 | 89 | } | |
81 | 90 | ||
82 | 91 | ||
83 | - | func | |
84 | - | let | |
85 | - | let | |
86 | - | let | |
87 | - | $Tuple2(( | |
92 | + | func G (H,I) = { | |
93 | + | let J = H | |
94 | + | let K = J._1 | |
95 | + | let L = J._2 | |
96 | + | $Tuple2((K :+ makeString([L, I], a)), L) | |
88 | 97 | } | |
89 | 98 | ||
90 | 99 | ||
91 | - | func | |
92 | - | let | |
93 | - | let | |
94 | - | let | |
95 | - | let | |
96 | - | func | |
97 | - | then | |
98 | - | else | |
100 | + | func M (N) = { | |
101 | + | let O = z() | |
102 | + | let P = C() | |
103 | + | let Q = size(P) | |
104 | + | let R = $Tuple2(nil, N) | |
105 | + | func S (T,U) = if ((U >= Q)) | |
106 | + | then T | |
107 | + | else G(T, P[U]) | |
99 | 108 | ||
100 | - | func | |
101 | - | then | |
109 | + | func V (T,U) = if ((U >= Q)) | |
110 | + | then T | |
102 | 111 | else throw("List size exceeds 10") | |
103 | 112 | ||
104 | - | R | |
113 | + | V(S(S(S(S(S(S(S(S(S(S(R, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
105 | 114 | } | |
106 | 115 | ||
107 | 116 | ||
108 | - | func | |
117 | + | func W (K,X) = (K + valueOrElse(getInteger(X), 0)) | |
109 | 118 | ||
110 | 119 | ||
111 | - | func | |
112 | - | let | |
113 | - | let | |
114 | - | let | |
115 | - | let | |
116 | - | func | |
117 | - | then | |
118 | - | else | |
120 | + | func Y (L) = { | |
121 | + | let Z = M(L)._1 | |
122 | + | let P = Z | |
123 | + | let Q = size(P) | |
124 | + | let R = 0 | |
125 | + | func S (T,U) = if ((U >= Q)) | |
126 | + | then T | |
127 | + | else W(T, P[U]) | |
119 | 128 | ||
120 | - | func | |
121 | - | then | |
129 | + | func V (T,U) = if ((U >= Q)) | |
130 | + | then T | |
122 | 131 | else throw("List size exceeds 10") | |
123 | 132 | ||
124 | - | R | |
133 | + | V(S(S(S(S(S(S(S(S(S(S(R, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
125 | 134 | } | |
126 | 135 | ||
127 | 136 | ||
128 | - | func | |
137 | + | func aa (K,ab) = (K :+ DeleteEntry(ab)) | |
129 | 138 | ||
130 | 139 | ||
131 | - | func | |
132 | - | let | |
133 | - | let | |
134 | - | let | |
135 | - | let | |
136 | - | func | |
137 | - | then | |
138 | - | else | |
140 | + | func ac (L) = { | |
141 | + | let Z = M(L)._1 | |
142 | + | let P = Z | |
143 | + | let Q = size(P) | |
144 | + | let R = nil | |
145 | + | func S (T,U) = if ((U >= Q)) | |
146 | + | then T | |
147 | + | else aa(T, P[U]) | |
139 | 148 | ||
140 | - | func | |
141 | - | then | |
149 | + | func V (T,U) = if ((U >= Q)) | |
150 | + | then T | |
142 | 151 | else throw("List size exceeds 10") | |
143 | 152 | ||
144 | - | R | |
153 | + | V(S(S(S(S(S(S(S(S(S(S(R, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
145 | 154 | } | |
146 | 155 | ||
147 | 156 | ||
148 | - | func | |
149 | - | let | |
150 | - | if ( | |
151 | - | then if (( | |
152 | - | then c(( | |
157 | + | func ad (ae,af,N,ag,ah) = { | |
158 | + | let X = makeString([N, ae], a) | |
159 | + | if (D(ae)) | |
160 | + | then if ((af == 1)) | |
161 | + | then c((X + " you already voted")) | |
153 | 162 | else { | |
154 | - | let | |
155 | - | if ((( | |
163 | + | let Z = Y(N) | |
164 | + | if (((Z + 1) >= ag)) | |
156 | 165 | then { | |
157 | - | let | |
158 | - | ( | |
166 | + | let ai = ac(N) | |
167 | + | (ai ++ ah) | |
159 | 168 | } | |
160 | - | else [IntegerEntry( | |
169 | + | else [IntegerEntry(X, 1)] | |
161 | 170 | } | |
162 | - | else c((("Address: " + | |
171 | + | else c((("Address: " + ae) + " not in Admin list")) | |
163 | 172 | } | |
164 | 173 | ||
165 | 174 | ||
166 | - | @Callable( | |
175 | + | @Callable(aj) | |
167 | 176 | func confirmManager () = { | |
168 | - | let | |
169 | - | let | |
177 | + | let ak = A() | |
178 | + | let al = if (isDefined(ak)) | |
170 | 179 | then true | |
171 | 180 | else c("no pending manager") | |
172 | - | if (( | |
181 | + | if ((al == al)) | |
173 | 182 | then { | |
174 | - | let | |
183 | + | let am = if ((aj.callerPublicKey == value(ak))) | |
175 | 184 | then true | |
176 | 185 | else c("you are not pending manager") | |
177 | - | if (( | |
178 | - | then [StringEntry(e(), toBase58String(value( | |
186 | + | if ((am == am)) | |
187 | + | then [StringEntry(e(), toBase58String(value(ak)))] | |
179 | 188 | else throw("Strict value is not equal to itself.") | |
180 | 189 | } | |
181 | 190 | else throw("Strict value is not equal to itself.") | |
182 | 191 | } | |
183 | 192 | ||
184 | 193 | ||
185 | 194 | ||
186 | - | @Callable( | |
187 | - | func voteForNewManger ( | |
188 | - | let | |
189 | - | let | |
190 | - | let | |
191 | - | let | |
192 | - | let | |
193 | - | | |
195 | + | @Callable(aj) | |
196 | + | func voteForNewManger (an) = { | |
197 | + | let ae = toBase58String(aj.caller.bytes) | |
198 | + | let N = g(an) | |
199 | + | let af = k(an, ae) | |
200 | + | let ag = 2 | |
201 | + | let K = [StringEntry(f(), an)] | |
202 | + | ad(ae, af, N, ag, K) | |
194 | 203 | } | |
195 | 204 | ||
196 | 205 | ||
197 | 206 | ||
198 | - | @Callable( | |
207 | + | @Callable(aj) | |
199 | 208 | func deactivateManager () = { | |
200 | - | let | |
201 | - | let | |
202 | - | let | |
203 | - | let | |
204 | - | let | |
205 | - | | |
209 | + | let ae = toBase58String(aj.caller.bytes) | |
210 | + | let N = l() | |
211 | + | let af = n(ae) | |
212 | + | let ag = 1 | |
213 | + | let K = [DeleteEntry(e())] | |
214 | + | ad(ae, af, N, ag, K) | |
206 | 215 | } | |
207 | 216 | ||
208 | 217 | ||
209 | 218 | ||
210 | - | @Callable( | |
219 | + | @Callable(aj) | |
211 | 220 | func activateManager () = { | |
212 | - | let | |
213 | - | let | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | let | |
218 | - | | |
221 | + | let ae = toBase58String(aj.caller.bytes) | |
222 | + | let N = o() | |
223 | + | let af = q(ae) | |
224 | + | let ag = 2 | |
225 | + | let ao = getStringValue(f()) | |
226 | + | let K = [StringEntry(e(), ao)] | |
227 | + | ad(ae, af, N, ag, K) | |
219 | 228 | } | |
220 | 229 | ||
221 | 230 | ||
222 | 231 | ||
223 | - | @Callable( | |
224 | - | func addNewAdmin ( | |
225 | - | let | |
226 | - | let | |
227 | - | let | |
228 | - | let | |
229 | - | let | |
230 | - | let | |
231 | - | if ($isInstanceOf( | |
232 | + | @Callable(aj) | |
233 | + | func addNewAdmin (ap) = { | |
234 | + | let ae = toBase58String(aj.caller.bytes) | |
235 | + | let N = r(ap) | |
236 | + | let af = u(ap, ae) | |
237 | + | let ag = 2 | |
238 | + | let aq = C() | |
239 | + | let B = indexOf(aq, ap) | |
240 | + | if ($isInstanceOf(B, "Int")) | |
232 | 241 | then { | |
233 | - | let | |
234 | - | c(( | |
242 | + | let H = B | |
243 | + | c((ap + " already in Admin List")) | |
235 | 244 | } | |
236 | 245 | else { | |
237 | - | let | |
238 | - | let | |
239 | - | | |
246 | + | let ar = (aq :+ ap) | |
247 | + | let K = [StringEntry(z(), makeString(ar, a))] | |
248 | + | ad(ae, af, N, ag, K) | |
240 | 249 | } | |
250 | + | } | |
251 | + | ||
252 | + | ||
253 | + | ||
254 | + | @Callable(aj) | |
255 | + | func removeAdmin (w) = { | |
256 | + | let ae = toBase58String(aj.caller.bytes) | |
257 | + | let N = v(w) | |
258 | + | let af = y(w, ae) | |
259 | + | let ag = 2 | |
260 | + | let aq = C() | |
261 | + | let B = indexOf(aq, w) | |
262 | + | if ($isInstanceOf(B, "Int")) | |
263 | + | then { | |
264 | + | let as = B | |
265 | + | let ar = removeByIndex(aq, as) | |
266 | + | let K = [StringEntry(z(), makeString(ar, a))] | |
267 | + | ad(ae, af, N, ag, K) | |
268 | + | } | |
269 | + | else c((w + " not found in Admin List")) | |
241 | 270 | } | |
242 | 271 | ||
243 | 272 |
github/deemru/w8io/026f985 86.50 ms ◑