@orbs-network/spot-ui 0.0.7
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/dist/index.d.ts +2 -0
- package/dist/package.json.d.ts +46 -0
- package/dist/spot-ui.js +2890 -0
- package/dist/spot-ui.umd.cjs +64 -0
- package/dist/src/index.d.ts +14 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/lib/abi/erc20.json.d.ts +291 -0
- package/dist/src/lib/abi/executor.json.d.ts +757 -0
- package/dist/src/lib/abi/index.d.ts +501 -0
- package/dist/src/lib/abi/index.d.ts.map +1 -0
- package/dist/src/lib/abi/iweth.json.d.ts +41 -0
- package/dist/src/lib/abi/reactor.json.d.ts +647 -0
- package/dist/src/lib/abi/repermit.json.d.ts +316 -0
- package/dist/src/lib/analytics.d.ts +106 -0
- package/dist/src/lib/analytics.d.ts.map +1 -0
- package/dist/src/lib/build-repermit-order-data.d.ts +51 -0
- package/dist/src/lib/build-repermit-order-data.d.ts.map +1 -0
- package/dist/src/lib/consts.d.ts +88 -0
- package/dist/src/lib/consts.d.ts.map +1 -0
- package/dist/src/lib/lib.d.ts +59 -0
- package/dist/src/lib/lib.d.ts.map +1 -0
- package/dist/src/lib/networks.d.ts +445 -0
- package/dist/src/lib/networks.d.ts.map +1 -0
- package/dist/src/lib/orders/index.d.ts +10 -0
- package/dist/src/lib/orders/index.d.ts.map +1 -0
- package/dist/src/lib/orders/v1-orders.d.ts +48 -0
- package/dist/src/lib/orders/v1-orders.d.ts.map +1 -0
- package/dist/src/lib/orders/v2-orders.d.ts +8 -0
- package/dist/src/lib/orders/v2-orders.d.ts.map +1 -0
- package/dist/src/lib/submit-order.d.ts +3 -0
- package/dist/src/lib/submit-order.d.ts.map +1 -0
- package/dist/src/lib/types.d.ts +267 -0
- package/dist/src/lib/types.d.ts.map +1 -0
- package/dist/src/lib/utils.d.ts +456 -0
- package/dist/src/lib/utils.d.ts.map +1 -0
- package/package.json +42 -0
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
import { default as BN } from 'bignumber.js';
|
|
2
|
+
import { Config, Order, OrderType, Partners, TimeDuration, TimeUnit } from './types';
|
|
3
|
+
export declare const getTheGraphUrl: (chainId?: number) => string | undefined;
|
|
4
|
+
export declare const isMarketPrice: (type: OrderType) => type is OrderType.TWAP_MARKET | OrderType.TRIGGER_PRICE_MARKET;
|
|
5
|
+
export declare const groupBy: (array: any | undefined, key: string) => any;
|
|
6
|
+
type KeyByArray<T> = {
|
|
7
|
+
[key: string]: T;
|
|
8
|
+
};
|
|
9
|
+
export declare const keyBy: <T>(array: T[], key: keyof T) => KeyByArray<T>;
|
|
10
|
+
export declare const compact: <T>(array: (T | null | undefined | false | "")[]) => T[];
|
|
11
|
+
export declare const orderBy: <T>(array: T[], key: (item: T) => any, order?: "asc" | "desc") => T[];
|
|
12
|
+
export declare const amountUi: (decimals?: number, amount?: string) => string;
|
|
13
|
+
export declare const amountBN: (decimals?: number, amount?: string) => string;
|
|
14
|
+
export declare const zero: BN;
|
|
15
|
+
export declare const one: BN;
|
|
16
|
+
export declare const ten: BN;
|
|
17
|
+
export declare const ether: BN;
|
|
18
|
+
export declare function bn(n: BN.Value, base?: number): BN;
|
|
19
|
+
export declare function convertDecimals(n: BN.Value, sourceDecimals: number, targetDecimals: number): BN;
|
|
20
|
+
export declare function eqIgnoreCase(a: string, b: string): boolean;
|
|
21
|
+
export declare function parsebn(n: BN.Value, defaultValue?: BN, fmt?: BN.Format): BN;
|
|
22
|
+
export declare const isNativeAddress: (address?: string) => boolean;
|
|
23
|
+
export declare function delay(ms: number): Promise<unknown>;
|
|
24
|
+
export declare function findTimeUnit(_millis: number): TimeUnit;
|
|
25
|
+
export declare const getTimeDurationMillis: (duration?: TimeDuration) => number;
|
|
26
|
+
export declare const safeInteger: (value?: string) => string;
|
|
27
|
+
export declare const safeBNString: (value?: string | number) => string;
|
|
28
|
+
export declare const safeBNNumber: (value?: string | number) => number;
|
|
29
|
+
export declare const getNetwork: (chainId?: number) => {
|
|
30
|
+
id: number;
|
|
31
|
+
name: string;
|
|
32
|
+
shortname: string;
|
|
33
|
+
native: {
|
|
34
|
+
address: string;
|
|
35
|
+
symbol: string;
|
|
36
|
+
decimals: number;
|
|
37
|
+
logoUrl: string;
|
|
38
|
+
};
|
|
39
|
+
wToken: {
|
|
40
|
+
symbol: string;
|
|
41
|
+
address: string;
|
|
42
|
+
decimals: number;
|
|
43
|
+
logoUrl: string;
|
|
44
|
+
};
|
|
45
|
+
publicRpcUrl: string;
|
|
46
|
+
logoUrl: string;
|
|
47
|
+
explorer: string;
|
|
48
|
+
eip1559: boolean;
|
|
49
|
+
} | {
|
|
50
|
+
id: number;
|
|
51
|
+
name: string;
|
|
52
|
+
shortname: string;
|
|
53
|
+
native: {
|
|
54
|
+
address: string;
|
|
55
|
+
symbol: string;
|
|
56
|
+
decimals: number;
|
|
57
|
+
logoUrl: string;
|
|
58
|
+
};
|
|
59
|
+
wToken: {
|
|
60
|
+
symbol: string;
|
|
61
|
+
address: string;
|
|
62
|
+
decimals: number;
|
|
63
|
+
logoUrl: string;
|
|
64
|
+
};
|
|
65
|
+
publicRpcUrl: string;
|
|
66
|
+
logoUrl: string;
|
|
67
|
+
explorer: string;
|
|
68
|
+
eip1559: boolean;
|
|
69
|
+
} | {
|
|
70
|
+
id: number;
|
|
71
|
+
name: string;
|
|
72
|
+
shortname: string;
|
|
73
|
+
native: {
|
|
74
|
+
address: string;
|
|
75
|
+
symbol: string;
|
|
76
|
+
decimals: number;
|
|
77
|
+
logoUrl: string;
|
|
78
|
+
};
|
|
79
|
+
wToken: {
|
|
80
|
+
symbol: string;
|
|
81
|
+
address: string;
|
|
82
|
+
decimals: number;
|
|
83
|
+
logoUrl: string;
|
|
84
|
+
};
|
|
85
|
+
publicRpcUrl: string;
|
|
86
|
+
logoUrl: string;
|
|
87
|
+
explorer: string;
|
|
88
|
+
eip1559: boolean;
|
|
89
|
+
} | {
|
|
90
|
+
id: number;
|
|
91
|
+
name: string;
|
|
92
|
+
shortname: string;
|
|
93
|
+
native: {
|
|
94
|
+
address: string;
|
|
95
|
+
symbol: string;
|
|
96
|
+
decimals: number;
|
|
97
|
+
logoUrl: string;
|
|
98
|
+
};
|
|
99
|
+
wToken: {
|
|
100
|
+
symbol: string;
|
|
101
|
+
address: string;
|
|
102
|
+
decimals: number;
|
|
103
|
+
logoUrl: string;
|
|
104
|
+
};
|
|
105
|
+
publicRpcUrl: string;
|
|
106
|
+
logoUrl: string;
|
|
107
|
+
explorer: string;
|
|
108
|
+
eip1559: boolean;
|
|
109
|
+
} | {
|
|
110
|
+
id: number;
|
|
111
|
+
name: string;
|
|
112
|
+
shortname: string;
|
|
113
|
+
native: {
|
|
114
|
+
address: string;
|
|
115
|
+
symbol: string;
|
|
116
|
+
decimals: number;
|
|
117
|
+
logoUrl: string;
|
|
118
|
+
};
|
|
119
|
+
wToken: {
|
|
120
|
+
symbol: string;
|
|
121
|
+
address: string;
|
|
122
|
+
decimals: number;
|
|
123
|
+
logoUrl: string;
|
|
124
|
+
};
|
|
125
|
+
publicRpcUrl: string;
|
|
126
|
+
logoUrl: string;
|
|
127
|
+
explorer: string;
|
|
128
|
+
eip1559: boolean;
|
|
129
|
+
} | {
|
|
130
|
+
id: number;
|
|
131
|
+
name: string;
|
|
132
|
+
shortname: string;
|
|
133
|
+
native: {
|
|
134
|
+
address: string;
|
|
135
|
+
symbol: string;
|
|
136
|
+
decimals: number;
|
|
137
|
+
logoUrl: string;
|
|
138
|
+
};
|
|
139
|
+
wToken: {
|
|
140
|
+
symbol: string;
|
|
141
|
+
address: string;
|
|
142
|
+
decimals: number;
|
|
143
|
+
logoUrl: string;
|
|
144
|
+
};
|
|
145
|
+
publicRpcUrl: string;
|
|
146
|
+
logoUrl: string;
|
|
147
|
+
explorer: string;
|
|
148
|
+
eip1559: boolean;
|
|
149
|
+
} | {
|
|
150
|
+
id: number;
|
|
151
|
+
name: string;
|
|
152
|
+
shortname: string;
|
|
153
|
+
native: {
|
|
154
|
+
address: string;
|
|
155
|
+
symbol: string;
|
|
156
|
+
decimals: number;
|
|
157
|
+
logoUrl: string;
|
|
158
|
+
};
|
|
159
|
+
wToken: {
|
|
160
|
+
symbol: string;
|
|
161
|
+
address: string;
|
|
162
|
+
decimals: number;
|
|
163
|
+
logoUrl: string;
|
|
164
|
+
};
|
|
165
|
+
publicRpcUrl: string;
|
|
166
|
+
logoUrl: string;
|
|
167
|
+
explorer: string;
|
|
168
|
+
eip1559: boolean;
|
|
169
|
+
} | {
|
|
170
|
+
id: number;
|
|
171
|
+
name: string;
|
|
172
|
+
shortname: string;
|
|
173
|
+
native: {
|
|
174
|
+
address: string;
|
|
175
|
+
symbol: string;
|
|
176
|
+
decimals: number;
|
|
177
|
+
logoUrl: string;
|
|
178
|
+
};
|
|
179
|
+
wToken: {
|
|
180
|
+
symbol: string;
|
|
181
|
+
address: string;
|
|
182
|
+
decimals: number;
|
|
183
|
+
logoUrl: string;
|
|
184
|
+
};
|
|
185
|
+
publicRpcUrl: string;
|
|
186
|
+
logoUrl: string;
|
|
187
|
+
explorer: string;
|
|
188
|
+
eip1559: boolean;
|
|
189
|
+
} | {
|
|
190
|
+
id: number;
|
|
191
|
+
name: string;
|
|
192
|
+
shortname: string;
|
|
193
|
+
native: {
|
|
194
|
+
address: string;
|
|
195
|
+
symbol: string;
|
|
196
|
+
decimals: number;
|
|
197
|
+
logoUrl: string;
|
|
198
|
+
};
|
|
199
|
+
wToken: {
|
|
200
|
+
symbol: string;
|
|
201
|
+
address: string;
|
|
202
|
+
decimals: number;
|
|
203
|
+
logoUrl: string;
|
|
204
|
+
};
|
|
205
|
+
publicRpcUrl: string;
|
|
206
|
+
logoUrl: string;
|
|
207
|
+
explorer: string;
|
|
208
|
+
eip1559: boolean;
|
|
209
|
+
} | {
|
|
210
|
+
id: number;
|
|
211
|
+
name: string;
|
|
212
|
+
shortname: string;
|
|
213
|
+
native: {
|
|
214
|
+
address: string;
|
|
215
|
+
symbol: string;
|
|
216
|
+
decimals: number;
|
|
217
|
+
logoUrl: string;
|
|
218
|
+
};
|
|
219
|
+
wToken: {
|
|
220
|
+
symbol: string;
|
|
221
|
+
address: string;
|
|
222
|
+
decimals: number;
|
|
223
|
+
logoUrl: string;
|
|
224
|
+
};
|
|
225
|
+
publicRpcUrl: string;
|
|
226
|
+
logoUrl: string;
|
|
227
|
+
explorer: string;
|
|
228
|
+
eip1559: boolean;
|
|
229
|
+
} | {
|
|
230
|
+
id: number;
|
|
231
|
+
name: string;
|
|
232
|
+
shortname: string;
|
|
233
|
+
native: {
|
|
234
|
+
address: string;
|
|
235
|
+
symbol: string;
|
|
236
|
+
decimals: number;
|
|
237
|
+
logoUrl: string;
|
|
238
|
+
};
|
|
239
|
+
wToken: {
|
|
240
|
+
symbol: string;
|
|
241
|
+
address: string;
|
|
242
|
+
decimals: number;
|
|
243
|
+
logoUrl: string;
|
|
244
|
+
};
|
|
245
|
+
publicRpcUrl: string;
|
|
246
|
+
logoUrl: string;
|
|
247
|
+
explorer: string;
|
|
248
|
+
eip1559: boolean;
|
|
249
|
+
} | {
|
|
250
|
+
id: number;
|
|
251
|
+
name: string;
|
|
252
|
+
shortname: string;
|
|
253
|
+
native: {
|
|
254
|
+
address: string;
|
|
255
|
+
symbol: string;
|
|
256
|
+
decimals: number;
|
|
257
|
+
logoUrl: string;
|
|
258
|
+
};
|
|
259
|
+
wToken: {
|
|
260
|
+
symbol: string;
|
|
261
|
+
address: string;
|
|
262
|
+
decimals: number;
|
|
263
|
+
logoUrl: string;
|
|
264
|
+
};
|
|
265
|
+
publicRpcUrl: string;
|
|
266
|
+
logoUrl: string;
|
|
267
|
+
explorer: string;
|
|
268
|
+
eip1559: boolean;
|
|
269
|
+
} | {
|
|
270
|
+
id: number;
|
|
271
|
+
name: string;
|
|
272
|
+
shortname: string;
|
|
273
|
+
native: {
|
|
274
|
+
address: string;
|
|
275
|
+
symbol: string;
|
|
276
|
+
decimals: number;
|
|
277
|
+
logoUrl: string;
|
|
278
|
+
};
|
|
279
|
+
wToken: {
|
|
280
|
+
symbol: string;
|
|
281
|
+
address: string;
|
|
282
|
+
decimals: number;
|
|
283
|
+
logoUrl: string;
|
|
284
|
+
};
|
|
285
|
+
publicRpcUrl: string;
|
|
286
|
+
logoUrl: string;
|
|
287
|
+
explorer: string;
|
|
288
|
+
eip1559: boolean;
|
|
289
|
+
} | {
|
|
290
|
+
id: number;
|
|
291
|
+
name: string;
|
|
292
|
+
shortname: string;
|
|
293
|
+
native: {
|
|
294
|
+
address: string;
|
|
295
|
+
symbol: string;
|
|
296
|
+
decimals: number;
|
|
297
|
+
logoUrl: string;
|
|
298
|
+
};
|
|
299
|
+
wToken: {
|
|
300
|
+
symbol: string;
|
|
301
|
+
address: string;
|
|
302
|
+
decimals: number;
|
|
303
|
+
logoUrl: string;
|
|
304
|
+
};
|
|
305
|
+
publicRpcUrl: string;
|
|
306
|
+
logoUrl: string;
|
|
307
|
+
explorer: string;
|
|
308
|
+
eip1559: boolean;
|
|
309
|
+
} | {
|
|
310
|
+
id: number;
|
|
311
|
+
name: string;
|
|
312
|
+
shortname: string;
|
|
313
|
+
native: {
|
|
314
|
+
address: string;
|
|
315
|
+
symbol: string;
|
|
316
|
+
decimals: number;
|
|
317
|
+
logoUrl: string;
|
|
318
|
+
};
|
|
319
|
+
wToken: {
|
|
320
|
+
symbol: string;
|
|
321
|
+
address: string;
|
|
322
|
+
decimals: number;
|
|
323
|
+
logoUrl: string;
|
|
324
|
+
};
|
|
325
|
+
publicRpcUrl: string;
|
|
326
|
+
logoUrl: string;
|
|
327
|
+
explorer: string;
|
|
328
|
+
eip1559: boolean;
|
|
329
|
+
} | {
|
|
330
|
+
id: number;
|
|
331
|
+
name: string;
|
|
332
|
+
shortname: string;
|
|
333
|
+
native: {
|
|
334
|
+
address: string;
|
|
335
|
+
symbol: string;
|
|
336
|
+
decimals: number;
|
|
337
|
+
logoUrl: string;
|
|
338
|
+
};
|
|
339
|
+
wToken: {
|
|
340
|
+
symbol: string;
|
|
341
|
+
address: string;
|
|
342
|
+
decimals: number;
|
|
343
|
+
logoUrl: string;
|
|
344
|
+
};
|
|
345
|
+
publicRpcUrl: string;
|
|
346
|
+
logoUrl: string;
|
|
347
|
+
explorer: string;
|
|
348
|
+
eip1559: boolean;
|
|
349
|
+
} | {
|
|
350
|
+
id: number;
|
|
351
|
+
name: string;
|
|
352
|
+
shortname: string;
|
|
353
|
+
native: {
|
|
354
|
+
address: string;
|
|
355
|
+
symbol: string;
|
|
356
|
+
decimals: number;
|
|
357
|
+
logoUrl: string;
|
|
358
|
+
};
|
|
359
|
+
wToken: {
|
|
360
|
+
symbol: string;
|
|
361
|
+
address: string;
|
|
362
|
+
decimals: number;
|
|
363
|
+
logoUrl: string;
|
|
364
|
+
};
|
|
365
|
+
publicRpcUrl: string;
|
|
366
|
+
logoUrl: string;
|
|
367
|
+
explorer: string;
|
|
368
|
+
eip1559: boolean;
|
|
369
|
+
} | {
|
|
370
|
+
id: number;
|
|
371
|
+
name: string;
|
|
372
|
+
shortname: string;
|
|
373
|
+
native: {
|
|
374
|
+
address: string;
|
|
375
|
+
symbol: string;
|
|
376
|
+
decimals: number;
|
|
377
|
+
logoUrl: string;
|
|
378
|
+
};
|
|
379
|
+
wToken: {
|
|
380
|
+
symbol: string;
|
|
381
|
+
address: string;
|
|
382
|
+
decimals: number;
|
|
383
|
+
logoUrl: string;
|
|
384
|
+
};
|
|
385
|
+
publicRpcUrl: string;
|
|
386
|
+
logoUrl: string;
|
|
387
|
+
explorer: string;
|
|
388
|
+
eip1559: boolean;
|
|
389
|
+
} | {
|
|
390
|
+
id: number;
|
|
391
|
+
name: string;
|
|
392
|
+
shortname: string;
|
|
393
|
+
native: {
|
|
394
|
+
address: string;
|
|
395
|
+
symbol: string;
|
|
396
|
+
decimals: number;
|
|
397
|
+
logoUrl: string;
|
|
398
|
+
};
|
|
399
|
+
wToken: {
|
|
400
|
+
symbol: string;
|
|
401
|
+
address: string;
|
|
402
|
+
decimals: number;
|
|
403
|
+
logoUrl: string;
|
|
404
|
+
};
|
|
405
|
+
publicRpcUrl: string;
|
|
406
|
+
logoUrl: string;
|
|
407
|
+
explorer: string;
|
|
408
|
+
eip1559: boolean;
|
|
409
|
+
} | {
|
|
410
|
+
id: number;
|
|
411
|
+
name: string;
|
|
412
|
+
shortname: string;
|
|
413
|
+
native: {
|
|
414
|
+
address: string;
|
|
415
|
+
symbol: string;
|
|
416
|
+
decimals: number;
|
|
417
|
+
logoUrl: string;
|
|
418
|
+
};
|
|
419
|
+
wToken: {
|
|
420
|
+
symbol: string;
|
|
421
|
+
address: string;
|
|
422
|
+
decimals: number;
|
|
423
|
+
logoUrl: string;
|
|
424
|
+
};
|
|
425
|
+
publicRpcUrl: string;
|
|
426
|
+
logoUrl: string;
|
|
427
|
+
explorer: string;
|
|
428
|
+
eip1559: boolean;
|
|
429
|
+
} | {
|
|
430
|
+
id: number;
|
|
431
|
+
name: string;
|
|
432
|
+
shortname: string;
|
|
433
|
+
native: {
|
|
434
|
+
address: string;
|
|
435
|
+
symbol: string;
|
|
436
|
+
decimals: number;
|
|
437
|
+
logoUrl: string;
|
|
438
|
+
};
|
|
439
|
+
wToken: {
|
|
440
|
+
symbol: string;
|
|
441
|
+
address: string;
|
|
442
|
+
decimals: number;
|
|
443
|
+
logoUrl: string;
|
|
444
|
+
};
|
|
445
|
+
publicRpcUrl: string;
|
|
446
|
+
logoUrl: string;
|
|
447
|
+
explorer: string;
|
|
448
|
+
eip1559: boolean;
|
|
449
|
+
} | undefined;
|
|
450
|
+
export declare const getExchanges: (config?: Config[]) => string[] | undefined;
|
|
451
|
+
export declare const numberToHex: (value: number | bigint, padding?: number) => string;
|
|
452
|
+
export declare const getOrderFillDelayMillis: (order: Order, config: Config) => number;
|
|
453
|
+
export declare const getQueryParam: (name: string) => string | null;
|
|
454
|
+
export declare const getPartnerChains: (partner: Partners) => number[];
|
|
455
|
+
export {};
|
|
456
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAE1C,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,SAAS,MAAM,EAAE,yBAc7C,CAAC;AAGF,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,GAAG,MAAM,EAAE,gBAAW,KAAG,MAiBjE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,KAAK,EAAE,QAAQ,MAAM,WAKnE,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,kBAIzC,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,SAAS,QAAQ,aAEjD,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@orbs-network/spot-ui",
|
|
3
|
+
"version": "0.0.7",
|
|
4
|
+
"description": "Spot SDK",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/spot-ui.umd.cjs",
|
|
7
|
+
"module": "./dist/spot-ui.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/spot-ui.js",
|
|
13
|
+
"require": "./dist/spot-ui.umd.cjs"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"keywords": [
|
|
20
|
+
"spot",
|
|
21
|
+
"sdk"
|
|
22
|
+
],
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"bignumber.js": "^9.0.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@orbs-network/spot": "^1.9.1",
|
|
29
|
+
"bignumber.js": "^9.3.1",
|
|
30
|
+
"dotenv": "^17.2.3",
|
|
31
|
+
"typescript": "^5.7.2",
|
|
32
|
+
"vite": "^6.0.5",
|
|
33
|
+
"vite-plugin-dts": "^4.4.0"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@orbs-network/twap": "^2.7.28"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"dev": "vite build --watch",
|
|
40
|
+
"build": "tsc && vite build"
|
|
41
|
+
}
|
|
42
|
+
}
|