tx · CHE3yBzKXqXbe7ggvWiCZzCwRWkTvVjWnCGYyKAjp9zN 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh: -0.01400000 Waves 2023.07.26 17:30 [2682953] smart account 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh > SELF 0.00000000 Waves
{ "type": 13, "id": "CHE3yBzKXqXbe7ggvWiCZzCwRWkTvVjWnCGYyKAjp9zN", "fee": 1400000, "feeAssetId": null, "timestamp": 1690381798572, "version": 2, "chainId": 84, "sender": "3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh", "senderPublicKey": "Ap7CkWd6fzBU34kGo4GJJzC5q4qWXuLVunzE25PchdGS", "proofs": [ "24Z1ikKyNvM4sHuNuCTw3zDqfNg13NJEQ5VzWvBVxjouQPL5GMgY2teFVm6zdHkKuWyd4QVYH8HJiMjygHvkaLbo" ], "script": "base64:BgK8EAgCEgkKBwgICBgBCAESABIAEggKBggICAgICBIDCgEYEgASBAoCCAgSBAoCCAgSBAoCCAgiEGNvbnRyYWN0RmlsZW5hbWUiA1NFUCIMd2F2ZXNBc3NldElkIgdWTFRQT09MIghTVEJMUE9PTCIRaW52YWxpZFByaWNlQXNzZXQiB3dyYXBFcnIiA21zZyIIdGhyb3dFcnIiB3Rocm93UEQiFHRocm93Q3JlYXRlTm90Q2FsbGVkIhF0aHJvd1lvdU5vdElzc3VlciIPdGhyb3dQb29sRXhpc3RzIhV0aHJvd0Fzc2V0Tm90VmVyaWZpZWQiFnRocm93SW52YWxpZFByaWNlQXNzZXQiFHRocm93SW52YWxpZEZlZUFzc2V0Ihd0aHJvd0ludmFsaWRBbW91bnRBc3NldCISdGhyb3dJbnZhbGlkU3RhdHVzIh90aHJvd0NhbkFjdGl2YXRlT25seVBlbmRpbmdQb29sIh10aHJvd0ZhY3RvcnlSZXR1cm5lZE5vdFN0cmluZyIcdGhyb3dJbnZhbGlkUHJpY2VBc3NldEFtb3VudCIPdGhyb3dJbnZhbGlkRmV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FbnRyeQEJAQFBAgUBQgUBQwkAzAgCCQELRGVsZXRlRW50cnkBCQEBUAIFAUIFAUMJAMwIAgkBC0RlbGV0ZUVudHJ5AQkBAVECBQFCBQFDCQDMCAIJAQtEZWxldGVFbnRyeQEJAQFTAgUBQgUBQwUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJiegECYkEABAJiQgQBWgkBAmFtAAMJAAECBQFaAgpCeXRlVmVjdG9yBAJhcQUBWgUCYXEDCQABAgUBWgIEVW5pdAgFAmJ6D3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJieglib2R5Qnl0ZXMJAJEDAggFAmJ6BnByb29mcwAABQJiQrNxask=", "height": 2682953, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2cDNMGiARSFtkTSMntJGfATghuigRwowqBhP5CPS5Bhk Next: H6aUgE3nfNmUM4k6gjYVFKypGcgiVsJLLXpPY53tdjqh Diff:
Old | New | Differences | |
---|---|---|---|
152 | 152 | let aa = Z | |
153 | 153 | if ((size(aa) == 0)) | |
154 | 154 | then nil | |
155 | - | else split(aa, b) | |
155 | + | else split_4C(aa, b) | |
156 | 156 | } | |
157 | 157 | else if ($isInstanceOf(Z, "Unit")) | |
158 | 158 | then nil |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "user_pools.ride" | |
5 | 5 | ||
6 | 6 | let b = "__" | |
7 | 7 | ||
8 | 8 | let c = "WAVES" | |
9 | 9 | ||
10 | 10 | let d = "VLTPOOL" | |
11 | 11 | ||
12 | 12 | let e = "STBLPOOL" | |
13 | 13 | ||
14 | 14 | let f = "Invalid price asset" | |
15 | 15 | ||
16 | 16 | func g (h) = makeString([a, ": ", h], "") | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func i (h) = throw(g(h)) | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func j () = i("Permission denied") | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func k () = i("Create is not called for assets pair") | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func l () = i("You are not amountAsset issuer") | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func m () = i("Pool with such assets already exists") | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func n () = i("Asset is not verified") | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func o () = i(f) | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func p () = i("Invalid fee asset") | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func q () = i("Invalid amount asset attached") | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func r () = i("Invalid status") | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func s () = i("Can activate pool only in 'pending' status") | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func t () = i("FactoryV2 returned not string") | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func u () = i("invalid price asset amount") | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func v () = i("invalid fee") | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func w () = i("invalid asset pair") | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func x () = makeString(["%s", "managerPublicKey"], b) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func y () = "%s__managerVaultAddress" | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func z () = makeString(["%s", "adminPubKeys"], b) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func A (B,C) = makeString(["%s%s%s", "status", B, C], b) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func D () = makeString(["%s", "factoryContract"], b) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func E () = makeString(["%s", "assetsStoreContract"], b) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func F () = makeString(["%s", "emissionContract"], b) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func G (B,C) = makeString(["%s%s%s", "suffix", B, C], b) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func H () = makeString(["%s", "lastIndex"], b) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | let I = "u" | |
92 | 92 | ||
93 | 93 | let J = "pending" | |
94 | 94 | ||
95 | 95 | let K = "declined" | |
96 | 96 | ||
97 | 97 | let L = "active" | |
98 | 98 | ||
99 | 99 | let M = [J, K, L] | |
100 | 100 | ||
101 | 101 | func N (B,C) = makeString(["%s%s%s", "createCalled", B, C], b) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func O (B,C) = makeString(["%s%s%s", "createCaller", B, C], b) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func P (B,C) = makeString(["%s%s%s", "amountAssetAmount", B, C], b) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func Q (B,C) = makeString(["%s%s%s", "priceAssetAmount", B, C], b) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func R (B,C) = makeString(["%s%s%s", "height", B, C], b) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func S (B,C) = makeString(["%s%s%s", "poolType", B, C], b) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func T () = makeString(["%s", "feeAssetId"], b) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func U () = makeString(["%s", "feeAmount"], b) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func V () = makeString(["%s", "amountAssetMinAmount"], b) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func W () = makeString(["%s", "priceAssetsMinAmount"], b) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func X () = makeString(["%s", "priceAssets"], b) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func Y () = { | |
135 | 135 | let Z = getString(y()) | |
136 | 136 | if ($isInstanceOf(Z, "String")) | |
137 | 137 | then { | |
138 | 138 | let aa = Z | |
139 | 139 | addressFromStringValue(aa) | |
140 | 140 | } | |
141 | 141 | else this | |
142 | 142 | } | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func ab (ac) = valueOrErrorMessage(getString(this, ac), (ac + " is not defined")) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func ad (ae) = { | |
149 | 149 | let Z = ae | |
150 | 150 | if ($isInstanceOf(Z, "String")) | |
151 | 151 | then { | |
152 | 152 | let aa = Z | |
153 | 153 | if ((size(aa) == 0)) | |
154 | 154 | then nil | |
155 | - | else split(aa, b) | |
155 | + | else split_4C(aa, b) | |
156 | 156 | } | |
157 | 157 | else if ($isInstanceOf(Z, "Unit")) | |
158 | 158 | then nil | |
159 | 159 | else throw("Match error") | |
160 | 160 | } | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | let af = addressFromStringValue(ab(D())) | |
164 | 164 | ||
165 | 165 | let ag = makeString(["%s", "votingEmissionContract"], b) | |
166 | 166 | ||
167 | 167 | let ah = addressFromStringValue(valueOrErrorMessage(getString(af, ag), g("voting emission contract address is required"))) | |
168 | 168 | ||
169 | 169 | let ai = makeString(["%s", "votingEmissionCandidateContract"], b) | |
170 | 170 | ||
171 | 171 | let aj = addressFromStringValue(valueOrErrorMessage(getString(ah, ai), g("voting emission candidate contract address is required"))) | |
172 | 172 | ||
173 | 173 | func ak (B,C) = valueOrElse(getBoolean(N(B, C)), false) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func al (B,C) = if (ak(B, C)) | |
177 | 177 | then true | |
178 | 178 | else k() | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func am () = { | |
182 | 182 | let an = Y() | |
183 | 183 | let Z = getString(an, x()) | |
184 | 184 | if ($isInstanceOf(Z, "String")) | |
185 | 185 | then { | |
186 | 186 | let aa = Z | |
187 | 187 | fromBase58String(aa) | |
188 | 188 | } | |
189 | 189 | else if ($isInstanceOf(Z, "Unit")) | |
190 | 190 | then unit | |
191 | 191 | else throw("Match error") | |
192 | 192 | } | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func ao (ap) = { | |
196 | 196 | let Z = am() | |
197 | 197 | if ($isInstanceOf(Z, "ByteVector")) | |
198 | 198 | then { | |
199 | 199 | let aq = Z | |
200 | 200 | (ap.callerPublicKey == aq) | |
201 | 201 | } | |
202 | 202 | else if ($isInstanceOf(Z, "Unit")) | |
203 | 203 | then (ap.caller == this) | |
204 | 204 | else throw("Match error") | |
205 | 205 | } | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | func ar (ap) = if (ao(ap)) | |
209 | 209 | then true | |
210 | 210 | else j() | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | func as (ap) = { | |
214 | 214 | let at = ad(getString(z())) | |
215 | 215 | if (containsElement(at, toBase58String(ap.callerPublicKey))) | |
216 | 216 | then true | |
217 | 217 | else ar(ap) | |
218 | 218 | } | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func au (av) = (valueOrElse(getInteger(addressFromStringValue(ab(E())), (("status_<" + av) + ">")), 0) == 2) | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | func aw (ax) = { | |
225 | 225 | let Z = ax.assetId | |
226 | 226 | if ($isInstanceOf(Z, "ByteVector")) | |
227 | 227 | then { | |
228 | 228 | let ay = Z | |
229 | 229 | let az = value(assetInfo(ay)) | |
230 | 230 | $Tuple2(toBase58String(ay), az) | |
231 | 231 | } | |
232 | 232 | else if ($isInstanceOf(Z, "Unit")) | |
233 | 233 | then $Tuple2(c, unit) | |
234 | 234 | else throw("Match error") | |
235 | 235 | } | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | func aA (aB) = containsElement(M, aB) | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | func aC (ap,aD) = { | |
242 | 242 | let aE = value(ap.payments[0]) | |
243 | 243 | let aF = value(ap.payments[1]) | |
244 | 244 | let aG = value(ap.payments[2]) | |
245 | 245 | let aH = aw(aE) | |
246 | 246 | let B = aH._1 | |
247 | 247 | let aI = aH._2 | |
248 | 248 | let aJ = aw(aF) | |
249 | 249 | let C = aJ._1 | |
250 | 250 | let aK = aJ._2 | |
251 | 251 | let aL = aw(aG) | |
252 | 252 | let aM = aL._1 | |
253 | 253 | let aN = aL._2 | |
254 | 254 | let aO = aE.amount | |
255 | 255 | let aP = aF.amount | |
256 | 256 | let aQ = aG.amount | |
257 | 257 | let aR = ad(getString(af, X())) | |
258 | 258 | let aS = getIntegerValue(V()) | |
259 | 259 | let aT = ad(getString(W())) | |
260 | 260 | let aU = if (containsElement(aR, B)) | |
261 | 261 | then { | |
262 | 262 | let aV = valueOrErrorMessage(indexOf(aR, B), f) | |
263 | 263 | value(parseInt(aT[aV])) | |
264 | 264 | } | |
265 | 265 | else aS | |
266 | 266 | let aW = if (containsElement(aR, C)) | |
267 | 267 | then { | |
268 | 268 | let aV = valueOrErrorMessage(indexOf(aR, C), f) | |
269 | 269 | value(parseInt(aT[aV])) | |
270 | 270 | } | |
271 | 271 | else aS | |
272 | 272 | let aX = valueOrElse(getInteger(H()), 0) | |
273 | 273 | let aY = (aX + 1) | |
274 | 274 | let aZ = addressFromStringValue(ab(F())) | |
275 | 275 | let ba = { | |
276 | 276 | let bb = invoke(af, "poolExistsREADONLY", [B, C], nil) | |
277 | 277 | if ($isInstanceOf(bb, "Boolean")) | |
278 | 278 | then bb | |
279 | 279 | else throw(($getType(bb) + " couldn't be cast to Boolean")) | |
280 | 280 | } | |
281 | 281 | let bc = [if (!(ak(B, C))) | |
282 | 282 | then true | |
283 | 283 | else m(), if (!(ba)) | |
284 | 284 | then true | |
285 | 285 | else m(), if ((B != C)) | |
286 | 286 | then true | |
287 | 287 | else w(), if (if (ao(ap)) | |
288 | 288 | then true | |
289 | 289 | else if (au(B)) | |
290 | 290 | then au(C) | |
291 | 291 | else false) | |
292 | 292 | then true | |
293 | 293 | else w(), if (if (containsElement(aR, B)) | |
294 | 294 | then true | |
295 | 295 | else containsElement(aR, C)) | |
296 | 296 | then true | |
297 | 297 | else w(), if (if (ao(ap)) | |
298 | 298 | then true | |
299 | 299 | else (getString(T()) == aM)) | |
300 | 300 | then true | |
301 | 301 | else p(), if (if (ao(ap)) | |
302 | 302 | then true | |
303 | 303 | else (aO >= getIntegerValue(V()))) | |
304 | 304 | then true | |
305 | 305 | else q(), if (if (ao(ap)) | |
306 | 306 | then true | |
307 | 307 | else (aP >= aW)) | |
308 | 308 | then true | |
309 | 309 | else u(), if (if (ao(ap)) | |
310 | 310 | then true | |
311 | 311 | else (aQ == getInteger(U()))) | |
312 | 312 | then true | |
313 | 313 | else v()] | |
314 | 314 | if ((bc == bc)) | |
315 | 315 | then { | |
316 | 316 | let bd = 3 | |
317 | 317 | let be = if ((size(ap.payments) >= bd)) | |
318 | 318 | then invoke(aZ, "burn", nil, [AttachedPayment(fromBase58String(aM), aQ)]) | |
319 | 319 | else unit | |
320 | 320 | if ((be == be)) | |
321 | 321 | then [BooleanEntry(N(B, C), true), StringEntry(O(B, C), toString(ap.caller)), IntegerEntry(H(), aY), StringEntry(G(B, C), (toString(aY) + I)), IntegerEntry(R(B, C), height), StringEntry(A(B, C), J), IntegerEntry(P(B, C), aO), IntegerEntry(Q(B, C), aP), StringEntry(S(B, C), aD)] | |
322 | 322 | else throw("Strict value is not equal to itself.") | |
323 | 323 | } | |
324 | 324 | else throw("Strict value is not equal to itself.") | |
325 | 325 | } | |
326 | 326 | ||
327 | 327 | ||
328 | 328 | @Callable(ap) | |
329 | 329 | func constructor (bf,bg,bh,bi,aU,aM,bj) = { | |
330 | 330 | let bk = ar(ap) | |
331 | 331 | if ((bk == bk)) | |
332 | 332 | then [StringEntry(D(), bf), StringEntry(E(), bg), StringEntry(F(), bh), StringEntry(W(), makeString(bi, b)), IntegerEntry(V(), aU), StringEntry(T(), aM), IntegerEntry(U(), bj)] | |
333 | 333 | else throw("Strict value is not equal to itself.") | |
334 | 334 | } | |
335 | 335 | ||
336 | 336 | ||
337 | 337 | ||
338 | 338 | @Callable(ap) | |
339 | 339 | func create () = aC(ap, d) | |
340 | 340 | ||
341 | 341 | ||
342 | 342 | ||
343 | 343 | @Callable(ap) | |
344 | 344 | func createStable () = { | |
345 | 345 | let bk = ar(ap) | |
346 | 346 | if ((bk == bk)) | |
347 | 347 | then aC(ap, e) | |
348 | 348 | else throw("Strict value is not equal to itself.") | |
349 | 349 | } | |
350 | 350 | ||
351 | 351 | ||
352 | 352 | ||
353 | 353 | @Callable(ap) | |
354 | 354 | func activate (bl,B,bm,C,bn,bo) = { | |
355 | 355 | let bc = [as(ap), if (ak(B, C)) | |
356 | 356 | then true | |
357 | 357 | else k(), if ((value(getString(A(B, C))) == J)) | |
358 | 358 | then true | |
359 | 359 | else s()] | |
360 | 360 | if ((bc == bc)) | |
361 | 361 | then { | |
362 | 362 | let bp = getString(this, S(B, C)) | |
363 | 363 | let bq = invoke(af, "activateNewPool", [bl, B, C, ((bm + bn) + "LP"), (((bm + "/") + bn) + " pool liquidity provider token"), 0, if ((bp == unit)) | |
364 | 364 | then "VLTPOOL" | |
365 | 365 | else value(bp), bo], nil) | |
366 | 366 | if ((bq == bq)) | |
367 | 367 | then { | |
368 | 368 | let br = { | |
369 | 369 | let Z = bq | |
370 | 370 | if ($isInstanceOf(Z, "String")) | |
371 | 371 | then { | |
372 | 372 | let ay = Z | |
373 | 373 | ay | |
374 | 374 | } | |
375 | 375 | else t() | |
376 | 376 | } | |
377 | 377 | if ((br == br)) | |
378 | 378 | then { | |
379 | 379 | let bs = assetBalance(this, fromBase58String(br)) | |
380 | 380 | if ((bs == bs)) | |
381 | 381 | then { | |
382 | 382 | let bt = invoke(addressFromStringValue(bl), "put", [0, false], [AttachedPayment(if ((B == "WAVES")) | |
383 | 383 | then unit | |
384 | 384 | else fromBase58String(B), value(getInteger(P(B, C)))), AttachedPayment(if ((C == "WAVES")) | |
385 | 385 | then unit | |
386 | 386 | else fromBase58String(C), value(getInteger(Q(B, C))))]) | |
387 | 387 | if ((bt == bt)) | |
388 | 388 | then { | |
389 | 389 | let bu = assetBalance(this, fromBase58String(br)) | |
390 | 390 | if ((bu == bu)) | |
391 | 391 | then { | |
392 | 392 | let bv = value(addressFromString(value(getString(O(B, C))))) | |
393 | 393 | let bw = invoke(aj, "approve", [B, C], nil) | |
394 | 394 | if ((bw == bw)) | |
395 | 395 | then [StringEntry(A(B, C), L), ScriptTransfer(bv, (bu - bs), fromBase58String(br))] | |
396 | 396 | else throw("Strict value is not equal to itself.") | |
397 | 397 | } | |
398 | 398 | else throw("Strict value is not equal to itself.") | |
399 | 399 | } | |
400 | 400 | else throw("Strict value is not equal to itself.") | |
401 | 401 | } | |
402 | 402 | else throw("Strict value is not equal to itself.") | |
403 | 403 | } | |
404 | 404 | else throw("Strict value is not equal to itself.") | |
405 | 405 | } | |
406 | 406 | else throw("Strict value is not equal to itself.") | |
407 | 407 | } | |
408 | 408 | else throw("Strict value is not equal to itself.") | |
409 | 409 | } | |
410 | 410 | ||
411 | 411 | ||
412 | 412 | ||
413 | 413 | @Callable(ap) | |
414 | 414 | func setAdmins (bx) = { | |
415 | 415 | let bk = ar(ap) | |
416 | 416 | if ((bk == bk)) | |
417 | 417 | then [StringEntry(z(), makeString(bx, b))] | |
418 | 418 | else throw("Strict value is not equal to itself.") | |
419 | 419 | } | |
420 | 420 | ||
421 | 421 | ||
422 | 422 | ||
423 | 423 | @Callable(ap) | |
424 | 424 | func priceAssetsREADONLY () = $Tuple2(nil, ad(getString(X()))) | |
425 | 425 | ||
426 | 426 | ||
427 | 427 | ||
428 | 428 | @Callable(ap) | |
429 | 429 | func statusREADONLY (B,C) = { | |
430 | 430 | let aB = { | |
431 | 431 | let Z = getString(A(B, C)) | |
432 | 432 | if ($isInstanceOf(Z, "String")) | |
433 | 433 | then { | |
434 | 434 | let aa = Z | |
435 | 435 | aa | |
436 | 436 | } | |
437 | 437 | else unit | |
438 | 438 | } | |
439 | 439 | $Tuple2(nil, aB) | |
440 | 440 | } | |
441 | 441 | ||
442 | 442 | ||
443 | 443 | ||
444 | 444 | @Callable(ap) | |
445 | 445 | func getPoolCreatorREADONLY (B,C) = { | |
446 | 446 | let by = valueOrElse(getString(O(B, C)), "") | |
447 | 447 | $Tuple2(nil, by) | |
448 | 448 | } | |
449 | 449 | ||
450 | 450 | ||
451 | 451 | ||
452 | 452 | @Callable(ap) | |
453 | 453 | func deletePool (B,C) = { | |
454 | 454 | let bk = if (if ((ap.caller == af)) | |
455 | 455 | then true | |
456 | 456 | else ar(ap)) | |
457 | 457 | then true | |
458 | 458 | else i("Permission denied") | |
459 | 459 | if ((bk == bk)) | |
460 | 460 | then [DeleteEntry(N(B, C)), DeleteEntry(O(B, C)), DeleteEntry(G(B, C)), DeleteEntry(R(B, C)), DeleteEntry(A(B, C)), DeleteEntry(P(B, C)), DeleteEntry(Q(B, C)), DeleteEntry(S(B, C))] | |
461 | 461 | else throw("Strict value is not equal to itself.") | |
462 | 462 | } | |
463 | 463 | ||
464 | 464 | ||
465 | 465 | @Verifier(bz) | |
466 | 466 | func bA () = { | |
467 | 467 | let bB = { | |
468 | 468 | let Z = am() | |
469 | 469 | if ($isInstanceOf(Z, "ByteVector")) | |
470 | 470 | then { | |
471 | 471 | let aq = Z | |
472 | 472 | aq | |
473 | 473 | } | |
474 | 474 | else if ($isInstanceOf(Z, "Unit")) | |
475 | 475 | then bz.senderPublicKey | |
476 | 476 | else throw("Match error") | |
477 | 477 | } | |
478 | 478 | sigVerify(bz.bodyBytes, bz.proofs[0], bB) | |
479 | 479 | } | |
480 | 480 |
github/deemru/w8io/026f985 63.67 ms ◑