Skip to content

Commit

Permalink
Add sepolia config
Browse files Browse the repository at this point in the history
  • Loading branch information
boyuan-chen committed Jan 9, 2024
1 parent b4e0a53 commit e07f776
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ const config: HardhatUserConfig = {
bobaoperaTestnet: {
url: 'https://testnet.bobaopera.boba.network',
},
sepolia: {
url: 'https://sepolia.gateway.tenderly.co',
},
},
mocha: {
timeout: 50000,
Expand Down Expand Up @@ -162,6 +165,7 @@ const config: HardhatUserConfig = {
'boba-mainnet': process.env.BOBA_MAINNET_KEY,
goerli: process.env.ETHERSCAN_GOERLI_KEY,
'boba-goerli': process.env.BOBA_MAINNET_KEY,
sepolia: process.env.ETHERSCAN_KEY,
moonbeam: process.env.MOONBEAM_KEY,
bobabeam: 'DEFAULT_KEY',
bobabase: 'DEFAULT_KEY',
Expand Down Expand Up @@ -288,6 +292,14 @@ const config: HardhatUserConfig = {
browserURL: 'https://blockexplorer.testnet.bobaopera.boba.network/',
},
},
{
network: 'sepolia',
chainId: 11155111,
urls: {
apiURL: 'https://api-sepolia.etherscan.io/api',
browserURL: 'https://sepolia.etherscan.io',
},
},
],
},
}
Expand Down
26 changes: 26 additions & 0 deletions packages/sdk/src/utils/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,20 @@ export const CONTRACT_ADDRESSES: {
},
l2: DEFAULT_L2_CONTRACT_ADDRESSES,
},
11155111: {
l1: {
BondManager: '0x6774dF4FcAe2619DCDa9d2678598b9DAF2Ce9a2A',
CanonicalTransactionChain: '0xD428939DA378f8fA0C51271D06ccD15285EF35CA',
L1MultiMessageRelayer: '0x6F3B7Eb9F33f49d887C56c7D77839392fBcf54B8',
L1MultiMessageRelayerFast: '0x6F3B7Eb9F33f49d887C56c7D77839392fBcf54B8',
L1CrossDomainMessengerFast: '0x77227dE5Ef0dDE6271331deA8eD72bE4D699C854',
AddressManager: '0x9bfDB898bf6D279629830F72d00c3918aB924072',
L1CrossDomainMessenger: '0x77227dE5Ef0dDE6271331deA8eD72bE4D699C854',
L1StandardBridge: '0x3C5Dd8BAAa2eD7a1df7F57F1eA4b9Dfde4770232',
StateCommitmentChain: '0xb0fC644EB29a8f4aE0b750f5b4f6922ec0420630',
},
l2: DEFAULT_L2_CONTRACT_ADDRESSES,
},
}

/**
Expand Down Expand Up @@ -548,6 +562,18 @@ export const BRIDGE_ADAPTER_DATA: {
l2Bridge: predeploys.L2StandardBridge,
},
},
11155111: {
Standard: {
Adapter: StandardBridgeAdapter,
l1Bridge: '0x3C5Dd8BAAa2eD7a1df7F57F1eA4b9Dfde4770232',
l2Bridge: predeploys.L2StandardBridge,
},
ETH: {
Adapter: ETHBridgeAdapter,
l1Bridge: '0x3C5Dd8BAAa2eD7a1df7F57F1eA4b9Dfde4770232',
l2Bridge: predeploys.L2StandardBridge,
},
},
}

// TODO: PR is big enough as-is, will add support for SNX in another PR
Expand Down

0 comments on commit e07f776

Please sign in to comment.