Skip to content

Commit

Permalink
Add ArbSepolia parent chain
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstph-dvx committed May 14, 2024
1 parent 4993fbc commit 8f9c002
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
INFURA_KEY=
ARB_ONE_RPC="https://arbitrum.infura.io/v3/${INFURA_KEY}"
ARB_SEPOLIA_RPC="https://arbitrum-sepolia.infura.io/v3/${INFURA_KEY}"
MAINNET_RPC="https://mainnet.infura.io/v3/${INFURA_KEY}"
GOERLI_RPC="https://goerli.infura.io/v3/${INFURA_KEY}"
SEPOLIA_RPC="https://sepolia.infura.io/v3/${INFURA_KEY}"
l2NetworkID=42161
PORT=3000
1 change: 1 addition & 0 deletions .github/workflows/generate-token-lists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ jobs:
MAINNET_RPC: 'https://mainnet.infura.io/v3/${{ secrets.INFURA_KEY }}'
SEPOLIA_RPC: 'https://sepolia.infura.io/v3/${{ secrets.INFURA_KEY }}'
ARB_ONE_RPC: 'https://arbitrum-mainnet.infura.io/v3/${{ secrets.INFURA_KEY }}'
ARB_SEPOLIA_RPC: 'https://arbitrum-sepolia.infura.io/v3/${{ secrets.INFURA_KEY }}'
steps:
- uses: actions/checkout@v3

Expand Down
4 changes: 0 additions & 4 deletions src/customNetworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ const xai: L2Network = {
depositTimeout: 1800000,
blockTime: arbConstants.ARB_MINIMUM_BLOCK_TIME_IN_SECONDS,
};

const rari: L2Network = {
chainID: 1380012617,
confirmPeriodBlocks: 45818,
Expand Down Expand Up @@ -81,7 +80,6 @@ const rari: L2Network = {
depositTimeout: 1800000,
blockTime: arbConstants.ARB_MINIMUM_BLOCK_TIME_IN_SECONDS,
};

const muster: L2Network = {
chainID: 4078,
confirmPeriodBlocks: 7200,
Expand Down Expand Up @@ -236,7 +234,6 @@ const xaiTestnet: L2Network = {
depositTimeout: 1800000,
blockTime: arbConstants.ARB_MINIMUM_BLOCK_TIME_IN_SECONDS,
};

const dodochainTestnet: L2Network = {
chainID: 53457,
confirmPeriodBlocks: 150,
Expand Down Expand Up @@ -275,7 +272,6 @@ const dodochainTestnet: L2Network = {
depositTimeout: 1800000,
blockTime: arbConstants.ARB_MINIMUM_BLOCK_TIME_IN_SECONDS,
};

const l3xTestnet: L2Network = {
chainID: 12325,
confirmPeriodBlocks: 150,
Expand Down
1 change: 1 addition & 0 deletions src/lib/instantiate_bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const getNetworkConfig = async () => {
if (childNetwork.partnerChainID === 1) return 'MAINNET_RPC';
else if (childNetwork.partnerChainID === 11155111) return 'SEPOLIA_RPC';
else if (childNetwork.partnerChainID === 42161) return 'ARB_ONE_RPC';
else if (childNetwork.partnerChainID === 421614) return 'ARB_SEPOLIA_RPC';
throw new Error('No parent chain RPC detected');
})();
const parentRpc = process.env[expectedEnv];
Expand Down

0 comments on commit 8f9c002

Please sign in to comment.