Skip to content

Commit 7529b05

Browse files
committed
chore(ethereum): add new networks
This change adds RPC configuration for Filecoin and Hedera and adds the contract addresses for Filecoin.
1 parent 69e4fee commit 7529b05

File tree

6 files changed

+65
-0
lines changed

6 files changed

+65
-0
lines changed

contract_manager/src/contracts/evm.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,9 @@ export class WormholeEvmContract extends WormholeContract {
269269
from: address,
270270
gas: 100000000,
271271
});
272+
// Some networks like Filecoin do not support the normal transaction type and need a type 2 transaction.
273+
// To send a type 2 transaction, remove the ``gasPrice`` field and add the `type` field with the value
274+
// `0x2` to the transaction configuration parameters.
272275
const result = await transactionObject.send({
273276
from: address,
274277
gas: gasEstiamte * GAS_ESTIMATE_MULTIPLIER,

contract_manager/store/chains/EvmChains.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,3 +408,23 @@
408408
rpcUrl: https://rpc.s2.testblast.io/$ENV_BLAST_S2_TESTNET_API_KEY
409409
networkId: 168587773
410410
type: EvmChain
411+
- id: hedera_testnet
412+
mainnet: false
413+
rpcUrl: https://testnet.hashio.io/api
414+
networkId: 296
415+
type: EvmChain
416+
- id: hedera
417+
mainnet: true
418+
rpcUrl: https://mainnet.hashio.io/api
419+
networkId: 295
420+
type: EvmChain
421+
- id: filecoin_calibration
422+
mainnet: false
423+
rpcUrl: https://rpc.ankr.com/filecoin_testnet
424+
networkId: 314159
425+
type: EvmChain
426+
- id: filecoin
427+
mainnet: true
428+
rpcUrl: https://rpc.ankr.com/filecoin
429+
networkId: 314
430+
type: EvmChain

contract_manager/store/contracts/EvmContracts.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,3 +244,9 @@
244244
- chain: zkfair
245245
address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729"
246246
type: EvmContract
247+
- chain: filecoin_calibration
248+
address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729"
249+
type: EvmContract
250+
- chain: filecoin
251+
address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729"
252+
type: EvmContract

governance/xc_admin/packages/xc_admin_common/src/chains.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ export const RECEIVER_CHAINS = {
5858
mode: 60039,
5959
bttc: 60040,
6060
zkfair: 60041,
61+
hedera: 60042,
62+
filecoin: 60043,
6163

6264
// Testnets as a separate chain ids (to use stable data sources and governance for them)
6365
injective_testnet: 60013,
@@ -114,6 +116,8 @@ export const RECEIVER_CHAINS = {
114116
movement_move_devnet: 50045,
115117
zkfair_testnet: 50046,
116118
blast_s2_testnet: 50047,
119+
hedera_testnet: 50048,
120+
filecoin_calibration: 50049, // Filecoin testnet
117121
};
118122

119123
// If there is any overlapping value the receiver chain will replace the wormhole
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": "0x8c7c1bbecc72d29e7a025b855a384f685efc3089078a21096dd3157a4fdb5882"
10+
},
11+
{
12+
"contractName": "PythUpgradable",
13+
"address": "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
14+
"transactionHash": "0x8afbfdc3e7669d76d25453bf0c8c6b8f5e1751eb9fc6d35bbd300541fd63b9d3"
15+
}
16+
]
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": "0xa504e9db88b136aaed24cc3fdcab56af757f1d7772ea2f7eb029ffaeb8ebb3e8"
10+
},
11+
{
12+
"contractName": "PythUpgradable",
13+
"address": "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
14+
"transactionHash": "0xe8d4788b95f3c6418e4300b7e671f83a0bdc2872bba0ead6daeda1ac7ac45e41"
15+
}
16+
]

0 commit comments

Comments
 (0)