Skip to content

Commit

Permalink
build: upgrade to @hifi/[email protected]
Browse files Browse the repository at this point in the history
build: upgrade to @hifi/[email protected]
  • Loading branch information
scorpion9979 committed May 25, 2022
1 parent 3a364a4 commit 6868cbd
Show file tree
Hide file tree
Showing 3 changed files with 274 additions and 460 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
},
"types": "./types/index.d.ts",
"dependencies": {
"@hifi/flash-swap": "^1.7.0",
"@hifi/protocol": "^1.7.1",
"@hifi/flash-swap": "^1.10.0",
"@hifi/protocol": "^1.10.0",
"dotenv": "^10.0.0",
"ethers": "^5.6.2",
"stormdb": "^0.5.2",
Expand Down
18 changes: 9 additions & 9 deletions src/bot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ import { Logger, addressesAreEqual, batchQueryFilter, getUniswapV2PairInfo, init
import { DUST_EPSILON, HTOKENS, LAST_SYNCED_BLOCK, VAULTS } from "./constants";
import { Args, Db, Htokens, Vault, Vaults } from "./types";
import { MinInt256 } from "@ethersproject/constants";
import { IUniswapV2Pair } from "@hifi/flash-swap/dist/types/IUniswapV2Pair";
import { IUniswapV2Pair__factory } from "@hifi/flash-swap/dist/types/factories/IUniswapV2Pair__factory";
import { BalanceSheetV1 } from "@hifi/protocol/dist/types/BalanceSheetV1";
import { HToken } from "@hifi/protocol/dist/types/HToken";
import { BalanceSheetV1__factory } from "@hifi/protocol/dist/types/factories/BalanceSheetV1__factory";
import { HToken__factory } from "@hifi/protocol/dist/types/factories/HToken__factory";
import { IUniswapV2Pair } from "@hifi/flash-swap/dist/types/contracts/uniswap-v2/IUniswapV2Pair";
import { IUniswapV2Pair__factory } from "@hifi/flash-swap/dist/types/factories/contracts/uniswap-v2/IUniswapV2Pair__factory";
import { BalanceSheetV2 } from "@hifi/protocol/dist/types/contracts/core/balance-sheet/BalanceSheetV2";
import { HToken } from "@hifi/protocol/dist/types/contracts/core/h-token/HToken";
import { BalanceSheetV2__factory } from "@hifi/protocol/dist/types/factories/contracts/core/balance-sheet/BalanceSheetV2__factory";
import { HToken__factory } from "@hifi/protocol/dist/types/factories/contracts/core/h-token/HToken__factory";
import { BigNumber, BigNumberish, Contract, utils } from "ethers";

export class Bot {
private db: Db;
private deployments: {
balanceSheet: BalanceSheetV1;
balanceSheet: BalanceSheetV2;
};
private isBusy;
private network;
Expand All @@ -33,9 +33,9 @@ export class Bot {
this.deployments = {
balanceSheet: new Contract(
this.network.contracts.balanceSheet,
BalanceSheetV1__factory.abi,
BalanceSheetV2__factory.abi,
this.signer,
) as BalanceSheetV1,
) as BalanceSheetV2,
};
}

Expand Down
Loading

0 comments on commit 6868cbd

Please sign in to comment.