tx · 45CfCJFQWcxtf7iJ8ucmVxYjaWtBzYPCBW2sbm3ufigv 3Mpwh8Q1gGv6gwtzViR9mgruFyy6Jdm4GCG: -0.01600000 Waves 2023.06.19 17:23 [2629629] smart account 3Mpwh8Q1gGv6gwtzViR9mgruFyy6Jdm4GCG > SELF 0.00000000 Waves
{ "type": 13, "id": "45CfCJFQWcxtf7iJ8ucmVxYjaWtBzYPCBW2sbm3ufigv", "fee": 1600000, "feeAssetId": null, "timestamp": 1687184585180, "version": 2, "chainId": 84, "sender": "3Mpwh8Q1gGv6gwtzViR9mgruFyy6Jdm4GCG", "senderPublicKey": "FLnBQATnBGWeMDB5MhixoEef8W61cnZUFXeCcwWAWQaR", "proofs": [ "45Y97xsjLPpLQpoGv8oyAbLvazWYNq88g7UsVZ4jRHCYucmBByA8PZ3ZhW2tReirrUuNo6wfN4hMeEVZSStsrQVC" ], "script": "base64:AAIFAAAAAAAABbsIAhIECgIICBIECgIICBIECgIIGBIDCgEIEgUKAwgICBIDCgEIEgMKAQgSAwoBCBIECgIICBIECgIICBIECgIICBIDCgEIEgUKAwgIBBIECgIICBIECgIIBBIDCgEIEgMKARgSAwoBCCIDU0VQIgVFTVBUWSIOc3RhdHVzVmVyaWZpZWQiEHN0YXR1c1VudmVyaWZpZWQiFmxhYmVsQ29tbXVuaXR5VmVyaWZpZWQiDGxhYmVsUG9vbHNMcCINZGVmYXVsdExhYmVscyIHdGhyb3dQRCIMdGhyb3dOb0Fzc2V0IhJ0aHJvd0ludmFsaWRUaWNrZXIiD2tleUFkbWluUHViS2V5cyIUa2V5VXNlclBvb2xzQ29udHJhY3QiEmtleUZhY3RvcnlDb250cmFjdCIKa2V5Q3JlYXRlZCIHYXNzZXRJZCIHa2V5TG9nbyIJa2V5VGlja2VyIglrZXlTdGF0dXMiE2tleUFzc2V0UG9vbHNOdW1iZXIiEmtleVRpY2tlclRvQXNzZXRJZCIGdGlja2VyIhJrZXlBc3NldElkVG9UaWNrZXIiIGtleUFtb3VudE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AAAAIIBQAAAAJhUgAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAmFUaNIhdg==", "height": 2629629, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hoxib9WVnTye26KN7cMcvnwVZFVBBkXpFyvE7gnHak1E Next: 3JssRsmSbzK9Z1K1XcjxuPSw79bxU2XxsJUqPMT8Miex Diff:
Old | New | Differences | |
---|---|---|---|
516 | 516 | func isVerifiedREADONLY (o) = $Tuple2(nil, S(o)) | |
517 | 517 | ||
518 | 518 | ||
519 | - | ||
520 | - | @Callable(aa) | |
521 | - | func deletePool (aR,aS) = { | |
522 | - | let ay = addressFromStringValue(getStringValue(m())) | |
523 | - | let au = if ((aa.caller == ay)) | |
524 | - | then true | |
525 | - | else ac(aa) | |
526 | - | if ((au == au)) | |
527 | - | then { | |
528 | - | let aT = valueOrElse(getString(w(aR, aS)), "") | |
529 | - | let aU = if ((aT == "")) | |
530 | - | then nil | |
531 | - | 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))] | |
532 | - | aU | |
533 | - | } | |
534 | - | else throw("Strict value is not equal to itself.") | |
535 | - | } | |
536 | - | ||
537 | - | ||
538 | - | @Verifier(aV) | |
539 | - | func aW () = { | |
540 | - | let aX = { | |
519 | + | @Verifier(aR) | |
520 | + | func aS () = { | |
521 | + | let aT = { | |
541 | 522 | let M = X() | |
542 | 523 | if ($isInstanceOf(M, "ByteVector")) | |
543 | 524 | then { | |
545 | 526 | ab | |
546 | 527 | } | |
547 | 528 | else if ($isInstanceOf(M, "Unit")) | |
548 | - | then | |
529 | + | then aR.senderPublicKey | |
549 | 530 | else throw("Match error") | |
550 | 531 | } | |
551 | - | sigVerify( | |
532 | + | sigVerify(aR.bodyBytes, aR.proofs[0], aT) | |
552 | 533 | } | |
553 | 534 |
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 setVerified (o,ah) = { | |
474 | 474 | let aL = [ad(aa), if (af(o)) | |
475 | 475 | then true | |
476 | 476 | else i()] | |
477 | 477 | if ((aL == aL)) | |
478 | 478 | then { | |
479 | 479 | let aN = if (!(ah)) | |
480 | 480 | then { | |
481 | 481 | let ay = valueOrErrorMessage(addressFromString(P(this, m())), "invalid factory contract address") | |
482 | 482 | invoke(ay, "onVerificationLoss", [o], nil) | |
483 | 483 | } | |
484 | 484 | else unit | |
485 | 485 | if ((aN == aN)) | |
486 | 486 | then $Tuple2(aq(o, ah), unit) | |
487 | 487 | else throw("Strict value is not equal to itself.") | |
488 | 488 | } | |
489 | 489 | else throw("Strict value is not equal to itself.") | |
490 | 490 | } | |
491 | 491 | ||
492 | 492 | ||
493 | 493 | ||
494 | 494 | @Callable(aa) | |
495 | 495 | func onEliminate (o) = { | |
496 | 496 | let aO = valueOrElse(getInteger(s(o)), 0) | |
497 | 497 | let aP = if ((aO > 0)) | |
498 | 498 | then nil | |
499 | 499 | else [DeleteEntry(p(o))] | |
500 | 500 | $Tuple2(aP, unit) | |
501 | 501 | } | |
502 | 502 | ||
503 | 503 | ||
504 | 504 | ||
505 | 505 | @Callable(aa) | |
506 | 506 | func setAdmins (aQ) = { | |
507 | 507 | let au = ac(aa) | |
508 | 508 | if ((au == au)) | |
509 | 509 | then [StringEntry(k(), makeString(aQ, a))] | |
510 | 510 | else throw("Strict value is not equal to itself.") | |
511 | 511 | } | |
512 | 512 | ||
513 | 513 | ||
514 | 514 | ||
515 | 515 | @Callable(aa) | |
516 | 516 | func isVerifiedREADONLY (o) = $Tuple2(nil, S(o)) | |
517 | 517 | ||
518 | 518 | ||
519 | - | ||
520 | - | @Callable(aa) | |
521 | - | func deletePool (aR,aS) = { | |
522 | - | let ay = addressFromStringValue(getStringValue(m())) | |
523 | - | let au = if ((aa.caller == ay)) | |
524 | - | then true | |
525 | - | else ac(aa) | |
526 | - | if ((au == au)) | |
527 | - | then { | |
528 | - | let aT = valueOrElse(getString(w(aR, aS)), "") | |
529 | - | let aU = if ((aT == "")) | |
530 | - | then nil | |
531 | - | 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))] | |
532 | - | aU | |
533 | - | } | |
534 | - | else throw("Strict value is not equal to itself.") | |
535 | - | } | |
536 | - | ||
537 | - | ||
538 | - | @Verifier(aV) | |
539 | - | func aW () = { | |
540 | - | let aX = { | |
519 | + | @Verifier(aR) | |
520 | + | func aS () = { | |
521 | + | let aT = { | |
541 | 522 | let M = X() | |
542 | 523 | if ($isInstanceOf(M, "ByteVector")) | |
543 | 524 | then { | |
544 | 525 | let ab = M | |
545 | 526 | ab | |
546 | 527 | } | |
547 | 528 | else if ($isInstanceOf(M, "Unit")) | |
548 | - | then | |
529 | + | then aR.senderPublicKey | |
549 | 530 | else throw("Match error") | |
550 | 531 | } | |
551 | - | sigVerify( | |
532 | + | sigVerify(aR.bodyBytes, aR.proofs[0], aT) | |
552 | 533 | } | |
553 | 534 |
github/deemru/w8io/026f985 47.95 ms ◑