tx · 2KvFGdbT72ifqxmynjRX9sochZtnJBU9DZDRxMBEZev8

3MuTTNitiCXtwNMFnExx77b8xiTBFVYyMVB:  -1.00000000 Waves

2019.02.08 21:37 [486477] smart asset 3MuTTNitiCXtwNMFnExx77b8xiTBFVYyMVB > SELF 0.00000000 test

{ "type": 15, "id": "2KvFGdbT72ifqxmynjRX9sochZtnJBU9DZDRxMBEZev8", "fee": 100000000, "feeAssetId": null, "timestamp": 1549651076183, "version": 1, "sender": "3MuTTNitiCXtwNMFnExx77b8xiTBFVYyMVB", "senderPublicKey": "AjiJTAnh1zMMUTHYCyrN4XzdpDb9YtU5xe8hD1Su7vSV", "proofs": [ "2jE3Sj5hwzWuMnLA9rJBCQwGLz5iubynk5a1U4tsABCotSW4m8iJbah6E6sC2Wi4tiYZC7wUHbqoPhbv84kF1Pif" ], "assetId": "81bYhTjXoXFeDkYUiDxaYnX1tk38W69Jr3KgtCAK5WZT", "script": "base64:AQQAAAAOYWRtaW5QdWJsaWNLZXkBAAAAIJCqRn76vzIaLRPZfQ76udpC5ZaY6zUPmJGk4a239ScKBAAAAAxhZG1pbkFkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAADmFkbWluUHVibGljS2V5BAAAAAckbWF0Y2gwBQAAAAJ0eAMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAABWFsbG93BQAAAAckbWF0Y2gwBAAAAAdhc3NldElkBAAAAAckbWF0Y2gxBQAAAAVhbGxvdwMJAAABAAAAAgUAAAAHJG1hdGNoMQIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMQgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAAC2Ftb3VudEFzc2V0AwkAAAEAAAACBQAAAAckb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VudEFjY2VwdGVkCQEAAAAJaXNEZWZpbmVkAAAAAQkABBsAAAACBQAAABB3aGl0ZWxpc3RBZGRyZXNzCQACWAAAAAEIBQAAABByZWNpcGllbnRBZGRyZXNzAAAABWJ5dGVzBAAAAAckbWF0Y2gxBQAAAAVhbGxvdwMJAAABAAAAAgUAAAAHJG1hdGNoMQIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMQUAAAAOc2VuZGVyQWNjZXB0ZWQDCQAAAQAAAAIFAAAAByRtYXRjaDECAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDEDBQAAAA5zZW5kZXJBY2NlcHRlZAUAAAARcmVjaXBpZW50QWNjZXB0ZWQHCQEAAAAFdGhyb3cAAAAABliSbJA=", "chainId": 84, "height": 486477, "spentComplexity": 0 } View: original | compacted Prev: DcQpCf5QcMZBmbnT32CQFBXzFZQJqFz87eXLKiKQHwQE Next: 998XomAJxVp3nzJF6mFc8xpg6xqQeF64cRL6C1ttHhEJ Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let adminPublicKey = base58'AjiJTAnh1zMMUTHYCyrN4XzdpDb9YtU5xe8hD1Su7vSV'
44 let adminAddress = addressFromPublicKey(adminPublicKey)
55 match tx {
66 case allow: TransferTransaction|ExchangeTransaction =>
77 let assetId = match allow {
88 case e: ExchangeTransaction =>
99 e.sellOrder.assetPair.amountAsset
1010 case t: TransferTransaction =>
1111 t.assetId
1212 case _ =>
1313 throw()
1414 }
1515 let assetIdString = toBase58String(extract(assetId))
1616 let whitelistPK = extract(getString(adminAddress, assetIdString))
1717 let whitelistAddress = extract(addressFromPublicKey(fromBase58String(whitelistPK)))
1818 let senderAddress = match allow {
1919 case e: ExchangeTransaction =>
2020 e.sellOrder.sender
2121 case t: TransferTransaction =>
2222 t.sender
2323 case _ =>
2424 throw()
2525 }
2626 let recipientAddress = match allow {
2727 case t: TransferTransaction =>
2828 addressFromRecipient(t.recipient)
2929 case _ =>
3030 throw()
3131 }
3232 let senderAccepted = isDefined(getBoolean(whitelistAddress, toBase58String(senderAddress.bytes)))
3333 let recipientAccepted = isDefined(getBoolean(whitelistAddress, toBase58String(recipientAddress.bytes)))
3434 match allow {
3535 case e: ExchangeTransaction =>
3636 senderAccepted
3737 case t: TransferTransaction =>
3838 if (senderAccepted)
3939 then recipientAccepted
4040 else false
4141 case _ =>
4242 throw()
4343 }
4444 case _ =>
4545 true
4646 }

github/deemru/w8io/026f985 
22.58 ms