mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-04-05 20:48:12 +03:00
Moved fetching to simple-typed-fetch
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import type BigNumber from 'bignumber.js';
|
||||
import { z } from 'zod';
|
||||
import fetchWithValidation from '../../fetchWithValidation';
|
||||
import swapInfoSchema from './schemas/swapInfoSchema';
|
||||
import exchangeInfoSchema from './schemas/exchangeInfoSchema';
|
||||
import cancelOrderSchema from './schemas/cancelOrderSchema';
|
||||
@@ -20,6 +19,7 @@ import httpToWS from '../../utils/httpToWS';
|
||||
import { ethers } from 'ethers';
|
||||
import orderSchema from './schemas/orderSchema';
|
||||
import { exchanges } from '../../constants';
|
||||
import { fetchWithValidation } from 'simple-typed-fetch';
|
||||
|
||||
class OrionAggregator {
|
||||
private readonly apiUrl: string;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { z } from 'zod';
|
||||
import fetchWithValidation from '../../fetchWithValidation';
|
||||
import {
|
||||
IDOSchema, atomicHistorySchema,
|
||||
poolsConfigSchema, poolsInfoSchema, infoSchema, historySchema,
|
||||
@@ -18,6 +17,7 @@ import type redeemOrderSchema from '../OrionAggregator/schemas/redeemOrderSchema
|
||||
import { sourceAtomicHistorySchema, targetAtomicHistorySchema } from './schemas/atomicHistorySchema';
|
||||
import { makePartial } from '../../utils';
|
||||
import type { networkCodes } from '../../constants';
|
||||
import { fetchWithValidation } from 'simple-typed-fetch';
|
||||
|
||||
type IAdminAuthHeaders = {
|
||||
auth: string
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import fetchWithValidation from '../../fetchWithValidation';
|
||||
import { fetchWithValidation } from 'simple-typed-fetch';
|
||||
import type { Exchange } from '../../types';
|
||||
import { statisticsOverviewSchema, topPairsStatisticsSchema } from './schemas';
|
||||
import candlesSchema from './schemas/candlesSchema';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import fetchWithValidation from '../../fetchWithValidation';
|
||||
import { fetchWithValidation } from 'simple-typed-fetch';
|
||||
import {
|
||||
errorSchema,
|
||||
miniStatsSchema,
|
||||
|
||||
Reference in New Issue
Block a user