@evedex/exchange-api 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/cjs/authRestGateway.d.ts +63 -0
- package/dist/cjs/authRestGateway.js +96 -0
- package/dist/cjs/exchangeRestGateway.d.ts +91 -0
- package/dist/cjs/exchangeRestGateway.js +202 -0
- package/dist/cjs/exchangeWsGateway.d.ts +142 -0
- package/dist/cjs/exchangeWsGateway.js +146 -0
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/index.js +43 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/utils/exchange.d.ts +59 -0
- package/dist/cjs/utils/exchange.js +82 -0
- package/dist/cjs/utils/http.d.ts +26 -0
- package/dist/cjs/utils/http.js +28 -0
- package/dist/cjs/utils/index.d.ts +5 -0
- package/dist/cjs/utils/index.js +21 -0
- package/dist/cjs/utils/signal.d.ts +9 -0
- package/dist/cjs/utils/signal.js +24 -0
- package/dist/cjs/utils/types.d.ts +306 -0
- package/dist/cjs/utils/types.js +37 -0
- package/dist/cjs/utils/ws.d.ts +15 -0
- package/dist/cjs/utils/ws.js +2 -0
- package/dist/mjs/authRestGateway.d.ts +63 -0
- package/dist/mjs/authRestGateway.js +93 -0
- package/dist/mjs/exchangeRestGateway.d.ts +91 -0
- package/dist/mjs/exchangeRestGateway.js +205 -0
- package/dist/mjs/exchangeWsGateway.d.ts +142 -0
- package/dist/mjs/exchangeWsGateway.js +144 -0
- package/dist/mjs/index.d.ts +4 -0
- package/dist/mjs/index.js +4 -0
- package/dist/mjs/package.json +3 -0
- package/dist/mjs/utils/exchange.d.ts +59 -0
- package/dist/mjs/utils/exchange.js +81 -0
- package/dist/mjs/utils/http.d.ts +26 -0
- package/dist/mjs/utils/http.js +24 -0
- package/dist/mjs/utils/index.d.ts +5 -0
- package/dist/mjs/utils/index.js +5 -0
- package/dist/mjs/utils/signal.d.ts +9 -0
- package/dist/mjs/utils/signal.js +20 -0
- package/dist/mjs/utils/types.d.ts +306 -0
- package/dist/mjs/utils/types.js +34 -0
- package/dist/mjs/utils/ws.d.ts +15 -0
- package/dist/mjs/utils/ws.js +1 -0
- package/package.json +72 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export class RequestError extends Error {
|
|
2
|
+
response;
|
|
3
|
+
constructor(message, response) {
|
|
4
|
+
super(message);
|
|
5
|
+
this.response = response;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
function queryParamValueToString(value) {
|
|
9
|
+
if (typeof value === "boolean") {
|
|
10
|
+
return value ? "true" : "false";
|
|
11
|
+
}
|
|
12
|
+
return String(value);
|
|
13
|
+
}
|
|
14
|
+
export function serializeQueryParams(params) {
|
|
15
|
+
return Object.entries(params)
|
|
16
|
+
.filter(([, value]) => value !== undefined)
|
|
17
|
+
.map(([f, v]) => {
|
|
18
|
+
if (Array.isArray(v)) {
|
|
19
|
+
return v.map((e) => `${f}=${queryParamValueToString(e)}`).join("&");
|
|
20
|
+
}
|
|
21
|
+
return `${f}=${queryParamValueToString(v)}`;
|
|
22
|
+
})
|
|
23
|
+
.join("&");
|
|
24
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type Listener<T> = (data: T) => unknown;
|
|
2
|
+
export interface SignalMarker {
|
|
3
|
+
__isSignal: true;
|
|
4
|
+
}
|
|
5
|
+
export declare const SignalSkipAll: unique symbol;
|
|
6
|
+
export interface Signal<T> extends SignalMarker {
|
|
7
|
+
(dataOrListener: T | Listener<T> | typeof SignalSkipAll): unknown;
|
|
8
|
+
}
|
|
9
|
+
export declare function signal<T>(listener?: Listener<T>): Signal<T>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export const SignalSkipAll = Symbol("Skip all listeners");
|
|
2
|
+
export function signal(listener) {
|
|
3
|
+
let listeners = listener ? [listener] : [];
|
|
4
|
+
const fn = (dataOrListener) => {
|
|
5
|
+
if (dataOrListener === SignalSkipAll) {
|
|
6
|
+
listeners = [];
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
if (typeof dataOrListener === "function") {
|
|
10
|
+
const n = listeners.push(dataOrListener);
|
|
11
|
+
if (n >= 10) {
|
|
12
|
+
console.debug("Too many signal listeners", new Error().stack);
|
|
13
|
+
}
|
|
14
|
+
return n;
|
|
15
|
+
}
|
|
16
|
+
return listeners.forEach((currentListener) => currentListener(dataOrListener));
|
|
17
|
+
};
|
|
18
|
+
fn.__isSignal = true;
|
|
19
|
+
return fn;
|
|
20
|
+
}
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import { utils as cryptoUtils } from "@evedex/exchange-crypto";
|
|
2
|
+
import { MatcherState, OrderGroup, OrderStatus, OrderType, TpSlStatus } from "./exchange";
|
|
3
|
+
export interface PaginatedQuery {
|
|
4
|
+
limit?: number;
|
|
5
|
+
offset?: number;
|
|
6
|
+
}
|
|
7
|
+
export type ListOf<T> = {
|
|
8
|
+
list: T[];
|
|
9
|
+
count: number;
|
|
10
|
+
};
|
|
11
|
+
export interface JWT {
|
|
12
|
+
accessToken: string;
|
|
13
|
+
}
|
|
14
|
+
export interface RefreshedJWT extends JWT {
|
|
15
|
+
refreshToken: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ApiKey {
|
|
18
|
+
apiKey: string;
|
|
19
|
+
}
|
|
20
|
+
export interface User {
|
|
21
|
+
id: string;
|
|
22
|
+
authId: string;
|
|
23
|
+
exchangeId: number;
|
|
24
|
+
name: string;
|
|
25
|
+
email: string;
|
|
26
|
+
wallet: string;
|
|
27
|
+
social: Array<{
|
|
28
|
+
type: string;
|
|
29
|
+
value: string;
|
|
30
|
+
}>;
|
|
31
|
+
avatar: string;
|
|
32
|
+
level: number;
|
|
33
|
+
locale: string;
|
|
34
|
+
dateTimeFormat: string;
|
|
35
|
+
favoriteInstruments: string[];
|
|
36
|
+
marginCall: boolean;
|
|
37
|
+
createdAt: string;
|
|
38
|
+
updatedAt: string;
|
|
39
|
+
}
|
|
40
|
+
export interface DxFeedAuthToken {
|
|
41
|
+
token: string;
|
|
42
|
+
expireAt: number;
|
|
43
|
+
}
|
|
44
|
+
export interface WalletBalance {
|
|
45
|
+
currency: string;
|
|
46
|
+
balance: number;
|
|
47
|
+
balanceUSD: number;
|
|
48
|
+
}
|
|
49
|
+
export type WalletBalanceList = WalletBalance[];
|
|
50
|
+
export interface Funding {
|
|
51
|
+
coin: string;
|
|
52
|
+
quantity: number;
|
|
53
|
+
updatedAt: string;
|
|
54
|
+
}
|
|
55
|
+
export type FundingList = Funding[];
|
|
56
|
+
export interface FundingBalance {
|
|
57
|
+
currency: string;
|
|
58
|
+
balance: number;
|
|
59
|
+
}
|
|
60
|
+
export interface AvailableBalancePosition {
|
|
61
|
+
instrument: string;
|
|
62
|
+
side: cryptoUtils.Side;
|
|
63
|
+
volume: string;
|
|
64
|
+
initialMargin: string;
|
|
65
|
+
}
|
|
66
|
+
export interface AvailableBalanceOpenOrder {
|
|
67
|
+
instrument: string;
|
|
68
|
+
side: cryptoUtils.Side;
|
|
69
|
+
unFilledVolume: string;
|
|
70
|
+
unFilledInitialMargin: string;
|
|
71
|
+
}
|
|
72
|
+
export type UnfilledOrdersVolume = Record<string, number>;
|
|
73
|
+
export interface AvailableBalance {
|
|
74
|
+
currency: string;
|
|
75
|
+
funding: FundingBalance;
|
|
76
|
+
position: AvailableBalancePosition[];
|
|
77
|
+
openOrder: AvailableBalanceOpenOrder[];
|
|
78
|
+
availableBalance: number;
|
|
79
|
+
updatedAt: string;
|
|
80
|
+
openOrders: UnfilledOrdersVolume;
|
|
81
|
+
positions: Record<string, number>;
|
|
82
|
+
}
|
|
83
|
+
export interface Position {
|
|
84
|
+
id: string;
|
|
85
|
+
user: string;
|
|
86
|
+
instrument: string;
|
|
87
|
+
side: cryptoUtils.Side;
|
|
88
|
+
quantity: number;
|
|
89
|
+
avgPrice: number;
|
|
90
|
+
fundingRate: number;
|
|
91
|
+
leverage: number;
|
|
92
|
+
maintenanceMargin: number;
|
|
93
|
+
createdAt: string;
|
|
94
|
+
updatedAt: string;
|
|
95
|
+
}
|
|
96
|
+
export interface PositionMetrics extends Position {
|
|
97
|
+
unRealizedPnL: number;
|
|
98
|
+
adlLevel: number;
|
|
99
|
+
}
|
|
100
|
+
export type PositionList = {
|
|
101
|
+
list: PositionMetrics[];
|
|
102
|
+
};
|
|
103
|
+
export interface OrderFee {
|
|
104
|
+
coin: string;
|
|
105
|
+
quantity: number;
|
|
106
|
+
}
|
|
107
|
+
export interface Order {
|
|
108
|
+
id: string;
|
|
109
|
+
user: string;
|
|
110
|
+
instrument: string;
|
|
111
|
+
side: cryptoUtils.Side;
|
|
112
|
+
type: OrderType;
|
|
113
|
+
quantity: number;
|
|
114
|
+
limitPrice: number;
|
|
115
|
+
stopPrice: number | null;
|
|
116
|
+
status: OrderStatus;
|
|
117
|
+
rejectedReason?: string;
|
|
118
|
+
unFilledQuantity: number;
|
|
119
|
+
filledAvgPrice: number;
|
|
120
|
+
realizedPnL: number;
|
|
121
|
+
fee: OrderFee[];
|
|
122
|
+
createdAt: string;
|
|
123
|
+
updatedAt: string;
|
|
124
|
+
triggeredAt: string | null;
|
|
125
|
+
group: OrderGroup;
|
|
126
|
+
}
|
|
127
|
+
export type OrderList = ListOf<Order>;
|
|
128
|
+
export type OpenedOrder = Pick<Order, "id" | "user" | "instrument" | "side" | "type" | "status" | "quantity" | "limitPrice" | "unFilledQuantity" | "fee" | "updatedAt">;
|
|
129
|
+
export type OpenedOrdersList = OpenedOrder[];
|
|
130
|
+
export declare enum OrderFillFeeType {
|
|
131
|
+
Liquidation = "liquidation",
|
|
132
|
+
Adl = "adl",
|
|
133
|
+
Order = "order"
|
|
134
|
+
}
|
|
135
|
+
export interface OrderFillFee {
|
|
136
|
+
id: string;
|
|
137
|
+
user: string;
|
|
138
|
+
order: string;
|
|
139
|
+
fill: string;
|
|
140
|
+
coin: string;
|
|
141
|
+
quantity: string;
|
|
142
|
+
createdAt: Date;
|
|
143
|
+
type: OrderFillFeeType;
|
|
144
|
+
}
|
|
145
|
+
export interface TpSl {
|
|
146
|
+
id: string;
|
|
147
|
+
instrument: string;
|
|
148
|
+
type: cryptoUtils.TpSlType;
|
|
149
|
+
side: cryptoUtils.Side;
|
|
150
|
+
quantity: string;
|
|
151
|
+
price: string;
|
|
152
|
+
status: TpSlStatus;
|
|
153
|
+
triggerOrder: string | null;
|
|
154
|
+
triggeredQuantity: string;
|
|
155
|
+
cancelledReason: string;
|
|
156
|
+
createdAt: Date;
|
|
157
|
+
updatedAt: Date;
|
|
158
|
+
}
|
|
159
|
+
export type TpSlList = ListOf<TpSl>;
|
|
160
|
+
export declare enum TransferType {
|
|
161
|
+
Deposit = "deposit",
|
|
162
|
+
Withdraw = "withdraw",
|
|
163
|
+
TransferPFuturesToBalance = "transfer-pfutures-balance",
|
|
164
|
+
TransferBalanceToPFutures = "transfer-balance-pfutures",
|
|
165
|
+
PaymasterFee = "paymaster-fee",
|
|
166
|
+
PaymasterRefund = "paymaster-refund"
|
|
167
|
+
}
|
|
168
|
+
export declare enum TransferStatus {
|
|
169
|
+
Pending = "pending",
|
|
170
|
+
Done = "done",
|
|
171
|
+
Error = "error"
|
|
172
|
+
}
|
|
173
|
+
export interface Transfer {
|
|
174
|
+
id: string;
|
|
175
|
+
user: string;
|
|
176
|
+
type: TransferType;
|
|
177
|
+
coin: string;
|
|
178
|
+
amount: number;
|
|
179
|
+
fee: number;
|
|
180
|
+
status: TransferStatus;
|
|
181
|
+
createdAt: string;
|
|
182
|
+
updatedAt: string;
|
|
183
|
+
}
|
|
184
|
+
export interface Coin {
|
|
185
|
+
id: string;
|
|
186
|
+
name: string;
|
|
187
|
+
symbol: string;
|
|
188
|
+
image: string;
|
|
189
|
+
precision: number;
|
|
190
|
+
showPrecision: number;
|
|
191
|
+
price: number;
|
|
192
|
+
}
|
|
193
|
+
export type CoinList = {
|
|
194
|
+
list: Coin[];
|
|
195
|
+
};
|
|
196
|
+
export interface LeverageLimit {
|
|
197
|
+
[maxLeverage: number]: number;
|
|
198
|
+
}
|
|
199
|
+
export interface MaintenanceMarginParam {
|
|
200
|
+
percent: number;
|
|
201
|
+
deviance: number;
|
|
202
|
+
}
|
|
203
|
+
export interface MaintenanceMarginMap {
|
|
204
|
+
[rate: string]: MaintenanceMarginParam;
|
|
205
|
+
}
|
|
206
|
+
export declare enum InstrumentVisibility {
|
|
207
|
+
All = "all",
|
|
208
|
+
Restricted = "restricted",
|
|
209
|
+
None = "none"
|
|
210
|
+
}
|
|
211
|
+
export declare enum InstrumentTrading {
|
|
212
|
+
All = "all",
|
|
213
|
+
Restricted = "restricted",
|
|
214
|
+
None = "none",
|
|
215
|
+
OnlyClose = "onlyClose"
|
|
216
|
+
}
|
|
217
|
+
export interface Instrument {
|
|
218
|
+
id: string;
|
|
219
|
+
name: string;
|
|
220
|
+
from: Omit<Coin, "price">;
|
|
221
|
+
to: Omit<Coin, "price">;
|
|
222
|
+
maxLeverage: number;
|
|
223
|
+
leverageLimit: LeverageLimit;
|
|
224
|
+
maintenanceMargin: MaintenanceMarginMap;
|
|
225
|
+
lotSize: number;
|
|
226
|
+
quantityIncrement: number;
|
|
227
|
+
multiplier: number;
|
|
228
|
+
visibility: InstrumentVisibility;
|
|
229
|
+
trading: InstrumentTrading;
|
|
230
|
+
updatedAt: Date;
|
|
231
|
+
}
|
|
232
|
+
export type InstrumentList = Instrument[];
|
|
233
|
+
export interface InstrumentMetrics extends Instrument {
|
|
234
|
+
isPopular: boolean;
|
|
235
|
+
minPrice: number;
|
|
236
|
+
maxPrice: number;
|
|
237
|
+
minQuantity: number;
|
|
238
|
+
maxQuantity: number;
|
|
239
|
+
maxSlippage: number;
|
|
240
|
+
fundingRate: number;
|
|
241
|
+
fundingRateCreatedAt: Date;
|
|
242
|
+
slippageLimit: number;
|
|
243
|
+
fatFingerPriceProtection: number;
|
|
244
|
+
lastPrice: number;
|
|
245
|
+
markPrice: number;
|
|
246
|
+
openInterest: number;
|
|
247
|
+
low: number;
|
|
248
|
+
high: number;
|
|
249
|
+
closePrice: number;
|
|
250
|
+
volume: number;
|
|
251
|
+
volumeBase: number;
|
|
252
|
+
updatedAt: Date;
|
|
253
|
+
}
|
|
254
|
+
export interface InstrumentUpdateEvent {
|
|
255
|
+
id: string;
|
|
256
|
+
name: string;
|
|
257
|
+
displayName: string;
|
|
258
|
+
lastPrice: number;
|
|
259
|
+
high: number;
|
|
260
|
+
low: number;
|
|
261
|
+
volume: number;
|
|
262
|
+
volumeBase: number;
|
|
263
|
+
closePrice: number;
|
|
264
|
+
markPrice: number;
|
|
265
|
+
openInterest: number;
|
|
266
|
+
minPrice: number;
|
|
267
|
+
maxPrice: number;
|
|
268
|
+
fatFingerPriceProtection: number;
|
|
269
|
+
slippageLimit: number;
|
|
270
|
+
updatedAt: Date;
|
|
271
|
+
}
|
|
272
|
+
export type InstrumentMetricsList = InstrumentMetrics[];
|
|
273
|
+
export interface MarketInfo {
|
|
274
|
+
state: MatcherState;
|
|
275
|
+
fees: {
|
|
276
|
+
maker: number;
|
|
277
|
+
taker: number;
|
|
278
|
+
};
|
|
279
|
+
updatedAt: string;
|
|
280
|
+
}
|
|
281
|
+
export interface MarketDepthLevel {
|
|
282
|
+
price: number;
|
|
283
|
+
quantity: number;
|
|
284
|
+
}
|
|
285
|
+
export interface MarketDepth {
|
|
286
|
+
t: number;
|
|
287
|
+
asks: MarketDepthLevel[];
|
|
288
|
+
bids: MarketDepthLevel[];
|
|
289
|
+
}
|
|
290
|
+
export interface Trade {
|
|
291
|
+
orderId: string;
|
|
292
|
+
user: string;
|
|
293
|
+
instrument: string;
|
|
294
|
+
side: cryptoUtils.Side;
|
|
295
|
+
fillQuantity: number;
|
|
296
|
+
fillPrice: number;
|
|
297
|
+
status: OrderStatus.PartiallyFilled | OrderStatus.Filled;
|
|
298
|
+
createdAt: string;
|
|
299
|
+
}
|
|
300
|
+
export interface RecentTrade {
|
|
301
|
+
instrument: string;
|
|
302
|
+
side: cryptoUtils.Side;
|
|
303
|
+
fillQuantity: number;
|
|
304
|
+
fillPrice: number;
|
|
305
|
+
createdAt: string;
|
|
306
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export var OrderFillFeeType;
|
|
2
|
+
(function (OrderFillFeeType) {
|
|
3
|
+
OrderFillFeeType["Liquidation"] = "liquidation";
|
|
4
|
+
OrderFillFeeType["Adl"] = "adl";
|
|
5
|
+
OrderFillFeeType["Order"] = "order";
|
|
6
|
+
})(OrderFillFeeType || (OrderFillFeeType = {}));
|
|
7
|
+
export var TransferType;
|
|
8
|
+
(function (TransferType) {
|
|
9
|
+
TransferType["Deposit"] = "deposit";
|
|
10
|
+
TransferType["Withdraw"] = "withdraw";
|
|
11
|
+
TransferType["TransferPFuturesToBalance"] = "transfer-pfutures-balance";
|
|
12
|
+
TransferType["TransferBalanceToPFutures"] = "transfer-balance-pfutures";
|
|
13
|
+
TransferType["PaymasterFee"] = "paymaster-fee";
|
|
14
|
+
TransferType["PaymasterRefund"] = "paymaster-refund";
|
|
15
|
+
})(TransferType || (TransferType = {}));
|
|
16
|
+
export var TransferStatus;
|
|
17
|
+
(function (TransferStatus) {
|
|
18
|
+
TransferStatus["Pending"] = "pending";
|
|
19
|
+
TransferStatus["Done"] = "done";
|
|
20
|
+
TransferStatus["Error"] = "error";
|
|
21
|
+
})(TransferStatus || (TransferStatus = {}));
|
|
22
|
+
export var InstrumentVisibility;
|
|
23
|
+
(function (InstrumentVisibility) {
|
|
24
|
+
InstrumentVisibility["All"] = "all";
|
|
25
|
+
InstrumentVisibility["Restricted"] = "restricted";
|
|
26
|
+
InstrumentVisibility["None"] = "none";
|
|
27
|
+
})(InstrumentVisibility || (InstrumentVisibility = {}));
|
|
28
|
+
export var InstrumentTrading;
|
|
29
|
+
(function (InstrumentTrading) {
|
|
30
|
+
InstrumentTrading["All"] = "all";
|
|
31
|
+
InstrumentTrading["Restricted"] = "restricted";
|
|
32
|
+
InstrumentTrading["None"] = "none";
|
|
33
|
+
InstrumentTrading["OnlyClose"] = "onlyClose";
|
|
34
|
+
})(InstrumentTrading || (InstrumentTrading = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type Callback<P> = (payload: P) => any;
|
|
2
|
+
export interface CentrifugeSubscription {
|
|
3
|
+
onPublication(callback: Callback<any>): void;
|
|
4
|
+
subscribe(): void;
|
|
5
|
+
unsubscribe(): void;
|
|
6
|
+
}
|
|
7
|
+
export interface AssignChannelOptions {
|
|
8
|
+
recoverable: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface CentrifugeClient {
|
|
11
|
+
onConnected(callback: Callback<any>): void;
|
|
12
|
+
onDisconnected(callback: Callback<any>): void;
|
|
13
|
+
connect(): void;
|
|
14
|
+
assignChannel(name: string, options?: AssignChannelOptions): CentrifugeSubscription;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@evedex/exchange-api",
|
|
3
|
+
"version": "1.0.32",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/cjs/index.js",
|
|
6
|
+
"module": "dist/mjs/index.js",
|
|
7
|
+
"types": "dist/mjs/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/mjs/index.js",
|
|
11
|
+
"require": "./dist/cjs/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist/"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"prebuild": "npm run lint",
|
|
19
|
+
"_clear": "rimraf dist/*",
|
|
20
|
+
"lint": "eslint --fix src/**/*.ts",
|
|
21
|
+
"format": "prettier --log-level warn --write \"src/**/*.ts\"",
|
|
22
|
+
"test": "./scripts/test-unit.sh",
|
|
23
|
+
"test:system": "./scripts/test-system.sh",
|
|
24
|
+
"build": "npm run _clear && npm run build:cjs && npm run build:esm && /bin/bash ./fixup",
|
|
25
|
+
"build:cjs": "tsc -p tsconfig-cjs.json",
|
|
26
|
+
"build:esm": "tsc -p tsconfig.json",
|
|
27
|
+
"prepare": "husky"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@semantic-release/git": "^10.0.1",
|
|
31
|
+
"@semantic-release/gitlab": "^13.1.0",
|
|
32
|
+
"@semantic-release/npm": "^12.0.1",
|
|
33
|
+
"@types/assert": "^1.5.11",
|
|
34
|
+
"@types/big.js": "^6.2.2",
|
|
35
|
+
"@types/mocha": "^10.0.10",
|
|
36
|
+
"@types/node": "^20.14.5",
|
|
37
|
+
"@types/ws": "^8.5.14",
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "^7.13.1",
|
|
39
|
+
"@typescript-eslint/parser": "^7.13.1",
|
|
40
|
+
"axios": "^1.8.1",
|
|
41
|
+
"centrifuge": "^5.3.4",
|
|
42
|
+
"dotenv": "^16.4.7",
|
|
43
|
+
"env-var": "^7.5.0",
|
|
44
|
+
"eslint": "^8.57.0",
|
|
45
|
+
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
46
|
+
"eslint-config-prettier": "^9.1.0",
|
|
47
|
+
"eslint-import-resolver-typescript": "^3.6.1",
|
|
48
|
+
"eslint-plugin-import": "^2.29.1",
|
|
49
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
50
|
+
"eslint-plugin-typescript": "^0.14.0",
|
|
51
|
+
"husky": "^9.0.11",
|
|
52
|
+
"mocha": "^11.1.0",
|
|
53
|
+
"prettier": "^3.3.2",
|
|
54
|
+
"rimraf": "^5.0.7",
|
|
55
|
+
"semantic-release": "^24.0.0",
|
|
56
|
+
"ts-node": "^10.9.2",
|
|
57
|
+
"typescript": "^5.4.5",
|
|
58
|
+
"ws": "^8.18.1"
|
|
59
|
+
},
|
|
60
|
+
"keywords": [],
|
|
61
|
+
"author": "",
|
|
62
|
+
"license": "ISC",
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"@evedex/exchange-crypto": "^1.0.8",
|
|
65
|
+
"big.js": "^6.2.2"
|
|
66
|
+
},
|
|
67
|
+
"publishConfig": {
|
|
68
|
+
"access": "public",
|
|
69
|
+
"registry": "https://registry.npmjs.org/",
|
|
70
|
+
"tag": "latest"
|
|
71
|
+
}
|
|
72
|
+
}
|