tx · DUC3ncRXtVARzN5nP4mXjat5idsQUGpRKKLPCCmxcakS 3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE: -1.00400000 Waves 2019.07.08 10:20 [576334] smart asset 3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE > SELF 0.00000 PASS
{ "type": 15, "id": "DUC3ncRXtVARzN5nP4mXjat5idsQUGpRKKLPCCmxcakS", "fee": 100400000, "feeAssetId": null, "timestamp": 1562570544670, "version": 1, "sender": "3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE", "senderPublicKey": "5gUuv1jjtePpX8rffb1RvQ6FvX2oJ2rNshfF9Dt2NUES", "proofs": [ "3aTZBvjcnFHnXky3Uqfrd9V2sBfsB7FirxFdQknuHAkZKE9wGQ4QLZydh6Qcc1KVfWbwUuuwE52xWwL1e4qtSGTr" ], "assetId": "HyaQ57BKy8C5rhLi6rZEqQGCojrYX1CQ6YsvgcBr6JQn", "script": "base64:AwQAAAADS1lDCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU1jQgya/wHVSfx3QaL4bt+6D7mCj3PD1TBAAAAAtQYXNzQXNzZXRJZAEAAAAg/DlHc9qScGsE5r04aBUFSsMw038qXFryfVcvdFdOUR8KAQAAAA5jaGVja1doaXRlbGlzdAAAAAEAAAAHYWRkcmVzcwQAAAAOc2VuZGVyQWNjZXB0ZWQJAAQbAAAAAgUAAAADS1lDCQACWAAAAAEIBQAAAAdhZGRyZXNzAAAABWJ5dGVzAwkBAAAACWlzRGVmaW5lZAAAAAEFAAAADnNlbmRlckFjY2VwdGVkCQEAAAAHZXh0cmFjdAAAAAEFAAAADnNlbmRlckFjY2VwdGVkBwQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24EAAAAAXMFAAAAByRtYXRjaDAG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FAAAACnByaWNlQXNzZXQFAAAAC1Bhc3NBc3NldElkCQEAAAAOY2hlY2tXaGl0ZWxpc3QAAAABCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAGc2VuZGVyBgcHSeM9GA==", "chainId": 84, "height": 576334, "spentComplexity": 0 } View: original | compacted Prev: none Next: HLcBobGnkdkbPuf2eY7SGX6W5VhWyUXUdY97UTVYZPaU Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | + | let KYC = Address(base58'3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE') | |
4 | + | let PassAssetId = base58'HyaQ57BKy8C5rhLi6rZEqQGCojrYX1CQ6YsvgcBr6JQn' | |
5 | + | func checkWhitelist (address) = { | |
6 | + | let senderAccepted = getBoolean(KYC, toBase58String(address.bytes)) | |
7 | + | if (isDefined(senderAccepted)) | |
8 | + | then extract(senderAccepted) | |
9 | + | else false | |
10 | + | } | |
11 | + | ||
12 | + | match tx { | |
13 | + | case s: SetAssetScriptTransaction|ReissueTransaction => | |
14 | + | true | |
15 | + | case t: MassTransferTransaction|TransferTransaction => | |
16 | + | checkWhitelist(tx.sender) | |
17 | + | case e: ExchangeTransaction => | |
18 | + | let sellMatcherFeeAsset = e.sellOrder.matcherFeeAssetId | |
19 | + | let buyMatcherFeeAsset = e.buyOrder.matcherFeeAssetId | |
20 | + | let amountAsset = e.sellOrder.assetPair.amountAsset | |
21 | + | let priceAsset = e.sellOrder.assetPair.priceAsset | |
22 | + | if (if (if (if ((sellMatcherFeeAsset == PassAssetId)) | |
23 | + | then checkWhitelist(e.sellOrder.sender) | |
24 | + | else true) | |
25 | + | then if ((buyMatcherFeeAsset == PassAssetId)) | |
26 | + | then checkWhitelist(e.buyOrder.sender) | |
27 | + | else true | |
28 | + | else false) | |
29 | + | then if ((amountAsset == PassAssetId)) | |
30 | + | then checkWhitelist(e.sellOrder.sender) | |
31 | + | else true | |
32 | + | else false) | |
33 | + | then if ((priceAsset == PassAssetId)) | |
34 | + | then checkWhitelist(e.buyOrder.sender) | |
35 | + | else true | |
36 | + | else false | |
37 | + | case _ => | |
38 | + | false | |
39 | + | } |
github/deemru/w8io/026f985 13.82 ms ◑