Bump gas-price-oracle lib to resolve oracle CORS issues

This commit is contained in:
Theo 2023-07-06 16:40:36 -07:00
parent c3bef6af31
commit b5afb8d558
4 changed files with 5830 additions and 5774 deletions

1
.npmrc Normal file

@ -0,0 +1 @@
@tornado:registry=https://git.tornado.ws/api/packages/tornado-packages/npm/

@ -35,7 +35,7 @@
"file-saver": "^2.0.5",
"find-replacement-tx": "^1.2.1",
"fixed-merkle-tree": "0.5.1",
"gas-price-oracle": "0.4.4",
"@tornado/gas-price-oracle": "^0.5.3",
"graphql": "^15.6.1",
"idb": "6.0.0",
"jszip": "^3.7.1",

@ -1,5 +1,5 @@
import { GasPriceOracle } from 'gas-price-oracle'
import { GasPrice } from 'gas-price-oracle/lib/types'
import { GasPriceOracle } from '@tornado/gas-price-oracle'
import { GasPrice } from '@/types'
import { ChainId } from '@/types'
import { numbers, RPC_LIST } from '@/constants'
@ -26,7 +26,7 @@ const getGasPrice = async (chainId: ChainId): Promise<GasPrice> => {
timeout: TEN_SECOND,
defaultRpc: RPC_LIST[chainId],
})
const result = await instance.gasPrices()
const result = (await instance.gasPrices({ isLegacy: true })) as GasPrice
if (chainId === ChainId.XDAI || chainId === ChainId.MAINNET) {
return {

11595
yarn.lock

File diff suppressed because it is too large Load Diff