mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-04-12 05:58:08 +03:00
Fix bugs
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user