Skip to content

Commit

Permalink
Update key and contract addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
boyuan-chen committed May 18, 2024
1 parent 9138984 commit 2c31b77
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
20 changes: 9 additions & 11 deletions integration-tests/test/alt-l2/shared/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ export const isLiveNetwork = () => {
export const HARDHAT_CHAIN_ID = 31337
export const AVALANCHE_CHAIN_ID = 43112
export const BNB_CHAIN_ID = 99
export const NON_ETHEREUM_CHAIN = [
AVALANCHE_CHAIN_ID,
BNB_CHAIN_ID,
]
export const NON_ETHEREUM_CHAIN = [AVALANCHE_CHAIN_ID, BNB_CHAIN_ID]
export const DEFAULT_TEST_GAS_L1 = 330_000
export const DEFAULT_TEST_GAS_L2 = 1_300_000
export const ON_CHAIN_GAS_PRICE = 'onchain'
Expand All @@ -40,7 +37,7 @@ export const L2_BOBA_ADDRESS = predeploys.L2_BOBA_ALT_L1
// The default gas limit for L1 transaction is 9_000_000
export const GAS_LIMIT_OPTION = {
43112: 8_000_000,
99: 1_000_000,
99: 8_000_000,
}

const gasPriceValidator = makeValidator((gasPrice) => {
Expand Down Expand Up @@ -79,24 +76,24 @@ const env = cleanEnv(process.env, {

PRIVATE_KEY: str({
default:
'0x5fb92d6e98884f76de468fa3f6278f8807c48bebc13595d45af5bdc4da702133',
'0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
}),
//0x8626f6940e2eb28930efb4cef49b2d1f2c9c1199
GAS_PRICE_ORACLE_PRIVATE_KEY: str({
default:
'0x96b8a38e12e1a31dee1eab2fffdf9d9990045f5b37e44d8cc27766ef294acf18',
'0xdf57089febbacf7ba0bc227dafbffa9fc08a93fdc68e1e42411a14efcf23656e',
}),
PRIVATE_KEY_2: str({
default:
'0xb9d2ea9a615f3165812e8d44de0d24da9bbd164b65c4f0573e1ce2c8dbd9c8df',
'0x8b3a350cf5c34c9194ca85829a2df0ec3153be0318b5e2d3348e872092edffba',
}),
PRIVATE_KEY_3: str({
default:
'0x96b8a38e12e1a31dee1eab2fffdf9d9990045f5b37e44d8cc27766ef294acf18',
'0x92db14e403b83dfe3df233f83dfa3a0d7096f21ca9b0d6d6b8d88b2b4ec1564e',
}),
PRIVATE_KEY_4: str({
default:
'0x96b8a38e12e1a31dee1eab2fffdf9d9990045f5b37e44d8cc27766ef294acf18',
'0xdf57089febbacf7ba0bc227dafbffa9fc08a93fdc68e1e42411a14efcf23656e',
}),
BOBALINK_PRIVATE_KEY: str({
default:
Expand Down Expand Up @@ -438,7 +435,8 @@ export const getFilteredLogIndex = async (
(log) =>
log.topics.length > 0 &&
log.topics[0] === eventTopic &&
(!emitterAddress || log.address.toLowerCase() === emitterAddress.toLowerCase())
(!emitterAddress ||
log.address.toLowerCase() === emitterAddress.toLowerCase())
)

return filteredLogs[0].logIndex
Expand Down
16 changes: 8 additions & 8 deletions packages/sdk/src/utils/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,15 @@ export const CONTRACT_ADDRESSES: {
// BNB local
99: {
l1: {
AddressManager: '0xC194E4CFa59D2DfC520217dA22E23DF8D4658a37',
L1CrossDomainMessenger: '0x8b8656D5d37C3DC620B80817972E0d9a5267761b',
L1CrossDomainMessengerFast: '0x07B43F437c3A13eeb17EF2beBea046e61502151f',
AddressManager: '0x5FbDB2315678afecb367f032d93F642f64180aa3',
L1CrossDomainMessenger: '0xa85233C63b9Ee964Add6F2cffe00Fd84eb32338f',
L1CrossDomainMessengerFast: '4EE6eCAD1c2Dae9f525404De8555724e3c35d07B',
L1StandardBridge: '0x285766B642eAA86b8052817c827E4472cDb3dd18',
StateCommitmentChain: '0x57a243B34F9232515Fa9FD8D4c2daFd611cF1BCA',
CanonicalTransactionChain: '0x3717E342Bc746c01244fb40e47521945091238ce',
BondManager: '0xcF8dDe2accE564024B4b92ef7db81B0e6698F07f',
L1MultiMessageRelayer: '0x90f502229E1fAa70cCf900B2D14595a5C55B3bE8',
L1MultiMessageRelayerFast: '0x64160054BdD6e53915C221cBBfAAbaf1f80c7f20',
StateCommitmentChain: '0x9A9f2CCfdE556A7E9Ff0848998Aa4a0CFD8863AE',
CanonicalTransactionChain: '0x0B306BF915C4d645ff596e518fAf3F9669b97016',
BondManager: '0x3Aa5ebB10DC797CAC828524e59A333d0A371443c',
L1MultiMessageRelayer: '0x9E545E3C0baAB3E08CdfD552C960A1050f373042',
L1MultiMessageRelayerFast: '0x22753E4264FDDc6181dc7cce468904A80a363E44',
},
l2: DEFAULT_L2_CONTRACT_ADDRESSES,
},
Expand Down

0 comments on commit 2c31b77

Please sign in to comment.