@clonegod/ttd-bsc-common 1.0.49 → 1.0.51

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.
@@ -92,6 +92,7 @@ class SimpleRedisClient {
92
92
  }
93
93
  else {
94
94
  (0, dist_1.log_warn)(`withLock failed: lock_key=${lock_key}, lock_value=${lock_value}, retry times=${retries}, took ${Date.now() - first_try_time}ms`);
95
+ throw new Error(`get lock for ${lock_key} failed`);
95
96
  }
96
97
  }
97
98
  });
@@ -65,7 +65,7 @@ class TransactionSender {
65
65
  },
66
66
  {
67
67
  name: 'Blxr - sendTransaction',
68
- enable: process.env.SEND_TX_BLXR_TX === 'true',
68
+ enable: process.env.SEND_TX_BLXR === 'true',
69
69
  send: () => __awaiter(this, void 0, void 0, function* () {
70
70
  const tipTx = yield eoa_tip_transaction(_1.BSC_EOA_ADDRESS.BLXR);
71
71
  this.blxrProxy.sendTransaction(pair, signedMainTx, tipTx);
@@ -20,10 +20,10 @@ export interface OnchainPoolChangeEvent {
20
20
  transactionHash: string;
21
21
  amount0: string;
22
22
  amount1: string;
23
- reserve0: BigInt;
24
- reserve1: BigInt;
23
+ reserve0: BigInt | string;
24
+ reserve1: BigInt | string;
25
25
  tick: number;
26
- sqrtPriceX96: BigInt;
27
- liquidity: BigInt;
26
+ sqrtPriceX96: BigInt | string;
27
+ liquidity: BigInt | string;
28
28
  };
29
29
  }
package/package.json CHANGED
@@ -1,30 +1,30 @@
1
1
  {
2
- "name": "@clonegod/ttd-bsc-common",
3
- "version": "1.0.49",
4
- "description": "BSC 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": "npx tsc --outDir ./dist",
14
- "push": "npm run build && npm publish"
15
- },
16
- "dependencies": {
17
- "@clonegod/ttd-core": "2.0.80",
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
- }
2
+ "name": "@clonegod/ttd-bsc-common",
3
+ "version": "1.0.51",
4
+ "description": "BSC 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": "npx tsc --outDir ./dist",
14
+ "push": "npm run build && npm publish"
15
+ },
16
+ "dependencies": {
17
+ "@clonegod/ttd-core": "2.0.83",
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
  }