linea: Added constants and env file

This commit is contained in:
hernandp 2024-12-17 15:39:12 -03:00
parent 8624e5ae9a
commit d46d6364b2
No known key found for this signature in database
GPG Key ID: F9EC0F60C3C126AF
3 changed files with 28 additions and 5 deletions

23
.env.linea.mainnet Normal file
View File

@ -0,0 +1,23 @@
# Linea mainnet env
# Rename to .env
# Common config for forge deployment
RPC_URL=https://rpc.linea.build
FORGE_ARGS="--slow"
# Wormhole Core Migrations
INIT_SIGNERS=["0x58CC3AE5C097b213cE3c81979e1B9f9570746AA5"]
INIT_CHAIN_ID=38
INIT_GOV_CHAIN_ID=0x1
INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004
INIT_EVM_CHAIN_ID=59144
# Bridge Migrations
BRIDGE_INIT_CHAIN_ID=38
BRIDGE_INIT_GOV_CHAIN_ID=0x1
BRIDGE_INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004
# https://github.com/Consensys/linea-token-list/blob/main/json/linea-mainnet-token-shortlist.json#L826
BRIDGE_INIT_WETH=0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f
BRIDGE_INIT_FINALITY=1

View File

@ -188,9 +188,9 @@ const Mainnet = {
chain_id: undefined,
},
Linea: {
rpc: undefined,
key: undefined,
chain_id: undefined,
rpc: "https://rpc.linea.build",
key: getEnvVar("ETH_KEY"),
chain_id: 59144,
},
Berachain: {
rpc: undefined,

View File

@ -331,8 +331,8 @@ const MAINNET = {
nft_bridge: undefined,
},
linea: {
core: undefined,
token_bridge: undefined,
core: "0x0C56aebD76E6D9e4a1Ec5e94F4162B4CBbf77b32",
token_bridge: "0x167E0752de62cb76EFc0Fbb165Bd342c6e2Bb251",
nft_bridge: undefined,
},
berachain: {