diff --git a/layer/utils/constant.ts b/layer/utils/constant.ts index ab6a2749..20252db1 100644 --- a/layer/utils/constant.ts +++ b/layer/utils/constant.ts @@ -46,7 +46,7 @@ export const ETHEREUM_CHAIN_ID: EthereumChainId = import.meta.env ? parseInt(import.meta.env.VITE_ETHEREUM_CHAIN_ID as string) : parseInt( (IS_TESTNET || IS_DEVNET - ? EthereumChainId.Goerli + ? EthereumChainId.Sepolia : EthereumChainId.Mainnet ).toString() ) @@ -81,6 +81,7 @@ export const ALCHEMY_KEY = import.meta.env.VITE_ALCHEMY_KEY export const COINGECKO_KEY = import.meta.env.VITE_COINGECKO_KEY export const ALCHEMY_KOVAN_KEY = import.meta.env.VITE_ALCHEMY_KOVAN_KEY export const ALCHEMY_GOERLI_KEY = import.meta.env.VITE_ALCHEMY_GOERLI_KEY +export const ALCHEMY_SEPOLIA_KEY = import.meta.env.VITE_ALCHEMY_SEPOLIA_KEY export const FEE_PAYER_PUB_KEY = (import.meta.env.VITE_FEE_PAYER_PUB_KEY || '') as string diff --git a/layer/wallet/alchemy.ts b/layer/wallet/alchemy.ts index d82de8b6..8d6ab069 100644 --- a/layer/wallet/alchemy.ts +++ b/layer/wallet/alchemy.ts @@ -4,6 +4,7 @@ import { IS_TESTNET, ALCHEMY_KEY, ALCHEMY_KOVAN_KEY, + ALCHEMY_SEPOLIA_KEY, ALCHEMY_GOERLI_KEY } from './../utils/constant' @@ -12,6 +13,7 @@ export const getRpcUrlsForChainIds = (): Record => { [EthereumChainId.Ganache]: 'http://localhost:8545', [EthereumChainId.HardHat]: 'http://localhost:8545', [EthereumChainId.Goerli]: `https://eth-goerli.alchemyapi.io/v2/${ALCHEMY_GOERLI_KEY}`, + [EthereumChainId.Sepolia]: `https://eth-sepolia.alchemyapi.io/v2/${ALCHEMY_SEPOLIA_KEY}`, [EthereumChainId.Kovan]: `https://eth-kovan.alchemyapi.io/v2/${ALCHEMY_KOVAN_KEY}`, [EthereumChainId.Mainnet]: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_KEY}`, [EthereumChainId.Injective]: '',