瀏覽代碼

[eth] Deploy to Kava (#859)

* [eth] Deploy to Kava

* [eth] Bump sdk/js package version

* [eth] Fix pre-commit
Ali Behjati 2 年之前
父節點
當前提交
bdc3fede24

+ 1 - 2
governance/xc_governance_sdk_js/src/chains.ts

@@ -27,8 +27,6 @@ export const RECEIVER_CHAINS = {
   meter: 60010,
   mantle: 60011,
   conflux_espace: 60012,
-
-  // for cosmos
   injective_testnet: 60013,
   osmosis: 60014,
   osmosis_testnet_4: 60015,
@@ -39,6 +37,7 @@ export const RECEIVER_CHAINS = {
   neutron_testnet_pion_1: 60020,
   juno: 60020,
   juno_testnet: 60021,
+  kava: 60022,
 };
 
 // If there is any overlapping value the receiver chain will replace the wormhole

+ 3 - 3
package-lock.json

@@ -57120,7 +57120,7 @@
     },
     "price_service/server": {
       "name": "@pythnetwork/price-service-server",
-      "version": "3.0.4",
+      "version": "3.0.5",
       "license": "Apache-2.0",
       "dependencies": {
         "@certusone/wormhole-sdk": "^0.9.9",
@@ -58371,7 +58371,7 @@
     },
     "target_chains/ethereum/sdk/js": {
       "name": "@pythnetwork/pyth-evm-js",
-      "version": "1.17.0",
+      "version": "1.18.0",
       "license": "Apache-2.0",
       "dependencies": {
         "@pythnetwork/price-service-client": "*",
@@ -59973,7 +59973,7 @@
     },
     "wormhole_attester/sdk/js": {
       "name": "@pythnetwork/wormhole-attester-sdk",
-      "version": "1.0.0",
+      "version": "1.1.0",
       "license": "MIT",
       "dependencies": {
         "@pythnetwork/price-service-sdk": "*"

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

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

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

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

+ 0 - 2
target_chains/ethereum/contracts/.env.prod.optimism_goerli

@@ -1,5 +1,3 @@
-# Mumbai is Polygon testnet network
-
 MIGRATIONS_DIR=./migrations/prod
 MIGRATIONS_NETWORK=optimism_goerli
 WORMHOLE_CHAIN_NAME=optimism

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

@@ -0,0 +1,16 @@
+[
+  {
+    "contractName": "Migrations",
+    "address": "0xf5BBe9558F4Bf37F1eB82fb2CEdb1C775FA56832"
+  },
+  {
+    "contractName": "WormholeReceiver",
+    "address": "0x87047526937246727E4869C5f76A347160e08672",
+    "transactionHash": "0x472c397969c3e0be996ed54cd80bddb5a2ab56e921dc51973f62e555da771368"
+  },
+  {
+    "contractName": "PythUpgradable",
+    "address": "0x98046Bd286715D3B0BC227Dd7a956b83D8978603",
+    "transactionHash": "0x3062e9a8ebde180deb6b06980cd47a95b5a9b07aa75119382f6980e6dd4cc732"
+  }
+]

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

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

+ 14 - 1
target_chains/ethereum/contracts/truffle-config.js

@@ -228,7 +228,7 @@ module.exports = {
       verify: {
         apiUrl: "https://api-goerli.basescan.org/api",
         explorerUrl: "https://goerli.basescan.org/",
-        apiKey: "",
+        apiKey: "there_should_be_a_dummy_value_here_to_avoid_error",
       },
     },
     evmos: {
@@ -267,6 +267,19 @@ module.exports = {
       provider: payerProvider("NEON_RPC_PLACEHOLDER"), // Replace this by the neon RPC node endpoint
       network_id: 245022934,
     },
+    kava: {
+      provider: payerProvider("https://evm.kava.io"),
+      network_id: 2222,
+      verify: {
+        apiUrl: "https://explorer.kava.io/api",
+        explorerUrl: "https://explorer.kava.io/",
+        apiKey: "there_should_be_a_dummy_value_here_to_avoid_error",
+      },
+    },
+    kava_testnet: {
+      provider: payerProvider("https://evm.testnet.kava.io"),
+      network_id: 2221,
+    },
   },
 
   compilers: {

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

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

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

@@ -49,4 +49,6 @@ export const CONTRACT_ADDR: Record<string, string> = {
   mantle_testnet: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
   conflux_espace: "0xe9d69CdD6Fe41e7B621B4A688C5D1a68cB5c8ADc",
   conflux_espace_testnet: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
+  kava_testnet: "0x98046Bd286715D3B0BC227Dd7a956b83D8978603",
+  kava: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
 };