mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-26 23:57:48 +03:00
STF to ESM
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user