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:
Old | New | | Differences |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|
26 | 26 | | @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!") |
---|
28 | 32 | | |
---|
29 | 33 | | |
---|
30 | 34 | | @Verifier(o) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = valueOrElse(getStringValue(this, "config"), "") |
---|
5 | 5 | | |
---|
6 | 6 | | let b = valueOrElse(getStringValue(this, "admin"), "") |
---|
7 | 7 | | |
---|
8 | 8 | | let c = valueOrErrorMessage(getString(this, "pools"), "No key pools was found") |
---|
9 | 9 | | |
---|
10 | 10 | | func d (e) = if ((e == addressFromStringValue(b))) |
---|
11 | 11 | | then true |
---|
12 | 12 | | else false |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | func f (g) = if (contains(c, g)) |
---|
16 | 16 | | then true |
---|
17 | 17 | | else false |
---|
18 | 18 | | |
---|
19 | 19 | | |
---|
20 | 20 | | func h (i,j) = StringEntry(i, j) |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|
23 | 23 | | func k (i,l) = IntegerEntry(i, l) |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|
26 | 26 | | @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!") |
---|
28 | 32 | | |
---|
29 | 33 | | |
---|
30 | 34 | | @Verifier(o) |
---|
31 | 35 | | func p () = sigVerify(o.bodyBytes, o.proofs[0], o.senderPublicKey) |
---|
32 | 36 | | |
---|