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