diff --git a/packages/core/src/constants/rpcs.ts b/packages/core/src/constants/rpcs.ts index a8a114d45d..49fdf7d35d 100644 --- a/packages/core/src/constants/rpcs.ts +++ b/packages/core/src/constants/rpcs.ts @@ -61,9 +61,15 @@ export const infuraRpcUrls: Record = { arbitrumRinkeby: 'https://arbitrum-rinkeby.infura.io/v3', } as const -type AnkrChains = Extract +type AnkrChains = Extract< + ChainName, + 'mainnet' | 'ropsten' | 'rinkeby' | 'goerli' | 'polygon' | 'arbitrum' +> export const ankrRpcUrls: Record = { mainnet: 'https://rpc.ankr.com/eth', + ropsten: 'htps://rpc.ankr.com/eth_ropsten', + rinkeby: 'https://rpc.ankr.com/eth_rinkeby', + goerli: 'https://rpc.ankr.com/eth_goerli', polygon: 'https://rpc.ankr.com/polygon', arbitrum: 'https://rpc.ankr.com/arbitrum', } as const