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