Selaa lähdekoodia

[evm] deploy neon devnet (#693)

* add evmos_testnet deployment files

* fix precommit

* Deploy to neon

* Precommit

* Add to evm-js

* Fix precommit

---------

Co-authored-by: Daniel Chew <cctdaniel@outlook.com>
guibescos 2 vuotta sitten
vanhempi
sitoutus
156fb23f24

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

@@ -8,6 +8,7 @@ export const RECEIVER_CHAINS = {
   shimmer: 60004,
   gnosis: 60005,
   evmos: 60006,
+  neon: 60007,
 };
 
 // If there is any overlapping value the receiver chain will replace the wormhole

+ 1 - 1
package-lock.json

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

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

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

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

@@ -0,0 +1,16 @@
+[
+  {
+    "contractName": "Migrations",
+    "address": "0x5e92a04Cb8591cb7d9FD40B77B474cde0fE44D36"
+  },
+  {
+    "contractName": "WormholeReceiver",
+    "address": "0x5955C1478F0dAD753C7E2B4dD1b4bC530C64749f",
+    "transactionHash": "0x1c14a83c42fd99c7e78bfadf9a0200ac3cfd9682cdfbbf875b7ebf90ce75e520"
+  },
+  {
+    "contractName": "PythUpgradable",
+    "address": "0x2FF312f50689ad279ABb164dB255Eb568733BD6c",
+    "transactionHash": "0x9fb37b19c9c4d1e765c495f74692de0645ce9efbd3ac7ad9d2a64f0bafccc675"
+  }
+]

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

@@ -216,6 +216,10 @@ module.exports = {
       provider: payerProvider(`https://eth.bd.evmos.dev:8545/`),
       network_id: 9000,
     },
+    neon_devnet: {
+      provider: payerProvider(`https://devnet.neonevm.org`),
+      network_id: 245022926,
+    },
   },
 
   compilers: {

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

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

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

@@ -39,4 +39,5 @@ export const CONTRACT_ADDR: Record<string, string> = {
   zksync: "0xf087c864AEccFb6A2Bf1Af6A0382B0d0f6c5D834",
   evmos: "0x354bF866A4B006C9AF9d9e06d9364217A8616E12",
   evmos_testnet: "0x354bF866A4B006C9AF9d9e06d9364217A8616E12",
+  neon_devnet: "0x2FF312f50689ad279ABb164dB255Eb568733BD6c",
 };