tx · 9bd5vShsQXAXeM5GqrhdqG5TbC6AVVAKEBrhNuQop2Bv 3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE: -1.00400000 Waves 2019.07.08 16:52 [576719] smart asset 3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE > SELF 0.00000 PASS
{ "type": 15, "id": "9bd5vShsQXAXeM5GqrhdqG5TbC6AVVAKEBrhNuQop2Bv", "fee": 100400000, "feeAssetId": null, "timestamp": 1562594035307, "version": 1, "sender": "3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE", "senderPublicKey": "5gUuv1jjtePpX8rffb1RvQ6FvX2oJ2rNshfF9Dt2NUES", "proofs": [ "5F4TTSqyywwuH8NHGqNbV3HAbq454odb243EssmqHGPfV1N4fiFWbLGiECLd156ZuD22PG5t97riiaq6uHfZfpKp" ], "assetId": "GGYrHCwB7pMc9QnCTFdsfYo72vT96dduBaaPVonNJSVq", "script": "base64:AwQAAAADS1lDCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU1jQgya/wHVSfx3QaL4bt+6D7mCj3PD1TBAAAAAtQYXNzQXNzZXRJZAEAAAAg4tsHTmKmfpO9f1vsqm3Lsnv4PK0V/1fAJpDE3eJIlKQKAQAAAA5jaGVja1doaXRlbGlzdAAAAAEAAAAHYWRkcmVzcwQAAAASYWRkcmVzc0luV2hpdGVsaXN0CQAEGwAAAAIFAAAAA0tZQwkAAlgAAAABCAUAAAAHYWRkcmVzcwAAAAVieXRlcwMJAQAAAAlpc0RlZmluZWQAAAABBQAAABJhZGRyZXNzSW5XaGl0ZWxpc3QJAQAAAAdleHRyYWN0AAAAAQUAAAASYWRkcmVzc0luV2hpdGVsaXN0BwQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24EAAAAAXMFAAAAByRtYXRjaDAGAwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAJAQAAAA5jaGVja1doaXRlbGlzdAAAAAEIBQAAAAF0AAAABnNlbmRlcgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAQAAAALYW1vdW50QXNzZXQICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAAthbW91bnRBc3NldAQAAAAKcHJpY2VBc3NldAgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQDAwkAAAAAAAACCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABnNlbmRlcggIBQAAAAFlAAAACGJ1eU9yZGVyAAAABnNlbmRlcgYDCQAAAAAAAAIFAAAAC2Ftb3VudEFzc2V0BQAAAAtQYXNzQXNzZXRJZAkBAAAADmNoZWNrV2hpdGVsaXN0AAAAAQgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAZzZW5kZXIGAwkAAAAAAAACCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABnNlbmRlcggIBQAAAAFlAAAACGJ1eU9yZGVyAAAABnNlbmRlcgYDCQAAAAAAAAIFAAAACnByaWNlQXNzZXQFAAAAC1Bhc3NBc3NldElkCQEAAAAOY2hlY2tXaGl0ZWxpc3QAAAABCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAGc2VuZGVyBgcHZyqAcQ==", "chainId": 84, "height": 576719, "spentComplexity": 0 } View: original | compacted Prev: none Next: 6aVxQ3z5vL7q45J4ihbGe6UErvf7U6RtkyKntvLfGSmw 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'GGYrHCwB7pMc9QnCTFdsfYo72vT96dduBaaPVonNJSVq' | |
5 | + | func checkWhitelist (address) = { | |
6 | + | let addressInWhitelist = getBoolean(KYC, toBase58String(address.bytes)) | |
7 | + | if (isDefined(addressInWhitelist)) | |
8 | + | then extract(addressInWhitelist) | |
9 | + | else false | |
10 | + | } | |
11 | + | ||
12 | + | match tx { | |
13 | + | case s: SetAssetScriptTransaction|ReissueTransaction => | |
14 | + | true | |
15 | + | case t: MassTransferTransaction|TransferTransaction => | |
16 | + | checkWhitelist(t.sender) | |
17 | + | case e: ExchangeTransaction => | |
18 | + | let amountAsset = e.sellOrder.assetPair.amountAsset | |
19 | + | let priceAsset = e.sellOrder.assetPair.priceAsset | |
20 | + | if (if ((e.sellOrder.sender == e.buyOrder.sender)) | |
21 | + | then true | |
22 | + | else if ((amountAsset == PassAssetId)) | |
23 | + | then checkWhitelist(e.sellOrder.sender) | |
24 | + | else true) | |
25 | + | then if ((e.sellOrder.sender == e.buyOrder.sender)) | |
26 | + | then true | |
27 | + | else if ((priceAsset == PassAssetId)) | |
28 | + | then checkWhitelist(e.buyOrder.sender) | |
29 | + | else true | |
30 | + | else false | |
31 | + | case _ => | |
32 | + | false | |
33 | + | } |
github/deemru/w8io/169f3d6 22.35 ms ◑