tx · 8Nuvm4FmS4A7HZo1iqqYBquzRc6CAKPC2AasJkbEmXkd

3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE:  -1.00400000 Waves

2019.07.08 12:14 [576444] smart asset 3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE > SELF 0.00000 PASS

{ "type": 15, "id": "8Nuvm4FmS4A7HZo1iqqYBquzRc6CAKPC2AasJkbEmXkd", "fee": 100400000, "feeAssetId": null, "timestamp": 1562577252956, "version": 1, "sender": "3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE", "senderPublicKey": "5gUuv1jjtePpX8rffb1RvQ6FvX2oJ2rNshfF9Dt2NUES", "proofs": [ "E7B6si2B8v7g4x8J5uyGMbjmQFYfN9WQ1UkZAKoMosmvVmH2Avfr8s5G62s3oLemQUTFwxe3bM2DoPUpqbcUcid" ], "assetId": "HyaQ57BKy8C5rhLi6rZEqQGCojrYX1CQ6YsvgcBr6JQn", "script": "base64:AwQAAAADS1lDCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU1jQgya/wHVSfx3QaL4bt+6D7mCj3PD1TBAAAAAtQYXNzQXNzZXRJZAEAAAAg/DlHc9qScGsE5r04aBUFSsMw038qXFryfVcvdFdOUR8KAQAAAA5jaGVja1doaXRlbGlzdAAAAAEAAAAHYWRkcmVzcwQAAAAOc2VuZGVyQWNjZXB0ZWQJAAQbAAAAAgUAAAADS1lDCQACWAAAAAEIBQAAAAdhZGRyZXNzAAAABWJ5dGVzAwkBAAAACWlzRGVmaW5lZAAAAAEFAAAADnNlbmRlckFjY2VwdGVkCQEAAAAHZXh0cmFjdAAAAAEFAAAADnNlbmRlckFjY2VwdGVkBwQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24EAAAAAXMFAAAAByRtYXRjaDAGAwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAJAQAAAA5jaGVja1doaXRlbGlzdAAAAAEIBQAAAAF0AAAABnNlbmRlcgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAQAAAALYW1vdW50QXNzZXQICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAAthbW91bnRBc3NldAQAAAAKcHJpY2VBc3NldAgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQDAwkAAAAAAAACBQAAAAthbW91bnRBc3NldAUAAAALUGFzc0Fzc2V0SWQJAQAAAA5jaGVja1doaXRlbGlzdAAAAAEICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAGc2VuZGVyBgMJAAAAAAAAAgUAAAAKcHJpY2VBc3NldAUAAAALUGFzc0Fzc2V0SWQJAQAAAA5jaGVja1doaXRlbGlzdAAAAAEICAUAAAABZQAAAAhidXlPcmRlcgAAAAZzZW5kZXIGBwewMQuW", "chainId": 84, "height": 576444, "spentComplexity": 0 } View: original | compacted Prev: 7s2eM71AMLPZorQrrjSyo6nj8YnRTojmidG4Tt7zd6Ga Next: AQYjcABrGCEx3DSdXcuzxSMfSys9BZteLyCecRA3n3Xw Diff:
OldNewDifferences
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let KYC = Address(base58'3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE')
44 let PassAssetId = base58'HyaQ57BKy8C5rhLi6rZEqQGCojrYX1CQ6YsvgcBr6JQn'
5-func checkWhitelist (address) = true
5+func checkWhitelist (address) = {
6+ let senderAccepted = getBoolean(KYC, toBase58String(address.bytes))
7+ if (isDefined(senderAccepted))
8+ then extract(senderAccepted)
9+ else false
10+ }
611
712 match tx {
813 case s: SetAssetScriptTransaction|ReissueTransaction =>
1217 case e: ExchangeTransaction =>
1318 let amountAsset = e.sellOrder.assetPair.amountAsset
1419 let priceAsset = e.sellOrder.assetPair.priceAsset
15- if ((amountAsset == PassAssetId))
20+ if (if ((amountAsset == PassAssetId))
1621 then checkWhitelist(e.sellOrder.sender)
17- else true
22+ else true)
23+ then if ((priceAsset == PassAssetId))
24+ then checkWhitelist(e.buyOrder.sender)
25+ else true
26+ else false
1827 case _ =>
1928 false
2029 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let KYC = Address(base58'3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE')
44 let PassAssetId = base58'HyaQ57BKy8C5rhLi6rZEqQGCojrYX1CQ6YsvgcBr6JQn'
5-func checkWhitelist (address) = true
5+func checkWhitelist (address) = {
6+ let senderAccepted = getBoolean(KYC, toBase58String(address.bytes))
7+ if (isDefined(senderAccepted))
8+ then extract(senderAccepted)
9+ else false
10+ }
611
712 match tx {
813 case s: SetAssetScriptTransaction|ReissueTransaction =>
914 true
1015 case t: MassTransferTransaction|TransferTransaction =>
1116 checkWhitelist(t.sender)
1217 case e: ExchangeTransaction =>
1318 let amountAsset = e.sellOrder.assetPair.amountAsset
1419 let priceAsset = e.sellOrder.assetPair.priceAsset
15- if ((amountAsset == PassAssetId))
20+ if (if ((amountAsset == PassAssetId))
1621 then checkWhitelist(e.sellOrder.sender)
17- else true
22+ else true)
23+ then if ((priceAsset == PassAssetId))
24+ then checkWhitelist(e.buyOrder.sender)
25+ else true
26+ else false
1827 case _ =>
1928 false
2029 }

github/deemru/w8io/026f985 
24.64 ms