Skip to content

Commit c86e4f2

Browse files
authored
[eth] Add linea (#956)
* [eth] Add linea * Fix pre-commit
1 parent c732fcf commit c86e4f2

File tree

5 files changed

+34
-1
lines changed

5 files changed

+34
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
MIGRATIONS_DIR=./migrations/prod-receiver
2+
MIGRATIONS_NETWORK=linea
3+
WORMHOLE_CHAIN_NAME=linea
4+
CLUSTER=mainnet
5+
VALID_TIME_PERIOD_SECONDS=60

target_chains/ethereum/contracts/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ while [[ $# -ne 0 ]]; do
3535
echo "Skipping truffle migration on $NETWORK. If you wish to deploy a fresh contract read Deploying.md."
3636
else
3737
echo "Migrating..."
38-
npx truffle migrate --network $MIGRATIONS_NETWORK
38+
npx truffle migrate --network $MIGRATIONS_NETWORK --compile-none
3939
echo "Deployment to $NETWORK finished successfully"
4040
fi
4141

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"contractName": "Migrations",
4+
"address": "0xf5BBe9558F4Bf37F1eB82fb2CEdb1C775FA56832"
5+
},
6+
{
7+
"contractName": "WormholeReceiver",
8+
"address": "0x8250f4aF4B972684F7b336503E2D6dFeDeB1487a",
9+
"transactionHash": "0x1abb6fa68d85acb2f23835c54e6475014173ee29aa7594d9c66a99bba9e570ad"
10+
},
11+
{
12+
"contractName": "PythUpgradable",
13+
"address": "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
14+
"transactionHash": "0x2d68f659f650ff9a16c66e0b6dea012f054ea4a8b33c6be53934cf6686134c49"
15+
}
16+
]

target_chains/ethereum/contracts/truffle-config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,17 @@ module.exports = {
300300
provider: payerProvider("https://rpc.goerli.linea.build"),
301301
network_id: 59140,
302302
},
303+
linea: {
304+
provider: payerProvider(
305+
`https://linea-mainnet.infura.io/v3/` + process.env.INFURA_KEY
306+
),
307+
network_id: 59144,
308+
verify: {
309+
apiUrl: "http://explorer.linea.build/api",
310+
explorerUrl: "https://explorer.linea.build/",
311+
apiKey: "there_should_be_a_dummy_value_here_to_avoid_error",
312+
},
313+
},
303314
},
304315

305316
compilers: {

target_chains/ethereum/sdk/js/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,5 @@ export const CONTRACT_ADDR: Record<string, string> = {
5656
wemix: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
5757
wemix_testnet: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
5858
linea_goerli: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
59+
linea: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
5960
};

0 commit comments

Comments
 (0)