tx · FeD28WiBv5pHQ3TpZnavaaLochRHMASqFnQ972Ai6hKM

3Mz29fiz3zgY9JDbiHKANvHsFgQutdfu4Ua:  -0.01400000 Waves

2021.04.01 14:00 [1463274] smart account 3Mz29fiz3zgY9JDbiHKANvHsFgQutdfu4Ua > SELF 0.00000000 Waves

{ "type": 13, "id": "FeD28WiBv5pHQ3TpZnavaaLochRHMASqFnQ972Ai6hKM", "fee": 1400000, "feeAssetId": null, "timestamp": 1617274836175, "version": 2, "chainId": 84, "sender": "3Mz29fiz3zgY9JDbiHKANvHsFgQutdfu4Ua", "senderPublicKey": "CTyHhnVTxf16Z4CmGGneAK8WB5g2QyT4MB8kUn8vPPcu", "proofs": [ "5PBQrfmZ3Fpta8vaBQGvFJQDeN1Uzn5gfHSdnuc7JpRdnkz6zHsDxZjWfJ36VNCbLGyBaWg1BoBbC8WFFzBUviUn" ], "script": "base64:AAIEAAAAAAAAAAwIAhIDCgEIEgMKAQgAAAACAAAAAAlzZXBhcmF0b3ICAAAAA19fXwAAAAAMa2V5UG9vbHNMaXN0AgAAAApQT09MU19MSVNUAAAAAgAAAAFpAQAAAAdhZGRQb29sAAAAAQAAAAdhc3NldElkAwkBAAAAAiE9AAAAAgUAAAAEdGhpcwgFAAAAAWkAAAAGY2FsbGVyCQAAAgAAAAECAAAADUFjY2VzcyBkZW5pZWQDCQAAAAAAAAIJAQAAAAhjb250YWlucwAAAAIFAAAAB2Fzc2V0SWQFAAAACXNlcGFyYXRvcgYJAAACAAAAAQIAAAAZU2VwYXJhdG9yIGZvdW5kIGluIHN0cmluZwQAAAAJYXNzZXREYXRhCQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAPsAAAAAQkAAlkAAAABBQAAAAdhc3NldElkAgAAAA1Vbmtub3duIGFzc2V0BAAAAAlwb29sc0xpc3QJAAS1AAAAAgkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzBQAAAAxrZXlQb29sc0xpc3QCAAAAAAUAAAAJc2VwYXJhdG9yBAAAAAxuZXdQb29sc0xpc3QJAAS5AAAAAgkABEwAAAACBQAAAAdhc3NldElkBQAAAAlwb29sc0xpc3QFAAAACXNlcGFyYXRvcgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAxrZXlQb29sc0xpc3QIBQAAAAlhc3NldERhdGEAAAAEbmFtZQUAAAADbmlsAAAAAWkBAAAACnJlbW92ZVBvb2wAAAABAAAAB2Fzc2V0SWQDCQEAAAACIT0AAAACBQAAAAR0aGlzCAUAAAABaQAAAAZjYWxsZXIJAAACAAAAAQIAAAANQWNjZXNzIGRlbmllZAQAAAAJcG9vbHNMaXN0CQAEtQAAAAIJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAR0aGlzBQAAAAxrZXlQb29sc0xpc3QCAAAACE5vIHBvb2xzBQAAAAlzZXBhcmF0b3IEAAAACXBvb2xJbmRleAkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAETwAAAAIFAAAACXBvb2xzTGlzdAUAAAAHYXNzZXRJZAIAAAAWTm8gcG9vbCBmb3IgdGhpcyBhc3NldAQAAAAMbmV3UG9vbHNMaXN0CQAEuQAAAAIJAARRAAAAAgUAAAAJcG9vbHNMaXN0BQAAAAlwb29sSW5kZXgFAAAACXNlcGFyYXRvcgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAxrZXlQb29sc0xpc3QFAAAADG5ld1Bvb2xzTGlzdAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlWQI2j", "height": 1463274, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7kmj5sqRMbheYWBSdUCh5ub32G9mYet1Na2snBtjZ7d6 Next: 8LSkf6ZyTbPrQvhv8Dx5pnu24PmhhRbB3LLQk914w7SJ Diff:
OldNewDifferences
1313 else {
1414 let e = valueOrErrorMessage(assetInfo(fromBase58String(d)), "Unknown asset")
1515 let f = split(valueOrElse(getString(this, b), ""), a)
16- if ((containsElement(f, d) == true))
17- then throw("Asset already has a pool")
18- else {
19- let g = makeString(d :: f, a)
16+ let g = makeString(d :: f, a)
2017 [StringEntry(b, e.name)]
21- }
2218 }
2319
2420
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "___"
55
66 let b = "POOLS_LIST"
77
88 @Callable(c)
99 func addPool (d) = if ((this != c.caller))
1010 then throw("Access denied")
1111 else if ((contains(d, a) == true))
1212 then throw("Separator found in string")
1313 else {
1414 let e = valueOrErrorMessage(assetInfo(fromBase58String(d)), "Unknown asset")
1515 let f = split(valueOrElse(getString(this, b), ""), a)
16- if ((containsElement(f, d) == true))
17- then throw("Asset already has a pool")
18- else {
19- let g = makeString(d :: f, a)
16+ let g = makeString(d :: f, a)
2017 [StringEntry(b, e.name)]
21- }
2218 }
2319
2420
2521
2622 @Callable(c)
2723 func removePool (d) = if ((this != c.caller))
2824 then throw("Access denied")
2925 else {
3026 let f = split(valueOrErrorMessage(getString(this, b), "No pools"), a)
3127 let h = valueOrErrorMessage(indexOf(f, d), "No pool for this asset")
3228 let g = makeString(removeByIndex(f, h), a)
3329 [StringEntry(b, g)]
3430 }
3531
3632
3733 @Verifier(i)
3834 func j () = sigVerify(i.bodyBytes, i.proofs[0], i.senderPublicKey)
3935

github/deemru/w8io/169f3d6 
33.34 ms