tx · Eswkb182V3ESwjXup1XxurL1Hbjm3a92bHKvZvaWnZDh 3NA7Sj3H19s36N4JbUj5Mdg5vU2sF7YWct1: -0.01400000 Waves 2021.01.04 16:03 [1338690] smart account 3NA7Sj3H19s36N4JbUj5Mdg5vU2sF7YWct1 > SELF 0.00000000 Waves
{ "type": 13, "id": "Eswkb182V3ESwjXup1XxurL1Hbjm3a92bHKvZvaWnZDh", "fee": 1400000, "feeAssetId": null, "timestamp": 1609765377000, "version": 1, "sender": "3NA7Sj3H19s36N4JbUj5Mdg5vU2sF7YWct1", "senderPublicKey": "AKTiQWikcdx1dyZiLDjZmGQDqprqTz9FZu5MtV3HMLkL", "proofs": [ "5mS4x7SR2PX26PhRjG46AD1W7YSefcqL7aDweXkRQELh2T3h3Xy4xEZx8nVvSHzpg3SbHossP86WYDpqXVCWpbvx" ], "script": "base64:AwQAAAALZGlnaWxpcmFQYXkBAAAAID0HOFHYXYpCB2C8RjDY8m3ndBlb8WihoYLw1tvHVwgrBAAAAAdnYXRld2F5CQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU+1N84FspQAbPc1H8mgEtZeGc4G7fNkDABAAAAAxzcG9uc29yVG9rZW4BAAAAIF0xC+0nwtqd1CxX9Y/+nUsawhMMb0TR82Wj5My6EPg+BAAAAAxwYXltZW50VG9rZW4BAAAAINUa1XJy5UC96rHuuRV8oDs9miGKfVUIoeiwBqYZd/niBAAAAAZiYW5uZWQAAAAAAAAAAZMEAAAACktZQ1BlbmRpbmcAAAAAAAAAAAAEAAAAB0tZQ1ZlcjEAAAAAAAAAAAEEAAAAB0tZQ1ZlcjIAAAAAAAAAAAIEAAAAB0tZQ1ZlcjMAAAAAAAAAAAMEAAAACmlzTWVyY2hhbnQAAAAAAAAAAAUEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAF3BQAAAAckbWF0Y2gwBAAAAARkYXRhCQAE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AAAAD0J1cm5UcmFuc2FjdGlvbgQAAAABeAUAAAAHJG1hdGNoMAcDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAABdAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAXQAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAAtkaWdpbGlyYVBheQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAA210dAUAAAAHJG1hdGNoMAQAAAAOZmlyc3RSZWNpcGllbnQICQABkQAAAAIIBQAAAANtdHQAAAAJdHJhbnNmZXJzAAAAAAAAAAAAAAAACXJlY2lwaWVudAQAAAALZmlyc3RBbW91bnQICQABkQAAAAIIBQAAAANtdHQAAAAJdHJhbnNmZXJzAAAAAAAAAAAAAAAABmFtb3VudAQAAAAHYXNzZXRJZAkBAAAAB2V4dHJhY3QAAAABCAUAAAADbXR0AAAAB2Fzc2V0SWQHBnEsl/w=", "chainId": 84, "height": 1338690, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 4ac5VfwVPjEVwNMi1dTkzUeHSN1U82ZoBPeNm53C4iPt Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | + | let digiliraPay = base58'57EFni8M1XesEurFh3c4jnpLExP2PCPd5TRrwMjePAT4' | |
4 | + | let gateway = Address(base58'3NCpyPuNzUaB7LFS4KBzwzWVnXmjur582oy') | |
5 | + | let sponsorToken = base58'7GnHzTaDe3YbDiCD9rueHiSfPB7hdanPpN4Ab79fJGtD' | |
6 | + | let paymentToken = base58'FLsa9hfu1jvXC6jhDP2x6DHHQHK2qiKPtS7D74ZFNsE1' | |
7 | + | let banned = 403 | |
8 | + | let KYCPending = 0 | |
9 | + | let KYCVer1 = 1 | |
10 | + | let KYCVer2 = 2 | |
11 | + | let KYCVer3 = 3 | |
12 | + | let isMerchant = 5 | |
13 | + | match tx { | |
14 | + | case w: TransferTransaction => | |
15 | + | let data = getInteger(gateway, toBase58String(w.sender.bytes)) | |
16 | + | let isUser = getInteger(gateway, toBase58String(addressFromRecipient(w.recipient).bytes)) | |
17 | + | let feeToken = w.feeAssetId | |
18 | + | if (isDefined(isUser)) | |
19 | + | then if (isDefined(feeToken)) | |
20 | + | then if ((feeToken == sponsorToken)) | |
21 | + | then true | |
22 | + | else if ((feeToken == paymentToken)) | |
23 | + | then if ((w.recipient == addressFromPublicKey(digiliraPay))) | |
24 | + | then true | |
25 | + | else throw("Unfortunately you can only use this token for payments") | |
26 | + | else true | |
27 | + | else true | |
28 | + | else if (isDefined(feeToken)) | |
29 | + | then if ((feeToken == sponsorToken)) | |
30 | + | then throw("Cannot use this token for none DigiliraPay users transfers.") | |
31 | + | else if ((feeToken == paymentToken)) | |
32 | + | then throw("Cannot use this token for none payment transfers.") | |
33 | + | else true | |
34 | + | else true | |
35 | + | case x: Order|LeaseTransaction|BurnTransaction => | |
36 | + | false | |
37 | + | case t: DataTransaction|ExchangeTransaction|SetScriptTransaction => | |
38 | + | sigVerify(t.bodyBytes, t.proofs[1], digiliraPay) | |
39 | + | case mtt: MassTransferTransaction => | |
40 | + | let firstRecipient = mtt.transfers[0].recipient | |
41 | + | let firstAmount = mtt.transfers[0].amount | |
42 | + | let assetId = extract(mtt.assetId) | |
43 | + | false | |
44 | + | case _ => | |
45 | + | true | |
46 | + | } |
github/deemru/w8io/169f3d6 27.44 ms ◑