Use latest @tornado/core

This commit is contained in:
Tornado Contrib 2024-11-23 16:05:28 +00:00
parent 2723a15cb8
commit fdda0ffd41
Signed by: tornadocontrib
GPG Key ID: 60B4DF1A076C64B1
6 changed files with 7 additions and 7 deletions

2
lib/config.js vendored

@ -70,6 +70,6 @@ function getRelayerConfig() {
cacheDir: path_1.default.join(STATIC_DIR, './events'),
userEventsDir: path_1.default.join(USER_DIR, './events'),
userTreeDir: path_1.default.join(USER_DIR, './trees'),
syncInterval: Number(process_1.default.env.SYNC_INTERVAL || 180),
syncInterval: Number(process_1.default.env.SYNC_INTERVAL || 120),
};
}

@ -119,7 +119,7 @@ async function syncGasPrice(syncManager, netId) {
const [blockNumber, balance, gasPrice, l1Fee] = await Promise.all([
provider.getBlockNumber(),
provider.getBalance(rewardAccount),
tornadoFeeOracle.gasPrice(),
tornadoFeeOracle.gasPrice(20),
tornadoFeeOracle.fetchL1OptimismFee(),
]);
cachedGasPrices[netId] = {

@ -14,7 +14,7 @@
"license": "MIT",
"dependencies": {
"@fastify/cors": "^10.0.1",
"@tornado/core": "git+https://git.tornado.ws/tornadocontrib/tornado-core.git#68fcf07c2a344a1f7f74895301f362aa059b53e2",
"@tornado/core": "git+https://git.tornado.ws/tornadocontrib/tornado-core.git#23378921954f04fc4f48ae3b95f5a05d5bc953ce",
"bloomfilter.js": "^1.0.2",
"dotenv": "^16.4.5",
"fastify": "^5.0.0",

@ -98,6 +98,6 @@ export function getRelayerConfig(): RelayerConfig {
cacheDir: path.join(STATIC_DIR, './events'),
userEventsDir: path.join(USER_DIR, './events'),
userTreeDir: path.join(USER_DIR, './trees'),
syncInterval: Number(process.env.SYNC_INTERVAL || 180),
syncInterval: Number(process.env.SYNC_INTERVAL || 120),
};
}

@ -263,7 +263,7 @@ export async function syncGasPrice(syncManager: SyncManager, netId: NetIdType) {
const [blockNumber, balance, gasPrice, l1Fee] = await Promise.all([
provider.getBlockNumber(),
provider.getBalance(rewardAccount),
tornadoFeeOracle.gasPrice(),
tornadoFeeOracle.gasPrice(20),
tornadoFeeOracle.fetchL1OptimismFee(),
]);

@ -690,9 +690,9 @@
"@openzeppelin/contracts-v3" "npm:@openzeppelin/contracts@3.2.0-rc.0"
ethers "^6.13.4"
"@tornado/core@git+https://git.tornado.ws/tornadocontrib/tornado-core.git#68fcf07c2a344a1f7f74895301f362aa059b53e2":
"@tornado/core@git+https://git.tornado.ws/tornadocontrib/tornado-core.git#23378921954f04fc4f48ae3b95f5a05d5bc953ce":
version "1.0.19"
resolved "git+https://git.tornado.ws/tornadocontrib/tornado-core.git#68fcf07c2a344a1f7f74895301f362aa059b53e2"
resolved "git+https://git.tornado.ws/tornadocontrib/tornado-core.git#23378921954f04fc4f48ae3b95f5a05d5bc953ce"
dependencies:
"@ensdomains/content-hash" "2.5.7"
"@metamask/eth-sig-util" "^8.0.0"