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