Prechádzať zdrojové kódy

Deploy neon (#854)

* Push

* Add config

* Sync up optimization for hardhat and truffle
guibescos 2 rokov pred
rodič
commit
11cb14ca76

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

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

+ 1 - 1
target_chains/ethereum/contracts/hardhat.config.ts

@@ -80,7 +80,7 @@ module.exports = {
     settings: {
       optimizer: {
         enabled: true,
-        runs: 10000,
+        runs: 5000,
       },
     },
   },

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

@@ -0,0 +1,16 @@
+[
+  {
+    "contractName": "Migrations",
+    "address": "0x7a7F2493c578796ABfBA15Ce2e914A7A819979B7"
+  },
+  {
+    "contractName": "WormholeReceiver",
+    "address": "0x621330D0ECd449A06b72f41C1A93626cCEC53ccA",
+    "transactionHash": "0x4dc725831f247e91759fb1d09a8962f9f533c57ae468630e6848b918bf92c9a6"
+  },
+  {
+    "contractName": "PythUpgradable",
+    "address": "0x7f2dB085eFC3560AFF33865dD727225d91B4f9A5",
+    "transactionHash": "0x276282e22f4ea59a8eeec5223ce34b560e4e34e65b7fc503ade05878e73521ef"
+  }
+]

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

@@ -263,6 +263,10 @@ module.exports = {
       provider: payerProvider("https://evmtestnet.confluxrpc.com"),
       network_id: 71,
     },
+    neon: {
+      provider: payerProvider("NEON_RPC_PLACEHOLDER"), // Replace this by the neon RPC node endpoint
+      network_id: 245022934,
+    },
   },
 
   compilers: {