Skip to content

Commit

Permalink
fix: use callOptions in call/withdrawAndCall (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev authored Nov 29, 2024
1 parent 5d9873c commit cf3b5f0
Show file tree
Hide file tree
Showing 103 changed files with 1,938 additions and 4,943 deletions.
54 changes: 0 additions & 54 deletions contracts/TestSystemContract.sol

This file was deleted.

8 changes: 0 additions & 8 deletions contracts/ZetaConnectorMock.sol

This file was deleted.

112 changes: 0 additions & 112 deletions contracts/shared/MockSystemContract.sol

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"@uniswap/v2-periphery": "^1.1.0-beta.0",
"@zetachain/faucet-cli": "^4.1.1",
"@zetachain/networks": "10.0.0",
"@zetachain/protocol-contracts": "9.0.0",
"@zetachain/protocol-contracts": "11.0.0-rc3",
"axios": "^1.4.0",
"bech32": "^2.0.0",
"bip39": "^3.1.0",
Expand Down
1 change: 0 additions & 1 deletion packages/client/src/abi/GatewayEVM.sol/GatewayEVM.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/client/src/abi/GatewayZEVM.sol/GatewayZEVM.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/client/src/abi/ZRC20.sol/ZRC20.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/client/src/abi/ZRC20.sol/ZRC20Errors.json

This file was deleted.

4 changes: 0 additions & 4 deletions packages/client/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { Signer, Wallet } from "ethers";
import merge from "lodash/merge";

import {
deposit,
evmCall,
evmDeposit,
evmDepositAndCall,
Expand All @@ -22,7 +21,6 @@ import {
sendZeta,
solanaDeposit,
trackCCTX,
withdraw,
zetachainCall,
zetachainWithdraw,
zetachainWithdrawAndCall,
Expand Down Expand Up @@ -124,8 +122,6 @@ export class ZetaChainClient {
getFees = getFees;
getPools = getPools;
trackCCTX = trackCCTX;
deposit = deposit;
withdraw = withdraw;
sendZeta = sendZeta;
getChainId = getChainId;
getQuote = getQuote;
Expand Down
107 changes: 0 additions & 107 deletions packages/client/src/deposit.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/client/src/evmCall.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import GatewayABI from "@zetachain/protocol-contracts/abi/GatewayEVM.sol/GatewayEVM.json";
import { ethers } from "ethers";

import GatewayABI from "./abi/GatewayEVM.sol/GatewayEVM.json";
import { ZetaChainClient } from "./client";
import type { revertOptions, txOptions } from "./types";

Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/evmDeposit.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ERC20_ABI from "@openzeppelin/contracts/build/contracts/ERC20.json";
import GatewayABI from "@zetachain/protocol-contracts/abi/GatewayEVM.sol/GatewayEVM.json";
import { ethers } from "ethers";

import GatewayABI from "./abi/GatewayEVM.sol/GatewayEVM.json";
import { ZetaChainClient } from "./client";
import type { revertOptions, txOptions } from "./types";

Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/evmDepositAndCall.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ERC20_ABI from "@openzeppelin/contracts/build/contracts/ERC20.json";
import GatewayABI from "@zetachain/protocol-contracts/abi/GatewayEVM.sol/GatewayEVM.json";
import { ethers } from "ethers";

import GatewayABI from "./abi/GatewayEVM.sol/GatewayEVM.json";
import { ZetaChainClient } from "./client";
import type { revertOptions, txOptions } from "./types";

Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/getBalances.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ERC20_ABI from "@openzeppelin/contracts/build/contracts/ERC20.json";
import { getAddress } from "@zetachain/protocol-contracts";
import ZRC20 from "@zetachain/protocol-contracts/abi/zevm/ZRC20.sol/ZRC20.json";
import ZRC20 from "@zetachain/protocol-contracts/abi/ZRC20.sol/ZRC20.json";
import { ethers } from "ethers";
import { formatUnits } from "ethers/lib/utils";
import fetch from "isomorphic-fetch";
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/getFees.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mainnet, testnet } from "@zetachain/protocol-contracts";
import ZRC20 from "@zetachain/protocol-contracts/abi/zevm/ZRC20.sol/ZRC20.json";
import ZRC20 from "@zetachain/protocol-contracts/abi/ZRC20.sol/ZRC20.json";
import { ethers, utils } from "ethers";
import fetch from "isomorphic-fetch";

Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/getPools.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import UniswapV2Factory from "@uniswap/v2-core/build/UniswapV2Factory.json";
import UniswapV2Pair from "@uniswap/v2-core/build/UniswapV2Pair.json";
import { getAddress, ParamChainName } from "@zetachain/protocol-contracts";
import SystemContract from "@zetachain/protocol-contracts/abi/zevm/SystemContract.sol/SystemContract.json";
import SystemContract from "@zetachain/protocol-contracts/abi/SystemContract.sol/SystemContract.json";
import { ethers } from "ethers";

import { ZetaChainClient } from "./client";
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/getQuote.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { parseUnits } from "@ethersproject/units";
import UniswapV2RouterABI from "@uniswap/v2-periphery/build/IUniswapV2Router02.json";
import { getAddress } from "@zetachain/protocol-contracts";
import ZRC20 from "@zetachain/protocol-contracts/abi/zevm/ZRC20.sol/ZRC20.json";
import ZRC20 from "@zetachain/protocol-contracts/abi/ZRC20.sol/ZRC20.json";
import { ethers } from "ethers";

import { ZetaChainClient } from "./client";
Expand Down
2 changes: 0 additions & 2 deletions packages/client/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export * from "./client";
export * from "./deposit";
export * from "./evmCall";
export * from "./evmDeposit";
export * from "./evmDepositAndCall";
Expand All @@ -16,7 +15,6 @@ export * from "./prepareData";
export * from "./sendZeta";
export * from "./solanaDeposit";
export * from "./trackCCTX";
export * from "./withdraw";
export * from "./zetachainCall";
export * from "./zetachainWithdraw";
export * from "./zetachainWithdrawAndCall";
Loading

0 comments on commit cf3b5f0

Please sign in to comment.