Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linea-mainnet: env file + jsclient constants #4196

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .env.linea.mainnet
Original file line number Diff line number Diff line change
@@ -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

6 changes: 3 additions & 3 deletions clients/js/src/consts/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions sdk/js/src/utils/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ const MAINNET = {
nft_bridge: undefined,
},
linea: {
core: undefined,
token_bridge: undefined,
core: "0x0C56aebD76E6D9e4a1Ec5e94F4162B4CBbf77b32",
token_bridge: "0x167E0752de62cb76EFc0Fbb165Bd342c6e2Bb251",
nft_bridge: undefined,
},
berachain: {
Expand Down
Loading