Skip to content

Commit

Permalink
💜 Add Sepolia chain
Browse files Browse the repository at this point in the history
  • Loading branch information
JustynaBroniszewska committed Mar 15, 2024
1 parent bf8d32c commit 5c2418b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ CLI flags
| | | | | | |
| | | | | | mainnet, development, kovan, ropsten, goerli, rinkeby, |
| | | | | | arbitrum, arbitrum_rinkeby, |
| | | | | | optimism, optimism_kovan |
| | | | | | optimism, optimism_kovan, sepolia, optimism_sepolia, |
| | | | | | |
| | | | | | or RPC URL e.g. ``https://infura.io/...`` |
+-----------------+-------+------+----------------+--------------------+-----------------------------------------------------------------+
Expand Down
10 changes: 10 additions & 0 deletions packages/mars/src/options/chain/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,13 @@ export const kovan: Chain = {
getBlockExplorerContractAddress: (contractAddress) => `https://kovan.etherscan.io/address/${contractAddress}`,
getEtherscanVerifierApi: () => 'https://api-kovan.etherscan.io/api',
}

export const sepolia: Chain = {
chainId: 11155111,
chainName: 'Sepolia',
getPublicRpc: () => 'https://gateway.tenderly.co/public/sepolia',
getInfuraRpc: (infuraApiKey) => `https://sepolia.infura.io/v3/${infuraApiKey}`,
getAlchemyRpc: (alchemyApiKey) => `https://eth-sepolia.alchemyapi.io/v2/${alchemyApiKey}`,
getBlockExplorerContractAddress: (contractAddress) => `https://sepolia.etherscan.io/address/${contractAddress}`,
getEtherscanVerifierApi: () => 'https://api-sepolia.etherscan.io/api',
}
11 changes: 11 additions & 0 deletions packages/mars/src/options/chain/optimism.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,14 @@ export const optimism_goerli: Chain = {
`https://goerli-optimism.etherscan.io/address/${contractAddress}`,
getEtherscanVerifierApi: () => 'https://api-goerli-optimism.etherscan.io/api',
}

export const optimism_sepolia: Chain = {
chainId: 11155420,
chainName: 'Optimism Sepolia',
getPublicRpc: () => 'https://sepolia.optimism.io',
getInfuraRpc: (infuraApiKey) => `https://optimism-sepolia.infura.io/v3/${infuraApiKey}`,
getAlchemyRpc: (alchemyApiKey) => `https://opt-sepolia.g.alchemy.com/v2/${alchemyApiKey}`,
getBlockExplorerContractAddress: (contractAddress) =>
`https://sepolia-optimism.etherscan.io/address/${contractAddress}`,
getEtherscanVerifierApi: () => 'https://api-sepolia-optimistic.etherscan.io/api',
}

0 comments on commit 5c2418b

Please sign in to comment.