From fc0de28b868f62d161fd472279ea865effd232fb Mon Sep 17 00:00:00 2001 From: Ali Behjati Date: Thu, 16 Mar 2023 12:06:13 +0330 Subject: [PATCH] [eth] Update zksync goerli after network reset (#697) --- package-lock.json | 6 +++--- target_chains/ethereum/contracts/hardhat.config.ts | 4 ++++ target_chains/ethereum/contracts/networks/280.json | 4 ++-- target_chains/ethereum/sdk/js/package.json | 2 +- target_chains/ethereum/sdk/js/src/index.ts | 2 +- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index a85cc9c7..75606b46 100644 --- a/package-lock.json +++ b/package-lock.json @@ -48072,7 +48072,7 @@ }, "price_pusher": { "name": "@pythnetwork/pyth-price-pusher", - "version": "4.1.0", + "version": "4.1.1", "license": "Apache-2.0", "dependencies": { "@injectivelabs/sdk-ts": "^1.0.484", @@ -49985,7 +49985,7 @@ }, "target_chains/ethereum/sdk/js": { "name": "@pythnetwork/pyth-evm-js", - "version": "1.6.0", + "version": "1.7.0", "license": "Apache-2.0", "dependencies": { "@pythnetwork/price-service-client": "*", @@ -59196,7 +59196,7 @@ "@pythnetwork/pyth-price-pusher": { "version": "file:price_pusher", "requires": { - "@injectivelabs/sdk-ts": "1.0.484", + "@injectivelabs/sdk-ts": "^1.0.484", "@pythnetwork/price-service-client": "*", "@pythnetwork/pyth-sdk-solidity": "^2.2.0", "@truffle/hdwallet-provider": "^2.1.3", diff --git a/target_chains/ethereum/contracts/hardhat.config.ts b/target_chains/ethereum/contracts/hardhat.config.ts index 75dfed38..0b4f8b96 100644 --- a/target_chains/ethereum/contracts/hardhat.config.ts +++ b/target_chains/ethereum/contracts/hardhat.config.ts @@ -16,6 +16,10 @@ module.exports = { }, defaultNetwork: "zkSyncTestnet", networks: { + goerli: { + url: `https://goerli.infura.io/v3/${process.env.INFURA_KEY}`, + zksync: false, + }, zkSyncTestnet: { url: "https://zksync2-testnet.zksync.dev", // URL of the zkSync network RPC ethNetwork: "goerli", // Can also be the RPC URL of the Ethereum network (e.g. `https://goerli.infura.io/v3/`) diff --git a/target_chains/ethereum/contracts/networks/280.json b/target_chains/ethereum/contracts/networks/280.json index 0021c6c6..1516e413 100644 --- a/target_chains/ethereum/contracts/networks/280.json +++ b/target_chains/ethereum/contracts/networks/280.json @@ -1,10 +1,10 @@ [ { "contractName": "WormholeReceiver", - "address": "0x02C404128Ba4b83f4Ea8c134Ca30A7Aa07aac535" + "address": "0xA32e2Fe21b6441689f1308867931F4F145186B9F" }, { "contractName": "PythUpgradable", - "address": "0xF532F2C1bB7b67E08f7D8B76f9fF804D0831725e" + "address": "0xC38B1dd611889Abc95d4E0a472A667c3671c08DE" } ] diff --git a/target_chains/ethereum/sdk/js/package.json b/target_chains/ethereum/sdk/js/package.json index 37ed859e..0025e2e4 100644 --- a/target_chains/ethereum/sdk/js/package.json +++ b/target_chains/ethereum/sdk/js/package.json @@ -1,6 +1,6 @@ { "name": "@pythnetwork/pyth-evm-js", - "version": "1.6.0", + "version": "1.7.0", "description": "Pyth Network EVM Utils in JS", "homepage": "https://pyth.network", "author": { diff --git a/target_chains/ethereum/sdk/js/src/index.ts b/target_chains/ethereum/sdk/js/src/index.ts index d9f69fda..cc65d3b0 100644 --- a/target_chains/ethereum/sdk/js/src/index.ts +++ b/target_chains/ethereum/sdk/js/src/index.ts @@ -32,7 +32,7 @@ export const CONTRACT_ADDR: Record = { cronos: "0xE0d0e68297772Dd5a1f1D99897c581E2082dbA5B", cronos_testnet: "0xBAEA4A1A2Eaa4E9bb78f2303C213Da152933170E", arbitrum_goerli: "0x939C0e902FF5B3F7BA666Cc8F6aC75EE76d3f900", - zksync_goerli: "0xF532F2C1bB7b67E08f7D8B76f9fF804D0831725e", + zksync_goerli: "0xC38B1dd611889Abc95d4E0a472A667c3671c08DE", base_goerli: "0x5955C1478F0dAD753C7E2B4dD1b4bC530C64749f", shimmer_testnet: "0x354bF866A4B006C9AF9d9e06d9364217A8616E12", chiado: "0xdDAf6D29b8bc81c1F0798a5e4c264ae89c16a72B", // Gnosis testnet