Эх сурвалжийг харах

[evm] Deploy on Canto Testnet (#725)

* [evm] Deploy on Canto Testnet

* Redeploy

* Address feedbacks

---------

Co-authored-by: Ali Behjati <bahjatia@gmail.com>
Cinque McFarlane-Blake 2 жил өмнө
parent
commit
38a8c2831a

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

@@ -10,6 +10,7 @@ export const RECEIVER_CHAINS = {
   evmos: 60006,
   evmos: 60006,
   neon: 60007,
   neon: 60007,
   polygon_zkevm: 60008,
   polygon_zkevm: 60008,
+  canto: 60009,
 };
 };
 
 
 // If there is any overlapping value the receiver chain will replace the wormhole
 // If there is any overlapping value the receiver chain will replace the wormhole

+ 1 - 1
package-lock.json

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

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

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

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

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

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

@@ -152,6 +152,14 @@ module.exports = {
       gas: 8000000,
       gas: 8000000,
       gasPrice: 300000000000,
       gasPrice: 300000000000,
     },
     },
+    canto_testnet: {
+      provider: payerProvider(`https://canto-testnet.plexnode.wtf`),
+      deploymentPollingInterval: 20000,
+      network_id: 7701,
+      networkCheckTimeout: 1000000,
+      timeoutBlocks: 200,
+      disableConfirmationListener: true,
+    },
     celo: {
     celo: {
       provider: payerProvider(`https://forno.celo.org`),
       provider: payerProvider(`https://forno.celo.org`),
       network_id: 42220,
       network_id: 42220,

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

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

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

@@ -42,4 +42,5 @@ export const CONTRACT_ADDR: Record<string, string> = {
   neon_devnet: "0x2FF312f50689ad279ABb164dB255Eb568733BD6c",
   neon_devnet: "0x2FF312f50689ad279ABb164dB255Eb568733BD6c",
   polygon_zkevm_testnet: "0xd54bf1758b1C932F86B178F8b1D5d1A7e2F62C2E",
   polygon_zkevm_testnet: "0xd54bf1758b1C932F86B178F8b1D5d1A7e2F62C2E",
   polygon_zkevm: "0xC5E56d6b40F3e3B5fbfa266bCd35C37426537c65",
   polygon_zkevm: "0xC5E56d6b40F3e3B5fbfa266bCd35C37426537c65",
+  canto_testnet: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
 };
 };