diff --git a/package.json b/package.json index fb74e2f..6ab4cc6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.18.25", + "version": "0.18.26", "description": "Orion Protocol SDK", "main": "./lib/index.cjs", "module": "./lib/index.js", diff --git a/src/BalanceGuard.ts b/src/BalanceGuard.ts index 6b559ca..42bbb23 100644 --- a/src/BalanceGuard.ts +++ b/src/BalanceGuard.ts @@ -1,7 +1,7 @@ import { BigNumber } from 'bignumber.js'; import { ethers } from 'ethers'; import clone from 'just-clone'; -import { ERC20__factory } from '@orionprotocol/contracts/lib/ethers-v5'; +import { ERC20__factory } from '@orionprotocol/contracts/lib/ethers-v5/index.js'; import { APPROVE_ERC20_GAS_LIMIT, NATIVE_CURRENCY_PRECISION } from './constants/index.js'; import type { AggregatedBalanceRequirement, ApproveFix, Asset, BalanceIssue, BalanceRequirement, Source, diff --git a/src/utils/checkIsToken.ts b/src/utils/checkIsToken.ts index 0995713..20d1f5d 100644 --- a/src/utils/checkIsToken.ts +++ b/src/utils/checkIsToken.ts @@ -1,4 +1,4 @@ -import { ERC20__factory } from '@orionprotocol/contracts/lib/ethers-v5'; +import { ERC20__factory } from '@orionprotocol/contracts/lib/ethers-v5/index.js'; import { ethers } from 'ethers'; import invariant from 'tiny-invariant'; diff --git a/src/utils/getBalance.ts b/src/utils/getBalance.ts index 2c93732..9c84400 100644 --- a/src/utils/getBalance.ts +++ b/src/utils/getBalance.ts @@ -1,5 +1,5 @@ -import type { Exchange } from '@orionprotocol/contracts/lib/ethers-v5'; -import { ERC20__factory } from '@orionprotocol/contracts/lib/ethers-v5' +import type { Exchange } from '@orionprotocol/contracts/lib/ethers-v5/index.js'; +import { ERC20__factory } from '@orionprotocol/contracts/lib/ethers-v5/index.js'; import type { BigNumber } from 'bignumber.js'; import { ethers } from 'ethers'; import { INTERNAL_ORION_PRECISION, NATIVE_CURRENCY_PRECISION } from '../constants/index.js'; diff --git a/src/utils/getBalances.ts b/src/utils/getBalances.ts index 9e3da5e..a12260c 100644 --- a/src/utils/getBalances.ts +++ b/src/utils/getBalances.ts @@ -1,4 +1,4 @@ -import type { Exchange } from '@orionprotocol/contracts/lib/ethers-v5'; +import type { Exchange } from '@orionprotocol/contracts/lib/ethers-v5/index.js'; import type { BigNumber } from 'bignumber.js'; import type { ethers } from 'ethers'; import type { OrionAggregator } from '../services/OrionAggregator/index.js'; diff --git a/src/utils/parseExchangeTradeTransaction.ts b/src/utils/parseExchangeTradeTransaction.ts index fad93fb..78c83d7 100644 --- a/src/utils/parseExchangeTradeTransaction.ts +++ b/src/utils/parseExchangeTradeTransaction.ts @@ -1,4 +1,4 @@ -import { Exchange__factory } from '@orionprotocol/contracts/lib/ethers-v5'; +import { Exchange__factory } from '@orionprotocol/contracts/lib/ethers-v5/index.js'; import { ethers } from 'ethers'; import { z } from 'zod';