tx · GJLsGDhmnAjDWV7bHdSQcziMh91pgj3FkjdERrJVcNec 3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE: -1.00400000 Waves 2019.07.08 12:23 [576452] smart asset 3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE > SELF 0.00000 PASS
{ "type": 15, "id": "GJLsGDhmnAjDWV7bHdSQcziMh91pgj3FkjdERrJVcNec", "fee": 100400000, "feeAssetId": null, "timestamp": 1562577843619, "version": 1, "sender": "3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE", "senderPublicKey": "5gUuv1jjtePpX8rffb1RvQ6FvX2oJ2rNshfF9Dt2NUES", "proofs": [ "5PahW2xFU3Hyo3m5nFV4Uw5hxr4FhknXpQuGFxtkFQ9zqA6pTzwsdESdCwgsH2APX92rm2Q4hsnhGpc11sBb3evc" ], "assetId": "6hT7FXhqbfavkJaoPVjZpQgZ7KDa1kTj3rda8V4r3R9q", "script": "base64:AwQAAAADS1lDCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU1jQgya/wHVSfx3QaL4bt+6D7mCj3PD1TBAAAAAtQYXNzQXNzZXRJZAEAAAAgVKcv6IAUWZVN3kw1JnxMKPPRkmtt8Y+PQJB4fVcECCAKAQAAAA5jaGVja1doaXRlbGlzdAAAAAEAAAAHYWRkcmVzcwQAAAAOc2VuZGVyQWNjZXB0ZWQJAAQbAAAAAgUAAAADS1lDCQACWAAAAAEIBQAAAAdhZGRyZXNzAAAABWJ5dGVzAwkBAAAACWlzRGVmaW5lZAAAAAEFAAAADnNlbmRlckFjY2VwdGVkCQEAAAAHZXh0cmFjdAAAAAEFAAAADnNlbmRlckFjY2VwdGVkBwQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24EAAAAAXMFAAAAByRtYXRjaDAGAwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAJAQAAAA5jaGVja1doaXRlbGlzdAAAAAEIBQAAAAF0AAAABnNlbmRlcgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAQAAAALYW1vdW50QXNzZXQICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAAthbW91bnRBc3NldAQAAAAKcHJpY2VBc3NldAgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQDCQAAAAAAAAIFAAAACnByaWNlQXNzZXQFAAAAC1Bhc3NBc3NldElkCQEAAAAOY2hlY2tXaGl0ZWxpc3QAAAABCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAGc2VuZGVyBgc6HFme", "chainId": 84, "height": 576452, "spentComplexity": 0 } View: original | compacted Prev: none Next: J2TghqZa7di1id5ns3mey1QyXFHu6W3k7Wv6GYb4aDn 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'6hT7FXhqbfavkJaoPVjZpQgZ7KDa1kTj3rda8V4r3R9q' | |
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(t.sender) | |
17 | + | case e: ExchangeTransaction => | |
18 | + | let amountAsset = e.sellOrder.assetPair.amountAsset | |
19 | + | let priceAsset = e.sellOrder.assetPair.priceAsset | |
20 | + | if ((priceAsset == PassAssetId)) | |
21 | + | then checkWhitelist(e.buyOrder.sender) | |
22 | + | else true | |
23 | + | case _ => | |
24 | + | false | |
25 | + | } |
github/deemru/w8io/026f985 32.36 ms ◑