tx · EX7pDXja8GkBex1Kw3gxzjKu9e9MK4SEdUb6ZpJqwvCV

3N6KWtjpEqhL8oRk3YEQFVYsUwhjzA2rCUW:  -1.00400000 Waves

2020.03.11 19:56 [904752] smart asset 3N6KWtjpEqhL8oRk3YEQFVYsUwhjzA2rCUW > SELF 0 PreSmartKey

{ "type": 15, "id": "EX7pDXja8GkBex1Kw3gxzjKu9e9MK4SEdUb6ZpJqwvCV", "fee": 100400000, "feeAssetId": null, "timestamp": 1583945875654, "version": 1, "sender": "3N6KWtjpEqhL8oRk3YEQFVYsUwhjzA2rCUW", "senderPublicKey": "7wiL4SU2VfpuDUUtTqN4WrWXBp7awHtxk4BjkK1vYuSY", "proofs": [ "2EdJHzL5KHuZAgjPzPTcLRBxHLFomsBfYQjCScYfQDtqid84JnnNBXv45Mw6oadsJGkjdEDGRFiEmMab2GzttDX5" ], "assetId": "EaAk66w36Wo7mi1xgcHyjeaiCrsaerH1gJ3cKTePEz5o", "script": "base64:AQQAAAAGbWFzdGVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUs/CL93FthWEyPB6G5SYCnsCIdjUWFfVfBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAQAAAAJc2VuZGVyS2V5CQABLAAAAAICAAAAB3ByZV9za18JAAJYAAAAAQgIBQAAAAF0AAAABnNlbmRlcgAAAAVieXRlcwQAAAAPaXNTZW5kZXJBbGxvd2VkCQAAAAAAAAIJAAQaAAAAAgUAAAAGbWFzdGVyBQAAAAlzZW5kZXJLZXkAAAAAAAAAAAEDAwkAAAAAAAACCAUAAAABdAAAAAZzZW5kZXIFAAAABm1hc3RlcgYJAAAAAAAAAggFAAAAAXQAAAAJcmVjaXBpZW50BQAAAAZtYXN0ZXIGBQAAAA9pc1NlbmRlckFsbG93ZWQDCQAAAQAAAAIFAAAAByRtYXRjaDACA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RtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAXMFAAAAByRtYXRjaDAGBraLvNQ=", "chainId": 84, "height": 904752, "spentComplexity": 0 } View: original | compacted Prev: W1cWoo7pQnMHWQBrrtCNwcb5o4rjR5D8bmJdeMb3xGZ Next: 3S8PdHSs7ZS7Tb7tr32sQf7bQ4wDorSr93vXDasHviQD Diff:
OldNewDifferences
1-{-# STDLIB_VERSION 2 #-}
1+{-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let master = Address(base58'3N6KWtjpEqhL8oRk3YEQFVYsUwhjzA2rCUW')
44 match tx {
1919 case ex: ExchangeTransaction =>
2020 let senderKey = ("pre_sk_" + toBase58String(ex.sellOrder.sender.bytes))
2121 let isSenderAllowed = (getInteger(master, senderKey) == 1)
22- if ((ex.sender == master))
22+ let buy = sigVerify(ex.buyOrder.bodyBytes, ex.buyOrder.proofs[0], ex.buyOrder.senderPublicKey)
23+ if (if (buy)
24+ then true
25+ else (ex.sellOrder.sender == master))
2326 then true
2427 else isSenderAllowed
2528 case b: BurnTransaction =>
Full:
OldNewDifferences
1-{-# STDLIB_VERSION 2 #-}
1+{-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let master = Address(base58'3N6KWtjpEqhL8oRk3YEQFVYsUwhjzA2rCUW')
44 match tx {
55 case t: TransferTransaction =>
66 let senderKey = ("pre_sk_" + toBase58String(t.sender.bytes))
77 let isSenderAllowed = (getInteger(master, senderKey) == 1)
88 if (if ((t.sender == master))
99 then true
1010 else (t.recipient == master))
1111 then true
1212 else isSenderAllowed
1313 case mt: MassTransferTransaction =>
1414 let senderKey = ("pre_sk_" + toBase58String(mt.sender.bytes))
1515 let isSenderAllowed = (getInteger(master, senderKey) == 1)
1616 if ((mt.sender == master))
1717 then true
1818 else isSenderAllowed
1919 case ex: ExchangeTransaction =>
2020 let senderKey = ("pre_sk_" + toBase58String(ex.sellOrder.sender.bytes))
2121 let isSenderAllowed = (getInteger(master, senderKey) == 1)
22- if ((ex.sender == master))
22+ let buy = sigVerify(ex.buyOrder.bodyBytes, ex.buyOrder.proofs[0], ex.buyOrder.senderPublicKey)
23+ if (if (buy)
24+ then true
25+ else (ex.sellOrder.sender == master))
2326 then true
2427 else isSenderAllowed
2528 case b: BurnTransaction =>
2629 (b.sender == master)
2730 case s: SetAssetScriptTransaction =>
2831 true
2932 case _ =>
3033 true
3134 }

github/deemru/w8io/026f985 
34.15 ms