tx · 2pAsnbUkEEnaFx3ytFtZCh8GdUsqA89AY8rpM6j7PcQk

3N1tK7X3jBePJyadqGWXXikv8GMZTjEaUGg:  -0.02000000 Waves

2023.03.10 12:37 [2483808] smart account 3N1tK7X3jBePJyadqGWXXikv8GMZTjEaUGg > SELF 0.00000000 Waves

{ "type": 13, "id": "2pAsnbUkEEnaFx3ytFtZCh8GdUsqA89AY8rpM6j7PcQk", "fee": 2000000, "feeAssetId": null, "timestamp": 1678441048868, "version": 2, "chainId": 84, "sender": "3N1tK7X3jBePJyadqGWXXikv8GMZTjEaUGg", "senderPublicKey": "aYCkPk8ZPFwSuum9w1sS8XGMmrcoAx3rXG4t4rgjuw2", "proofs": [ "4KbRnaz7zGYK6nHdpGypMbEZdXyeZjRo4KxsBvnuLfjiaE4svGCYfdNpQkkVAxsfNBUcrsUBHQT9DViwiHTskjj5" ], "script": "base64:AAIFAAAAAAAAAG8IAhIECgIICBIECgIICBIECgIIGBIDCgEIEgUKAwgICBIDCgEIEgMKAQgSAwoBCBIECgIICBIECgIICBIECgIICBIDCgEIEgUKAwgIBBIECgIICBIECgIIBBIDCgEIEgMKARgSAwoBCBIAEgMKAQgAAAArAAAAAANTRVACAAAAAl9fAAAAAAVFTVBUWQIAAAAAAAAAAA5zdGF0dXNWZXJpZmllZAAAAAAAAAAAAgAAAAAQc3RhdHVzVW52ZXJpZmllZAAAAAAAAAAAAAAAAAAWbGFiZWxDb21tdW5pdHlWZXJpZmllZAIAAAASQ09NTVVOSVRZX1ZFUklGSUVEAAAAAAxsYWJlbFBvb2xzTHACAAAACFBPT0xTX0xQAAAAAA1kZWZhdWx0TGFiZWxzCQAETAAAAAIFAAAAFmxhYmVsQ29tbXVuaXR5VmVyaWZpZWQJAARMAAAAAgUAAAAMbGFiZWxQb29sc0xwBQAAAANuaWwBAAAAB3Rocm93UEQAAAAACQAAAgAAAAECAAAAEVBlcm1pc3Npb24gZGVuaWVkAQAAAAx0aHJvd05vQXNzZXQAAAAACQAAAgAA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AAEAAAAHYXNzZXRJZAkABRQAAAACBQAAAANuaWwJAQAAAAppc1ZlcmlmaWVkAAAAAQUAAAAHYXNzZXRJZAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAD3RhcmdldFB1YmxpY0tleQQAAAAHJG1hdGNoMAkBAAAAFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAAAAAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAJwawUAAAAHJG1hdGNoMAUAAAACcGsDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA90YXJnZXRQdWJsaWNLZXkZCooD", "height": 2483808, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: UK7KBWZ6Kx3wVQBTyib2bsfAoRWYESgKWTLvehZ3SWj Next: 86hJQpUihp9us983dYQGNrSV6wazXDmFy8afVpN9a2e8 Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 let EMPTY = ""
77
88 let statusVerified = 2
99
1010 let statusUnverified = 0
1111
1212 let labelCommunityVerified = "COMMUNITY_VERIFIED"
1313
1414 let labelPoolsLp = "POOLS_LP"
1515
1616 let defaultLabels = [labelCommunityVerified, labelPoolsLp]
1717
1818 func throwPD () = throw("Permission denied")
1919
2020
2121 func throwNoAsset () = throw("Asset doesn't exists")
2222
2323
2424 func keyManagerPublicKey () = "%s__managerPublicKey"
2525
2626
2727 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
2828
2929
3030 func keyAdminPubKeys () = "%s__adminPubKeys"
3131
3232
3333 func keyUserPoolsContract () = "%s__userPoolsContract"
3434
3535
3636 func keyFactoryContract () = "%s__factoryContract"
3737
3838
3939 func keyCreated (assetId) = (("created_<" + assetId) + ">")
4040
4141
4242 func keyLogo (assetId) = (("logo_<" + assetId) + ">")
4343
4444
4545 func keyTicker (assetId) = (("ticker_<" + assetId) + ">")
4646
4747
4848 func keyStatus (assetId) = (("status_<" + assetId) + ">")
4949
5050
5151 func keyAssetPoolsNumber (assetId) = makeString(["%s%s", "pools", assetId], SEP)
5252
5353
5454 func keyTickerToAssetId (ticker) = makeString(["%s%s", "ticker2assetId", ticker], SEP)
5555
5656
5757 func keyAssetIdToTicker (assetId) = makeString(["%s%s", "assetId2ticker", assetId], SEP)
5858
5959
6060 func keyAmountAndPriceAssetsToLpAsset (amountAsset,priceAsset) = makeString(["%s%s%s", "amountAndPriceAssetsToLpAsset", amountAsset, priceAsset], SEP)
6161
6262
6363 func keyLpAssetToAmountAndPriceAssets (lpAsset) = makeString(["%s%s", "lpAssetToAmountAndPriceAssets", lpAsset], SEP)
6464
6565
6666 func keyAssetLabels (assetId) = makeString(["%s%s", "labels", assetId], SEP)
6767
6868
6969 func keyLabels () = makeString(["%s", "labels"], SEP)
7070
7171
7272 func keyAssetName (assetId) = makeString(["%s%s", "assetName", assetId], SEP)
7373
7474
7575 func keyAssetDescription (assetId) = makeString(["%s%s", "assetDescription", assetId], SEP)
7676
7777
7878 func getValueOrFail (address,key,type) = {
7979 let error = makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")
8080 valueOrErrorMessage( match type {
8181 case str: String =>
8282 getString(address, key)
8383 case int: Int =>
8484 getInteger(address, key)
8585 case _ =>
8686 throw("invalid entry type")
8787 }, error)
8888 }
8989
9090
9191 func getStrOrFail (address,key) = {
9292 let @ = getValueOrFail(address, key, "")
9393 if ($isInstanceOf(@, "String"))
9494 then @
9595 else throw("Couldn't cast Int|String to String")
9696 }
9797
9898
9999 func getIntOrFail (address,key) = {
100100 let @ = getValueOrFail(address, key, 0)
101101 if ($isInstanceOf(@, "Int"))
102102 then @
103103 else throw("Couldn't cast Int|String to Int")
104104 }
105105
106106
107107 func isVerified (assetId) = (valueOrElse(getInteger(keyStatus(assetId)), statusUnverified) == statusVerified)
108108
109109
110110 func getLabels () = match getString(keyLabels()) {
111111 case s: String =>
112112 if ((size(s) == 0))
113113 then nil
114114 else split(s, SEP)
115115 case _ =>
116116 nil
117117 }
118118
119119
120120 func getAssetLabels (assetId) = match getString(keyAssetLabels(assetId)) {
121121 case s: String =>
122122 if ((size(s) == 0))
123123 then nil
124124 else split(s, SEP)
125125 case _ =>
126126 nil
127127 }
128128
129129
130130 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
131131 case s: String =>
132132 fromBase58String(s)
133133 case _: Unit =>
134134 unit
135135 case _ =>
136136 throw("Match error")
137137 }
138138
139139
140140 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
141141 case s: String =>
142142 fromBase58String(s)
143143 case _: Unit =>
144144 unit
145145 case _ =>
146146 throw("Match error")
147147 }
148148
149149
150150 func mustManager (i) = match managerPublicKeyOrUnit() {
151151 case pk: ByteVector =>
152152 if ((i.callerPublicKey == pk))
153153 then true
154154 else throwPD()
155155 case _: Unit =>
156156 if ((i.caller == this))
157157 then true
158158 else throwPD()
159159 case _ =>
160160 throw("Match error")
161161 }
162162
163163
164164 func mustAdmin (i) = {
165165 let adminPKs = split(valueOrElse(getString(keyAdminPubKeys()), EMPTY), SEP)
166166 if (containsElement(adminPKs, toBase58String(i.callerPublicKey)))
167167 then true
168168 else {
169169 let isManager = mustManager(i)
170170 if ((isManager == isManager))
171171 then true
172172 else throw("Strict value is not equal to itself.")
173173 }
174174 }
175175
176176
177177 func isCreated (assetId) = valueOrElse(getBoolean(keyCreated(assetId)), false)
178178
179179
180180 func verifiedToStatus (verified) = if (verified)
181181 then statusVerified
182182 else statusUnverified
183183
184184
185185 func addLabelActions (assetId,label,throwOnError) = {
186186 let labels = getLabels()
187187 let assetLabels = getAssetLabels(assetId)
188188 let checkLabel = if (containsElement(labels, label))
189189 then true
190190 else throw("Label doesn't exist")
191191 if ((checkLabel == checkLabel))
192192 then {
193193 let newAssetLabels = if (containsElement(assetLabels, label))
194194 then if (throwOnError)
195195 then throw("Label has already been added")
196196 else assetLabels
197197 else (assetLabels :+ label)
198198 [StringEntry(keyAssetLabels(assetId), makeString(newAssetLabels, SEP))]
199199 }
200200 else throw("Strict value is not equal to itself.")
201201 }
202202
203203
204204 func deleteLabelActions (assetId,label,throwOnError) = {
205205 let assetLabels = getAssetLabels(assetId)
206206 let newAssetLabels = if (containsElement(assetLabels, label))
207207 then removeByIndex(assetLabels, value(indexOf(assetLabels, label)))
208208 else if (throwOnError)
209209 then throw("Label wasn't added")
210210 else assetLabels
211211 [StringEntry(keyAssetLabels(assetId), makeString(newAssetLabels, SEP))]
212212 }
213213
214214
215215 func setVerifiedActions (assetId,verified) = {
216216 let labelCommunityVerifiedActions = if (verified)
217217 then addLabelActions(assetId, labelCommunityVerified, false)
218218 else deleteLabelActions(assetId, labelCommunityVerified, false)
219219 ([IntegerEntry(keyStatus(assetId), verifiedToStatus(verified))] ++ labelCommunityVerifiedActions)
220220 }
221221
222222
223223 func updateTickerActions (assetId,ticker) = {
224224 let checkTicker = {
225225 let linkedAssetIdOrUnit = getString(keyTickerToAssetId(ticker))
226226 let tickerIsValid = if ((ticker != ""))
227227 then if ((linkedAssetIdOrUnit == unit))
228228 then true
229229 else (value(linkedAssetIdOrUnit) == assetId)
230230 else false
231231 if (tickerIsValid)
232232 then true
233233 else throw("Invalid ticker")
234234 }
235235 if ((checkTicker == checkTicker))
236236 then [StringEntry(keyAssetIdToTicker(assetId), ticker), StringEntry(keyTickerToAssetId(ticker), assetId)]
237237 else throw("Strict value is not equal to itself.")
238238 }
239239
240240
241241 @Callable(i)
242242 func setAssetName (assetID,assetName) = {
243243 let checkCaller = mustAdmin(i)
244244 if ((checkCaller == checkCaller))
245245 then [StringEntry(keyAssetName(assetID), assetName)]
246246 else throw("Strict value is not equal to itself.")
247247 }
248248
249249
250250
251251 @Callable(i)
252252 func setAssetDescription (assetID,assetDescription) = {
253253 let checkCaller = mustAdmin(i)
254254 if ((checkCaller == checkCaller))
255255 then [StringEntry(keyAssetDescription(assetID), assetDescription)]
256256 else throw("Strict value is not equal to itself.")
257257 }
258258
259259
260260
261261 @Callable(i)
262262 func constructor (userPoolsContract,labels) = {
263263 let checkCaller = mustManager(i)
264264 if ((checkCaller == checkCaller))
265265 then {
266266 let checksAddress = valueOrErrorMessage(addressFromString(userPoolsContract), "Invalid address")
267267 if ((checksAddress == checksAddress))
268268 then [StringEntry(keyUserPoolsContract(), userPoolsContract), StringEntry(keyLabels(), makeString((defaultLabels ++ labels), SEP))]
269269 else throw("Strict value is not equal to itself.")
270270 }
271271 else throw("Strict value is not equal to itself.")
272272 }
273273
274274
275275
276276 @Callable(i)
277277 func constructorV2 (factoryContract) = {
278278 let checkCaller = mustManager(i)
279279 if ((checkCaller == checkCaller))
280280 then {
281281 let checkAddress = valueOrErrorMessage(addressFromString(factoryContract), "invalid factory contract address")
282282 if ((checkAddress == checkAddress))
283283 then [StringEntry(keyFactoryContract(), factoryContract)]
284284 else throw("Strict value is not equal to itself.")
285285 }
286286 else throw("Strict value is not equal to itself.")
287287 }
288288
289289
290290
291291 @Callable(i)
292292 func addAssetsLink (amountAsset,priceAsset,lpAsset) = {
293293 let checkCaller = mustAdmin(i)
294294 if ((checkCaller == checkCaller))
295295 then [StringEntry(keyAmountAndPriceAssetsToLpAsset(amountAsset, priceAsset), lpAsset), StringEntry(keyLpAssetToAmountAndPriceAssets(lpAsset), makeString([amountAsset, priceAsset], SEP))]
296296 else throw("Strict value is not equal to itself.")
297297 }
298298
299299
300300
301301 @Callable(i)
302302 func increaseAssetPoolsNumber (assetId) = {
303303 let checkCaller = mustAdmin(i)
304304 if ((checkCaller == checkCaller))
305305 then {
306306 let assetPoolsNumberKey = keyAssetPoolsNumber(assetId)
307307 let assetPoolsNumber = valueOrElse(getInteger(assetPoolsNumberKey), 0)
308308 [IntegerEntry(assetPoolsNumberKey, (assetPoolsNumber + 1))]
309309 }
310310 else throw("Strict value is not equal to itself.")
311311 }
312312
313313
314314
315315 @Callable(i)
316316 func createLabel (label) = {
317317 let labels = getLabels()
318318 let checkCaller = mustAdmin(i)
319319 if ((checkCaller == checkCaller))
320320 then {
321321 let checkLabel = [if (!(contains(label, SEP)))
322322 then true
323323 else throw("Invalid label name"), if (!(containsElement(labels, label)))
324324 then true
325325 else throw("Label exists")]
326326 if ((checkLabel == checkLabel))
327327 then [StringEntry(keyLabels(), makeString((labels :+ label), SEP))]
328328 else throw("Strict value is not equal to itself.")
329329 }
330330 else throw("Strict value is not equal to itself.")
331331 }
332332
333333
334334
335335 @Callable(i)
336336 func dropLabel (label) = {
337337 let labels = getLabels()
338338 let checkCaller = mustManager(i)
339339 if ((checkCaller == checkCaller))
340340 then {
341341 let checkLabel = if (containsElement(labels, label))
342342 then true
343343 else throw("Label doesn't exist")
344344 if ((checkLabel == checkLabel))
345345 then [StringEntry(keyLabels(), makeString(removeByIndex(labels, value(indexOf(labels, label))), SEP))]
346346 else throw("Strict value is not equal to itself.")
347347 }
348348 else throw("Strict value is not equal to itself.")
349349 }
350350
351351
352352
353353 @Callable(i)
354354 func addLabel (assetId,label) = {
355355 let checkCaller = mustAdmin(i)
356356 if ((checkCaller == checkCaller))
357357 then addLabelActions(assetId, label, true)
358358 else throw("Strict value is not equal to itself.")
359359 }
360360
361361
362362
363363 @Callable(i)
364364 func deleteLabel (assetId,label) = {
365365 let checkCaller = mustAdmin(i)
366366 if ((checkCaller == checkCaller))
367367 then deleteLabelActions(assetId, label, true)
368368 else throw("Strict value is not equal to itself.")
369369 }
370370
371371
372372
373373 @Callable(i)
374374 func updateTicker (assetId,ticker) = {
375375 let checkCaller = mustAdmin(i)
376376 if ((checkCaller == checkCaller))
377377 then {
378378 let checkAsset = if (isCreated(assetId))
379379 then true
380380 else throwNoAsset()
381381 if ((checkAsset == checkAsset))
382382 then updateTickerActions(assetId, ticker)
383383 else throw("Strict value is not equal to itself.")
384384 }
385385 else throw("Strict value is not equal to itself.")
386386 }
387387
388388
389389
390390 @Callable(i)
391391 func deleteTicker (assetId) = {
392392 let checkCaller = mustAdmin(i)
393393 if ((checkCaller == checkCaller))
394394 then {
395395 let ticker = valueOrErrorMessage(getString(keyAssetIdToTicker(assetId)), "Invalid asset")
396396 [DeleteEntry(keyAssetIdToTicker(assetId)), DeleteEntry(keyTickerToAssetId(ticker))]
397397 }
398398 else throw("Strict value is not equal to itself.")
399399 }
400400
401401
402402
403403 @Callable(i)
404404 func createOrUpdate (assetId,logo,verified) = {
405405 let checkCaller = mustAdmin(i)
406406 if ((checkCaller == checkCaller))
407407 then {
408408 let isCreatedNow = !(isCreated(assetId))
409409 if ((isCreatedNow == isCreatedNow))
410410 then {
411411 let setLogoActions = if ((logo == ""))
412412 then nil
413413 else [StringEntry(keyLogo(assetId), logo)]
414414 $Tuple2((([BooleanEntry(keyCreated(assetId), true)] ++ setLogoActions) ++ setVerifiedActions(assetId, verified)), isCreatedNow)
415415 }
416416 else throw("Strict value is not equal to itself.")
417417 }
418418 else throw("Strict value is not equal to itself.")
419419 }
420420
421421
422422
423423 @Callable(i)
424424 func setLogo (assetId,logo) = {
425425 let checks = [mustAdmin(i), if (isCreated(assetId))
426426 then true
427427 else throwNoAsset()]
428428 if ((checks == checks))
429429 then {
430430 let action = if ((logo == ""))
431431 then DeleteEntry(keyLogo(assetId))
432432 else StringEntry(keyLogo(assetId), logo)
433433 [action]
434434 }
435435 else throw("Strict value is not equal to itself.")
436436 }
437437
438438
439439
440440 @Callable(i)
441441 func setVerified (assetId,verified) = {
442442 let checks = [mustAdmin(i), if (isCreated(assetId))
443443 then true
444444 else throwNoAsset()]
445445 if ((checks == checks))
446446 then {
447447 let onVerificationLossInv = if (!(verified))
448448 then {
449449 let factoryContract = valueOrErrorMessage(addressFromString(getStrOrFail(this, keyFactoryContract())), "invalid factory contract address")
450450 invoke(factoryContract, "onVerificationLoss", [assetId], nil)
451451 }
452452 else unit
453453 if ((onVerificationLossInv == onVerificationLossInv))
454454 then $Tuple2(setVerifiedActions(assetId, verified), unit)
455455 else throw("Strict value is not equal to itself.")
456456 }
457457 else throw("Strict value is not equal to itself.")
458458 }
459459
460460
461461
462462 @Callable(i)
463463 func onEliminate (assetId) = {
464464 let poolsNumber = valueOrElse(getInteger(keyAssetPoolsNumber(assetId)), 0)
465465 let actions = if ((poolsNumber > 0))
466466 then nil
467467 else [DeleteEntry(keyLogo(assetId))]
468468 $Tuple2(actions, unit)
469469 }
470470
471471
472472
473473 @Callable(i)
474474 func setAdmins (adminPubKeys) = {
475475 let checkCaller = mustManager(i)
476476 if ((checkCaller == checkCaller))
477477 then [StringEntry(keyAdminPubKeys(), makeString(adminPubKeys, SEP))]
478478 else throw("Strict value is not equal to itself.")
479479 }
480480
481481
482482
483483 @Callable(i)
484484 func setManager (pendingManagerPublicKey) = {
485485 let checkCaller = mustManager(i)
486486 if ((checkCaller == checkCaller))
487487 then {
488488 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
489489 if ((checkManagerPublicKey == checkManagerPublicKey))
490490 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
491491 else throw("Strict value is not equal to itself.")
492492 }
493493 else throw("Strict value is not equal to itself.")
494494 }
495495
496496
497497
498498 @Callable(i)
499499 func confirmManager () = {
500500 let pm = pendingManagerPublicKeyOrUnit()
501501 let hasPM = if (isDefined(pm))
502502 then true
503503 else throw("No pending manager")
504504 if ((hasPM == hasPM))
505505 then {
506506 let checkPM = if ((i.callerPublicKey == value(pm)))
507507 then true
508508 else throw("You are not pending manager")
509509 if ((checkPM == checkPM))
510510 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
511511 else throw("Strict value is not equal to itself.")
512512 }
513513 else throw("Strict value is not equal to itself.")
514514 }
515515
516516
517517
518518 @Callable(i)
519519 func isVerifiedREADONLY (assetId) = $Tuple2(nil, isVerified(assetId))
520520
521521
522522 @Verifier(tx)
523523 func verify () = {
524524 let targetPublicKey = match managerPublicKeyOrUnit() {
525525 case pk: ByteVector =>
526526 pk
527527 case _: Unit =>
528528 tx.senderPublicKey
529529 case _ =>
530530 throw("Match error")
531531 }
532532 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
533533 }
534534

github/deemru/w8io/026f985 
44.54 ms