tx · 6XadxtLmvW7beCi785yhUZU4eKySKy8MsNfeqq45bESB

3MqkoGVxf9wAeNTiksudck7HuNKruh3W9yg:  -0.04000000 Waves

2021.08.24 17:09 [1672504] smart account 3MqkoGVxf9wAeNTiksudck7HuNKruh3W9yg > SELF 0.00000000 Waves

{ "type": 13, "id": "6XadxtLmvW7beCi785yhUZU4eKySKy8MsNfeqq45bESB", "fee": 4000000, "feeAssetId": null, "timestamp": 1629814129950, "version": 2, "chainId": 84, "sender": "3MqkoGVxf9wAeNTiksudck7HuNKruh3W9yg", "senderPublicKey": "4adRtnahFnRGxzn67XppfF97pKLyUFPtNw5aCZ4NM9UV", "proofs": [ "4yXHXtWE1Xxe8YDnygV5MEB2Ksg1ofEQW1g9s8BsVo6d776kWFi4D9TjT4XLLx8tWPxNYk3dS8dgj8QRkyqghrVR" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIIGAAAAAcAAAAABmNvbmZpZwkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwIAAAAGY29uZmlnAgAAAAAAAAAABWFkbWluCQEAAAALdmFsdWVPckVsc2UAAAACCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzAgAAAAVhZG1pbgIAAAAAAAAAAAVwb29scwkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEHQAAAAIFAAAABHRoaXMCAAAABXBvb2xzAgAAABZObyBrZXkgcG9vbHMgd2FzIGZvdW5kAQAAAAdpc0FkbWluAAAAAQAAAA1jYWxsZXJBZGRyZXNzAwkAAAAAAAACBQAAAA1jYWxsZXJBZGRyZXNzCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAAAVhZG1pbgYHAQAAAAljaGVja1Bvb2wAAAABAAAAB3Bvb2xBZGQDCQEAAAAIY29udGFpbnMAAAACBQAAAAVwb29scwUAAAAHcG9vbEFkZAYHAQAAAAt3cml0ZVN0cmluZwAAAAIAAAADa2V5AAAAC3N0cmluZ1ZhbHVlCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAANrZXkFAAAAC3N0cmluZ1ZhbHVlAQAAAAx3cml0ZUludGVnZXIAAAACAAAAA2tleQAAAAxpbnRlZ2VyVmFsdWUJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAANrZXkFAAAADGludGVnZXJWYWx1ZQAAAAEAAAABaQEAAAAFc2V0dXAAAAACAAAADWNvbmZpZ0FkZHJlc3MAAAAFcG9vbHMDAwkAAAAAAAACCQABMQAAAAEFAAAABWFkbWluAAAAAAAAAAAABgkAAAAAAAACCQABMQAAAAEFAAAABmNvbmZpZwAAAAAAAAAAAAkABEwAAAACCQEAAAALd3JpdGVTdHJpbmcAAAACAgAAAAZjb25maWcFAAAADWNvbmZpZ0FkZHJlc3MJAARMAAAAAgkBAAAAC3dyaXRlU3RyaW5nAAAAAgIAAAAFcG9vbHMJAAS5AAAAAgUAAAAFcG9vbHMCAAAAATsFAAAAA25pbAkAAAIAAAABAgAAACpBZG1pbiBhbmQgY29uZmlnIGFkZHJlc3MgYWxyZWFkeSBkZWZpbmllZCEAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlebw6M1k=", "height": 1672504, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4ZfgX6wreoRcDugmopAFSFmsH9shyjF5RVUqkzTgfytY Next: 9WVkNiUt3XcVv2pFcHDmMTYqhTQp29j1muK4FSrsgaAy Diff:
OldNewDifferences
2424
2525
2626 @Callable(m)
27-func setup (n,c) = [h("config", n), h("pools", makeString(c, ";"))]
27+func setup (n,c) = if (if ((size(b) == 0))
28+ then true
29+ else (size(a) == 0))
30+ then [h("config", n), h("pools", makeString(c, ";"))]
31+ else throw("Admin and config address already definied!")
2832
2933
3034 @Verifier(o)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = valueOrElse(getStringValue(this, "config"), "")
55
66 let b = valueOrElse(getStringValue(this, "admin"), "")
77
88 let c = valueOrErrorMessage(getString(this, "pools"), "No key pools was found")
99
1010 func d (e) = if ((e == addressFromStringValue(b)))
1111 then true
1212 else false
1313
1414
1515 func f (g) = if (contains(c, g))
1616 then true
1717 else false
1818
1919
2020 func h (i,j) = StringEntry(i, j)
2121
2222
2323 func k (i,l) = IntegerEntry(i, l)
2424
2525
2626 @Callable(m)
27-func setup (n,c) = [h("config", n), h("pools", makeString(c, ";"))]
27+func setup (n,c) = if (if ((size(b) == 0))
28+ then true
29+ else (size(a) == 0))
30+ then [h("config", n), h("pools", makeString(c, ";"))]
31+ else throw("Admin and config address already definied!")
2832
2933
3034 @Verifier(o)
3135 func p () = sigVerify(o.bodyBytes, o.proofs[0], o.senderPublicKey)
3236

github/deemru/w8io/169f3d6 
20.80 ms