From 57a0137eedbdd6e78cf313648f83ad78604433ac Mon Sep 17 00:00:00 2001 From: Wilson Cusack Date: Mon, 17 Jul 2023 13:47:17 -0400 Subject: [PATCH 1/3] add BASE_MAINNET to L2ChainID enum --- packages/sdk/src/interfaces/types.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/sdk/src/interfaces/types.ts b/packages/sdk/src/interfaces/types.ts index 04913906f818..ce6851e956ac 100644 --- a/packages/sdk/src/interfaces/types.ts +++ b/packages/sdk/src/interfaces/types.ts @@ -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, } From 988c946b7c38b89233b3257fc751da54dbf107ad Mon Sep 17 00:00:00 2001 From: Wilson Cusack Date: Mon, 17 Jul 2023 14:04:03 -0400 Subject: [PATCH 2/3] add Base Mainnet contracts to chain-constants --- packages/sdk/src/utils/chain-constants.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/packages/sdk/src/utils/chain-constants.ts b/packages/sdk/src/utils/chain-constants.ts index 9555c46169cc..c49c93b19fe0 100644 --- a/packages/sdk/src/utils/chain-constants.ts +++ b/packages/sdk/src/utils/chain-constants.ts @@ -218,6 +218,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: { From 78ddf84506716a9c9ce26d06f49f6f6931d1a6cb Mon Sep 17 00:00:00 2001 From: Wilson Cusack Date: Mon, 17 Jul 2023 14:13:49 -0400 Subject: [PATCH 3/3] add confirmation blocks --- packages/sdk/src/utils/chain-constants.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/sdk/src/utils/chain-constants.ts b/packages/sdk/src/utils/chain-constants.ts index c49c93b19fe0..c8853c051da2 100644 --- a/packages/sdk/src/utils/chain-constants.ts +++ b/packages/sdk/src/utils/chain-constants.ts @@ -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, }