tx · 7sAGC2EJFjn2mgug2aam3qRGCNHenwgYNG1ijXWKPNjz

3N8Dbbs1NjXoQTmpxKzgJeyudMwKnTUXh5i:  -0.01400000 Waves

2021.01.04 17:29 [1338771] smart account 3N8Dbbs1NjXoQTmpxKzgJeyudMwKnTUXh5i > SELF 0.00000000 Waves

{ "type": 13, "id": "7sAGC2EJFjn2mgug2aam3qRGCNHenwgYNG1ijXWKPNjz", "fee": 1400000, "feeAssetId": null, "timestamp": 1609770570000, "version": 2, "chainId": 84, "sender": "3N8Dbbs1NjXoQTmpxKzgJeyudMwKnTUXh5i", "senderPublicKey": "B9fC9nfXwLx5j1rojcEe3bVyZGpM6UD3ZpDTA4dW63h", "proofs": [ "22i8JEcMLi7HzGUFogW7aDZAwcVWCfdTMK1kRANxRJiapPEcvoDFryU2FAst71qgjQz3tchrK8ABUVFrmLaieXW4", "2pNXezRSMzgfyvaDRwCaLHLomWU5hqWFArnqJpyrNaNYZMfpKyC68xMQDVkCgiRF2AzML69J6zbfcESsY7ytXdYG" ], "script": "base64:AwQAAAALZGlnaWxpcmFQYXkBAAAAID0HOFHYXYpCB2C8RjDY8m3ndBlb8WihoYLw1tvHVwgrBAAAAAdnYXRld2F5CQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU+1N84FspQAbPc1H8mgEtZeGc4G7fNkDABAAAAAxzcG9uc29yVG9rZW4BAAAAIF0xC+0nwtqd1CxX9Y/+nUsawhMMb0TR82Wj5My6EPg+BAAAAAxwYXltZW50VG9rZW4BAAAAINUa1XJy5UC96rHuuRV8oDs9miGKfVUIoeiwBqYZd/niBAAAAAZiYW5uZWQAAAAAAAAAAZMEAAAACktZQ1BlbmRpbmcAAAAAAAAAAAAEAAAAB0tZQ1ZlcjEAAAAAAAAAAAEEAAAAB0tZQ1ZlcjIAAAAAAAAAAAIEAAAAB0tZQ1ZlcjMAAAAAAAAAAAMEAAAACmlzTWVyY2hhbnQAAAAAAAAAAAUEAAAABGlzT2sAAAAAAAAAAAcEAA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AAEAAAACBQAAAAckbWF0Y2gwAgAAAAVPcmRlcgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAEExlYXNlVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAABeAUAAAAHJG1hdGNoMAcDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAABdAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAXQAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAAtkaWdpbGlyYVBheQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAA210dAUAAAAHJG1hdGNoMAQAAAAOZmlyc3RSZWNpcGllbnQICQABkQAAAAIIBQAAAANtdHQAAAAJdHJhbnNmZXJzAAAAAAAAAAAAAAAACXJlY2lwaWVudAQAAAALZmlyc3RBbW91bnQICQABkQAAAAIIBQAAAANtdHQAAAAJdHJhbnNmZXJzAAAAAAAAAAAAAAAABmFtb3VudAQAAAAHYXNzZXRJZAkBAAAAB2V4dHJhY3QAAAABCAUAAAADbXR0AAAAB2Fzc2V0SWQHBsKY/2s=", "height": 1338771, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: F85KSmH1DE1oYAhkuZGBU2GHb5woQ4ucjDgnNyBvoQUh Next: 8AtYS9g8E7Toide5aLeKE1VXkXgJHHGdJgyMwmCTqZRX Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 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+let isOk = 7
414 match tx {
515 case w: TransferTransaction =>
6- if (isDefined(w.assetId))
7- then true
8- else if ((w.recipient == addressFromPublicKey(digiliraPay)))
9- then true
10- else throw("Unfortunately you can only send waves to issuer..")
16+ let data = getInteger(gateway, toBase58String(w.sender.bytes))
17+ let isUser = getInteger(gateway, toBase58String(addressFromRecipient(w.recipient).bytes))
18+ let feeToken = w.feeAssetId
19+ if (isDefined(isUser))
20+ then if (isDefined(feeToken))
21+ then if ((feeToken == sponsorToken))
22+ then true
23+ else if ((feeToken == paymentToken))
24+ then if ((w.recipient == addressFromPublicKey(digiliraPay)))
25+ then true
26+ else throw("Unfortunately you can only use this token for payments")
27+ else true
28+ else true
29+ else if (isDefined(feeToken))
30+ then if ((feeToken == sponsorToken))
31+ then throw("Cannot use this token for none DigiliraPay users transfers.")
32+ else if ((feeToken == paymentToken))
33+ then throw("Cannot use this token for none payment transfers.")
34+ else true
35+ else true
1136 case x: Order|LeaseTransaction|BurnTransaction =>
1237 false
1338 case t: DataTransaction|ExchangeTransaction|SetScriptTransaction =>
1439 sigVerify(t.bodyBytes, t.proofs[1], digiliraPay)
40+ case mtt: MassTransferTransaction =>
41+ let firstRecipient = mtt.transfers[0].recipient
42+ let firstAmount = mtt.transfers[0].amount
43+ let assetId = extract(mtt.assetId)
44+ false
1545 case _ =>
1646 true
1747 }

github/deemru/w8io/026f985 
37.80 ms