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