tx · W1cWoo7pQnMHWQBrrtCNwcb5o4rjR5D8bmJdeMb3xGZ 3N6KWtjpEqhL8oRk3YEQFVYsUwhjzA2rCUW: -1.00400000 Waves 2020.03.11 18:10 [904653] smart asset 3N6KWtjpEqhL8oRk3YEQFVYsUwhjzA2rCUW > SELF 0 PreSmartKey
{ "type": 15, "id": "W1cWoo7pQnMHWQBrrtCNwcb5o4rjR5D8bmJdeMb3xGZ", "fee": 100400000, "feeAssetId": null, "timestamp": 1583939457348, "version": 1, "sender": "3N6KWtjpEqhL8oRk3YEQFVYsUwhjzA2rCUW", "senderPublicKey": "7wiL4SU2VfpuDUUtTqN4WrWXBp7awHtxk4BjkK1vYuSY", "proofs": [ "3cBZpr8tJmYFK8vBSqWpENicNVFWyaYQ2EUYaKuMzVkts3sqV2dhXY7Za34hNMcEyH2dAbXxpQamJGHMFrvw6YCj" ], "assetId": "EaAk66w36Wo7mi1xgcHyjeaiCrsaerH1gJ3cKTePEz5o", "script": "base64:AgQAAAAGbWFzdGVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUs/CL93FthWEyPB6G5SYCnsCIdjUWFfVfBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAQAAAAJc2VuZGVyS2V5CQABLAAAAAICAAAAB3ByZV9za18JAAJYAAAAAQgIBQAAAAF0AAAABnNlbmRlcgAAAAVieXRlcwQAAAAPaXNTZW5kZXJBbGxvd2VkCQAAAAAAAAIJAAQaAAAAAgUAAAAGbWFzdGVyBQAAAAlzZW5kZXJLZXkAAAAAAAAAAAEDAwkAAAAAAAACCAUAAAABdAAAAAZzZW5kZXIFAAAABm1hc3RlcgYJAAAAAAAAAggFAAAAAXQAAAAJcmVjaXBpZW50BQAAAAZtYXN0ZXIGBQAAAA9pc1NlbmRlckFsbG93ZWQDCQAAAQAAAAIFAAAAByRtYXRjaD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V Diff:
Old | New | Differences | |
---|---|---|---|
19 | 19 | case ex: ExchangeTransaction => | |
20 | 20 | let senderKey = ("pre_sk_" + toBase58String(ex.sellOrder.sender.bytes)) | |
21 | 21 | let isSenderAllowed = (getInteger(master, senderKey) == 1) | |
22 | - | true | |
22 | + | if ((ex.sender == master)) | |
23 | + | then true | |
24 | + | else isSenderAllowed | |
23 | 25 | case b: BurnTransaction => | |
24 | 26 | (b.sender == master) | |
25 | 27 | case s: SetAssetScriptTransaction => |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 2 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let master = Address(base58'3N6KWtjpEqhL8oRk3YEQFVYsUwhjzA2rCUW') | |
4 | 4 | match tx { | |
5 | 5 | case t: TransferTransaction => | |
6 | 6 | let senderKey = ("pre_sk_" + toBase58String(t.sender.bytes)) | |
7 | 7 | let isSenderAllowed = (getInteger(master, senderKey) == 1) | |
8 | 8 | if (if ((t.sender == master)) | |
9 | 9 | then true | |
10 | 10 | else (t.recipient == master)) | |
11 | 11 | then true | |
12 | 12 | else isSenderAllowed | |
13 | 13 | case mt: MassTransferTransaction => | |
14 | 14 | let senderKey = ("pre_sk_" + toBase58String(mt.sender.bytes)) | |
15 | 15 | let isSenderAllowed = (getInteger(master, senderKey) == 1) | |
16 | 16 | if ((mt.sender == master)) | |
17 | 17 | then true | |
18 | 18 | else isSenderAllowed | |
19 | 19 | case ex: ExchangeTransaction => | |
20 | 20 | let senderKey = ("pre_sk_" + toBase58String(ex.sellOrder.sender.bytes)) | |
21 | 21 | let isSenderAllowed = (getInteger(master, senderKey) == 1) | |
22 | - | true | |
22 | + | if ((ex.sender == master)) | |
23 | + | then true | |
24 | + | else isSenderAllowed | |
23 | 25 | case b: BurnTransaction => | |
24 | 26 | (b.sender == master) | |
25 | 27 | case s: SetAssetScriptTransaction => | |
26 | 28 | true | |
27 | 29 | case _ => | |
28 | 30 | true | |
29 | 31 | } |
github/deemru/w8io/026f985 28.46 ms ◑