From 03c837ae42dffd80ac3285f807b2614e95b74031 Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Thu, 21 Dec 2023 17:41:02 +0400 Subject: [PATCH] Update networks and protocol contracts packages (#84) --- helpers/balances.ts | 2 +- helpers/pools.ts | 2 +- helpers/sendZRC20.ts | 4 +--- package.json | 6 +++--- yarn.lock | 16 ++++++++-------- 5 files changed, 14 insertions(+), 16 deletions(-) diff --git a/helpers/balances.ts b/helpers/balances.ts index 6b7c40c6..9cd8a8fa 100644 --- a/helpers/balances.ts +++ b/helpers/balances.ts @@ -8,7 +8,7 @@ import fetch from "isomorphic-fetch"; export const getForeignCoins = async () => { const api = getEndpoints("cosmos-http", "zeta_testnet")[0]?.url; - const endpoint = `${api}/zeta-chain/zetacore/fungible/foreign_coins`; + const endpoint = `${api}/zeta-chain/fungible/foreign_coins`; const response = await fetch(endpoint); const data = await response.json(); return data.foreignCoins; diff --git a/helpers/pools.ts b/helpers/pools.ts index dea160cb..036c62c7 100644 --- a/helpers/pools.ts +++ b/helpers/pools.ts @@ -7,7 +7,7 @@ import fetch from "isomorphic-fetch"; export const getPools = async () => { const api = getEndpoints("cosmos-http", "zeta_testnet")[0]?.url; - const endpoint = `${api}/zeta-chain/zetacore/fungible/foreign_coins`; + const endpoint = `${api}/zeta-chain/fungible/foreign_coins`; const response = await fetch(endpoint); const data = await response.json(); diff --git a/helpers/sendZRC20.ts b/helpers/sendZRC20.ts index 52417a5c..5f4d7972 100644 --- a/helpers/sendZRC20.ts +++ b/helpers/sendZRC20.ts @@ -24,9 +24,7 @@ export const sendZRC20 = async ( } const API = getEndpoints("cosmos-http", "zeta_testnet")?.[0]?.url; - const response = await fetch( - `${API}/zeta-chain/zetacore/fungible/foreign_coins` - ); + const response = await fetch(`${API}/zeta-chain/fungible/foreign_coins`); const data = await response.json(); const foreignCoins = data.foreignCoins; const networkChainID = networks[network as keyof typeof networks]?.chain_id; diff --git a/package.json b/package.json index 29519b61..2ea3c992 100644 --- a/package.json +++ b/package.json @@ -75,8 +75,8 @@ "@openzeppelin/contracts": "^4.9.2", "@uniswap/v2-periphery": "^1.1.0-beta.0", "@zetachain/faucet-cli": "^4.0.1", - "@zetachain/networks": "^2.4.3", - "@zetachain/protocol-contracts": "^3.0.1", + "@zetachain/networks": "^3.0.0", + "@zetachain/protocol-contracts": "^3.0.2", "axios": "^1.4.0", "bech32": "^2.0.0", "bip39": "^3.1.0", @@ -96,4 +96,4 @@ "tiny-secp256k1": "^2.2.3", "ws": "^8.13.0" } -} \ No newline at end of file +} diff --git a/yarn.lock b/yarn.lock index 85b186f6..90f39b9e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1800,17 +1800,17 @@ typescript "5.0.4" zod "3.19.1" -"@zetachain/networks@^2.4.3": - version "2.4.3" - resolved "https://registry.yarnpkg.com/@zetachain/networks/-/networks-2.4.3.tgz#870b2cda4b91f913be990246831378f60688d452" - integrity sha512-ZoqN8M6+59OkujZCl3FcSEgSftIN1tw5bpuFwI/2+f0SlKH+8ztAk7aF1QHmzrPqolIJKt29ogsfvIjiynXNkg== +"@zetachain/networks@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@zetachain/networks/-/networks-3.0.0.tgz#4af60859e6fe057002d17d81f088be5581cdcf9a" + integrity sha512-Yq6kbXhxou7SOazDYBhHev8k6JtWMkX+QAzshg/JYW07mDQg78MFEfqWDWmfD4xtWOsPKvnjrURpGgROc5xqKw== dependencies: dotenv "^16.1.4" -"@zetachain/protocol-contracts@^3.0.1": - version "3.0.1" - resolved "https://registry.yarnpkg.com/@zetachain/protocol-contracts/-/protocol-contracts-3.0.1.tgz#fefbc93dfea7d50193831b541fd8b847f3db57c7" - integrity sha512-F0ZY3z25TftUFHWjNP63gPh1ppFcTaATAqDX87Ld9ED2iDQ7tUEAN7R2A8BEzbcIi+n8dfLWQSPCFcgP1vFB/w== +"@zetachain/protocol-contracts@^3.0.2": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@zetachain/protocol-contracts/-/protocol-contracts-3.0.2.tgz#384b73484fedd1cba130af473f92664293f3ac1e" + integrity sha512-5Z66o0AdOtHYWFfcgjsH9Y79bHHK/h9I+TsOwHsIiqOp/fTdGLZ2HJO/PKgjbeUsfvI2RMm/UyYYWgsX6gucBQ== abbrev@1: version "1.1.1"