tx · DjqSC69AZARMpbmcbEBXeSjQDhZrBaFfuc6Kb3nnsC1b 3N5HNj3VPD2HHGWPUCiBcj3sHhKs1PKraaF: -0.01000000 Waves 2021.09.28 19:23 [1723029] smart account 3N5HNj3VPD2HHGWPUCiBcj3sHhKs1PKraaF > SELF 0.00000000 Waves
{ "type": 13, "id": "DjqSC69AZARMpbmcbEBXeSjQDhZrBaFfuc6Kb3nnsC1b", "fee": 1000000, "feeAssetId": null, "timestamp": 1632846193656, "version": 2, "chainId": 84, "sender": "3N5HNj3VPD2HHGWPUCiBcj3sHhKs1PKraaF", "senderPublicKey": "C52QqxWkFe124wkrZyqzHLX7nATXJ91qbsEv9Yaah4z6", "proofs": [ "57xHpkSofGNru3JGRKB28edKhxfa8YVj9am9EUbNDUEXqNCNYBGA1rsD2eHeLjThdi6aopEq8RAxSjH6M87vPiGP" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIIAQAAAAIAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTXBaUWp6R29nbWlmY0VLZThtRGQ2cmliTDdueFQ5QUN5ZQAAAAAGb3duZXJzCQAETAAAAAIJAAQdAAAAAgUAAAAJb3JhY2xlRmVlAgAAAAZvd25lcjEJAARMAAAAAgkABB0AAAACBQAAAAlvcmFjbGVGZWUCAAAABm93bmVyMgUAAAADbmlsAAAAAQAAAAFpAQAAAAl3aGl0ZWxpc3QAAAACAAAAB2FkZHJlc3MAAAAEZGF5cwQAAAAEYWRkcgkABCYAAAABBQAAAAdhZGRyZXNzBAAAAAckbWF0Y2gwBQAAAARhZGRyAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAdBZGRyZXNzBAAAAARhZGRyBQAAAAckbWF0Y2gwBAAAAAZjYWxsZXIJAAQlAAAAAQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BAAAAAJpZAkAAlgAAAABCAUAAAABaQAAAA10cmFuc2FjdGlvbklkBAAAAAZleHBpcmUDCQAAAAAAAAIFAAAABGRheXMAAAAAAAAAAAAFAAAABGRheXMJAABkAAAAAgUAAAAGaGVpZ2h0CQAAaAAAAAIAAAAAAAAABaAFAAAABGRheXMDCQEAAAAPY29udGFpbnNFbGVtZW50AAAAAgUAAAAGb3duZXJzBQAAAAZjYWxsZXIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAAB2FkZHJlc3MFAAAABmV4cGlyZQUAAAADbmlsCQAAAgAAAAECAAAAK1lvdSBhcmUgbm90IGF1dGhvcml6ZWQgdG8gd2hpdGVsaXN0IGFydGlzdHMJAAACAAAAAQIAAAAfU2VlbXMgdG8gYmUgYW4gaW52YWxpZCBhZGRyZXNzIQAAAABVtSau", "height": 1723029, "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 a = value(addressFromString("3MpZQjzGogmifcEKe8mDd6ribL7nxT9ACye")) | |
5 | + | ||
6 | + | let b = [getString(a, "owner1"), getString(a, "owner2")] | |
7 | + | ||
8 | + | @Callable(c) | |
9 | + | func whitelist (d,e) = { | |
10 | + | let f = addressFromString(d) | |
11 | + | let g = f | |
12 | + | if ($isInstanceOf(g, "Address")) | |
13 | + | then { | |
14 | + | let f = g | |
15 | + | let h = toString(addressFromPublicKey(c.callerPublicKey)) | |
16 | + | let i = toBase58String(c.transactionId) | |
17 | + | let j = if ((e == 0)) | |
18 | + | then e | |
19 | + | else (height + (1440 * e)) | |
20 | + | if (containsElement(b, h)) | |
21 | + | then [IntegerEntry(d, j)] | |
22 | + | else throw("You are not authorized to whitelist artists") | |
23 | + | } | |
24 | + | else throw("Seems to be an invalid address!") | |
25 | + | } | |
26 | + | ||
27 | + |
github/deemru/w8io/169f3d6 15.26 ms ◑