diff --git a/target_chains/ethereum/contracts/.env.prod.linea b/target_chains/ethereum/contracts/.env.prod.linea new file mode 100644 index 00000000..03db7219 --- /dev/null +++ b/target_chains/ethereum/contracts/.env.prod.linea @@ -0,0 +1,5 @@ +MIGRATIONS_DIR=./migrations/prod-receiver +MIGRATIONS_NETWORK=linea +WORMHOLE_CHAIN_NAME=linea +CLUSTER=mainnet +VALID_TIME_PERIOD_SECONDS=60 diff --git a/target_chains/ethereum/contracts/deploy.sh b/target_chains/ethereum/contracts/deploy.sh index c92e97ee..070b2cbd 100755 --- a/target_chains/ethereum/contracts/deploy.sh +++ b/target_chains/ethereum/contracts/deploy.sh @@ -35,7 +35,7 @@ while [[ $# -ne 0 ]]; do echo "Skipping truffle migration on $NETWORK. If you wish to deploy a fresh contract read Deploying.md." else echo "Migrating..." - npx truffle migrate --network $MIGRATIONS_NETWORK + npx truffle migrate --network $MIGRATIONS_NETWORK --compile-none echo "Deployment to $NETWORK finished successfully" fi diff --git a/target_chains/ethereum/contracts/networks/59144.json b/target_chains/ethereum/contracts/networks/59144.json new file mode 100644 index 00000000..7355e36b --- /dev/null +++ b/target_chains/ethereum/contracts/networks/59144.json @@ -0,0 +1,16 @@ +[ + { + "contractName": "Migrations", + "address": "0xf5BBe9558F4Bf37F1eB82fb2CEdb1C775FA56832" + }, + { + "contractName": "WormholeReceiver", + "address": "0x8250f4aF4B972684F7b336503E2D6dFeDeB1487a", + "transactionHash": "0x1abb6fa68d85acb2f23835c54e6475014173ee29aa7594d9c66a99bba9e570ad" + }, + { + "contractName": "PythUpgradable", + "address": "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729", + "transactionHash": "0x2d68f659f650ff9a16c66e0b6dea012f054ea4a8b33c6be53934cf6686134c49" + } +] diff --git a/target_chains/ethereum/contracts/truffle-config.js b/target_chains/ethereum/contracts/truffle-config.js index 7eda8c9d..17bad25f 100644 --- a/target_chains/ethereum/contracts/truffle-config.js +++ b/target_chains/ethereum/contracts/truffle-config.js @@ -300,6 +300,17 @@ module.exports = { provider: payerProvider("https://rpc.goerli.linea.build"), network_id: 59140, }, + linea: { + provider: payerProvider( + `https://linea-mainnet.infura.io/v3/` + process.env.INFURA_KEY + ), + network_id: 59144, + verify: { + apiUrl: "http://explorer.linea.build/api", + explorerUrl: "https://explorer.linea.build/", + apiKey: "there_should_be_a_dummy_value_here_to_avoid_error", + }, + }, }, compilers: { diff --git a/target_chains/ethereum/sdk/js/src/index.ts b/target_chains/ethereum/sdk/js/src/index.ts index ad3d31e1..d1addf0f 100644 --- a/target_chains/ethereum/sdk/js/src/index.ts +++ b/target_chains/ethereum/sdk/js/src/index.ts @@ -56,4 +56,5 @@ export const CONTRACT_ADDR: Record = { wemix: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729", wemix_testnet: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729", linea_goerli: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729", + linea: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729", };