STF to ESM

This commit is contained in:
Aleksandr Kraiz
2023-04-03 20:17:38 +04:00
parent 665bd568a4
commit bfa88fabaa
16 changed files with 22 additions and 49 deletions

View File

@@ -9,9 +9,7 @@ import {
} from '../../constants/index.js';
import { denormalizeNumber, normalizeNumber } from '../../utils/index.js';
import getNativeCryptocurrency from '../../utils/getNativeCryptocurrency.js';
import stf from 'simple-typed-fetch';
const { simpleFetch } = stf;
import { simpleFetch } from 'simple-typed-fetch';
export type DepositParams = {
asset: string

View File

@@ -1,14 +1,12 @@
import { BigNumber } from 'bignumber.js';
import { ethers } from 'ethers';
import stf from 'simple-typed-fetch';
import { simpleFetch } from 'simple-typed-fetch';
import { NATIVE_CURRENCY_PRECISION, SWAP_THROUGH_ORION_POOL_GAS_LIMIT } from '../../constants/index.js';
import type { OrionAggregator } from '../../services/OrionAggregator/index.js';
import type { OrionBlockchain } from '../../services/OrionBlockchain/index.js';
import { calculateFeeInFeeAsset, denormalizeNumber, getNativeCryptocurrency } from '../../utils/index.js';
const { simpleFetch } = stf;
export type GetSwapInfoParams = {
type: 'exactSpend' | 'exactReceive'
assetIn: string

View File

@@ -11,9 +11,7 @@ import { calculateFeeInFeeAsset, denormalizeNumber, normalizeNumber } from '../.
import { signOrder } from '../../crypt/index.js';
import type orderSchema from '../../services/OrionAggregator/schemas/orderSchema.js';
import type { z } from 'zod';
import stf from 'simple-typed-fetch';
const { simpleFetch } = stf;
import { simpleFetch } from 'simple-typed-fetch';
export type SwapLimitParams = {
type: 'exactSpend' | 'exactReceive'

View File

@@ -11,9 +11,7 @@ import { signOrder } from '../../crypt/index.js';
import type orderSchema from '../../services/OrionAggregator/schemas/orderSchema.js';
import type { z } from 'zod';
import type { SwapLimitParams } from './swapLimit.js';
import stf from 'simple-typed-fetch';
const { simpleFetch } = stf;
import { simpleFetch } from 'simple-typed-fetch';
export type SwapMarketParams = Omit<SwapLimitParams, 'price'> & {
slippagePercent: BigNumber.Value

View File

@@ -9,9 +9,7 @@ import {
} from '../../constants/index.js';
import { denormalizeNumber, normalizeNumber } from '../../utils/index.js';
import getNativeCryptocurrency from '../../utils/getNativeCryptocurrency.js';
import stf from 'simple-typed-fetch';
const { simpleFetch } = stf;
import { simpleFetch } from 'simple-typed-fetch';
export type WithdrawParams = {
asset: string