tx · orX17MPeCxiPE6Ngx9TnNznjEWUTGaPez4f2vZJJ9Yr

3N9hKwuwtECrpiMAfy6krVKf2ovU1Si9ssu:  -1.10000000 Waves

2019.03.17 22:38 [540642] smart asset 3N9hKwuwtECrpiMAfy6krVKf2ovU1Si9ssu > SELF 0.00000000 SMTH

{ "type": 15, "id": "orX17MPeCxiPE6Ngx9TnNznjEWUTGaPez4f2vZJJ9Yr", "fee": 110000000, "feeAssetId": null, "timestamp": 1552851511501, "version": 1, "sender": "3N9hKwuwtECrpiMAfy6krVKf2ovU1Si9ssu", "senderPublicKey": "B1jCjJgfsJPUci2LqspvGwEFV7jFKVNf2NwRdVpWJkAb", "proofs": [ "45U5hZKGHBzT39f7MYoVbeQNvJ9ky7Ci2Ge3W8vYHPRx5UzPQEZfEtCqtWJhGYqAjfMAvBcrgnDoJ6zKgLzCify3" ], "assetId": "5aC18jdnA4KLsrtWQP3RuU9QhWvnmaMAFQq5fQjwJ49T", "script": "base64:AQQAAAAObWF0Y2hlckFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNOQzJEUlVaRHNCYTRVeFZ1Wm9ldUxBckFoNVhuQ3VuV1lNBAAAAA5nYXRld2F5QWRkcmVzcwkBAAAAEWFkZHJlc3NGcm9tU3RyaW5nAAAAAQIAAAAjM045aEt3dXd0RUNycGlNQWZ5NmtyVktmMm92VTFTaTlzc3UEAAAADVdoaXRlbGlzdEFkZHIJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNON1RtUEZFMVFSS0V0S05CY1F2UGlIcUdkdm03UkthNlY5BAAAAAp2YWxpZFN0YXRlAAAAAAAAAAPoBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJ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taW5nMkFjY291bnQAAAAFYnl0ZXMEAAAAD3doaXRlMkxpc3RBc3NldAMJAQAAAAlpc0RlZmluZWQAAAABBQAAABFvdXRjb21pbmcyQXNzZXRJZAkAASwAAAACBQAAAAp3aGl0ZTJMaXN0CQACWAAAAAEJAQAAAAdleHRyYWN0AAAAAQUAAAARb3V0Y29taW5nMkFzc2V0SWQJAAEsAAAAAgUAAAAKd2hpdGUyTGlzdAIAAAAGX1dBVkVTBAAAAAhpczFXYXZlcwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQUAAAARb3V0Y29taW5nMUFzc2V0SWQEAAAACGlzMldhdmVzCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABBQAAABFvdXRjb21pbmcyQXNzZXRJZAQAAAAPd2hpdGUxTGlzdEVudHJ5CQAEGgAAAAIJAQAAAAdleHRyYWN0AAAAAQUAAAANV2hpdGVsaXN0QWRkcgkAAlgAAAABCAUAAAARb3V0Y29taW5nMUFjY291bnQAAAAFYnl0ZXMEAAAAD3doaXRlMkxpc3RFbnRyeQkABBoAAAACCQEAAAAHZXh0cmFjdAAAAAEFAAAADVdoaXRlbGlzdEFkZHIJAAJYAAAAAQgFAAAAEW91dGNvbWluZzJBY2NvdW50AAAABWJ5dGVzCQAAAgAAAAEJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAABXcxbGU9CQABpAAAAAEJAQAAAAdleHRyYWN0AAAAAQUAAAAPd2hpdGUxTGlzdEVudHJ5AgAAAAYsdzJsZT0JAAGkAAAAAQkBAAAAB2V4dHJhY3QAAAABBQAAAA93aGl0ZTJMaXN0RW50cnkGhOHr/g==", "chainId": 84, "height": 540642, "spentComplexity": 0 } View: original | compacted Prev: 33bbjfBkyBssjWzfCeJVtCARSRJZrFq6HRvhjAYy5uKg Next: F8EHoCQa2vvemx3G2nUHXohVyzio7pJLyRKDv7cBu298 Diff:
OldNewDifferences
5151 else (white2List + "_WAVES")
5252 let is1Waves = !(isDefined(outcoming1AssetId))
5353 let is2Waves = !(isDefined(outcoming2AssetId))
54- throw(((((((("is1w" + toString(is1Waves)) + ",is2w=") + toString(is2Waves)) + ",w1l=") + white1ListAsset) + ",w2l=") + white2ListAsset))
54+ let white1ListEntry = getInteger(extract(WhitelistAddr), toBase58String(outcoming1Account.bytes))
55+ let white2ListEntry = getInteger(extract(WhitelistAddr), toBase58String(outcoming2Account.bytes))
56+ throw(((("w1le=" + toString(extract(white1ListEntry))) + ",w2le=") + toString(extract(white2ListEntry))))
5557 case _ =>
5658 true
5759 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let matcherAddress = addressFromString("3NC2DRUZDsBa4UxVuZoeuLArAh5XnCunWYM")
44 let gatewayAddress = addressFromString("3N9hKwuwtECrpiMAfy6krVKf2ovU1Si9ssu")
55 let WhitelistAddr = addressFromString("3N7TmPFE1QRKEtKNBcQvPiHqGdvm7RKa6V9")
66 let validState = 1000
77 match tx {
88 case tx: MassTransferTransaction =>
99 false
1010 case tx: TransferTransaction =>
1111 if (if ((tx.sender != gatewayAddress))
1212 then (tx.recipient != gatewayAddress)
1313 else false)
1414 then false
1515 else if ((tx.sender == gatewayAddress))
1616 then true
1717 else {
1818 let white1List = toBase58String(tx.sender.bytes)
1919 let white1ListAsset = (white1List + toBase58String(extract(tx.assetId)))
2020 let white1ListEntry = getInteger(extract(WhitelistAddr), white1List)
2121 if (!(isDefined(white1ListEntry)))
2222 then throw("Sender not in white list")
2323 else if ((white1ListEntry != validState))
2424 then throw("Sender not in valid state")
2525 else {
2626 let white1ListAssetEntry = getInteger(extract(WhitelistAddr), white1ListAsset)
2727 if (!(isDefined(white1ListAssetEntry)))
2828 then true
2929 else {
3030 let cur1Balance = assetBalance(tx.sender, tx.assetId)
3131 if ((extract(white1ListAssetEntry) > (cur1Balance - tx.amount)))
3232 then throw("Cannot send amount: under restrictions")
3333 else true
3434 }
3535 }
3636 }
3737 case tx: ExchangeTransaction =>
3838 let outcoming1AssetId = tx.buyOrder.assetPair.amountAsset
3939 let outcoming1Account = tx.buyOrder.sender
4040 let outcoming2AssetId = tx.sellOrder.assetPair.priceAsset
4141 let outcoming2Account = tx.sellOrder.sender
4242 let outcoming1Amount = tx.amount
4343 let outcoming2Amount = fraction(tx.amount, tx.price, 100000000)
4444 let white1List = toBase58String(outcoming1Account.bytes)
4545 let white1ListAsset = if (isDefined(outcoming1AssetId))
4646 then (white1List + toBase58String(extract(outcoming1AssetId)))
4747 else (white1List + "_WAVES")
4848 let white2List = toBase58String(outcoming2Account.bytes)
4949 let white2ListAsset = if (isDefined(outcoming2AssetId))
5050 then (white2List + toBase58String(extract(outcoming2AssetId)))
5151 else (white2List + "_WAVES")
5252 let is1Waves = !(isDefined(outcoming1AssetId))
5353 let is2Waves = !(isDefined(outcoming2AssetId))
54- throw(((((((("is1w" + toString(is1Waves)) + ",is2w=") + toString(is2Waves)) + ",w1l=") + white1ListAsset) + ",w2l=") + white2ListAsset))
54+ let white1ListEntry = getInteger(extract(WhitelistAddr), toBase58String(outcoming1Account.bytes))
55+ let white2ListEntry = getInteger(extract(WhitelistAddr), toBase58String(outcoming2Account.bytes))
56+ throw(((("w1le=" + toString(extract(white1ListEntry))) + ",w2le=") + toString(extract(white2ListEntry))))
5557 case _ =>
5658 true
5759 }

github/deemru/w8io/169f3d6 
28.71 ms