瀏覽代碼

chore(target_chains/ethereum): add new networks (#1397)

Add metadata for the following networks:
- Parallel testnet and mainnet
- Polynomial testnet
Ali Behjati 1 年之前
父節點
當前提交
86c6ed259d

+ 1 - 4
contract_manager/src/chains.ts

@@ -392,10 +392,7 @@ export class EvmChain extends Chain {
     txParams: { from?: string; value?: string }
   ) {
     const GAS_ESTIMATE_MULTIPLIER = 2;
-    const gasEstimate = await transactionObject.estimateGas({
-      gas: 15000000,
-      ...txParams,
-    });
+    const gasEstimate = await transactionObject.estimateGas(txParams);
     // Some networks like Filecoin do not support the normal transaction type and need a type 2 transaction.
     // To send a type 2 transaction, remove the ``gasPrice`` field and add the `type` field with the value
     // `0x2` to the transaction configuration parameters.

+ 15 - 0
contract_manager/store/chains/EvmChains.yaml

@@ -513,3 +513,18 @@
   rpcUrl: https://rpc.merlinchain.io
   networkId: 4200
   type: EvmChain
+- id: parallel_testnet
+  mainnet: false
+  rpcUrl: https://rpc-accused-coffee-koala-b9fn1dik76.t.conduit.xyz
+  networkId: 9659
+  type: EvmChain
+- id: parallel
+  mainnet: true
+  rpcUrl: https://rpc.parallel.fi/
+  networkId: 1024
+  type: EvmChain
+- id: polynomial_testnet
+  mainnet: false
+  rpcUrl: https://rpc-polynomial-network-testnet-x0tryg8u1c.t.conduit.xyz
+  networkId: 80008
+  type: EvmChain

+ 9 - 0
contract_manager/store/contracts/EvmPriceFeedContracts.yaml

@@ -307,3 +307,12 @@
 - chain: optimism_celestia_raspberry
   address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729"
   type: EvmPriceFeedContract
+- chain: polynomial_testnet
+  address: "0x23f0e8FAeE7bbb405E7A7C3d60138FCfd43d7509"
+  type: EvmPriceFeedContract
+- chain: parallel_testnet
+  address: "0x23f0e8FAeE7bbb405E7A7C3d60138FCfd43d7509"
+  type: EvmPriceFeedContract
+- chain: parallel
+  address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729"
+  type: EvmPriceFeedContract

+ 6 - 3
governance/xc_admin/packages/xc_admin_common/src/chains.ts

@@ -64,6 +64,7 @@ export const RECEIVER_CHAINS = {
   injective_inevm: 60045,
   blast: 60046,
   merlin: 60047,
+  parallel: 60048,
 
   // Testnets as a separate chain ids (to use stable data sources and governance for them)
   injective_testnet: 60013,
@@ -131,9 +132,11 @@ export const RECEIVER_CHAINS = {
   berachain_testnet: 50056,
   merlin_testnet: 50057,
   manta_sepolia: 50058,
-  polygon_blackberry: 50059, // Gelato Testnet
-  arbitrum_blueberry: 50060, // Gelato Testnet
-  optimism_celestia_raspberry: 50061, // Gelato Testnet
+  polygon_blackberry: 50059, // Gelato shared testnet
+  arbitrum_blueberry: 50060, // Gelato shared testnet
+  optimism_celestia_raspberry: 50061, // Gelato shared testnet
+  parallel_testnet: 50062,
+  polynomial_testnet: 50063,
 };
 
 // If there is any overlapping value the receiver chain will replace the wormhole

+ 1 - 1
package-lock.json

@@ -59356,7 +59356,7 @@
     },
     "target_chains/ethereum/sdk/js": {
       "name": "@pythnetwork/pyth-evm-js",
-      "version": "1.37.0",
+      "version": "1.38.0",
       "license": "Apache-2.0",
       "dependencies": {
         "@pythnetwork/price-service-client": "*",

+ 1 - 1
target_chains/ethereum/sdk/js/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@pythnetwork/pyth-evm-js",
-  "version": "1.37.0",
+  "version": "1.38.0",
   "description": "Pyth Network EVM Utils in JS",
   "homepage": "https://pyth.network",
   "author": {

+ 3 - 0
target_chains/ethereum/sdk/js/src/index.ts

@@ -45,6 +45,7 @@ export const CONTRACT_ADDR: Record<string, string> = {
   mode: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
   neon: "0x7f2dB085eFC3560AFF33865dD727225d91B4f9A5",
   optimism: "0xff1a0f4744e8582DF1aE09D5611b887B6a12925C",
+  parallel: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
   polygon: "0xff1a0f4744e8582DF1aE09D5611b887B6a12925C",
   polygon_zkevm: "0xC5E56d6b40F3e3B5fbfa266bCd35C37426537c65",
   ronin: "0x2880aB155794e7179c9eE2e38200202908C17B43",
@@ -99,8 +100,10 @@ export const CONTRACT_ADDR: Record<string, string> = {
   optimism_celestia_raspberry: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
   optimism_goerli: "0xDd24F84d36BF92C65F92307595335bdFab5Bbd21",
   optimism_sepolia: "0x0708325268dF9F66270F1401206434524814508b",
+  parallel_testnet: "0x23f0e8FAeE7bbb405E7A7C3d60138FCfd43d7509",
   polygon_blackberry: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
   polygon_zkevm_testnet: "0xFf255f800044225f54Af4510332Aa3D67CC77635",
+  polynomial_testnet: "0x23f0e8FAeE7bbb405E7A7C3d60138FCfd43d7509",
   saigon: "0xEbe57e8045F2F230872523bbff7374986E45C486",
   sei_evm_devnet: "0x23f0e8FAeE7bbb405E7A7C3d60138FCfd43d7509",
   scroll_sepolia: "0x41c9e39574F40Ad34c79f1C99B66A45eFB830d4c",