@shapeshiftoss/unchained-client 10.13.0 → 10.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Tx } from '../../../generated/bnbsmartchain';
|
|
2
2
|
import { BaseTransactionParser, TransactionParserArgs } from '../../parser';
|
|
3
|
+
export declare const ZRX_BSC_PROXY_CONTRACT = "0xDef1C0ded9bec7F1a1670819833240f027b25EfF";
|
|
3
4
|
export declare class TransactionParser extends BaseTransactionParser<Tx> {
|
|
4
5
|
constructor(args: TransactionParserArgs);
|
|
5
6
|
}
|
|
@@ -23,15 +23,20 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.TransactionParser = void 0;
|
|
26
|
+
exports.TransactionParser = exports.ZRX_BSC_PROXY_CONTRACT = void 0;
|
|
27
27
|
const caip_1 = require("@shapeshiftoss/caip");
|
|
28
28
|
const parser_1 = require("../../parser");
|
|
29
|
+
const zrx = __importStar(require("../../parser/zrx"));
|
|
29
30
|
const bep20 = __importStar(require("./bep20"));
|
|
31
|
+
exports.ZRX_BSC_PROXY_CONTRACT = '0xDef1C0ded9bec7F1a1670819833240f027b25EfF';
|
|
30
32
|
class TransactionParser extends parser_1.BaseTransactionParser {
|
|
31
33
|
constructor(args) {
|
|
32
34
|
super(args);
|
|
33
35
|
this.assetId = caip_1.bscAssetId;
|
|
34
|
-
this.
|
|
36
|
+
this.registerParsers([
|
|
37
|
+
new bep20.Parser({ chainId: this.chainId, provider: this.provider }),
|
|
38
|
+
new zrx.Parser({ proxyContract: exports.ZRX_BSC_PROXY_CONTRACT }),
|
|
39
|
+
]);
|
|
35
40
|
}
|
|
36
41
|
}
|
|
37
42
|
exports.TransactionParser = TransactionParser;
|