Quellcode durchsuchen

chore(ethereum): deploy to base and syndr_testnet (#988)

Ali Behjati vor 2 Jahren
Ursprung
Commit
928027a270

+ 6 - 0
contract_manager/store/chains/EvmChain/base.yaml

@@ -0,0 +1,6 @@
+id: base
+wormholeChainName: base
+mainnet: true
+rpcUrl: https://developer-access-mainnet.base.org/
+networkId: 8453
+type: EvmChain

+ 6 - 0
contract_manager/store/chains/EvmChain/syndr_nitro_testnet.yaml

@@ -0,0 +1,6 @@
+id: syndr_nitro_testnet
+wormholeChainName: syndr
+mainnet: false
+rpcUrl: https://syndr-nitro-testnet.calderachain.xyz/http
+networkId: 412346
+type: EvmChain

+ 3 - 0
contract_manager/store/contracts/EvmContract/base_0x8250f4aF4B972684F7b336503E2D6dFeDeB1487a.yaml

@@ -0,0 +1,3 @@
+chain: base
+address: "0x8250f4aF4B972684F7b336503E2D6dFeDeB1487a"
+type: EvmContract

+ 3 - 0
contract_manager/store/contracts/EvmContract/syndr_nitro_testnet_0xA2aa501b19aff244D90cc15a4Cf739D2725B5729.yaml

@@ -0,0 +1,3 @@
+chain: syndr_nitro_testnet
+address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729"
+type: EvmContract

+ 1 - 0
governance/xc_admin/packages/xc_admin_common/src/chains.ts

@@ -39,6 +39,7 @@ export const RECEIVER_CHAINS = {
   linea: 60024,
   neutron_testnet_pion_1: 60025,
   eos: 60026,
+  syndr: 60027,
 };
 
 // If there is any overlapping value the receiver chain will replace the wormhole

Datei-Diff unterdrückt, da er zu groß ist
+ 1001 - 946
package-lock.json


+ 5 - 0
target_chains/ethereum/contracts/.env.prod.base

@@ -0,0 +1,5 @@
+MIGRATIONS_DIR=./migrations/prod
+MIGRATIONS_NETWORK=base
+WORMHOLE_CHAIN_NAME=base
+CLUSTER=mainnet
+VALID_TIME_PERIOD_SECONDS=60

+ 5 - 0
target_chains/ethereum/contracts/.env.prod.syndr_nitro_testnet

@@ -0,0 +1,5 @@
+MIGRATIONS_DIR=./migrations/prod-receiver
+MIGRATIONS_NETWORK=syndr_nitro_testnet
+WORMHOLE_CHAIN_NAME=syndr
+CLUSTER=testnet
+VALID_TIME_PERIOD_SECONDS=60

+ 16 - 0
target_chains/ethereum/contracts/networks/412346.json

@@ -0,0 +1,16 @@
+[
+  {
+    "contractName": "Migrations",
+    "address": "0xf5BBe9558F4Bf37F1eB82fb2CEdb1C775FA56832"
+  },
+  {
+    "contractName": "WormholeReceiver",
+    "address": "0x8250f4aF4B972684F7b336503E2D6dFeDeB1487a",
+    "transactionHash": "0xa2c0fe4dd6e9b3f752df9f4db1cce9067b976ee41e948c419aba8e14931b05c5"
+  },
+  {
+    "contractName": "PythUpgradable",
+    "address": "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
+    "transactionHash": "0xfc10555db66929bd0b8c12adf6cdc9ea0dbf688e353fcd64566b23a3f1b1b456"
+  }
+]

+ 11 - 0
target_chains/ethereum/contracts/networks/8453.json

@@ -0,0 +1,11 @@
+[
+  {
+    "contractName": "Migrations",
+    "address": "0x6E3A2a644eeDCf6007d3c7d85F0094Cc1B25B2AE"
+  },
+  {
+    "contractName": "PythUpgradable",
+    "address": "0x8250f4aF4B972684F7b336503E2D6dFeDeB1487a",
+    "transactionHash": "0x7a0c11c07c3885f1aa5f5a63048098e24ba64925ca03f8e7e22262fe8f29c248"
+  }
+]

+ 2 - 2
target_chains/ethereum/contracts/package.json

@@ -25,7 +25,7 @@
   "author": "",
   "license": "ISC",
   "dependencies": {
-    "@certusone/wormhole-sdk": "^0.9.9",
+    "@certusone/wormhole-sdk": "^0.9.22",
     "@matterlabs/hardhat-zksync-deploy": "^0.6.2",
     "@matterlabs/hardhat-zksync-solc": "^0.3.14",
     "@nomiclabs/hardhat-etherscan": "^3.1.7",
@@ -34,7 +34,6 @@
     "@openzeppelin/hardhat-upgrades": "^1.22.1",
     "@pythnetwork/pyth-multisig-wh-message-builder": "*",
     "@pythnetwork/pyth-sdk-solidity": "^2.2.0",
-    "xc_admin_common": "*",
     "dotenv": "^10.0.0",
     "elliptic": "^6.5.2",
     "ethers": "^5.7.2",
@@ -49,6 +48,7 @@
     "web3": "^1.2.2",
     "web3-eth-abi": "^1.2.2",
     "web3-utils": "^1.2.2",
+    "xc_admin_common": "*",
     "zksync-web3": "^0.13.4"
   }
 }

+ 15 - 0
target_chains/ethereum/contracts/truffle-config.js

@@ -206,6 +206,15 @@ module.exports = {
         apiKey: "there_should_be_a_dummy_value_here_to_avoid_error",
       },
     },
+    base: {
+      provider: payerProvider("https://developer-access-mainnet.base.org/"),
+      network_id: 8453,
+      verify: {
+        apiUrl: "https://api.basescan.org/api",
+        explorerUrl: "https://basescan.org/",
+        apiKey: process.env.BASESCAN_KEY,
+      },
+    },
     evmos: {
       provider: payerProvider(`https://eth.bd.evmos.org:8545/`),
       network_id: 9001,
@@ -304,6 +313,12 @@ module.exports = {
         apiKey: "there_should_be_a_dummy_value_here_to_avoid_error",
       },
     },
+    syndr_nitro_testnet: {
+      provider: payerProvider(
+        "https://syndr-nitro-testnet.calderachain.xyz/http"
+      ),
+      network_id: 412346,
+    },
   },
 
   compilers: {

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

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

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

@@ -59,4 +59,6 @@ export const CONTRACT_ADDR: Record<string, string> = {
   linea: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
   eos: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
   eos_testnet: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
+  base: "0x8250f4aF4B972684F7b336503E2D6dFeDeB1487a",
+  syndr_nitro_testnet: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
 };

Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.