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(i)
27-func setup (configAddress,pools) = [writeString("config", configAddress), writeString("pools", makeString(pools, ";"))]
27+func setup (configAddress,pools) = if (if ((size(admin) == 0))
28+ then true
29+ else (size(config) == 0))
30+ then [writeString("config", configAddress), writeString("pools", makeString(pools, ";"))]
31+ else throw("Admin and config address already definied!")
2832
2933
3034 @Verifier(tx)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let config = valueOrElse(getStringValue(this, "config"), "")
55
66 let admin = valueOrElse(getStringValue(this, "admin"), "")
77
88 let pools = valueOrErrorMessage(getString(this, "pools"), "No key pools was found")
99
1010 func isAdmin (callerAddress) = if ((callerAddress == addressFromStringValue(admin)))
1111 then true
1212 else false
1313
1414
1515 func checkPool (poolAdd) = if (contains(pools, poolAdd))
1616 then true
1717 else false
1818
1919
2020 func writeString (key,stringValue) = StringEntry(key, stringValue)
2121
2222
2323 func writeInteger (key,integerValue) = IntegerEntry(key, integerValue)
2424
2525
2626 @Callable(i)
27-func setup (configAddress,pools) = [writeString("config", configAddress), writeString("pools", makeString(pools, ";"))]
27+func setup (configAddress,pools) = if (if ((size(admin) == 0))
28+ then true
29+ else (size(config) == 0))
30+ then [writeString("config", configAddress), writeString("pools", makeString(pools, ";"))]
31+ else throw("Admin and config address already definied!")
2832
2933
3034 @Verifier(tx)
3135 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
3236

github/deemru/w8io/169f3d6 
19.73 ms