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

@@ -19,7 +19,9 @@ import httpToWS from '../../utils/httpToWS.js';
import { ethers } from 'ethers';
import orderSchema from './schemas/orderSchema.js';
import { exchanges } from '../../constants/index.js';
import { fetchWithValidation } from 'simple-typed-fetch';
import stf from 'simple-typed-fetch';
const { fetchWithValidation } = stf;
class OrionAggregator {
private readonly apiUrl: string;

View File

@@ -17,7 +17,9 @@ import type redeemOrderSchema from '../OrionAggregator/schemas/redeemOrderSchema
import { sourceAtomicHistorySchema, targetAtomicHistorySchema } from './schemas/atomicHistorySchema.js';
import { makePartial } from '../../utils/index.js';
import type { networkCodes } from '../../constants/index.js';
import { fetchWithValidation } from 'simple-typed-fetch';
import stf from 'simple-typed-fetch';
const { fetchWithValidation } = stf;
type IAdminAuthHeaders = {
auth: string

View File

@@ -1,9 +1,11 @@
import { fetchWithValidation } from 'simple-typed-fetch';
import stf from 'simple-typed-fetch';
import type { Exchange } from '../../types.js';
import { statisticsOverviewSchema, topPairsStatisticsSchema } from './schemas/index.js';
import candlesSchema from './schemas/candlesSchema.js';
import { PriceFeedWS } from './ws/index.js';
const { fetchWithValidation } = stf;
class PriceFeed {
private readonly apiUrl: string;

View File

@@ -1,4 +1,4 @@
import { fetchWithValidation } from 'simple-typed-fetch';
import stf from 'simple-typed-fetch';
import {
errorSchema,
miniStatsSchema,
@@ -9,6 +9,8 @@ import {
linkSchema,
} from './schemas/index.js';
const { fetchWithValidation } = stf;
type CreateLinkPayloadType = {
referer: string
link_option: number