@clonegod/ttd-bsc-common 1.0.32 → 1.0.34

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,7 +1,10 @@
1
1
  export declare const BSC_CHAIN_ID = 56;
2
2
  export declare const WBNB_ADDRESS = "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c";
3
+ export declare const Q96: bigint;
3
4
  export declare const PANCAKE_V2_ROUTER_ADDRESS = "0x10ED43C718714eb63d5aA57B78B54704E256024E";
4
- export declare const PANCAKE_V3_SMART_ROUTER_ADDRESS = "0x13f4EA83D0bd40E75C8222255bc855a974568Dd4";
5
+ export declare const PANCAKE_V3_QUOTER_ADDRESS = "0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997";
6
+ export declare const PANCAKE_V3_ROUTER_ADDRESS = "0x1b81D678ffb9C0263b24A97847620C99d213eB14";
7
+ export declare const PANCAKE_SMART_ROUTER_ADDRESS = "0x13f4EA83D0bd40E75C8222255bc855a974568Dd4";
5
8
  export declare const PANCAKE_PERMIT2_ADDRESS = "0x31c2F6fcFf4F8759b3Bd5Bf0e1084A055615c768";
6
9
  export declare const PANCAKE_UNIVERSAL_ROUTER_ADDRESS = "0x1A0A18AC4BECDDbd6389559687d1A73d8927E416";
7
10
  export declare const EVENT_NAMES: {
@@ -1,10 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PancakeV3PoolABI = exports.EVENT_SIGNATURES = exports.EVENT_NAMES = exports.PANCAKE_UNIVERSAL_ROUTER_ADDRESS = exports.PANCAKE_PERMIT2_ADDRESS = exports.PANCAKE_V3_SMART_ROUTER_ADDRESS = exports.PANCAKE_V2_ROUTER_ADDRESS = exports.WBNB_ADDRESS = exports.BSC_CHAIN_ID = void 0;
3
+ exports.PancakeV3PoolABI = exports.EVENT_SIGNATURES = exports.EVENT_NAMES = exports.PANCAKE_UNIVERSAL_ROUTER_ADDRESS = exports.PANCAKE_PERMIT2_ADDRESS = exports.PANCAKE_SMART_ROUTER_ADDRESS = exports.PANCAKE_V3_ROUTER_ADDRESS = exports.PANCAKE_V3_QUOTER_ADDRESS = exports.PANCAKE_V2_ROUTER_ADDRESS = exports.Q96 = exports.WBNB_ADDRESS = exports.BSC_CHAIN_ID = void 0;
4
4
  exports.BSC_CHAIN_ID = 56;
5
5
  exports.WBNB_ADDRESS = '0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c';
6
+ exports.Q96 = BigInt(Math.pow(2, 96));
6
7
  exports.PANCAKE_V2_ROUTER_ADDRESS = '0x10ED43C718714eb63d5aA57B78B54704E256024E';
7
- exports.PANCAKE_V3_SMART_ROUTER_ADDRESS = '0x13f4EA83D0bd40E75C8222255bc855a974568Dd4';
8
+ exports.PANCAKE_V3_QUOTER_ADDRESS = '0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997';
9
+ exports.PANCAKE_V3_ROUTER_ADDRESS = '0x1b81D678ffb9C0263b24A97847620C99d213eB14';
10
+ exports.PANCAKE_SMART_ROUTER_ADDRESS = '0x13f4EA83D0bd40E75C8222255bc855a974568Dd4';
8
11
  exports.PANCAKE_PERMIT2_ADDRESS = '0x31c2F6fcFf4F8759b3Bd5Bf0e1084A055615c768';
9
12
  exports.PANCAKE_UNIVERSAL_ROUTER_ADDRESS = '0x1A0A18AC4BECDDbd6389559687d1A73d8927E416';
10
13
  exports.EVENT_NAMES = {
@@ -1,4 +1,4 @@
1
- import { EnvArgs } from "@clonegod/ttd-core/dist/app_config/env_args";
1
+ import { EnvArgs } from "@clonegod/ttd-core/dist";
2
2
  export declare class BscEnvArgs extends EnvArgs {
3
3
  large_trade_threshold_usd: number;
4
4
  gas_price_gwei: number;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BscEnvArgs = void 0;
4
- const env_args_1 = require("@clonegod/ttd-core/dist/app_config/env_args");
4
+ const dist_1 = require("@clonegod/ttd-core/dist");
5
5
  const decimal_js_1 = require("decimal.js");
6
- class BscEnvArgs extends env_args_1.EnvArgs {
6
+ class BscEnvArgs extends dist_1.EnvArgs {
7
7
  constructor() {
8
8
  super();
9
9
  this.large_trade_threshold_usd = parseInt(process.env.LARGE_TRADE_THRESHOLD_USD || '500');
package/dist/index.d.ts CHANGED
@@ -5,3 +5,4 @@ export * from './trade';
5
5
  export * from './types';
6
6
  export * from './utils';
7
7
  export * from './redis';
8
+ export * from './ws';
package/dist/index.js CHANGED
@@ -21,3 +21,4 @@ __exportStar(require("./trade"), exports);
21
21
  __exportStar(require("./types"), exports);
22
22
  __exportStar(require("./utils"), exports);
23
23
  __exportStar(require("./redis"), exports);
24
+ __exportStar(require("./ws"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-bsc-common",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
4
4
  "description": "BSC common library",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",
@@ -14,7 +14,7 @@
14
14
  "push": "npm run build && npm publish"
15
15
  },
16
16
  "dependencies": {
17
- "@clonegod/ttd-core": "2.0.36",
17
+ "@clonegod/ttd-core": "2.0.46",
18
18
  "axios": "^1.8.4",
19
19
  "dotenv": "^16.4.7",
20
20
  "ethers": "^5.8.0"