tx · 7ZoUBRNX9g1ZWPGtAcb86cP74yic2q31jMkK8fBiKx71
3Mt6jj1WUYqd7DT7dHEubs9jETLUXMcAB8k: -0.01400000 Waves
2020.12.01 12:17 [1289405] smart account 3Mt6jj1WUYqd7DT7dHEubs9jETLUXMcAB8k > SELF 0.00000000 Waves
{
"type": 13,
"id": "7ZoUBRNX9g1ZWPGtAcb86cP74yic2q31jMkK8fBiKx71",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1606814277355,
"version": 2,
"chainId": 84,
"sender": "3Mt6jj1WUYqd7DT7dHEubs9jETLUXMcAB8k",
"senderPublicKey": "3VyXNqJY8HwfqLo6TUZ1V4BwE6NMZuq9XYEARYhktMPE",
"proofs": [
"2km58DqBPwdosPHTpFyE4gKP1wPzhwFHNc7xqxK9bgiikXFexjbbDw1NU7StX7Ydr6SvgLhMykrBLKQLdaFSkyXK"
],
"script": "base64:AAIEAAAAAAAAAAgIAhIECgIIAQAAAAIAAAAABWNocmlzAgAAACMzTXNHNmpQTkNyVkpVdFlCN1hKQnhTN3V0V3NYQWY0bjlWcAAAAAAEam9lcAIAAAAjM016bTRWTHdzTjl1WndiVE16UGozWHV4VjZrRWZBUjhVRE4AAAABAAAAAWkBAAAACXdoaXRlbGlzdAAAAAIAAAAHYWRkcmVzcwAAAARkYXlzBAAAAAZjYWxsZXIJAAQlAAAAAQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BAAAAAJpZAkAAlgAAAABCAUAAAABaQAAAA10cmFuc2FjdGlvbklkBAAAAAZleHBpcmUDCQAAAAAAAAIFAAAABGRheXMAAAAAAAAAAAAFAAAABGRheXMJAABkAAAAAgUAAAAGaGVpZ2h0CQAAaAAAAAIAAAAAAAAABaAFAAAABGRheXMDCQEAAAAPY29udGFpbnNFbGVtZW50AAAAAgkABEwAAAACBQAAAAVjaHJpcwkABEwAAAACBQAAAARqb2VwBQAAAANuaWwFAAAABmNhbGxlcgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAHYWRkcmVzcwUAAAAGZXhwaXJlBQAAAANuaWwJAAACAAAAAQIAAAAsWW91IGFyZSBhbm90IGF1dGhvcml6ZWQgdG8gd2hpdGVsaXN0IGFydGlzdHMAAAAAjtHyCw==",
"height": 1289405,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: HEvtBoP9hxQNRGEBS43a2o9SayvQFXQ84L2R2NJtAFqq
Next: ADN2rsdDTYnv8EzGsukVpwNfhzUicweaZn44QQdvMDQ3
Diff:
Old | New | | Differences |
---|
9 | 9 | | func whitelist (address,days) = { |
---|
10 | 10 | | let caller = toString(addressFromPublicKey(i.callerPublicKey)) |
---|
11 | 11 | | let id = toBase58String(i.transactionId) |
---|
12 | | - | let expire = (height + (1440 * days)) |
---|
| 12 | + | let expire = if ((days == 0)) |
---|
| 13 | + | then days |
---|
| 14 | + | else (height + (1440 * days)) |
---|
13 | 15 | | if (containsElement([chris, joep], caller)) |
---|
14 | 16 | | then [IntegerEntry(address, expire)] |
---|
15 | 17 | | else throw("You are anot authorized to whitelist artists") |
---|
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 | | - | let expire = (height + (1440 * days)) |
---|
| 12 | + | let expire = if ((days == 0)) |
---|
| 13 | + | then days |
---|
| 14 | + | else (height + (1440 * days)) |
---|
13 | 15 | | if (containsElement([chris, joep], caller)) |
---|
14 | 16 | | then [IntegerEntry(address, expire)] |
---|
15 | 17 | | else throw("You are anot authorized to whitelist artists") |
---|
16 | 18 | | } |
---|
17 | 19 | | |
---|
18 | 20 | | |
---|