Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💜 Add Sepolia chain #130

Merged
merged 2 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion packages/mars/.nycrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"check-coverage": true,
"branches": 63,
"lines": 69,
"functions": 53,
"functions": 45,
"statements": 69
}
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',
}
Loading