Use latest @tornado/core
This commit is contained in:
parent
2723a15cb8
commit
fdda0ffd41
2
lib/config.js
vendored
2
lib/config.js
vendored
@ -70,6 +70,6 @@ function getRelayerConfig() {
|
|||||||
cacheDir: path_1.default.join(STATIC_DIR, './events'),
|
cacheDir: path_1.default.join(STATIC_DIR, './events'),
|
||||||
userEventsDir: path_1.default.join(USER_DIR, './events'),
|
userEventsDir: path_1.default.join(USER_DIR, './events'),
|
||||||
userTreeDir: path_1.default.join(USER_DIR, './trees'),
|
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),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
2
lib/services/sync.js
vendored
2
lib/services/sync.js
vendored
@ -119,7 +119,7 @@ async function syncGasPrice(syncManager, netId) {
|
|||||||
const [blockNumber, balance, gasPrice, l1Fee] = await Promise.all([
|
const [blockNumber, balance, gasPrice, l1Fee] = await Promise.all([
|
||||||
provider.getBlockNumber(),
|
provider.getBlockNumber(),
|
||||||
provider.getBalance(rewardAccount),
|
provider.getBalance(rewardAccount),
|
||||||
tornadoFeeOracle.gasPrice(),
|
tornadoFeeOracle.gasPrice(20),
|
||||||
tornadoFeeOracle.fetchL1OptimismFee(),
|
tornadoFeeOracle.fetchL1OptimismFee(),
|
||||||
]);
|
]);
|
||||||
cachedGasPrices[netId] = {
|
cachedGasPrices[netId] = {
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fastify/cors": "^10.0.1",
|
"@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",
|
"bloomfilter.js": "^1.0.2",
|
||||||
"dotenv": "^16.4.5",
|
"dotenv": "^16.4.5",
|
||||||
"fastify": "^5.0.0",
|
"fastify": "^5.0.0",
|
||||||
|
@ -98,6 +98,6 @@ export function getRelayerConfig(): RelayerConfig {
|
|||||||
cacheDir: path.join(STATIC_DIR, './events'),
|
cacheDir: path.join(STATIC_DIR, './events'),
|
||||||
userEventsDir: path.join(USER_DIR, './events'),
|
userEventsDir: path.join(USER_DIR, './events'),
|
||||||
userTreeDir: path.join(USER_DIR, './trees'),
|
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([
|
const [blockNumber, balance, gasPrice, l1Fee] = await Promise.all([
|
||||||
provider.getBlockNumber(),
|
provider.getBlockNumber(),
|
||||||
provider.getBalance(rewardAccount),
|
provider.getBalance(rewardAccount),
|
||||||
tornadoFeeOracle.gasPrice(),
|
tornadoFeeOracle.gasPrice(20),
|
||||||
tornadoFeeOracle.fetchL1OptimismFee(),
|
tornadoFeeOracle.fetchL1OptimismFee(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -690,9 +690,9 @@
|
|||||||
"@openzeppelin/contracts-v3" "npm:@openzeppelin/contracts@3.2.0-rc.0"
|
"@openzeppelin/contracts-v3" "npm:@openzeppelin/contracts@3.2.0-rc.0"
|
||||||
ethers "^6.13.4"
|
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"
|
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:
|
dependencies:
|
||||||
"@ensdomains/content-hash" "2.5.7"
|
"@ensdomains/content-hash" "2.5.7"
|
||||||
"@metamask/eth-sig-util" "^8.0.0"
|
"@metamask/eth-sig-util" "^8.0.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user