Skip to content

Commit 86c6ed2

Browse files
authored
chore(target_chains/ethereum): add new networks (#1397)
Add metadata for the following networks: - Parallel testnet and mainnet - Polynomial testnet
1 parent 9416a8b commit 86c6ed2

File tree

7 files changed

+36
-9
lines changed

7 files changed

+36
-9
lines changed

contract_manager/src/chains.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,10 +392,7 @@ export class EvmChain extends Chain {
392392
txParams: { from?: string; value?: string }
393393
) {
394394
const GAS_ESTIMATE_MULTIPLIER = 2;
395-
const gasEstimate = await transactionObject.estimateGas({
396-
gas: 15000000,
397-
...txParams,
398-
});
395+
const gasEstimate = await transactionObject.estimateGas(txParams);
399396
// Some networks like Filecoin do not support the normal transaction type and need a type 2 transaction.
400397
// To send a type 2 transaction, remove the ``gasPrice`` field and add the `type` field with the value
401398
// `0x2` to the transaction configuration parameters.

contract_manager/store/chains/EvmChains.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,3 +513,18 @@
513513
rpcUrl: https://rpc.merlinchain.io
514514
networkId: 4200
515515
type: EvmChain
516+
- id: parallel_testnet
517+
mainnet: false
518+
rpcUrl: https://rpc-accused-coffee-koala-b9fn1dik76.t.conduit.xyz
519+
networkId: 9659
520+
type: EvmChain
521+
- id: parallel
522+
mainnet: true
523+
rpcUrl: https://rpc.parallel.fi/
524+
networkId: 1024
525+
type: EvmChain
526+
- id: polynomial_testnet
527+
mainnet: false
528+
rpcUrl: https://rpc-polynomial-network-testnet-x0tryg8u1c.t.conduit.xyz
529+
networkId: 80008
530+
type: EvmChain

contract_manager/store/contracts/EvmPriceFeedContracts.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,3 +307,12 @@
307307
- chain: optimism_celestia_raspberry
308308
address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729"
309309
type: EvmPriceFeedContract
310+
- chain: polynomial_testnet
311+
address: "0x23f0e8FAeE7bbb405E7A7C3d60138FCfd43d7509"
312+
type: EvmPriceFeedContract
313+
- chain: parallel_testnet
314+
address: "0x23f0e8FAeE7bbb405E7A7C3d60138FCfd43d7509"
315+
type: EvmPriceFeedContract
316+
- chain: parallel
317+
address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729"
318+
type: EvmPriceFeedContract

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export const RECEIVER_CHAINS = {
6464
injective_inevm: 60045,
6565
blast: 60046,
6666
merlin: 60047,
67+
parallel: 60048,
6768

6869
// Testnets as a separate chain ids (to use stable data sources and governance for them)
6970
injective_testnet: 60013,
@@ -131,9 +132,11 @@ export const RECEIVER_CHAINS = {
131132
berachain_testnet: 50056,
132133
merlin_testnet: 50057,
133134
manta_sepolia: 50058,
134-
polygon_blackberry: 50059, // Gelato Testnet
135-
arbitrum_blueberry: 50060, // Gelato Testnet
136-
optimism_celestia_raspberry: 50061, // Gelato Testnet
135+
polygon_blackberry: 50059, // Gelato shared testnet
136+
arbitrum_blueberry: 50060, // Gelato shared testnet
137+
optimism_celestia_raspberry: 50061, // Gelato shared testnet
138+
parallel_testnet: 50062,
139+
polynomial_testnet: 50063,
137140
};
138141

139142
// 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/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.37.0",
3+
"version": "1.38.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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export const CONTRACT_ADDR: Record<string, string> = {
4545
mode: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
4646
neon: "0x7f2dB085eFC3560AFF33865dD727225d91B4f9A5",
4747
optimism: "0xff1a0f4744e8582DF1aE09D5611b887B6a12925C",
48+
parallel: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
4849
polygon: "0xff1a0f4744e8582DF1aE09D5611b887B6a12925C",
4950
polygon_zkevm: "0xC5E56d6b40F3e3B5fbfa266bCd35C37426537c65",
5051
ronin: "0x2880aB155794e7179c9eE2e38200202908C17B43",
@@ -99,8 +100,10 @@ export const CONTRACT_ADDR: Record<string, string> = {
99100
optimism_celestia_raspberry: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
100101
optimism_goerli: "0xDd24F84d36BF92C65F92307595335bdFab5Bbd21",
101102
optimism_sepolia: "0x0708325268dF9F66270F1401206434524814508b",
103+
parallel_testnet: "0x23f0e8FAeE7bbb405E7A7C3d60138FCfd43d7509",
102104
polygon_blackberry: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
103105
polygon_zkevm_testnet: "0xFf255f800044225f54Af4510332Aa3D67CC77635",
106+
polynomial_testnet: "0x23f0e8FAeE7bbb405E7A7C3d60138FCfd43d7509",
104107
saigon: "0xEbe57e8045F2F230872523bbff7374986E45C486",
105108
sei_evm_devnet: "0x23f0e8FAeE7bbb405E7A7C3d60138FCfd43d7509",
106109
scroll_sepolia: "0x41c9e39574F40Ad34c79f1C99B66A45eFB830d4c",

0 commit comments

Comments
 (0)