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

@@ -2,11 +2,9 @@ import { ethers } from 'ethers';
import type OrionUnit from '../../OrionUnit/index.js';
import type { SupportedChainId } from '../../types.js';
import { isValidChainId } from '../../utils/index.js';
import stf from 'simple-typed-fetch';
import { simpleFetch } from 'simple-typed-fetch';
import bsonObjectId from 'bson-objectid';
const { simpleFetch } = stf;
const ObjectID = bsonObjectId.default
const getHistory = async (units: OrionUnit[], address: string, limit = 1000) => {

View File

@@ -17,9 +17,7 @@ import type { SupportedChainId } from '../../types.js';
import type Orion from '../index.js';
import type { z } from 'zod';
import type { placeAtomicSwapSchema } from '../../services/OrionAggregator/schemas/index.js';
import stf from 'simple-typed-fetch';
const { simpleFetch } = stf;
import { simpleFetch } from 'simple-typed-fetch';
type Params = {
assetName: string

View File

@@ -9,9 +9,7 @@ import type { SupportedChainId, DeepPartial, VerboseOrionUnitConfig, KnownEnv }
import { isValidChainId } from '../utils/index.js';
import swap from './bridge/swap.js';
import getHistory from './bridge/getHistory.js';
import stf from 'simple-typed-fetch';
const { simpleFetch } = stf;
import { simpleFetch } from 'simple-typed-fetch';
type EnvConfig = {
analyticsAPI: string