@clonegod/ttd-base-common 1.0.17 → 1.0.20

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";
@@ -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',
@@ -8,8 +8,8 @@ export declare class SimpleRedisClient {
8
8
  constructor(lock_prefix: string);
9
9
  getRedisClient(): Promise<RedisClientType>;
10
10
  private getLockKey;
11
- private acquireLock;
12
- private releaseLock;
11
+ acquireLock(lock_key: string, lock_value: string, expireSeconds?: number): Promise<boolean>;
12
+ releaseLock(lock_key: string, lock_value: string): Promise<boolean>;
13
13
  withLock<T>(lock_identifier: string, callback: () => Promise<T>, release_lock_delay_ms?: number): Promise<T>;
14
14
  getValue(key: string): Promise<string>;
15
15
  setValue(key: string, value: string, expireSeconds: number): Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-base-common",
3
- "version": "1.0.17",
3
+ "version": "1.0.20",
4
4
  "description": "Base 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.85",
17
+ "@clonegod/ttd-core": "2.0.90",
18
18
  "axios": "^1.12.0",
19
19
  "dotenv": "^16.4.7",
20
20
  "ethers": "^5.8.0"