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:
OldNewDifferences
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/169f3d6 
47.75 ms