tx · ADN2rsdDTYnv8EzGsukVpwNfhzUicweaZn44QQdvMDQ3
3Mt6jj1WUYqd7DT7dHEubs9jETLUXMcAB8k: -0.01400000 Waves
2021.01.13 13:07 [1351539] smart account 3Mt6jj1WUYqd7DT7dHEubs9jETLUXMcAB8k > SELF 0.00000000 Waves
{
"type": 13,
"id": "ADN2rsdDTYnv8EzGsukVpwNfhzUicweaZn44QQdvMDQ3",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1610532400400,
"version": 2,
"chainId": 84,
"sender": "3Mt6jj1WUYqd7DT7dHEubs9jETLUXMcAB8k",
"senderPublicKey": "3VyXNqJY8HwfqLo6TUZ1V4BwE6NMZuq9XYEARYhktMPE",
"proofs": [
"4ix6MRCCkL3xQByQLcbpnS47mLdB1akYMmhKwmULWLtmC7g8oxNXq9L4f4pgmJh96Zq23dKThnjn19eNepEHNmrH"
],
"script": "base64:AAIEAAAAAAAAAAgIAhIECgIIAQAAAAIAAAAABWNocmlzAgAAACMzTXNHNmpQTkNyVkpVdFlCN1hKQnhTN3V0V3NYQWY0bjlWcAAAAAAEam9lcAIAAAAjM016bTRWTHdzTjl1WndiVE16UGozWHV4VjZrRWZBUjhVRE4AAAABAAAAAWkBAAAACXdoaXRlbGlzdAAAAAIAAAAHYWRkcmVzcwAAAARkYXlzBAAAAAZjYWxsZXIJAAQlAAAAAQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BAAAAAJpZAkAAlgAAAABCAUAAAABaQAAAA10cmFuc2FjdGlvbklkBAAAAAZleHBpcmUDCQAAAAAAAAIFAAAABGRheXMAAAAAAAAAAAAFAAAABGRheXMJAABkAAAAAgUAAAAGaGVpZ2h0CQAAaAAAAAIAAAAAAAAABaAFAAAABGRheXMDCQEAAAAPY29udGFpbnNFbGVtZW50AAAAAgkABEwAAAACBQAAAAVjaHJpcwkABEwAAAACBQAAAARqb2VwBQAAAANuaWwFAAAABmNhbGxlcgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAHYWRkcmVzcwUAAAAGZXhwaXJlBQAAAANuaWwJAAACAAAAAQIAAAArWW91IGFyZSBub3QgYXV0aG9yaXplZCB0byB3aGl0ZWxpc3QgYXJ0aXN0cwAAAADWtpaO",
"height": 1351539,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 7ZoUBRNX9g1ZWPGtAcb86cP74yic2q31jMkK8fBiKx71
Next: 6pGZUTAuz2kEP3p2o88RkFqMHtq8qVpCujCkFUWGwMLJ
Diff:
Old | New | | Differences |
---|
14 | 14 | | else (height + (1440 * days)) |
---|
15 | 15 | | if (containsElement([chris, joep], caller)) |
---|
16 | 16 | | then [IntegerEntry(address, expire)] |
---|
17 | | - | else throw("You are anot authorized to whitelist artists") |
---|
| 17 | + | else throw("You are not authorized to whitelist artists") |
---|
18 | 18 | | } |
---|
19 | 19 | | |
---|
20 | 20 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let chris = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" |
---|
5 | 5 | | |
---|
6 | 6 | | let joep = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(i) |
---|
9 | 9 | | func whitelist (address,days) = { |
---|
10 | 10 | | let caller = toString(addressFromPublicKey(i.callerPublicKey)) |
---|
11 | 11 | | let id = toBase58String(i.transactionId) |
---|
12 | 12 | | let expire = if ((days == 0)) |
---|
13 | 13 | | then days |
---|
14 | 14 | | else (height + (1440 * days)) |
---|
15 | 15 | | if (containsElement([chris, joep], caller)) |
---|
16 | 16 | | then [IntegerEntry(address, expire)] |
---|
17 | | - | else throw("You are anot authorized to whitelist artists") |
---|
| 17 | + | else throw("You are not authorized to whitelist artists") |
---|
18 | 18 | | } |
---|
19 | 19 | | |
---|
20 | 20 | | |
---|