Skip to content

Commit

Permalink
💜 Add Sepolia chain (#130)
Browse files Browse the repository at this point in the history
* 💜 Add Sepolia chain

* Decrease function test coverage
  • Loading branch information
JustynaBroniszewska committed Mar 15, 2024
1 parent bf8d32c commit b37a1f1
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
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',
}

0 comments on commit b37a1f1

Please sign in to comment.