tx · GjYJrFysH8hgJvrxt9s93HQK3cRV4ZCDG9gUR7RX8FUJ

3N3HcmfU1kxFj1x7PdZNnGZhGRELxC9gVbr:  -0.01400000 Waves

2021.01.05 13:38 [1339980] smart account 3N3HcmfU1kxFj1x7PdZNnGZhGRELxC9gVbr > SELF 0.00000000 Waves

{ "type": 13, "id": "GjYJrFysH8hgJvrxt9s93HQK3cRV4ZCDG9gUR7RX8FUJ", "fee": 1400000, "feeAssetId": null, "timestamp": 1609843137662, "version": 2, "chainId": 84, "sender": "3N3HcmfU1kxFj1x7PdZNnGZhGRELxC9gVbr", "senderPublicKey": "CdPKZLUm4NiopSyscAvon7a9kzDkN2DomZqxEo1ba9ox", "proofs": [ "55brGS75QBNy2HzdjGKbHtXFuNEaH1fnm4nHH7Xrna2uiJMoPYr2ZKbeGQU4UCNHmFZE5k27Z5zfw9Wuxr2oLCSS", "4BsWJSa8k7rzmfKBBad3igvcy74c48tingbvn6ezS4Wfo7inaR9b56Y2gKFApPCfYv4ivhzpbDpfNoaTdZ29Y9XY" ], "script": "base64:BAQAAAALZGlnaWxpcmFQYXkBAAAAID0HOFHYXYpCB2C8RjDY8m3ndBlb8WihoYLw1tvHVwgrBAAAAAxzcG9uc29yVG9rZW4BAAAAIF0xC+0nwtqd1CxX9Y/+nUsawhMMb0TR82Wj5My6EPg+BAAAAAxwYXltZW50VG9rZW4BAAAAINUa1XJy5UC96rHuuRV8oDs9miGKfVUIoeiwBqYZd/niBAAAAAZiYW5uZWQAAAAAAAAGJjgEAAAACktZQ1BlbmRpbmcAAAAAAAAAAAAEAAAADXRyYW5zZmVyQmxvY2sAAAAAAAAAAGQEAAAADHBheW1lbnRCbG9jawAAAAAAAAAAyAQAAAAJZnVuZEJsb2NrAAAAAAAAAAEsBAAAABBwYXltZW50RnVuZEJsb2NrAAAAAAAAAAGQBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2Fjd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NoMAkAAfQAAAADCAUAAAABdAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAXQAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAAtkaWdpbGlyYVBheQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAA210dAUAAAAHJG1hdGNoMAcGej/q8A==", "height": 1339980, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GLE2YhFVnbpNhQ2o65fTe7iZL18dUmatcDaQUVBHdt2C Next: AQjbKn6cfArv8LXfcchpUxQuxKqwjsQbiKL71QSqFt3f Diff:
OldNewDifferences
3939 then throw("Can not transfer this asset 3")
4040 else if ((valueOrElse(isAsset, banned) >= paymentBlock))
4141 then true
42- else throw("Can not transfer this asset 2")
42+ else throw("Can not transfer this asset 4")
4343 else throw("Unfortunately you can only use this token for payments")
4444 else if (isDefined(isAsset))
4545 then if ((isAsset == banned))
46- then throw("Can not transfer this asset")
46+ then throw("Can not transfer this asset 5")
4747 else if ((valueOrElse(isUser, 0) >= valueOrElse(isAsset, banned)))
4848 then true
4949 else throw("This asset has special requirements 2")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let digiliraPay = base58'57EFni8M1XesEurFh3c4jnpLExP2PCPd5TRrwMjePAT4'
44 let sponsorToken = base58'7GnHzTaDe3YbDiCD9rueHiSfPB7hdanPpN4Ab79fJGtD'
55 let paymentToken = base58'FLsa9hfu1jvXC6jhDP2x6DHHQHK2qiKPtS7D74ZFNsE1'
66 let banned = 403000
77 let KYCPending = 0
88 let transferBlock = 100
99 let paymentBlock = 200
1010 let fundBlock = 300
1111 let paymentFundBlock = 400
1212 match tx {
1313 case w: TransferTransaction =>
1414 let myStatus = getInteger(addressFromPublicKey(digiliraPay), toBase58String(w.sender.bytes))
1515 let isUser = getInteger(addressFromPublicKey(digiliraPay), toBase58String(addressFromRecipient(w.recipient).bytes))
1616 let feeToken = w.feeAssetId
1717 let feeAmount = w.fee
1818 let asset = value(w.assetId)
1919 let isAsset = getInteger(addressFromPublicKey(digiliraPay), toBase58String(asset))
2020 if (isDefined(isUser))
2121 then if (isDefined(feeToken))
2222 then if ((feeToken == sponsorToken))
2323 then if (isDefined(isAsset))
2424 then if ((isAsset == banned))
2525 then throw("Can not transfer this asset 1")
2626 else if ((valueOrElse(isUser, 0) >= valueOrElse(isAsset, banned)))
2727 then true
2828 else throw("Can not transfer this asset 2")
2929 else true
3030 else if ((feeToken == paymentToken))
3131 then if ((w.recipient == addressFromPublicKey(digiliraPay)))
3232 then if ((myStatus == KYCPending))
3333 then throw("KYC Pending")
3434 else if ((myStatus == banned))
3535 then throw("Account Banned Can't Operate")
3636 else if ((feeAmount > 10))
3737 then throw("Not Allowed")
3838 else if ((isAsset == banned))
3939 then throw("Can not transfer this asset 3")
4040 else if ((valueOrElse(isAsset, banned) >= paymentBlock))
4141 then true
42- else throw("Can not transfer this asset 2")
42+ else throw("Can not transfer this asset 4")
4343 else throw("Unfortunately you can only use this token for payments")
4444 else if (isDefined(isAsset))
4545 then if ((isAsset == banned))
46- then throw("Can not transfer this asset")
46+ then throw("Can not transfer this asset 5")
4747 else if ((valueOrElse(isUser, 0) >= valueOrElse(isAsset, banned)))
4848 then true
4949 else throw("This asset has special requirements 2")
5050 else true
5151 else if (isDefined(isAsset))
5252 then if ((valueOrElse(isAsset, 0) == banned))
5353 then throw("Can not transfer this asset")
5454 else if ((valueOrElse(isUser, 0) >= valueOrElse(isAsset, banned)))
5555 then true
5656 else throw("This asset has special requirements 1")
5757 else true
5858 else if (isDefined(feeToken))
5959 then if ((feeToken == sponsorToken))
6060 then throw("Cannot use this token for none DigiliraPay users transfers.")
6161 else if ((feeToken == paymentToken))
6262 then throw("Unfortunately you can only use this token for payments")
6363 else true
6464 else true
6565 case x: Order|LeaseTransaction|BurnTransaction =>
6666 false
6767 case t: DataTransaction|ExchangeTransaction|SetScriptTransaction =>
6868 sigVerify(t.bodyBytes, t.proofs[1], digiliraPay)
6969 case mtt: MassTransferTransaction =>
7070 false
7171 case _ =>
7272 true
7373 }

github/deemru/w8io/169f3d6 
40.26 ms