tx · 5X6TRPfZnmdieNQbay2CxvEFmF7gmxJMLziRNAbq1zie 3N5BB6iE58rujeTEkymeLNcdsYF4f6iKoxr: -0.01900000 Waves 2022.06.03 17:33 [2080284] smart account 3N5BB6iE58rujeTEkymeLNcdsYF4f6iKoxr > SELF 0.00000000 Waves
{ "type": 13, "id": "5X6TRPfZnmdieNQbay2CxvEFmF7gmxJMLziRNAbq1zie", "fee": 1900000, "feeAssetId": null, "timestamp": 1654266834999, "version": 1, "sender": "3N5BB6iE58rujeTEkymeLNcdsYF4f6iKoxr", "senderPublicKey": "EtZZHS4uqNXY5WPneZ8jY2aA95peXwthJVLzAMxMp379", "proofs": [ "cio39NUNCa4j7FpGC2tjcW7ABxdxDqip7n45qjmms6zuF4zFrqDrrigZefu377UFe59TC7QBgA7s7PBF2gFT33v" ], "script": "base64:AAIFAAAAAAAAAGMIAhIECgIIGBIDCgEIEgUKAwgICBIDCgEIEgMKAQgSAwoBCBIECgIICBIECgIICBIECgIICBIDCgEIEgUKAwgIBBIECgIICBIECgIIBBIDCgEIEgMKARgSAwoBCBIAEgMKAQgAAAApAAAAAANTRVACAAAAAl9fAAAAAAVFTVBUWQIAAAAAAAAAAA5zdGF0dXNWZXJpZmllZAAAAAAAAAAAAgAAAAAQc3RhdHVzVW52ZXJpZmllZAAAAAAAAAAAAAAAAAAWbGFiZWxDb21tdW5pdHlWZXJpZmllZAIAAAASQ09NTVVOSVRZX1ZFUklGSUVEAAAAAAxsYWJlbFBvb2xzTHACAAAACFBPT0xTX0xQAAAAAA1kZWZhdWx0TGFiZWxzCQAETAAAAAIFAAAAFmxhYmVsQ29tbXVuaXR5VmVyaWZpZWQJAARMAAAAAgUAAAAMbGFiZWxQb29sc0xwBQAAAANuaWwBAAAAB3Rocm93UEQAAAAACQAAAgAAAAECAAAAEVBlcm1pc3Npb24gZGVuaWVkAQAAAAx0aHJvd05vQXNzZXQAAAAACQAAAgAAAAECAAAAFEFzc2V0IGRvZXNuJ3QgZXhpc3RzAQA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AAADbmlsCQEAAAAKaXNWZXJpZmllZAAAAAEFAAAAB2Fzc2V0SWQAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAA90YXJnZXRQdWJsaWNLZXkEAAAAByRtYXRjaDAJAQAAABZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAAAAAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAKQnl0ZVZlY3RvcgQAAAACcGsFAAAAByRtYXRjaDAFAAAAAnBrAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0CAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAPdGFyZ2V0UHVibGljS2V5seCahA==", "chainId": 84, "height": 2080284, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DV7SomWb19SHHRrvem9oRynJYarjvLvuBuE3ZGLmG1jL Next: 3xwm6Hm9KSNJ4uUexivGPKzjsDUNgnoPUEA9VHwHZbDY Diff:
Old | New | Differences | |
---|---|---|---|
89 | 89 | ||
90 | 90 | ||
91 | 91 | func M (F,G) = { | |
92 | - | let N = E(F, G, | |
92 | + | let N = E(F, G, "") | |
93 | 93 | if ($isInstanceOf(N, "String")) | |
94 | 94 | then N | |
95 | 95 | else throw("Couldn't cast Int|String to String") | |
98 | 98 | ||
99 | 99 | func O (F,G) = { | |
100 | 100 | let N = E(F, G, 0) | |
101 | - | if ($isInstanceOf(N, "String")) | |
102 | - | then N | |
103 | - | else unit | |
104 | - | } | |
105 | - | ||
106 | - | ||
107 | - | func P (F,G) = { | |
108 | - | let N = E(F, G, 0) | |
109 | 101 | if ($isInstanceOf(N, "Int")) | |
110 | 102 | then N | |
111 | 103 | else throw("Couldn't cast Int|String to Int") | |
112 | 104 | } | |
113 | 105 | ||
114 | 106 | ||
115 | - | func Q (F,G) = { | |
116 | - | let N = E(F, G, 0) | |
117 | - | if ($isInstanceOf(N, "Int")) | |
118 | - | then N | |
119 | - | else unit | |
120 | - | } | |
107 | + | func P (p) = (valueOrElse(getInteger(s(p)), d) == c) | |
121 | 108 | ||
122 | 109 | ||
123 | - | func R (p) = (valueOrElse(getInteger(s(p)), d) == c) | |
124 | - | ||
125 | - | ||
126 | - | func S () = { | |
110 | + | func Q () = { | |
127 | 111 | let J = getString(D()) | |
128 | 112 | if ($isInstanceOf(J, "String")) | |
129 | 113 | then { | |
130 | - | let | |
131 | - | if ((size( | |
114 | + | let R = J | |
115 | + | if ((size(R) == 0)) | |
132 | 116 | then nil | |
133 | - | else split( | |
117 | + | else split(R, a) | |
134 | 118 | } | |
135 | 119 | else nil | |
136 | 120 | } | |
137 | 121 | ||
138 | 122 | ||
139 | - | func | |
123 | + | func S (p) = { | |
140 | 124 | let J = getString(C(p)) | |
141 | 125 | if ($isInstanceOf(J, "String")) | |
142 | 126 | then { | |
143 | - | let | |
144 | - | if ((size( | |
127 | + | let R = J | |
128 | + | if ((size(R) == 0)) | |
145 | 129 | then nil | |
146 | - | else split( | |
130 | + | else split(R, a) | |
147 | 131 | } | |
148 | 132 | else nil | |
149 | 133 | } | |
150 | 134 | ||
151 | 135 | ||
152 | - | func | |
136 | + | func T () = { | |
153 | 137 | let J = getString(j()) | |
154 | 138 | if ($isInstanceOf(J, "String")) | |
155 | 139 | then { | |
156 | - | let | |
157 | - | fromBase58String( | |
140 | + | let R = J | |
141 | + | fromBase58String(R) | |
158 | 142 | } | |
159 | 143 | else if ($isInstanceOf(J, "Unit")) | |
160 | 144 | then unit | |
162 | 146 | } | |
163 | 147 | ||
164 | 148 | ||
165 | - | func | |
149 | + | func U () = { | |
166 | 150 | let J = getString(k()) | |
167 | 151 | if ($isInstanceOf(J, "String")) | |
168 | 152 | then { | |
169 | - | let | |
170 | - | fromBase58String( | |
153 | + | let R = J | |
154 | + | fromBase58String(R) | |
171 | 155 | } | |
172 | 156 | else if ($isInstanceOf(J, "Unit")) | |
173 | 157 | then unit | |
175 | 159 | } | |
176 | 160 | ||
177 | 161 | ||
178 | - | func | |
179 | - | let J = | |
162 | + | func V (W) = { | |
163 | + | let J = T() | |
180 | 164 | if ($isInstanceOf(J, "ByteVector")) | |
181 | 165 | then { | |
182 | - | let | |
183 | - | if (( | |
166 | + | let X = J | |
167 | + | if ((W.callerPublicKey == X)) | |
184 | 168 | then true | |
185 | 169 | else h() | |
186 | 170 | } | |
187 | 171 | else if ($isInstanceOf(J, "Unit")) | |
188 | - | then if (( | |
172 | + | then if ((W.caller == this)) | |
189 | 173 | then true | |
190 | 174 | else h() | |
191 | 175 | else throw("Match error") | |
192 | 176 | } | |
193 | 177 | ||
194 | 178 | ||
195 | - | func | |
196 | - | let | |
197 | - | if (containsElement( | |
179 | + | func Y (W) = { | |
180 | + | let Z = split(valueOrElse(getString(l()), b), a) | |
181 | + | if (containsElement(Z, toBase58String(W.callerPublicKey))) | |
198 | 182 | then true | |
199 | 183 | else { | |
200 | - | let | |
201 | - | if (( | |
184 | + | let aa = V(W) | |
185 | + | if ((aa == aa)) | |
202 | 186 | then true | |
203 | 187 | else throw("Strict value is not equal to itself.") | |
204 | 188 | } | |
205 | 189 | } | |
206 | 190 | ||
207 | 191 | ||
208 | - | func | |
192 | + | func ab (p) = valueOrElse(getBoolean(o(p)), false) | |
209 | 193 | ||
210 | 194 | ||
211 | - | func | |
195 | + | func ac (ad) = if (ad) | |
212 | 196 | then c | |
213 | 197 | else d | |
214 | 198 | ||
215 | 199 | ||
216 | - | func | |
217 | - | let | |
218 | - | let | |
219 | - | let | |
200 | + | func ae (p,af,ag) = { | |
201 | + | let ah = Q() | |
202 | + | let ai = S(p) | |
203 | + | let aj = if (containsElement(ah, af)) | |
220 | 204 | then true | |
221 | 205 | else throw("Label doesn't exist") | |
222 | - | if (( | |
206 | + | if ((aj == aj)) | |
223 | 207 | then { | |
224 | - | let | |
225 | - | then if ( | |
208 | + | let ak = if (containsElement(ai, af)) | |
209 | + | then if (ag) | |
226 | 210 | then throw("Label has already been added") | |
227 | - | else | |
228 | - | else ( | |
229 | - | [StringEntry(C(p), makeString( | |
211 | + | else ai | |
212 | + | else (ai :+ af) | |
213 | + | [StringEntry(C(p), makeString(ak, a))] | |
230 | 214 | } | |
231 | 215 | else throw("Strict value is not equal to itself.") | |
232 | 216 | } | |
233 | 217 | ||
234 | 218 | ||
235 | - | func | |
236 | - | let | |
237 | - | let | |
238 | - | then removeByIndex( | |
239 | - | else if ( | |
219 | + | func al (p,af,ag) = { | |
220 | + | let ai = S(p) | |
221 | + | let ak = if (containsElement(ai, af)) | |
222 | + | then removeByIndex(ai, value(indexOf(ai, af))) | |
223 | + | else if (ag) | |
240 | 224 | then throw("Label wasn't added") | |
241 | - | else | |
242 | - | [StringEntry(C(p), makeString( | |
225 | + | else ai | |
226 | + | [StringEntry(C(p), makeString(ak, a))] | |
243 | 227 | } | |
244 | 228 | ||
245 | 229 | ||
246 | - | func | |
247 | - | let | |
248 | - | then | |
249 | - | else | |
250 | - | ([IntegerEntry(s(p), | |
230 | + | func am (p,ad) = { | |
231 | + | let an = if (ad) | |
232 | + | then ae(p, e, false) | |
233 | + | else al(p, e, false) | |
234 | + | ([IntegerEntry(s(p), ac(ad))] ++ an) | |
251 | 235 | } | |
252 | 236 | ||
253 | 237 | ||
254 | - | func | |
255 | - | let | |
256 | - | let | |
257 | - | let | |
258 | - | then if (( | |
238 | + | func ao (p,v) = { | |
239 | + | let ap = { | |
240 | + | let aq = getString(u(v)) | |
241 | + | let ar = if ((v != "")) | |
242 | + | then if ((aq == unit)) | |
259 | 243 | then true | |
260 | - | else (value( | |
244 | + | else (value(aq) == p) | |
261 | 245 | else false | |
262 | - | if ( | |
246 | + | if (ar) | |
263 | 247 | then true | |
264 | 248 | else throw("Invalid ticker") | |
265 | 249 | } | |
266 | - | if (( | |
250 | + | if ((ap == ap)) | |
267 | 251 | then [StringEntry(w(p), v), StringEntry(u(v), p)] | |
268 | 252 | else throw("Strict value is not equal to itself.") | |
269 | 253 | } | |
270 | 254 | ||
271 | 255 | ||
272 | - | @Callable( | |
273 | - | func constructor ( | |
274 | - | let | |
275 | - | if (( | |
256 | + | @Callable(W) | |
257 | + | func constructor (as,ah) = { | |
258 | + | let at = V(W) | |
259 | + | if ((at == at)) | |
276 | 260 | then { | |
277 | - | let | |
278 | - | if (( | |
279 | - | then [StringEntry(m(), | |
261 | + | let au = valueOrErrorMessage(addressFromString(as), "Invalid address") | |
262 | + | if ((au == au)) | |
263 | + | then [StringEntry(m(), as), StringEntry(D(), makeString((g ++ ah), a))] | |
280 | 264 | else throw("Strict value is not equal to itself.") | |
281 | 265 | } | |
282 | 266 | else throw("Strict value is not equal to itself.") | |
284 | 268 | ||
285 | 269 | ||
286 | 270 | ||
287 | - | @Callable( | |
288 | - | func constructorV2 ( | |
289 | - | let | |
290 | - | if (( | |
271 | + | @Callable(W) | |
272 | + | func constructorV2 (av) = { | |
273 | + | let at = V(W) | |
274 | + | if ((at == at)) | |
291 | 275 | then { | |
292 | - | let | |
293 | - | if (( | |
294 | - | then [StringEntry(n(), | |
276 | + | let aw = valueOrErrorMessage(addressFromString(av), "invalid voting emission contract address") | |
277 | + | if ((aw == aw)) | |
278 | + | then [StringEntry(n(), av)] | |
295 | 279 | else throw("Strict value is not equal to itself.") | |
296 | 280 | } | |
297 | 281 | else throw("Strict value is not equal to itself.") | |
299 | 283 | ||
300 | 284 | ||
301 | 285 | ||
302 | - | @Callable( | |
286 | + | @Callable(W) | |
303 | 287 | func addAssetsLink (y,z,B) = { | |
304 | - | let | |
305 | - | if (( | |
288 | + | let at = Y(W) | |
289 | + | if ((at == at)) | |
306 | 290 | then [StringEntry(x(y, z), B), StringEntry(A(B), makeString([y, z], a))] | |
307 | 291 | else throw("Strict value is not equal to itself.") | |
308 | 292 | } | |
309 | 293 | ||
310 | 294 | ||
311 | 295 | ||
312 | - | @Callable( | |
296 | + | @Callable(W) | |
313 | 297 | func increaseAssetPoolsNumber (p) = { | |
314 | - | let | |
315 | - | if (( | |
298 | + | let at = Y(W) | |
299 | + | if ((at == at)) | |
316 | 300 | then { | |
317 | - | let | |
318 | - | let | |
319 | - | [IntegerEntry( | |
301 | + | let ax = t(p) | |
302 | + | let ay = valueOrElse(getInteger(ax), 0) | |
303 | + | [IntegerEntry(ax, (ay + 1))] | |
320 | 304 | } | |
321 | 305 | else throw("Strict value is not equal to itself.") | |
322 | 306 | } | |
323 | 307 | ||
324 | 308 | ||
325 | 309 | ||
326 | - | @Callable( | |
327 | - | func createLabel ( | |
328 | - | let | |
329 | - | let | |
330 | - | if (( | |
310 | + | @Callable(W) | |
311 | + | func createLabel (af) = { | |
312 | + | let ah = Q() | |
313 | + | let at = V(W) | |
314 | + | if ((at == at)) | |
331 | 315 | then { | |
332 | - | let | |
316 | + | let aj = [if (!(contains(af, a))) | |
333 | 317 | then true | |
334 | - | else throw("Invalid label name"), if (!(containsElement( | |
318 | + | else throw("Invalid label name"), if (!(containsElement(ah, af))) | |
335 | 319 | then true | |
336 | 320 | else throw("Label exists")] | |
337 | - | if (( | |
338 | - | then [StringEntry(D(), makeString(( | |
321 | + | if ((aj == aj)) | |
322 | + | then [StringEntry(D(), makeString((ah :+ af), a))] | |
339 | 323 | else throw("Strict value is not equal to itself.") | |
340 | 324 | } | |
341 | 325 | else throw("Strict value is not equal to itself.") | |
343 | 327 | ||
344 | 328 | ||
345 | 329 | ||
346 | - | @Callable( | |
347 | - | func dropLabel ( | |
348 | - | let | |
349 | - | let | |
350 | - | if (( | |
330 | + | @Callable(W) | |
331 | + | func dropLabel (af) = { | |
332 | + | let ah = Q() | |
333 | + | let at = V(W) | |
334 | + | if ((at == at)) | |
351 | 335 | then { | |
352 | - | let | |
336 | + | let aj = if (containsElement(ah, af)) | |
353 | 337 | then true | |
354 | 338 | else throw("Label doesn't exist") | |
355 | - | if (( | |
356 | - | then [StringEntry(D(), makeString(removeByIndex( | |
339 | + | if ((aj == aj)) | |
340 | + | then [StringEntry(D(), makeString(removeByIndex(ah, value(indexOf(ah, af))), a))] | |
357 | 341 | else throw("Strict value is not equal to itself.") | |
358 | 342 | } | |
359 | 343 | else throw("Strict value is not equal to itself.") | |
361 | 345 | ||
362 | 346 | ||
363 | 347 | ||
364 | - | @Callable( | |
365 | - | func addLabel (p, | |
366 | - | let | |
367 | - | if (( | |
368 | - | then | |
348 | + | @Callable(W) | |
349 | + | func addLabel (p,af) = { | |
350 | + | let at = Y(W) | |
351 | + | if ((at == at)) | |
352 | + | then ae(p, af, true) | |
369 | 353 | else throw("Strict value is not equal to itself.") | |
370 | 354 | } | |
371 | 355 | ||
372 | 356 | ||
373 | 357 | ||
374 | - | @Callable( | |
375 | - | func deleteLabel (p, | |
376 | - | let | |
377 | - | if (( | |
378 | - | then | |
358 | + | @Callable(W) | |
359 | + | func deleteLabel (p,af) = { | |
360 | + | let at = Y(W) | |
361 | + | if ((at == at)) | |
362 | + | then al(p, af, true) | |
379 | 363 | else throw("Strict value is not equal to itself.") | |
380 | 364 | } | |
381 | 365 | ||
382 | 366 | ||
383 | 367 | ||
384 | - | @Callable( | |
368 | + | @Callable(W) | |
385 | 369 | func updateTicker (p,v) = { | |
386 | - | let | |
387 | - | if (( | |
370 | + | let at = Y(W) | |
371 | + | if ((at == at)) | |
388 | 372 | then { | |
389 | - | let | |
373 | + | let az = if (ab(p)) | |
390 | 374 | then true | |
391 | 375 | else i() | |
392 | - | if (( | |
393 | - | then | |
376 | + | if ((az == az)) | |
377 | + | then ao(p, v) | |
394 | 378 | else throw("Strict value is not equal to itself.") | |
395 | 379 | } | |
396 | 380 | else throw("Strict value is not equal to itself.") | |
398 | 382 | ||
399 | 383 | ||
400 | 384 | ||
401 | - | @Callable( | |
385 | + | @Callable(W) | |
402 | 386 | func deleteTicker (p) = { | |
403 | - | let | |
404 | - | if (( | |
387 | + | let at = Y(W) | |
388 | + | if ((at == at)) | |
405 | 389 | then { | |
406 | 390 | let v = valueOrErrorMessage(getString(w(p)), "Invalid asset") | |
407 | 391 | [DeleteEntry(w(p)), DeleteEntry(u(v))] | |
411 | 395 | ||
412 | 396 | ||
413 | 397 | ||
414 | - | @Callable( | |
415 | - | func createOrUpdate (p, | |
416 | - | let | |
417 | - | if (( | |
398 | + | @Callable(W) | |
399 | + | func createOrUpdate (p,aA,ad) = { | |
400 | + | let at = Y(W) | |
401 | + | if ((at == at)) | |
418 | 402 | then { | |
419 | - | let | |
420 | - | if (( | |
403 | + | let aB = !(ab(p)) | |
404 | + | if ((aB == aB)) | |
421 | 405 | then { | |
422 | - | let | |
406 | + | let aC = if ((aA == "")) | |
423 | 407 | then nil | |
424 | - | else [StringEntry(q(p), | |
425 | - | $Tuple2((([BooleanEntry(o(p), true)] ++ | |
408 | + | else [StringEntry(q(p), aA)] | |
409 | + | $Tuple2((([BooleanEntry(o(p), true)] ++ aC) ++ am(p, ad)), aB) | |
426 | 410 | } | |
427 | 411 | else throw("Strict value is not equal to itself.") | |
428 | 412 | } | |
431 | 415 | ||
432 | 416 | ||
433 | 417 | ||
434 | - | @Callable( | |
435 | - | func setLogo (p, | |
436 | - | let | |
418 | + | @Callable(W) | |
419 | + | func setLogo (p,aA) = { | |
420 | + | let aD = [Y(W), if (ab(p)) | |
437 | 421 | then true | |
438 | 422 | else i()] | |
439 | - | if (( | |
440 | - | then [StringEntry(q(p), | |
423 | + | if ((aD == aD)) | |
424 | + | then [StringEntry(q(p), aA)] | |
441 | 425 | else throw("Strict value is not equal to itself.") | |
442 | 426 | } | |
443 | 427 | ||
444 | 428 | ||
445 | 429 | ||
446 | - | @Callable( | |
447 | - | func setVerified (p, | |
448 | - | let | |
430 | + | @Callable(W) | |
431 | + | func setVerified (p,ad) = { | |
432 | + | let aD = [Y(W), if (ab(p)) | |
449 | 433 | then true | |
450 | 434 | else i()] | |
451 | - | if (( | |
435 | + | if ((aD == aD)) | |
452 | 436 | then { | |
453 | - | let | |
437 | + | let aE = if (!(ad)) | |
454 | 438 | then { | |
455 | - | let | |
456 | - | invoke( | |
439 | + | let av = valueOrErrorMessage(addressFromString(M(this, n())), "invalid voting emission contract address") | |
440 | + | invoke(av, "onVerificationLoss", [p], nil) | |
457 | 441 | } | |
458 | 442 | else unit | |
459 | - | if (( | |
460 | - | then $Tuple2( | |
443 | + | if ((aE == aE)) | |
444 | + | then $Tuple2(am(p, ad), unit) | |
461 | 445 | else throw("Strict value is not equal to itself.") | |
462 | 446 | } | |
463 | 447 | else throw("Strict value is not equal to itself.") | |
465 | 449 | ||
466 | 450 | ||
467 | 451 | ||
468 | - | @Callable( | |
452 | + | @Callable(W) | |
469 | 453 | func onEliminate (p) = { | |
470 | - | let | |
471 | - | let | |
454 | + | let aF = valueOrElse(getInteger(t(p)), 0) | |
455 | + | let aG = if ((aF > 0)) | |
472 | 456 | then nil | |
473 | 457 | else [DeleteEntry(q(p))] | |
474 | - | $Tuple2( | |
458 | + | $Tuple2(aG, unit) | |
475 | 459 | } | |
476 | 460 | ||
477 | 461 | ||
478 | 462 | ||
479 | - | @Callable( | |
480 | - | func setAdmins ( | |
481 | - | let | |
482 | - | if (( | |
483 | - | then [StringEntry(l(), makeString( | |
463 | + | @Callable(W) | |
464 | + | func setAdmins (aH) = { | |
465 | + | let at = V(W) | |
466 | + | if ((at == at)) | |
467 | + | then [StringEntry(l(), makeString(aH, a))] | |
484 | 468 | else throw("Strict value is not equal to itself.") | |
485 | 469 | } | |
486 | 470 | ||
487 | 471 | ||
488 | 472 | ||
489 | - | @Callable( | |
490 | - | func setManager ( | |
491 | - | let | |
492 | - | if (( | |
473 | + | @Callable(W) | |
474 | + | func setManager (aI) = { | |
475 | + | let at = V(W) | |
476 | + | if ((at == at)) | |
493 | 477 | then { | |
494 | - | let | |
495 | - | if (( | |
496 | - | then [StringEntry(k(), | |
478 | + | let aJ = fromBase58String(aI) | |
479 | + | if ((aJ == aJ)) | |
480 | + | then [StringEntry(k(), aI)] | |
497 | 481 | else throw("Strict value is not equal to itself.") | |
498 | 482 | } | |
499 | 483 | else throw("Strict value is not equal to itself.") | |
501 | 485 | ||
502 | 486 | ||
503 | 487 | ||
504 | - | @Callable( | |
488 | + | @Callable(W) | |
505 | 489 | func confirmManager () = { | |
506 | - | let | |
507 | - | let | |
490 | + | let aK = U() | |
491 | + | let aL = if (isDefined(aK)) | |
508 | 492 | then true | |
509 | 493 | else throw("No pending manager") | |
510 | - | if (( | |
494 | + | if ((aL == aL)) | |
511 | 495 | then { | |
512 | - | let | |
496 | + | let aM = if ((W.callerPublicKey == value(aK))) | |
513 | 497 | then true | |
514 | 498 | else throw("You are not pending manager") | |
515 | - | if (( | |
516 | - | then [StringEntry(j(), toBase58String(value( | |
499 | + | if ((aM == aM)) | |
500 | + | then [StringEntry(j(), toBase58String(value(aK))), DeleteEntry(k())] | |
517 | 501 | else throw("Strict value is not equal to itself.") | |
518 | 502 | } | |
519 | 503 | else throw("Strict value is not equal to itself.") | |
521 | 505 | ||
522 | 506 | ||
523 | 507 | ||
524 | - | @Callable( | |
525 | - | func isVerifiedREADONLY (p) = $Tuple2(nil, | |
508 | + | @Callable(W) | |
509 | + | func isVerifiedREADONLY (p) = $Tuple2(nil, P(p)) | |
526 | 510 | ||
527 | 511 | ||
528 | - | @Verifier( | |
529 | - | func | |
530 | - | let | |
531 | - | let J = | |
512 | + | @Verifier(aN) | |
513 | + | func aO () = { | |
514 | + | let aP = { | |
515 | + | let J = T() | |
532 | 516 | if ($isInstanceOf(J, "ByteVector")) | |
533 | 517 | then { | |
534 | - | let | |
535 | - | | |
518 | + | let X = J | |
519 | + | X | |
536 | 520 | } | |
537 | 521 | else if ($isInstanceOf(J, "Unit")) | |
538 | - | then | |
522 | + | then aN.senderPublicKey | |
539 | 523 | else throw("Match error") | |
540 | 524 | } | |
541 | - | sigVerify( | |
525 | + | sigVerify(aN.bodyBytes, aN.proofs[0], aP) | |
542 | 526 | } | |
543 | 527 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = "" | |
7 | 7 | ||
8 | 8 | let c = 2 | |
9 | 9 | ||
10 | 10 | let d = 0 | |
11 | 11 | ||
12 | 12 | let e = "COMMUNITY_VERIFIED" | |
13 | 13 | ||
14 | 14 | let f = "POOLS_LP" | |
15 | 15 | ||
16 | 16 | let g = [e, f] | |
17 | 17 | ||
18 | 18 | func h () = throw("Permission denied") | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func i () = throw("Asset doesn't exists") | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func j () = "%s__managerPublicKey" | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func k () = "%s__pendingManagerPublicKey" | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func l () = "%s__adminPubKeys" | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func m () = "%s__userPoolsContract" | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func n () = "%s__votingEmissionContract" | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func o (p) = (("created_<" + p) + ">") | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func q (p) = (("logo_<" + p) + ">") | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func r (p) = (("ticker_<" + p) + ">") | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func s (p) = (("status_<" + p) + ">") | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func t (p) = makeString(["%s%s", "pools", p], a) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func u (v) = makeString(["%s%s", "ticker2assetId", v], a) | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func w (p) = makeString(["%s%s", "assetId2ticker", p], a) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func x (y,z) = makeString(["%s%s%s", "amountAndPriceAssetsToLpAsset", y, z], a) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func A (B) = makeString(["%s%s", "lpAssetToAmountAndPriceAssets", B], a) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func C (p) = makeString(["%s%s", "labels", p], a) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func D () = makeString(["%s", "labels"], a) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func E (F,G,H) = { | |
73 | 73 | let I = makeString(["mandatory ", toString(F), ".", G, " is not defined"], "") | |
74 | 74 | valueOrErrorMessage({ | |
75 | 75 | let J = H | |
76 | 76 | if ($isInstanceOf(J, "String")) | |
77 | 77 | then { | |
78 | 78 | let K = J | |
79 | 79 | getString(F, G) | |
80 | 80 | } | |
81 | 81 | else if ($isInstanceOf(J, "Int")) | |
82 | 82 | then { | |
83 | 83 | let L = J | |
84 | 84 | getInteger(F, G) | |
85 | 85 | } | |
86 | 86 | else throw("invalid entry type") | |
87 | 87 | }, I) | |
88 | 88 | } | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func M (F,G) = { | |
92 | - | let N = E(F, G, | |
92 | + | let N = E(F, G, "") | |
93 | 93 | if ($isInstanceOf(N, "String")) | |
94 | 94 | then N | |
95 | 95 | else throw("Couldn't cast Int|String to String") | |
96 | 96 | } | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func O (F,G) = { | |
100 | 100 | let N = E(F, G, 0) | |
101 | - | if ($isInstanceOf(N, "String")) | |
102 | - | then N | |
103 | - | else unit | |
104 | - | } | |
105 | - | ||
106 | - | ||
107 | - | func P (F,G) = { | |
108 | - | let N = E(F, G, 0) | |
109 | 101 | if ($isInstanceOf(N, "Int")) | |
110 | 102 | then N | |
111 | 103 | else throw("Couldn't cast Int|String to Int") | |
112 | 104 | } | |
113 | 105 | ||
114 | 106 | ||
115 | - | func Q (F,G) = { | |
116 | - | let N = E(F, G, 0) | |
117 | - | if ($isInstanceOf(N, "Int")) | |
118 | - | then N | |
119 | - | else unit | |
120 | - | } | |
107 | + | func P (p) = (valueOrElse(getInteger(s(p)), d) == c) | |
121 | 108 | ||
122 | 109 | ||
123 | - | func R (p) = (valueOrElse(getInteger(s(p)), d) == c) | |
124 | - | ||
125 | - | ||
126 | - | func S () = { | |
110 | + | func Q () = { | |
127 | 111 | let J = getString(D()) | |
128 | 112 | if ($isInstanceOf(J, "String")) | |
129 | 113 | then { | |
130 | - | let | |
131 | - | if ((size( | |
114 | + | let R = J | |
115 | + | if ((size(R) == 0)) | |
132 | 116 | then nil | |
133 | - | else split( | |
117 | + | else split(R, a) | |
134 | 118 | } | |
135 | 119 | else nil | |
136 | 120 | } | |
137 | 121 | ||
138 | 122 | ||
139 | - | func | |
123 | + | func S (p) = { | |
140 | 124 | let J = getString(C(p)) | |
141 | 125 | if ($isInstanceOf(J, "String")) | |
142 | 126 | then { | |
143 | - | let | |
144 | - | if ((size( | |
127 | + | let R = J | |
128 | + | if ((size(R) == 0)) | |
145 | 129 | then nil | |
146 | - | else split( | |
130 | + | else split(R, a) | |
147 | 131 | } | |
148 | 132 | else nil | |
149 | 133 | } | |
150 | 134 | ||
151 | 135 | ||
152 | - | func | |
136 | + | func T () = { | |
153 | 137 | let J = getString(j()) | |
154 | 138 | if ($isInstanceOf(J, "String")) | |
155 | 139 | then { | |
156 | - | let | |
157 | - | fromBase58String( | |
140 | + | let R = J | |
141 | + | fromBase58String(R) | |
158 | 142 | } | |
159 | 143 | else if ($isInstanceOf(J, "Unit")) | |
160 | 144 | then unit | |
161 | 145 | else throw("Match error") | |
162 | 146 | } | |
163 | 147 | ||
164 | 148 | ||
165 | - | func | |
149 | + | func U () = { | |
166 | 150 | let J = getString(k()) | |
167 | 151 | if ($isInstanceOf(J, "String")) | |
168 | 152 | then { | |
169 | - | let | |
170 | - | fromBase58String( | |
153 | + | let R = J | |
154 | + | fromBase58String(R) | |
171 | 155 | } | |
172 | 156 | else if ($isInstanceOf(J, "Unit")) | |
173 | 157 | then unit | |
174 | 158 | else throw("Match error") | |
175 | 159 | } | |
176 | 160 | ||
177 | 161 | ||
178 | - | func | |
179 | - | let J = | |
162 | + | func V (W) = { | |
163 | + | let J = T() | |
180 | 164 | if ($isInstanceOf(J, "ByteVector")) | |
181 | 165 | then { | |
182 | - | let | |
183 | - | if (( | |
166 | + | let X = J | |
167 | + | if ((W.callerPublicKey == X)) | |
184 | 168 | then true | |
185 | 169 | else h() | |
186 | 170 | } | |
187 | 171 | else if ($isInstanceOf(J, "Unit")) | |
188 | - | then if (( | |
172 | + | then if ((W.caller == this)) | |
189 | 173 | then true | |
190 | 174 | else h() | |
191 | 175 | else throw("Match error") | |
192 | 176 | } | |
193 | 177 | ||
194 | 178 | ||
195 | - | func | |
196 | - | let | |
197 | - | if (containsElement( | |
179 | + | func Y (W) = { | |
180 | + | let Z = split(valueOrElse(getString(l()), b), a) | |
181 | + | if (containsElement(Z, toBase58String(W.callerPublicKey))) | |
198 | 182 | then true | |
199 | 183 | else { | |
200 | - | let | |
201 | - | if (( | |
184 | + | let aa = V(W) | |
185 | + | if ((aa == aa)) | |
202 | 186 | then true | |
203 | 187 | else throw("Strict value is not equal to itself.") | |
204 | 188 | } | |
205 | 189 | } | |
206 | 190 | ||
207 | 191 | ||
208 | - | func | |
192 | + | func ab (p) = valueOrElse(getBoolean(o(p)), false) | |
209 | 193 | ||
210 | 194 | ||
211 | - | func | |
195 | + | func ac (ad) = if (ad) | |
212 | 196 | then c | |
213 | 197 | else d | |
214 | 198 | ||
215 | 199 | ||
216 | - | func | |
217 | - | let | |
218 | - | let | |
219 | - | let | |
200 | + | func ae (p,af,ag) = { | |
201 | + | let ah = Q() | |
202 | + | let ai = S(p) | |
203 | + | let aj = if (containsElement(ah, af)) | |
220 | 204 | then true | |
221 | 205 | else throw("Label doesn't exist") | |
222 | - | if (( | |
206 | + | if ((aj == aj)) | |
223 | 207 | then { | |
224 | - | let | |
225 | - | then if ( | |
208 | + | let ak = if (containsElement(ai, af)) | |
209 | + | then if (ag) | |
226 | 210 | then throw("Label has already been added") | |
227 | - | else | |
228 | - | else ( | |
229 | - | [StringEntry(C(p), makeString( | |
211 | + | else ai | |
212 | + | else (ai :+ af) | |
213 | + | [StringEntry(C(p), makeString(ak, a))] | |
230 | 214 | } | |
231 | 215 | else throw("Strict value is not equal to itself.") | |
232 | 216 | } | |
233 | 217 | ||
234 | 218 | ||
235 | - | func | |
236 | - | let | |
237 | - | let | |
238 | - | then removeByIndex( | |
239 | - | else if ( | |
219 | + | func al (p,af,ag) = { | |
220 | + | let ai = S(p) | |
221 | + | let ak = if (containsElement(ai, af)) | |
222 | + | then removeByIndex(ai, value(indexOf(ai, af))) | |
223 | + | else if (ag) | |
240 | 224 | then throw("Label wasn't added") | |
241 | - | else | |
242 | - | [StringEntry(C(p), makeString( | |
225 | + | else ai | |
226 | + | [StringEntry(C(p), makeString(ak, a))] | |
243 | 227 | } | |
244 | 228 | ||
245 | 229 | ||
246 | - | func | |
247 | - | let | |
248 | - | then | |
249 | - | else | |
250 | - | ([IntegerEntry(s(p), | |
230 | + | func am (p,ad) = { | |
231 | + | let an = if (ad) | |
232 | + | then ae(p, e, false) | |
233 | + | else al(p, e, false) | |
234 | + | ([IntegerEntry(s(p), ac(ad))] ++ an) | |
251 | 235 | } | |
252 | 236 | ||
253 | 237 | ||
254 | - | func | |
255 | - | let | |
256 | - | let | |
257 | - | let | |
258 | - | then if (( | |
238 | + | func ao (p,v) = { | |
239 | + | let ap = { | |
240 | + | let aq = getString(u(v)) | |
241 | + | let ar = if ((v != "")) | |
242 | + | then if ((aq == unit)) | |
259 | 243 | then true | |
260 | - | else (value( | |
244 | + | else (value(aq) == p) | |
261 | 245 | else false | |
262 | - | if ( | |
246 | + | if (ar) | |
263 | 247 | then true | |
264 | 248 | else throw("Invalid ticker") | |
265 | 249 | } | |
266 | - | if (( | |
250 | + | if ((ap == ap)) | |
267 | 251 | then [StringEntry(w(p), v), StringEntry(u(v), p)] | |
268 | 252 | else throw("Strict value is not equal to itself.") | |
269 | 253 | } | |
270 | 254 | ||
271 | 255 | ||
272 | - | @Callable( | |
273 | - | func constructor ( | |
274 | - | let | |
275 | - | if (( | |
256 | + | @Callable(W) | |
257 | + | func constructor (as,ah) = { | |
258 | + | let at = V(W) | |
259 | + | if ((at == at)) | |
276 | 260 | then { | |
277 | - | let | |
278 | - | if (( | |
279 | - | then [StringEntry(m(), | |
261 | + | let au = valueOrErrorMessage(addressFromString(as), "Invalid address") | |
262 | + | if ((au == au)) | |
263 | + | then [StringEntry(m(), as), StringEntry(D(), makeString((g ++ ah), a))] | |
280 | 264 | else throw("Strict value is not equal to itself.") | |
281 | 265 | } | |
282 | 266 | else throw("Strict value is not equal to itself.") | |
283 | 267 | } | |
284 | 268 | ||
285 | 269 | ||
286 | 270 | ||
287 | - | @Callable( | |
288 | - | func constructorV2 ( | |
289 | - | let | |
290 | - | if (( | |
271 | + | @Callable(W) | |
272 | + | func constructorV2 (av) = { | |
273 | + | let at = V(W) | |
274 | + | if ((at == at)) | |
291 | 275 | then { | |
292 | - | let | |
293 | - | if (( | |
294 | - | then [StringEntry(n(), | |
276 | + | let aw = valueOrErrorMessage(addressFromString(av), "invalid voting emission contract address") | |
277 | + | if ((aw == aw)) | |
278 | + | then [StringEntry(n(), av)] | |
295 | 279 | else throw("Strict value is not equal to itself.") | |
296 | 280 | } | |
297 | 281 | else throw("Strict value is not equal to itself.") | |
298 | 282 | } | |
299 | 283 | ||
300 | 284 | ||
301 | 285 | ||
302 | - | @Callable( | |
286 | + | @Callable(W) | |
303 | 287 | func addAssetsLink (y,z,B) = { | |
304 | - | let | |
305 | - | if (( | |
288 | + | let at = Y(W) | |
289 | + | if ((at == at)) | |
306 | 290 | then [StringEntry(x(y, z), B), StringEntry(A(B), makeString([y, z], a))] | |
307 | 291 | else throw("Strict value is not equal to itself.") | |
308 | 292 | } | |
309 | 293 | ||
310 | 294 | ||
311 | 295 | ||
312 | - | @Callable( | |
296 | + | @Callable(W) | |
313 | 297 | func increaseAssetPoolsNumber (p) = { | |
314 | - | let | |
315 | - | if (( | |
298 | + | let at = Y(W) | |
299 | + | if ((at == at)) | |
316 | 300 | then { | |
317 | - | let | |
318 | - | let | |
319 | - | [IntegerEntry( | |
301 | + | let ax = t(p) | |
302 | + | let ay = valueOrElse(getInteger(ax), 0) | |
303 | + | [IntegerEntry(ax, (ay + 1))] | |
320 | 304 | } | |
321 | 305 | else throw("Strict value is not equal to itself.") | |
322 | 306 | } | |
323 | 307 | ||
324 | 308 | ||
325 | 309 | ||
326 | - | @Callable( | |
327 | - | func createLabel ( | |
328 | - | let | |
329 | - | let | |
330 | - | if (( | |
310 | + | @Callable(W) | |
311 | + | func createLabel (af) = { | |
312 | + | let ah = Q() | |
313 | + | let at = V(W) | |
314 | + | if ((at == at)) | |
331 | 315 | then { | |
332 | - | let | |
316 | + | let aj = [if (!(contains(af, a))) | |
333 | 317 | then true | |
334 | - | else throw("Invalid label name"), if (!(containsElement( | |
318 | + | else throw("Invalid label name"), if (!(containsElement(ah, af))) | |
335 | 319 | then true | |
336 | 320 | else throw("Label exists")] | |
337 | - | if (( | |
338 | - | then [StringEntry(D(), makeString(( | |
321 | + | if ((aj == aj)) | |
322 | + | then [StringEntry(D(), makeString((ah :+ af), a))] | |
339 | 323 | else throw("Strict value is not equal to itself.") | |
340 | 324 | } | |
341 | 325 | else throw("Strict value is not equal to itself.") | |
342 | 326 | } | |
343 | 327 | ||
344 | 328 | ||
345 | 329 | ||
346 | - | @Callable( | |
347 | - | func dropLabel ( | |
348 | - | let | |
349 | - | let | |
350 | - | if (( | |
330 | + | @Callable(W) | |
331 | + | func dropLabel (af) = { | |
332 | + | let ah = Q() | |
333 | + | let at = V(W) | |
334 | + | if ((at == at)) | |
351 | 335 | then { | |
352 | - | let | |
336 | + | let aj = if (containsElement(ah, af)) | |
353 | 337 | then true | |
354 | 338 | else throw("Label doesn't exist") | |
355 | - | if (( | |
356 | - | then [StringEntry(D(), makeString(removeByIndex( | |
339 | + | if ((aj == aj)) | |
340 | + | then [StringEntry(D(), makeString(removeByIndex(ah, value(indexOf(ah, af))), a))] | |
357 | 341 | else throw("Strict value is not equal to itself.") | |
358 | 342 | } | |
359 | 343 | else throw("Strict value is not equal to itself.") | |
360 | 344 | } | |
361 | 345 | ||
362 | 346 | ||
363 | 347 | ||
364 | - | @Callable( | |
365 | - | func addLabel (p, | |
366 | - | let | |
367 | - | if (( | |
368 | - | then | |
348 | + | @Callable(W) | |
349 | + | func addLabel (p,af) = { | |
350 | + | let at = Y(W) | |
351 | + | if ((at == at)) | |
352 | + | then ae(p, af, true) | |
369 | 353 | else throw("Strict value is not equal to itself.") | |
370 | 354 | } | |
371 | 355 | ||
372 | 356 | ||
373 | 357 | ||
374 | - | @Callable( | |
375 | - | func deleteLabel (p, | |
376 | - | let | |
377 | - | if (( | |
378 | - | then | |
358 | + | @Callable(W) | |
359 | + | func deleteLabel (p,af) = { | |
360 | + | let at = Y(W) | |
361 | + | if ((at == at)) | |
362 | + | then al(p, af, true) | |
379 | 363 | else throw("Strict value is not equal to itself.") | |
380 | 364 | } | |
381 | 365 | ||
382 | 366 | ||
383 | 367 | ||
384 | - | @Callable( | |
368 | + | @Callable(W) | |
385 | 369 | func updateTicker (p,v) = { | |
386 | - | let | |
387 | - | if (( | |
370 | + | let at = Y(W) | |
371 | + | if ((at == at)) | |
388 | 372 | then { | |
389 | - | let | |
373 | + | let az = if (ab(p)) | |
390 | 374 | then true | |
391 | 375 | else i() | |
392 | - | if (( | |
393 | - | then | |
376 | + | if ((az == az)) | |
377 | + | then ao(p, v) | |
394 | 378 | else throw("Strict value is not equal to itself.") | |
395 | 379 | } | |
396 | 380 | else throw("Strict value is not equal to itself.") | |
397 | 381 | } | |
398 | 382 | ||
399 | 383 | ||
400 | 384 | ||
401 | - | @Callable( | |
385 | + | @Callable(W) | |
402 | 386 | func deleteTicker (p) = { | |
403 | - | let | |
404 | - | if (( | |
387 | + | let at = Y(W) | |
388 | + | if ((at == at)) | |
405 | 389 | then { | |
406 | 390 | let v = valueOrErrorMessage(getString(w(p)), "Invalid asset") | |
407 | 391 | [DeleteEntry(w(p)), DeleteEntry(u(v))] | |
408 | 392 | } | |
409 | 393 | else throw("Strict value is not equal to itself.") | |
410 | 394 | } | |
411 | 395 | ||
412 | 396 | ||
413 | 397 | ||
414 | - | @Callable( | |
415 | - | func createOrUpdate (p, | |
416 | - | let | |
417 | - | if (( | |
398 | + | @Callable(W) | |
399 | + | func createOrUpdate (p,aA,ad) = { | |
400 | + | let at = Y(W) | |
401 | + | if ((at == at)) | |
418 | 402 | then { | |
419 | - | let | |
420 | - | if (( | |
403 | + | let aB = !(ab(p)) | |
404 | + | if ((aB == aB)) | |
421 | 405 | then { | |
422 | - | let | |
406 | + | let aC = if ((aA == "")) | |
423 | 407 | then nil | |
424 | - | else [StringEntry(q(p), | |
425 | - | $Tuple2((([BooleanEntry(o(p), true)] ++ | |
408 | + | else [StringEntry(q(p), aA)] | |
409 | + | $Tuple2((([BooleanEntry(o(p), true)] ++ aC) ++ am(p, ad)), aB) | |
426 | 410 | } | |
427 | 411 | else throw("Strict value is not equal to itself.") | |
428 | 412 | } | |
429 | 413 | else throw("Strict value is not equal to itself.") | |
430 | 414 | } | |
431 | 415 | ||
432 | 416 | ||
433 | 417 | ||
434 | - | @Callable( | |
435 | - | func setLogo (p, | |
436 | - | let | |
418 | + | @Callable(W) | |
419 | + | func setLogo (p,aA) = { | |
420 | + | let aD = [Y(W), if (ab(p)) | |
437 | 421 | then true | |
438 | 422 | else i()] | |
439 | - | if (( | |
440 | - | then [StringEntry(q(p), | |
423 | + | if ((aD == aD)) | |
424 | + | then [StringEntry(q(p), aA)] | |
441 | 425 | else throw("Strict value is not equal to itself.") | |
442 | 426 | } | |
443 | 427 | ||
444 | 428 | ||
445 | 429 | ||
446 | - | @Callable( | |
447 | - | func setVerified (p, | |
448 | - | let | |
430 | + | @Callable(W) | |
431 | + | func setVerified (p,ad) = { | |
432 | + | let aD = [Y(W), if (ab(p)) | |
449 | 433 | then true | |
450 | 434 | else i()] | |
451 | - | if (( | |
435 | + | if ((aD == aD)) | |
452 | 436 | then { | |
453 | - | let | |
437 | + | let aE = if (!(ad)) | |
454 | 438 | then { | |
455 | - | let | |
456 | - | invoke( | |
439 | + | let av = valueOrErrorMessage(addressFromString(M(this, n())), "invalid voting emission contract address") | |
440 | + | invoke(av, "onVerificationLoss", [p], nil) | |
457 | 441 | } | |
458 | 442 | else unit | |
459 | - | if (( | |
460 | - | then $Tuple2( | |
443 | + | if ((aE == aE)) | |
444 | + | then $Tuple2(am(p, ad), unit) | |
461 | 445 | else throw("Strict value is not equal to itself.") | |
462 | 446 | } | |
463 | 447 | else throw("Strict value is not equal to itself.") | |
464 | 448 | } | |
465 | 449 | ||
466 | 450 | ||
467 | 451 | ||
468 | - | @Callable( | |
452 | + | @Callable(W) | |
469 | 453 | func onEliminate (p) = { | |
470 | - | let | |
471 | - | let | |
454 | + | let aF = valueOrElse(getInteger(t(p)), 0) | |
455 | + | let aG = if ((aF > 0)) | |
472 | 456 | then nil | |
473 | 457 | else [DeleteEntry(q(p))] | |
474 | - | $Tuple2( | |
458 | + | $Tuple2(aG, unit) | |
475 | 459 | } | |
476 | 460 | ||
477 | 461 | ||
478 | 462 | ||
479 | - | @Callable( | |
480 | - | func setAdmins ( | |
481 | - | let | |
482 | - | if (( | |
483 | - | then [StringEntry(l(), makeString( | |
463 | + | @Callable(W) | |
464 | + | func setAdmins (aH) = { | |
465 | + | let at = V(W) | |
466 | + | if ((at == at)) | |
467 | + | then [StringEntry(l(), makeString(aH, a))] | |
484 | 468 | else throw("Strict value is not equal to itself.") | |
485 | 469 | } | |
486 | 470 | ||
487 | 471 | ||
488 | 472 | ||
489 | - | @Callable( | |
490 | - | func setManager ( | |
491 | - | let | |
492 | - | if (( | |
473 | + | @Callable(W) | |
474 | + | func setManager (aI) = { | |
475 | + | let at = V(W) | |
476 | + | if ((at == at)) | |
493 | 477 | then { | |
494 | - | let | |
495 | - | if (( | |
496 | - | then [StringEntry(k(), | |
478 | + | let aJ = fromBase58String(aI) | |
479 | + | if ((aJ == aJ)) | |
480 | + | then [StringEntry(k(), aI)] | |
497 | 481 | else throw("Strict value is not equal to itself.") | |
498 | 482 | } | |
499 | 483 | else throw("Strict value is not equal to itself.") | |
500 | 484 | } | |
501 | 485 | ||
502 | 486 | ||
503 | 487 | ||
504 | - | @Callable( | |
488 | + | @Callable(W) | |
505 | 489 | func confirmManager () = { | |
506 | - | let | |
507 | - | let | |
490 | + | let aK = U() | |
491 | + | let aL = if (isDefined(aK)) | |
508 | 492 | then true | |
509 | 493 | else throw("No pending manager") | |
510 | - | if (( | |
494 | + | if ((aL == aL)) | |
511 | 495 | then { | |
512 | - | let | |
496 | + | let aM = if ((W.callerPublicKey == value(aK))) | |
513 | 497 | then true | |
514 | 498 | else throw("You are not pending manager") | |
515 | - | if (( | |
516 | - | then [StringEntry(j(), toBase58String(value( | |
499 | + | if ((aM == aM)) | |
500 | + | then [StringEntry(j(), toBase58String(value(aK))), DeleteEntry(k())] | |
517 | 501 | else throw("Strict value is not equal to itself.") | |
518 | 502 | } | |
519 | 503 | else throw("Strict value is not equal to itself.") | |
520 | 504 | } | |
521 | 505 | ||
522 | 506 | ||
523 | 507 | ||
524 | - | @Callable( | |
525 | - | func isVerifiedREADONLY (p) = $Tuple2(nil, | |
508 | + | @Callable(W) | |
509 | + | func isVerifiedREADONLY (p) = $Tuple2(nil, P(p)) | |
526 | 510 | ||
527 | 511 | ||
528 | - | @Verifier( | |
529 | - | func | |
530 | - | let | |
531 | - | let J = | |
512 | + | @Verifier(aN) | |
513 | + | func aO () = { | |
514 | + | let aP = { | |
515 | + | let J = T() | |
532 | 516 | if ($isInstanceOf(J, "ByteVector")) | |
533 | 517 | then { | |
534 | - | let | |
535 | - | | |
518 | + | let X = J | |
519 | + | X | |
536 | 520 | } | |
537 | 521 | else if ($isInstanceOf(J, "Unit")) | |
538 | - | then | |
522 | + | then aN.senderPublicKey | |
539 | 523 | else throw("Match error") | |
540 | 524 | } | |
541 | - | sigVerify( | |
525 | + | sigVerify(aN.bodyBytes, aN.proofs[0], aP) | |
542 | 526 | } | |
543 | 527 |
github/deemru/w8io/169f3d6 129.89 ms ◑