tx · 4ZfgX6wreoRcDugmopAFSFmsH9shyjF5RVUqkzTgfytY

3MqkoGVxf9wAeNTiksudck7HuNKruh3W9yg:  -0.04000000 Waves

2021.08.24 01:38 [1671585] smart account 3MqkoGVxf9wAeNTiksudck7HuNKruh3W9yg > SELF 0.00000000 Waves

{ "type": 13, "id": "4ZfgX6wreoRcDugmopAFSFmsH9shyjF5RVUqkzTgfytY", "fee": 4000000, "feeAssetId": null, "timestamp": 1629758313773, "version": 2, "chainId": 84, "sender": "3MqkoGVxf9wAeNTiksudck7HuNKruh3W9yg", "senderPublicKey": "4adRtnahFnRGxzn67XppfF97pKLyUFPtNw5aCZ4NM9UV", "proofs": [ "4j3rutrMgCztjK57QZPgoF6LAojUVC56RbnV5MioDtGKrZLdWSF42cez6rUUgZe68cD97n2Tkn9UYhATPTVcxxTU" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIIGAAAAAcAAAAABmNvbmZpZwkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwIAAAAGY29uZmlnAgAAAAAAAAAABWFkbWluCQEAAAALdmFsdWVPckVsc2UAAAACCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzAgAAAAVhZG1pbgIAAAAAAAAAAAVwb29scwkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEHQAAAAIFAAAABHRoaXMCAAAABXBvb2xzAgAAABZObyBrZXkgcG9vbHMgd2FzIGZvdW5kAQAAAAdpc0FkbWluAAAAAQAAAA1jYWxsZXJBZGRyZXNzAwkAAAAAAAACBQAAAA1jYWxsZXJBZGRyZXNzCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAAAVhZG1pbgYHAQAAAAljaGVja1Bvb2wAAAABAAAAB3Bvb2xBZGQDCQEAAAAIY29udGFpbnMAAAACBQAAAAVwb29scwUAAAAHcG9vbEFkZAYHAQAAAAt3cml0ZVN0cmluZwAAAAIAAAADa2V5AAAAC3N0cmluZ1ZhbHVlCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAANrZXkFAAAAC3N0cmluZ1ZhbHVlAQAAAAx3cml0ZUludGVnZXIAAAACAAAAA2tleQAAAAxpbnRlZ2VyVmFsdWUJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAANrZXkFAAAADGludGVnZXJWYWx1ZQAAAAEAAAABaQEAAAAFc2V0dXAAAAACAAAADWNvbmZpZ0FkZHJlc3MAAAAFcG9vbHMJAARMAAAAAgkBAAAAC3dyaXRlU3RyaW5nAAAAAgIAAAAGY29uZmlnBQAAAA1jb25maWdBZGRyZXNzCQAETAAAAAIJAQAAAAt3cml0ZVN0cmluZwAAAAICAAAABXBvb2xzCQAEuQAAAAIFAAAABXBvb2xzAgAAAAE7BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQhhOXk=", "height": 1671585, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: kdkcBLfnUPK6j7erkoD5n7wtgJ7SAVfoLmfX1dX8pom Next: 6XadxtLmvW7beCi785yhUZU4eKySKy8MsNfeqq45bESB Diff:
OldNewDifferences
2424
2525
2626 @Callable(i)
27-func setup (configAddress,pools) = if ((0 >= size(admin)))
28- then [writeString("config", configAddress), writeString("pools", makeString(pools, ";"))]
29- else if (isAdmin(i.caller))
30- then [writeString("config", configAddress), writeString("pools", makeString(pools, ";"))]
31- else throw("Address does not match with admin address!")
27+func setup (configAddress,pools) = [writeString("config", configAddress), writeString("pools", makeString(pools, ";"))]
3228
3329
3430 @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) = if ((0 >= size(admin)))
28- then [writeString("config", configAddress), writeString("pools", makeString(pools, ";"))]
29- else if (isAdmin(i.caller))
30- then [writeString("config", configAddress), writeString("pools", makeString(pools, ";"))]
31- else throw("Address does not match with admin address!")
27+func setup (configAddress,pools) = [writeString("config", configAddress), writeString("pools", makeString(pools, ";"))]
3228
3329
3430 @Verifier(tx)
3531 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
3632

github/deemru/w8io/169f3d6 
21.99 ms