@clonegod/ttd-base-common 1.0.16 → 1.0.19
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,4 +1,5 @@
|
|
|
1
1
|
export declare const BASE_CHAIN_ID = 8453;
|
|
2
|
+
export declare const NATIVE_ETH_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
2
3
|
export declare const WETH_ADDRESS = "0x4200000000000000000000000000000000000006";
|
|
3
4
|
export declare const EVENT_NAMES: {
|
|
4
5
|
readonly BLOCK_UPDATE: "block_update";
|
package/dist/common/constants.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UniswapV3RouterABI = exports.UniswapV3PoolABI = exports.EVENT_SIGNATURES = exports.EVENT_NAMES = exports.WETH_ADDRESS = exports.BASE_CHAIN_ID = void 0;
|
|
3
|
+
exports.UniswapV3RouterABI = exports.UniswapV3PoolABI = exports.EVENT_SIGNATURES = exports.EVENT_NAMES = exports.WETH_ADDRESS = exports.NATIVE_ETH_ADDRESS = exports.BASE_CHAIN_ID = void 0;
|
|
4
4
|
exports.BASE_CHAIN_ID = 8453;
|
|
5
|
+
exports.NATIVE_ETH_ADDRESS = '0x0000000000000000000000000000000000000000';
|
|
5
6
|
exports.WETH_ADDRESS = '0x4200000000000000000000000000000000000006';
|
|
6
7
|
exports.EVENT_NAMES = {
|
|
7
8
|
BLOCK_UPDATE: 'block_update',
|
|
@@ -30,10 +30,10 @@ class BloxrouteBase {
|
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
this.wsClient.onOpen(() => {
|
|
33
|
-
|
|
33
|
+
(0, dist_1.log_info)('BloXroute Base ws connected:', this.ws_endpoint);
|
|
34
34
|
});
|
|
35
35
|
this.wsClient.onMessage((message) => {
|
|
36
|
-
|
|
36
|
+
(0, dist_1.log_info)('BloXroute Base ws message', (0, dist_1.to_json_str)(message));
|
|
37
37
|
});
|
|
38
38
|
this.wsClient.connect();
|
|
39
39
|
}
|
|
@@ -119,7 +119,7 @@ class BaseTransactionSender {
|
|
|
119
119
|
})
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
|
-
name: 'BloXroute
|
|
122
|
+
name: 'BloXroute RPC|WS',
|
|
123
123
|
enable: process.env.SEND_TX_BLOXROUTE_RPC === 'true',
|
|
124
124
|
send: () => __awaiter(this, void 0, void 0, function* () {
|
|
125
125
|
return yield this.bloxroute.sendTransaction(signedMainTx);
|
package/package.json
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
2
|
+
"name": "@clonegod/ttd-base-common",
|
|
3
|
+
"version": "1.0.19",
|
|
4
|
+
"description": "Base common library",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"clean": "rm -rf dist node_modules",
|
|
13
|
+
"build": "yarn tsc --outDir ./dist",
|
|
14
|
+
"push": "npm run build && npm publish"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@clonegod/ttd-core": "2.0.90",
|
|
18
|
+
"axios": "^1.12.0",
|
|
19
|
+
"dotenv": "^16.4.7",
|
|
20
|
+
"ethers": "^5.8.0"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@types/node": "^22.14.0",
|
|
24
|
+
"typescript": "^5.8.2"
|
|
25
|
+
},
|
|
26
|
+
"overrides": {},
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
}
|
|
30
30
|
}
|