Skip to content

Commit

Permalink
Update networks and protocol contracts packages (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev authored Dec 21, 2023
1 parent a360309 commit 03c837a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion helpers/balances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion helpers/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
4 changes: 1 addition & 3 deletions helpers/sendZRC20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -96,4 +96,4 @@
"tiny-secp256k1": "^2.2.3",
"ws": "^8.13.0"
}
}
}
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 03c837a

Please sign in to comment.