This commit is contained in:
Aleksandr Kraiz
2023-03-31 19:43:30 +04:00
parent facf5153df
commit 665bd568a4
16 changed files with 43 additions and 19 deletions

View File

@@ -2,9 +2,11 @@ import { ethers } from 'ethers';
import type OrionUnit from '../../OrionUnit/index.js';
import type { SupportedChainId } from '../../types.js';
import { isValidChainId } from '../../utils/index.js';
import { simpleFetch } from 'simple-typed-fetch';
import stf 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,7 +17,9 @@ 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 { simpleFetch } from 'simple-typed-fetch';
import stf from 'simple-typed-fetch';
const { simpleFetch } = stf;
type Params = {
assetName: string

View File

@@ -1,4 +1,4 @@
import type { BigNumber } from 'bignumber.js';
import type { BigNumber } from 'bignumber.js';
import type { ethers } from 'ethers';
import { merge } from 'merge-anything';
import { chains, envs } from '../config/index.js';
@@ -9,7 +9,9 @@ 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 { simpleFetch } from 'simple-typed-fetch';
import stf from 'simple-typed-fetch';
const { simpleFetch } = stf;
type EnvConfig = {
analyticsAPI: string