tx · FGdNc3qGcMqEppNLD3YwN9Jys3DorWUpw9MDrCNAcxVY

3N19WdQcYs7m94gzHN6XrWLyGCf1oBpmTkm:  -0.01400000 Waves

2021.01.04 13:12 [1338529] smart account 3N19WdQcYs7m94gzHN6XrWLyGCf1oBpmTkm > SELF 0.00000000 Waves

{ "type": 13, "id": "FGdNc3qGcMqEppNLD3YwN9Jys3DorWUpw9MDrCNAcxVY", "fee": 1400000, "feeAssetId": null, "timestamp": 1609755218000, "version": 1, "sender": "3N19WdQcYs7m94gzHN6XrWLyGCf1oBpmTkm", "senderPublicKey": "8pAYRJA9dVaxW21NKBxpzGp5nfHUYW9bdMnJF75EDd3q", "proofs": [ "S9jjUJqLFVS3iCjH1v1nx6TfHR4MVsx9yLhgG8USeRk6SKadAzhpDifcdCTztBfiEituB2uCFP9yuAfkq9uqmce" ], "script": "base64:AwQAAAALZGlnaWxpcmFQYXkBAAAAID0HOFHYXYpCB2C8RjDY8m3ndBlb8WihoYLw1tvHVwgrBAAAAAdnYXRld2F5CQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU+1N84FspQAbPc1H8mgEtZeGc4G7fNkDABAAAAAxzcG9uc29yVG9rZW4BAAAAIF0xC+0nwtqd1CxX9Y/+nUsawhMMb0TR82Wj5My6EPg+BAAAAAxwYXltZW50VG9rZW4BAAAAINUa1XJy5UC96rHuuRV8oDs9miGKfVUIoeiwBqYZd/niBAAAAAZiYW5uZWQAAAAAAAAAAZMEAAAACktZQ1BlbmRpbmcAAAAAAAAAAAAEAAAAB0tZQ1ZlcjEAAAAAAAAAAAEEAAAAB0tZQ1ZlcjIAAAAAAAAAAAIEAAAAB0tZQ1ZlcjMAAAAAAAAAAAMEAAAACmlzTWVyY2hhbnQAAAAAAAAAAAUEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAF3BQAAAAckbWF0Y2gwBAAAAARkYXRhCQAE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JhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAABdAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAXQAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAAtkaWdpbGlyYVBheQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAA210dAUAAAAHJG1hdGNoMAQAAAAOZmlyc3RSZWNpcGllbnQICQABkQAAAAIIBQAAAANtdHQAAAAJdHJhbnNmZXJzAAAAAAAAAAAAAAAACXJlY2lwaWVudAQAAAALZmlyc3RBbW91bnQICQABkQAAAAIIBQAAAANtdHQAAAAJdHJhbnNmZXJzAAAAAAAAAAAAAAAABmFtb3VudAQAAAAHYXNzZXRJZAkBAAAAB2V4dHJhY3QAAAABCAUAAAADbXR0AAAAB2Fzc2V0SWQHBrpOp9Y=", "chainId": 84, "height": 1338529, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
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(data)))
19+ then if (isDefined(feeToken))
20+ then if ((feeToken == sponsorToken))
21+ then true
22+ else if ((feeToken == paymentToken))
23+ then throw("Cannot use this token for none payment transfers.")
24+ else true
25+ else true
26+ else if (isDefined(feeToken))
27+ then if ((feeToken == sponsorToken))
28+ then throw("Cannot use this token for none DigiliraPay users transfers.")
29+ else if ((feeToken == paymentToken))
30+ then throw("Cannot use this token for none payment transfers.")
31+ else true
32+ else true
33+ case x: Order|LeaseTransaction|BurnTransaction =>
34+ false
35+ case t: DataTransaction|ExchangeTransaction|SetScriptTransaction =>
36+ sigVerify(t.bodyBytes, t.proofs[1], digiliraPay)
37+ case mtt: MassTransferTransaction =>
38+ let firstRecipient = mtt.transfers[0].recipient
39+ let firstAmount = mtt.transfers[0].amount
40+ let assetId = extract(mtt.assetId)
41+ false
42+ case _ =>
43+ true
44+}

github/deemru/w8io/026f985 
16.94 ms