tx · 4e3iFx1bYfGuo956kRsVDoputwLNYJqPWYLYuS3dT4kD 3N4Lt6bWndH4yUAkTFge3F93yhT2c2Pmj9z: -1.00000000 Waves 2019.07.08 16:46 [576711] smart asset 3N4Lt6bWndH4yUAkTFge3F93yhT2c2Pmj9z > SELF 0.00000000 KYC1
{ "type": 15, "id": "4e3iFx1bYfGuo956kRsVDoputwLNYJqPWYLYuS3dT4kD", "fee": 100000000, "feeAssetId": null, "timestamp": 1562593525126, "version": 1, "sender": "3N4Lt6bWndH4yUAkTFge3F93yhT2c2Pmj9z", "senderPublicKey": "HzSnoJKTVwezUBmo2gh9HYq52F1maKBsvv1ZWrZAHyHV", "proofs": [ "4zt9cyh9YEaHX2Umaxy1q16g7oSLof5dn7fnzUXsgUBYB3disDhFEd1WWRhxK5dhDuskwfFCbnHKjxvKRnd5CXmW" ], "assetId": "3MznhTvkssYjnNyXC8dx5vHeYvUDRJpcfsYhAWfZt11w", "script": "base64:AwQAAAADS1lDCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU1jQgya/wHVSfx3QaL4bt+6D7mCj3PD1TBAAAAAtQYXNzQXNzZXRJZAEAAAAgIxhUvRrV9qlGyG2iRSgmyaw7t0LEn3vpFkF1WJh1d64KAQAAAA5jaGVja1doaXRlbGlzdAAAAAEAAAAHYWRkcmVzcwQAAAASYWRkcmVzc0luV2hpdGVsaXN0CQAEGwAAAAIFAAAAA0tZQwkAAlgAAAABCAUAAAAHYWRkcmVzcwAAAAVieXRlcwMJAQAAAAlpc0RlZmluZWQAAAABBQAAABJhZGRyZXNzSW5XaGl0ZWxpc3QJAQAAAAdleHRyYWN0AAAAAQUAAAASYWRkcmVzc0luV2hpdGVsaXN0BwQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAXMFAAAAByRtYXRjaDAGAwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAJAQAAAA5jaGVja1doaXRlbGlzdAAAAAEIBQAAAAF0AAAABnNlbmRlcgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAQAAAALYW1vdW50QXNzZXQICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAAthbW91bnRBc3NldAQAAAAKcHJpY2VBc3NldAgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQDCQAAAAAAAAIFAAAAC2Ftb3VudEFzc2V0BQAAAAtQYXNzQXNzZXRJZAkBAAAADmNoZWNrV2hpdGVsaXN0AAAAAQgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAZzZW5kZXIGBzKELNg=", "chainId": 84, "height": 576711, "spentComplexity": 0 } View: original | compacted Prev: none Next: 9pidJ2dTsKgatfk11wZ2PkxZervg3SzKVcNdtMFAPdS4 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'3MznhTvkssYjnNyXC8dx5vHeYvUDRJpcfsYhAWfZt11w' | |
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: ReissueTransaction|SetAssetScriptTransaction => | |
14 | + | true | |
15 | + | case t: TransferTransaction|MassTransferTransaction => | |
16 | + | checkWhitelist(t.sender) | |
17 | + | case e: ExchangeTransaction => | |
18 | + | let amountAsset = e.sellOrder.assetPair.amountAsset | |
19 | + | let priceAsset = e.sellOrder.assetPair.priceAsset | |
20 | + | if ((amountAsset == PassAssetId)) | |
21 | + | then checkWhitelist(e.sellOrder.sender) | |
22 | + | else true | |
23 | + | case _ => | |
24 | + | false | |
25 | + | } |
github/deemru/w8io/169f3d6 20.24 ms ◑