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:
Old | New | | Differences |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|
26 | 26 | | @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, ";"))] |
---|
32 | 28 | | |
---|
33 | 29 | | |
---|
34 | 30 | | @Verifier(tx) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let config = valueOrElse(getStringValue(this, "config"), "") |
---|
5 | 5 | | |
---|
6 | 6 | | let admin = valueOrElse(getStringValue(this, "admin"), "") |
---|
7 | 7 | | |
---|
8 | 8 | | let pools = valueOrErrorMessage(getString(this, "pools"), "No key pools was found") |
---|
9 | 9 | | |
---|
10 | 10 | | func isAdmin (callerAddress) = if ((callerAddress == addressFromStringValue(admin))) |
---|
11 | 11 | | then true |
---|
12 | 12 | | else false |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | func checkPool (poolAdd) = if (contains(pools, poolAdd)) |
---|
16 | 16 | | then true |
---|
17 | 17 | | else false |
---|
18 | 18 | | |
---|
19 | 19 | | |
---|
20 | 20 | | func writeString (key,stringValue) = StringEntry(key, stringValue) |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|
23 | 23 | | func writeInteger (key,integerValue) = IntegerEntry(key, integerValue) |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|
26 | 26 | | @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, ";"))] |
---|
32 | 28 | | |
---|
33 | 29 | | |
---|
34 | 30 | | @Verifier(tx) |
---|
35 | 31 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
36 | 32 | | |
---|