tx · 998XomAJxVp3nzJF6mFc8xpg6xqQeF64cRL6C1ttHhEJ

3MuTTNitiCXtwNMFnExx77b8xiTBFVYyMVB:  -1.00000000 Waves

2019.02.08 21:51 [486492] smart asset 3MuTTNitiCXtwNMFnExx77b8xiTBFVYyMVB > SELF 0.00000000 test

{ "type": 15, "id": "998XomAJxVp3nzJF6mFc8xpg6xqQeF64cRL6C1ttHhEJ", "fee": 100000000, "feeAssetId": null, "timestamp": 1549651940238, "version": 1, "sender": "3MuTTNitiCXtwNMFnExx77b8xiTBFVYyMVB", "senderPublicKey": "AjiJTAnh1zMMUTHYCyrN4XzdpDb9YtU5xe8hD1Su7vSV", "proofs": [ "2LxEiDEVcY98WqaFRKFKhteFeaXxje4LYbz69Zp2jrsJgph1es4jt6QpkCvRkCgHNm9K94kqFub9iN8yEktEuRYP" ], "assetId": "81bYhTjXoXFeDkYUiDxaYnX1tk38W69Jr3KgtCAK5WZT", "script": "base64:AQQAAAAOYWRtaW5QdWJsaWNLZXkBAAAAIJCqRn76vzIaLRPZfQ76udpC5ZaY6zUPmJGk4a239ScKBAAAAAxhZG1pbkFkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAADmFkbWluUHVibGljS2V5BAAAAAckbWF0Y2gwBQAAAAJ0eAMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAABWFsbG93BQAAAAckbWF0Y2gwBAAAAAdhc3NldElkBAAAAAckbWF0Y2gxBQAAAAVhbGxvdwMJAAABAAAAAgUAAAAHJG1hdGNoMQIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMQgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAAC2Ftb3VudEFzc2V0AwkAAAEAAAACBQAAAAckb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2NlcHRlZAkBAAAAB2V4dHJhY3QAAAABCQAEGwAAAAIFAAAAEHdoaXRlbGlzdEFkZHJlc3MJAAJYAAAAAQgFAAAAEHJlY2lwaWVudEFkZHJlc3MAAAAFYnl0ZXMEAAAAByRtYXRjaDEFAAAABWFsbG93AwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gxBQAAAA5zZW5kZXJBY2NlcHRlZAMJAAABAAAAAgUAAAAHJG1hdGNoMQIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMQMFAAAADnNlbmRlckFjY2VwdGVkBQAAABFyZWNpcGllbnRBY2NlcHRlZAcJAQAAAAV0aHJvdwAAAAAGhjjrjQ==", "chainId": 84, "height": 486492, "spentComplexity": 0 } View: original | compacted Prev: 2KvFGdbT72ifqxmynjRX9sochZtnJBU9DZDRxMBEZev8 Next: J72w5kDP7DzZfYgftP3EbZN2HpNNvcNEiVeHbjHtapvw Diff:
OldNewDifferences
2929 case _ =>
3030 throw()
3131 }
32- let senderAccepted = isDefined(getBoolean(whitelistAddress, toBase58String(senderAddress.bytes)))
33- let recipientAccepted = isDefined(getBoolean(whitelistAddress, toBase58String(recipientAddress.bytes)))
32+ let senderAccepted = extract(getBoolean(whitelistAddress, toBase58String(senderAddress.bytes)))
33+ let recipientAccepted = extract(getBoolean(whitelistAddress, toBase58String(recipientAddress.bytes)))
3434 match allow {
3535 case e: ExchangeTransaction =>
3636 senderAccepted
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 }
32- let senderAccepted = isDefined(getBoolean(whitelistAddress, toBase58String(senderAddress.bytes)))
33- let recipientAccepted = isDefined(getBoolean(whitelistAddress, toBase58String(recipientAddress.bytes)))
32+ let senderAccepted = extract(getBoolean(whitelistAddress, toBase58String(senderAddress.bytes)))
33+ let recipientAccepted = extract(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 
42.02 ms