Bump contracts

This commit is contained in:
Aleksandr Kraiz
2022-05-29 19:17:56 +04:00
parent 9bfd2617be
commit da67332e5f
13 changed files with 37 additions and 47 deletions

View File

@@ -1,7 +1,7 @@
import BigNumber from 'bignumber.js';
import { ethers } from 'ethers';
import clone from 'just-clone';
import { ERC20__factory } from '@orionprotocol/contracts/ethers';
import { ERC20__factory } from '@orionprotocol/contracts';
import { utils } from '.';
import { APPROVE_ERC20_GAS_LIMIT, NATIVE_CURRENCY_PRECISION } from './constants';
import {

View File

@@ -1,7 +1,7 @@
/* eslint-disable max-len */
import BigNumber from 'bignumber.js';
import { ethers } from 'ethers';
import { Exchange__factory } from '@orionprotocol/contracts/ethers';
import { Exchange__factory } from '@orionprotocol/contracts';
import getBalances from '../../utils/getBalances';
import BalanceGuard from '../../BalanceGuard';
import OrionUnit from '..';

View File

@@ -2,7 +2,7 @@
/* eslint-disable max-len */
import BigNumber from 'bignumber.js';
import { ethers } from 'ethers';
import { Exchange__factory } from '@orionprotocol/contracts/ethers';
import { Exchange__factory } from '@orionprotocol/contracts';
import getBalances from '../../utils/getBalances';
import BalanceGuard from '../../BalanceGuard';
import getAvailableSources from '../../utils/getAvailableFundsSources';

View File

@@ -1,7 +1,7 @@
/* eslint-disable max-len */
import BigNumber from 'bignumber.js';
import { ethers } from 'ethers';
import { Exchange__factory } from '@orionprotocol/contracts/ethers';
import { Exchange__factory } from '@orionprotocol/contracts';
import getBalances from '../../utils/getBalances';
import BalanceGuard from '../../BalanceGuard';
import OrionUnit from '..';

View File

@@ -1,4 +1,4 @@
import { Exchange__factory, IUniswapV2Pair__factory, IUniswapV2Router__factory } from '@orionprotocol/contracts/ethers';
import { Exchange__factory, IUniswapV2Pair__factory, IUniswapV2Router__factory } from '@orionprotocol/contracts';
import BigNumber from 'bignumber.js';
import { ethers } from 'ethers';
import OrionUnit from '..';

View File

@@ -3,8 +3,8 @@ import { Provider } from '@ethersproject/providers';
import {
Exchange as ExchangeContract,
Exchange__factory as ExchangeContract__factory,
} from '@orionprotocol/contracts/ethers';
import { LibAtomic } from '@orionprotocol/contracts/ethers/Exchange';
} from '@orionprotocol/contracts';
import { LibAtomic } from '@orionprotocol/contracts/lib/ethers/Exchange';
import { BytesLike, ethers, Signer } from 'ethers';
import {
DEPOSIT_ERC20_GAS_LIMIT, DEPOSIT_ETH_GAS_LIMIT, LOCKATOMIC_GAS_LIMIT,

View File

@@ -1,5 +1,5 @@
/* eslint-disable camelcase */
import { ERC20__factory } from '@orionprotocol/contracts/ethers';
import { ERC20__factory } from '@orionprotocol/contracts';
import { ethers } from 'ethers';
import invariant from 'tiny-invariant';

View File

@@ -1,5 +1,4 @@
import { ERC20__factory } from '@orionprotocol/contracts/ethers';
import type { Exchange } from '@orionprotocol/contracts/ethers';
import { ERC20__factory, Exchange } from '@orionprotocol/contracts';
import BigNumber from 'bignumber.js';
import { ethers } from 'ethers';

View File

@@ -1,4 +1,4 @@
import type { Exchange } from '@orionprotocol/contracts/ethers';
import { Exchange } from '@orionprotocol/contracts';
import BigNumber from 'bignumber.js';
import { ethers } from 'ethers';
import { OrionAggregator } from '../services/OrionAggregator';