Skip to content

Commit

Permalink
chore: add sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
bangjelkoski committed Mar 22, 2024
1 parent 0aa3afe commit 5316ba7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layer/utils/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)
Expand Down Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions layer/wallet/alchemy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
IS_TESTNET,
ALCHEMY_KEY,
ALCHEMY_KOVAN_KEY,
ALCHEMY_SEPOLIA_KEY,
ALCHEMY_GOERLI_KEY
} from './../utils/constant'

Expand All @@ -12,6 +13,7 @@ export const getRpcUrlsForChainIds = (): Record<EthereumChainId, string> => {
[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]: '',
Expand Down

0 comments on commit 5316ba7

Please sign in to comment.