瀏覽代碼

[eth] Deploy to mantle (#948)

* Deploy mantle

* Update pyth-evm-ks

* Update docs
guibescos 2 年之前
父節點
當前提交
a77ee78d13

+ 1 - 1
package-lock.json

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

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

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

+ 1 - 1
target_chains/ethereum/contracts/Deploying.md

@@ -95,7 +95,7 @@ This is the deployment process:
    which need to be committed (if they are result of a production deployment). Create a PR for them.
 9. If you are deploying to a new network, please add the new contract address to consumer facing libraries
    and documentations. Please update the following resources:
-   - [Pyth Gitbook EVM Page](https://github.com/pyth-network/pyth-gitbook/blob/main/pythnet-price-feeds/evm.md#networks)
+   - [Pyth Gitbook EVM Page](https://github.com/pyth-network/documentation/blob/main/pages/documentation/pythnet-price-feeds/evm.mdx)
    - [pyth-evm-js package](../sdk/js/)
 10. (Optional) You can test the deployed contract by sending and fetching a price update as described in the
     [Testing](#testing) section below.

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

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

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

@@ -251,6 +251,10 @@ module.exports = {
       provider: payerProvider("https://rpc-meter.jellypool.xyz"),
       network_id: 82,
     },
+    mantle: {
+      provider: payerProvider("https://rpc.mantle.xyz/"),
+      network_id: 5000,
+    },
     mantle_testnet: {
       provider: payerProvider("https://rpc.testnet.mantle.xyz/"),
       network_id: 5001,

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

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

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

@@ -47,6 +47,7 @@ export const CONTRACT_ADDR: Record<string, string> = {
   canto_testnet: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
   meter_testnet: "0x5fF5B9039FbD8256864A4460B7EA77093A65B1b5",
   meter: "0xbFe3f445653f2136b2FD1e6DdDb5676392E3AF16",
+  mantle: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
   mantle_testnet: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
   conflux_espace: "0xe9d69CdD6Fe41e7B621B4A688C5D1a68cB5c8ADc",
   conflux_espace_testnet: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",