Skip to content

Commit

Permalink
Merge pull request #6315 from wilsoncusack/wilson/add-base-mainnet
Browse files Browse the repository at this point in the history
Add Base Mainnet chain ID and contracts
  • Loading branch information
roninjin10 authored Jul 17, 2023
2 parents 4ff0aaa + 5fae48a commit 8fd7797
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/interfaces/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export enum L2ChainID {
OPTIMISM_BEDROCK_LOCAL_DEVNET = 901,
OPTIMISM_BEDROCK_ALPHA_TESTNET = 28528,
BASE_GOERLI = 84531,
BASE_MAINNET = 8453,
ZORA_GOERLI = 999,
ZORA_MAINNET = 7777777,
}
Expand Down
17 changes: 17 additions & 0 deletions src/utils/chain-constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export const DEPOSIT_CONFIRMATION_BLOCKS: {
[L2ChainID.OPTIMISM_BEDROCK_LOCAL_DEVNET]: 2 as const,
[L2ChainID.OPTIMISM_BEDROCK_ALPHA_TESTNET]: 12 as const,
[L2ChainID.BASE_GOERLI]: 12 as const,
[L2ChainID.BASE_MAINNET]: 50 as const,
[L2ChainID.ZORA_GOERLI]: 12 as const,
[L2ChainID.ZORA_MAINNET]: 50 as const,
}
Expand Down Expand Up @@ -218,6 +219,22 @@ export const CONTRACT_ADDRESSES: {
},
l2: DEFAULT_L2_CONTRACT_ADDRESSES,
},
[L2ChainID.BASE_MAINNET]: {
l1: {
AddressManager: '0x8EfB6B5c4767B09Dc9AA6Af4eAA89F749522BaE2' as const,
L1CrossDomainMessenger:
'0x866E82a600A1414e583f7F13623F1aC5d58b0Afa' as const,
L1StandardBridge: '0x3154Cf16ccdb4C6d922629664174b904d80F2C35' as const,
StateCommitmentChain:
'0x0000000000000000000000000000000000000000' as const,
CanonicalTransactionChain:
'0x0000000000000000000000000000000000000000' as const,
BondManager: '0x0000000000000000000000000000000000000000' as const,
OptimismPortal: '0x49048044D57e1C92A77f79988d21Fa8fAF74E97e' as const,
L2OutputOracle: '0x56315b90c40730925ec5485cf004d835058518A0' as const,
},
l2: DEFAULT_L2_CONTRACT_ADDRESSES,
},
// Zora Goerli
[L2ChainID.ZORA_GOERLI]: {
l1: {
Expand Down

0 comments on commit 8fd7797

Please sign in to comment.