mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-04-03 11:38:09 +03:00
STF to ESM
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user