STF to ESM

This commit is contained in:
Aleksandr Kraiz
2023-04-03 20:17:38 +04:00
parent 665bd568a4
commit bfa88fabaa
16 changed files with 22 additions and 49 deletions

View File

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

View File

@@ -17,9 +17,7 @@ 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 stf from 'simple-typed-fetch';
const { fetchWithValidation } = stf;
import { fetchWithValidation } from 'simple-typed-fetch';
type IAdminAuthHeaders = {
auth: string

View File

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