Skip to content

Commit 99f6dd9

Browse files
authored
chore(ethereum): add new networks (#1288)
This change adds the configuration of the following new networks: - Hedera new testnet and mainnet - Injective inEVM tesntet and mainnet - IDEX xChain testnet It also updates the ethereum sdk README to outline Hedera special behaviour around update fees.
1 parent 6771c2c commit 99f6dd9

File tree

7 files changed

+43
-6
lines changed

7 files changed

+43
-6
lines changed

contract_manager/store/chains/EvmChains.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,3 +458,18 @@
458458
rpcUrl: https://sepolia-dela.deperp.com
459459
networkId: 9393
460460
type: EvmChain
461+
- id: idex_xchain_testnet
462+
mainnet: false
463+
rpcUrl: https://xchain-testnet-rpc.idex.io
464+
networkId: 671276500
465+
type: EvmChain
466+
- id: injective_inevm_testnet
467+
mainnet: false
468+
rpcUrl: https://inevm-testnet.rpc.caldera.xyz/http
469+
networkId: 2424
470+
type: EvmChain
471+
- id: injective_inevm
472+
mainnet: true
473+
rpcUrl: https://inevm.calderachain.xyz/http
474+
networkId: 2525
475+
type: EvmChain

contract_manager/store/contracts/EvmPriceFeedContracts.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,6 @@
253253
- chain: zetachain
254254
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
255255
type: EvmPriceFeedContract
256-
- chain: hedera_testnet
257-
address: "0x7a7F2493c578796ABfBA15Ce2e914A7A819979B7"
258-
type: EvmPriceFeedContract
259256
- chain: sei_evm_devnet
260257
address: "0x23f0e8FAeE7bbb405E7A7C3d60138FCfd43d7509"
261258
type: EvmPriceFeedContract
@@ -271,3 +268,18 @@
271268
- chain: lightlink_phoenix
272269
address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729"
273270
type: EvmPriceFeedContract
271+
- chain: idex_xchain_testnet
272+
address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729"
273+
type: EvmPriceFeedContract
274+
- chain: injective_inevm_testnet
275+
address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729"
276+
type: EvmPriceFeedContract
277+
- chain: injective_inevm
278+
address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729"
279+
type: EvmPriceFeedContract
280+
- chain: hedera_testnet
281+
address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729"
282+
type: EvmPriceFeedContract
283+
- chain: hedera
284+
address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729"
285+
type: EvmPriceFeedContract

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export const RECEIVER_CHAINS = {
6161
hedera: 60042,
6262
filecoin: 60043,
6363
lightlink_phoenix: 60044,
64+
injective_inevm: 60045,
6465

6566
// Testnets as a separate chain ids (to use stable data sources and governance for them)
6667
injective_testnet: 60013,
@@ -123,6 +124,8 @@ export const RECEIVER_CHAINS = {
123124
sei_evm_devnet: 50051,
124125
fantom_sonic_testnet: 50052,
125126
dela_deperp_testnet: 50053,
127+
injective_inevm_testnet: 50054,
128+
idex_xchain_testnet: 50055,
126129
};
127130

128131
// If there is any overlapping value the receiver chain will replace the wormhole

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

target_chains/ethereum/sdk/js/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,11 @@ const priceUpdateData = await connection.getPriceFeedsUpdateData(priceIds);
4848
const updateFee = await pythContract.methods
4949
.getUpdateFee(priceUpdateData)
5050
.call();
51+
5152
// Calling someContract method
5253
// `someContract` below is a web3.js contract; if you wish to use ethers, you need to change it accordingly.
54+
// Note: In Hedera you need to pass updateFee * 10^10 as value to the send method as there is an
55+
// inconsistency in the way the value is handled in Hedera RPC and the way it is handled on-chain.
5356
await someContract.methods
5457
.doSomething(someArg, otherArg, priceUpdateData)
5558
.send({ value: updateFee });

target_chains/ethereum/sdk/js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/pyth-evm-js",
3-
"version": "1.30.0",
3+
"version": "1.31.0",
44
"description": "Pyth Network EVM Utils in JS",
55
"homepage": "https://pyth.network",
66
"author": {

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ export const CONTRACT_ADDR: Record<string, string> = {
3030
fantom: "0xff1a0f4744e8582DF1aE09D5611b887B6a12925C",
3131
filecoin: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
3232
gnosis: "0x2880aB155794e7179c9eE2e38200202908C17B43",
33+
hedera: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
3334
horizen_eon: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
35+
injective_inevm: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
3436
kava: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
3537
lightlink: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
3638
linea: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
@@ -74,7 +76,9 @@ export const CONTRACT_ADDR: Record<string, string> = {
7476
fantom_testnet: "0x5744Cbf430D99456a0A8771208b674F27f8EF0Fb",
7577
filecoin_calibration: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
7678
fuji: "0x23f0e8FAeE7bbb405E7A7C3d60138FCfd43d7509",
77-
hedera_testnet: "0x7a7F2493c578796ABfBA15Ce2e914A7A819979B7",
79+
hedera_testnet: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
80+
idex_xchain_testnet: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
81+
injective_inevm_testnet: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
7882
kcc_testnet: "0x74f09cb3c7e2A01865f424FD14F6dc9A14E3e94E",
7983
kava_testnet: "0xfA25E653b44586dBbe27eE9d252192F0e4956683",
8084
lightlink_pegasus_testnet: "0x5D289Ad1CE59fCC25b6892e7A303dfFf3a9f7167",

0 commit comments

Comments
 (0)