feat: query base backend (#7133)

This commit is contained in:
eddie 2023-08-10 11:05:23 -07:00 committed by GitHub
parent 1ea724609f
commit 5c3caa7143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -65,6 +65,7 @@ export const GQL_MAINNET_CHAINS = [
Chain.Arbitrum,
Chain.Bnb,
Chain.Avalanche,
Chain.Base,
] as const
const GQL_TESTNET_CHAINS = [Chain.EthereumGoerli, Chain.EthereumSepolia] as const
@ -150,6 +151,7 @@ const CHAIN_NAME_TO_CHAIN_ID: { [key in InterfaceGqlChain]: ChainId } = {
[Chain.Arbitrum]: ChainId.ARBITRUM_ONE,
[Chain.Bnb]: ChainId.BNB,
[Chain.Avalanche]: ChainId.AVALANCHE,
[Chain.Base]: ChainId.BASE,
}
export function isSupportedGQLChain(chain: Chain): chain is InterfaceGqlChain {
@ -184,8 +186,9 @@ export const BACKEND_SUPPORTED_CHAINS = [
Chain.Arbitrum,
Chain.Optimism,
Chain.Celo,
Chain.Base,
] as const
export const BACKEND_NOT_YET_SUPPORTED_CHAIN_IDS = [ChainId.BNB, ChainId.AVALANCHE, ChainId.BASE] as const
export const BACKEND_NOT_YET_SUPPORTED_CHAIN_IDS = [ChainId.BNB, ChainId.AVALANCHE] as const
export function getTokenDetailsURL({
address,