tx · 6qEyyoiTG1wfBxWPSsjgg8SNg7JyaXY3w6hNKP2rZksW 3NCDUCoJjn7pUeq1oVktt4xbM7ntmGUza4d: -0.01000000 Waves 2021.09.22 18:38 [1714456] smart account 3NCDUCoJjn7pUeq1oVktt4xbM7ntmGUza4d > SELF 0.00000000 Waves
{ "type": 13, "id": "6qEyyoiTG1wfBxWPSsjgg8SNg7JyaXY3w6hNKP2rZksW", "fee": 1000000, "feeAssetId": null, "timestamp": 1632325105447, "version": 2, "chainId": 84, "sender": "3NCDUCoJjn7pUeq1oVktt4xbM7ntmGUza4d", "senderPublicKey": "BoTY12cRJoCiKJug97acjTk5FjSTMbq6UZd75pKqZGAa", "proofs": [ "paYXoo4Si9YLECcoXYbrbBX51xW2p4qptgGo5254MMygEbx4Lsc479J5NxguYoGhd72YGXXyhNBRmGYjBaTeoaF" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIIAQAAAAIAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTXBaUWp6R29nbWlmY0VLZThtRGQ2cmliTDdueFQ5QUN5ZQAAAAAGb3duZXJzCQAETAAAAAIJAAQdAAAAAgUAAAAJb3JhY2xlRmVlAgAAAAZvd25lcjEJAARMAAAAAgkABB0AAAACBQAAAAlvcmFjbGVGZWUCAAAABm93bmVyMgUAAAADbmlsAAAAAQAAAAFpAQAAAAl3aGl0ZWxpc3QAAAACAAAAB2FkZHJlc3MAAAAEZGF5cwQAAAAGY2FsbGVyCQAEJQAAAAEJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQQAAAACaWQJAAJYAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAQAAAAGZXhwaXJlAwkAAAAAAAACBQAAAARkYXlzAAAAAAAAAAAABQAAAARkYXlzCQAAZAAAAAIFAAAABmhlaWdodAkAAGgAAAACAAAAAAAAAAWgBQAAAARkYXlzAwkBAAAAD2NvbnRhaW5zRWxlbWVudAAAAAIFAAAABm93bmVycwUAAAAGY2FsbGVyCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAAdhZGRyZXNzBQAAAAZleHBpcmUFAAAAA25pbAkAAAIAAAABAgAAACtZb3UgYXJlIG5vdCBhdXRob3JpemVkIHRvIHdoaXRlbGlzdCBhcnRpc3RzAAAAAD8YpEQ=", "height": 1714456, "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 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(owners, caller)) | |
16 | + | then [IntegerEntry(address, expire)] | |
17 | + | else throw("You are not authorized to whitelist artists") | |
18 | + | } | |
19 | + | ||
20 | + |
github/deemru/w8io/026f985 14.40 ms ◑