tx · HmR6m4qSDtsaivnJNQdU2jNcSSKNvbkdMhBzR2S1szKo 3Mye41Mq4of473RJsVvEeXJZK4roXqbd3AU: -0.01000000 Waves 2021.10.01 12:10 [1726934] smart account 3Mye41Mq4of473RJsVvEeXJZK4roXqbd3AU > SELF 0.00000000 Waves
{ "type": 13, "id": "HmR6m4qSDtsaivnJNQdU2jNcSSKNvbkdMhBzR2S1szKo", "fee": 1000000, "feeAssetId": null, "timestamp": 1633079410821, "version": 2, "chainId": 84, "sender": "3Mye41Mq4of473RJsVvEeXJZK4roXqbd3AU", "senderPublicKey": "9BECzy7vdxEXkWfuP6j5fMsYehFdbLJhMvyhZGmJ8vKZ", "proofs": [ "2j5BE8wCGUUkHQPhsgHMgmN7zyPqEEn9Qs2oHR5WqYiJVpwD4AvjuhPr21mW1rCqWwWCvmjzxiQaNJfVCANFwo7A" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIIAQAAAAIAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTXBaUWp6R29nbWlmY0VLZThtRGQ2cmliTDdueFQ5QUN5ZQAAAAAGb3duZXJzCQAETAAAAAIJAAQdAAAAAgUAAAAJb3JhY2xlRmVlAgAAAAZvd25lcjEJAARMAAAAAgkABB0AAAACBQAAAAlvcmFjbGVGZWUCAAAABm93bmVyMgUAAAADbmlsAAAAAQAAAAFpAQAAAAl3aGl0ZWxpc3QAAAACAAAAB2FkZHJlc3MAAAAEZGF5cwQAAAAEYWRkcgkABCYAAAABBQAAAAdhZGRyZXNzBAAAAAckbWF0Y2gwBQAAAARhZGRyAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAdBZGRyZXNzBAAAAARhZGRyBQAAAAckbWF0Y2gwBAAAAAZjYWxsZXIJAAQlAAAAAQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BAAAAAJpZAkAAlgAAAABCAUAAAABaQAAAA10cmFuc2FjdGlvbklkBAAAAAZleHBpcmUDCQAAAAAAAAIFAAAABGRheXMAAAAAAAAAAAAFAAAABGRheXMJAABkAAAAAgUAAAAGaGVpZ2h0CQAAaAAAAAIAAAAAAAAABaAFAAAABGRheXMDCQEAAAAPY29udGFpbnNFbGVtZW50AAAAAgUAAAAGb3duZXJzBQAAAAZjYWxsZXIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAAB2FkZHJlc3MFAAAABmV4cGlyZQUAAAADbmlsCQAAAgAAAAECAAAAK1lvdSBhcmUgbm90IGF1dGhvcml6ZWQgdG8gd2hpdGVsaXN0IGFydGlzdHMJAAACAAAAAQIAAAAfU2VlbXMgdG8gYmUgYW4gaW52YWxpZCBhZGRyZXNzIQAAAABVtSau", "height": 1726934, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let oracleFee = value(addressFromString("3MpZQjzGogmifcEKe8mDd6ribL7nxT9ACye")) | |
5 | + | ||
6 | + | let owners = [getString(oracleFee, "owner1"), getString(oracleFee, "owner2")] | |
7 | + | ||
8 | + | @Callable(i) | |
9 | + | func whitelist (address,days) = { | |
10 | + | let addr = addressFromString(address) | |
11 | + | match addr { | |
12 | + | case addr: Address => | |
13 | + | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
14 | + | let id = toBase58String(i.transactionId) | |
15 | + | let expire = if ((days == 0)) | |
16 | + | then days | |
17 | + | else (height + (1440 * days)) | |
18 | + | if (containsElement(owners, caller)) | |
19 | + | then [IntegerEntry(address, expire)] | |
20 | + | else throw("You are not authorized to whitelist artists") | |
21 | + | case _ => | |
22 | + | throw("Seems to be an invalid address!") | |
23 | + | } | |
24 | + | } | |
25 | + | ||
26 | + |
github/deemru/w8io/03bedc9 18.26 ms ◑![]()