@orbs-network/spot-react 2.0.1 → 2.1.1

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.
Files changed (141) hide show
  1. package/README.md +277 -148
  2. package/dist/spot-react/src/context/client-error-notice.d.ts +7 -0
  3. package/dist/spot-react/src/context/client-error-notice.d.ts.map +1 -0
  4. package/dist/spot-react/src/context/create-spot-store.d.ts +53 -0
  5. package/dist/spot-react/src/context/create-spot-store.d.ts.map +1 -0
  6. package/dist/spot-react/src/context/error-boundary.d.ts +7 -0
  7. package/dist/spot-react/src/context/error-boundary.d.ts.map +1 -0
  8. package/dist/spot-react/src/context/order-form-context.d.ts +7 -0
  9. package/dist/spot-react/src/context/order-form-context.d.ts.map +1 -0
  10. package/dist/spot-react/src/context/spot-form-synchronizer.d.ts +14 -0
  11. package/dist/spot-react/src/context/spot-form-synchronizer.d.ts.map +1 -0
  12. package/dist/spot-react/src/context/spot-provider.d.ts +3 -0
  13. package/dist/spot-react/src/context/spot-provider.d.ts.map +1 -0
  14. package/dist/spot-react/src/context/spot-runtime-context.d.ts +33 -0
  15. package/dist/spot-react/src/context/spot-runtime-context.d.ts.map +1 -0
  16. package/dist/spot-react/src/context/spot-store-context.d.ts +10 -0
  17. package/dist/spot-react/src/context/spot-store-context.d.ts.map +1 -0
  18. package/dist/spot-react/src/context/use-client.d.ts +10 -0
  19. package/dist/spot-react/src/context/use-client.d.ts.map +1 -0
  20. package/dist/spot-react/src/context/use-spot-analytics.d.ts +3 -0
  21. package/dist/spot-react/src/context/use-spot-analytics.d.ts.map +1 -0
  22. package/dist/spot-react/src/context/use-spot-provider-state.d.ts +11 -0
  23. package/dist/spot-react/src/context/use-spot-provider-state.d.ts.map +1 -0
  24. package/dist/spot-react/src/execute-order.d.ts +25 -0
  25. package/dist/spot-react/src/execute-order.d.ts.map +1 -0
  26. package/dist/spot-react/src/execution-state.d.ts +19 -0
  27. package/dist/spot-react/src/execution-state.d.ts.map +1 -0
  28. package/dist/spot-react/src/hooks/helper-hooks.d.ts +0 -547
  29. package/dist/spot-react/src/hooks/helper-hooks.d.ts.map +1 -1
  30. package/dist/spot-react/src/hooks/order-hooks.d.ts +28 -18
  31. package/dist/spot-react/src/hooks/order-hooks.d.ts.map +1 -1
  32. package/dist/spot-react/src/hooks/use-cancel-order.d.ts +5 -4
  33. package/dist/spot-react/src/hooks/use-cancel-order.d.ts.map +1 -1
  34. package/dist/spot-react/src/hooks/use-disclaimer.d.ts.map +1 -1
  35. package/dist/spot-react/src/hooks/use-duration.d.ts +3 -20
  36. package/dist/spot-react/src/hooks/use-duration.d.ts.map +1 -1
  37. package/dist/spot-react/src/hooks/use-execution.d.ts +30 -0
  38. package/dist/spot-react/src/hooks/use-execution.d.ts.map +1 -0
  39. package/dist/spot-react/src/hooks/use-fill-delay.d.ts +3 -22
  40. package/dist/spot-react/src/hooks/use-fill-delay.d.ts.map +1 -1
  41. package/dist/spot-react/src/hooks/use-history-order.d.ts +51 -28
  42. package/dist/spot-react/src/hooks/use-history-order.d.ts.map +1 -1
  43. package/dist/spot-react/src/hooks/use-input-errors.d.ts +1 -1
  44. package/dist/spot-react/src/hooks/use-input-errors.d.ts.map +1 -1
  45. package/dist/spot-react/src/hooks/use-limit-price.d.ts +14 -21
  46. package/dist/spot-react/src/hooks/use-limit-price.d.ts.map +1 -1
  47. package/dist/spot-react/src/hooks/use-output-amount.d.ts +5 -0
  48. package/dist/spot-react/src/hooks/use-output-amount.d.ts.map +1 -0
  49. package/dist/spot-react/src/hooks/use-price-display.d.ts +10 -0
  50. package/dist/spot-react/src/hooks/use-price-display.d.ts.map +1 -0
  51. package/dist/spot-react/src/hooks/use-submit-order.d.ts +1 -2
  52. package/dist/spot-react/src/hooks/use-submit-order.d.ts.map +1 -1
  53. package/dist/spot-react/src/hooks/use-swap-execution.d.ts +9 -10
  54. package/dist/spot-react/src/hooks/use-swap-execution.d.ts.map +1 -1
  55. package/dist/spot-react/src/hooks/use-trades.d.ts +7 -17
  56. package/dist/spot-react/src/hooks/use-trades.d.ts.map +1 -1
  57. package/dist/spot-react/src/hooks/use-trigger-price.d.ts +13 -20
  58. package/dist/spot-react/src/hooks/use-trigger-price.d.ts.map +1 -1
  59. package/dist/spot-react/src/index.d.ts +20 -11
  60. package/dist/spot-react/src/index.d.ts.map +1 -1
  61. package/dist/spot-react/src/order-history-data.d.ts +14 -0
  62. package/dist/spot-react/src/order-history-data.d.ts.map +1 -0
  63. package/dist/spot-react/src/types.d.ts +108 -123
  64. package/dist/spot-react/src/types.d.ts.map +1 -1
  65. package/dist/spot-react.js +1627 -6489
  66. package/dist/spot-react.umd.cjs +1 -64
  67. package/package.json +8 -13
  68. package/dist/spot-react/package.json.d.ts +0 -56
  69. package/dist/spot-react/src/hooks/use-amounts-usd.d.ts +0 -5
  70. package/dist/spot-react/src/hooks/use-amounts-usd.d.ts.map +0 -1
  71. package/dist/spot-react/src/hooks/use-build-order-info.d.ts +0 -62
  72. package/dist/spot-react/src/hooks/use-build-order-info.d.ts.map +0 -1
  73. package/dist/spot-react/src/hooks/use-deadline.d.ts +0 -2
  74. package/dist/spot-react/src/hooks/use-deadline.d.ts.map +0 -1
  75. package/dist/spot-react/src/hooks/use-default-values.d.ts +0 -3
  76. package/dist/spot-react/src/hooks/use-default-values.d.ts.map +0 -1
  77. package/dist/spot-react/src/hooks/use-dst-amount.d.ts +0 -11
  78. package/dist/spot-react/src/hooks/use-dst-amount.d.ts.map +0 -1
  79. package/dist/spot-react/src/hooks/use-dst-token-panel.d.ts +0 -7
  80. package/dist/spot-react/src/hooks/use-dst-token-panel.d.ts.map +0 -1
  81. package/dist/spot-react/src/hooks/use-fees.d.ts +0 -7
  82. package/dist/spot-react/src/hooks/use-fees.d.ts.map +0 -1
  83. package/dist/spot-react/src/hooks/use-form-data.d.ts +0 -57
  84. package/dist/spot-react/src/hooks/use-form-data.d.ts.map +0 -1
  85. package/dist/spot-react/src/hooks/use-input-with-percentage.d.ts +0 -16
  86. package/dist/spot-react/src/hooks/use-input-with-percentage.d.ts.map +0 -1
  87. package/dist/spot-react/src/hooks/use-limit-price-panel.d.ts +0 -22
  88. package/dist/spot-react/src/hooks/use-limit-price-panel.d.ts.map +0 -1
  89. package/dist/spot-react/src/hooks/use-partner-chains.d.ts +0 -2
  90. package/dist/spot-react/src/hooks/use-partner-chains.d.ts.map +0 -1
  91. package/dist/spot-react/src/hooks/use-price-panel.d.ts +0 -21
  92. package/dist/spot-react/src/hooks/use-price-panel.d.ts.map +0 -1
  93. package/dist/spot-react/src/hooks/use-repermit-data.d.ts +0 -7
  94. package/dist/spot-react/src/hooks/use-repermit-data.d.ts.map +0 -1
  95. package/dist/spot-react/src/hooks/use-repermit-order-data.d.ts +0 -20
  96. package/dist/spot-react/src/hooks/use-repermit-order-data.d.ts.map +0 -1
  97. package/dist/spot-react/src/hooks/use-spot.d.ts +0 -40
  98. package/dist/spot-react/src/hooks/use-spot.d.ts.map +0 -1
  99. package/dist/spot-react/src/hooks/use-src-amount.d.ts +0 -6
  100. package/dist/spot-react/src/hooks/use-src-amount.d.ts.map +0 -1
  101. package/dist/spot-react/src/hooks/use-submit-order-panel.d.ts +0 -28
  102. package/dist/spot-react/src/hooks/use-submit-order-panel.d.ts.map +0 -1
  103. package/dist/spot-react/src/hooks/use-trade-price.d.ts +0 -2
  104. package/dist/spot-react/src/hooks/use-trade-price.d.ts.map +0 -1
  105. package/dist/spot-react/src/hooks/use-trigger-price-panel.d.ts +0 -23
  106. package/dist/spot-react/src/hooks/use-trigger-price-panel.d.ts.map +0 -1
  107. package/dist/spot-react/src/spot-context.d.ts +0 -6
  108. package/dist/spot-react/src/spot-context.d.ts.map +0 -1
  109. package/dist/spot-react/src/store.d.ts +0 -11
  110. package/dist/spot-react/src/store.d.ts.map +0 -1
  111. package/dist/spot-react/src/utils.d.ts +0 -20
  112. package/dist/spot-react/src/utils.d.ts.map +0 -1
  113. package/dist/spot-ui/src/index.d.ts +0 -14
  114. package/dist/spot-ui/src/index.d.ts.map +0 -1
  115. package/dist/spot-ui/src/lib/abi/erc20.json.d.ts +0 -291
  116. package/dist/spot-ui/src/lib/abi/index.d.ts +0 -260
  117. package/dist/spot-ui/src/lib/abi/index.d.ts.map +0 -1
  118. package/dist/spot-ui/src/lib/abi/iweth.json.d.ts +0 -41
  119. package/dist/spot-ui/src/lib/abi/repermit.json.d.ts +0 -315
  120. package/dist/spot-ui/src/lib/analytics.d.ts +0 -111
  121. package/dist/spot-ui/src/lib/analytics.d.ts.map +0 -1
  122. package/dist/spot-ui/src/lib/build-repermit-order-data.d.ts +0 -35
  123. package/dist/spot-ui/src/lib/build-repermit-order-data.d.ts.map +0 -1
  124. package/dist/spot-ui/src/lib/consts.d.ts +0 -99
  125. package/dist/spot-ui/src/lib/consts.d.ts.map +0 -1
  126. package/dist/spot-ui/src/lib/lib.d.ts +0 -80
  127. package/dist/spot-ui/src/lib/lib.d.ts.map +0 -1
  128. package/dist/spot-ui/src/lib/networks.d.ts +0 -571
  129. package/dist/spot-ui/src/lib/networks.d.ts.map +0 -1
  130. package/dist/spot-ui/src/lib/orders/index.d.ts +0 -15
  131. package/dist/spot-ui/src/lib/orders/index.d.ts.map +0 -1
  132. package/dist/spot-ui/src/lib/orders/v1-orders.d.ts +0 -34
  133. package/dist/spot-ui/src/lib/orders/v1-orders.d.ts.map +0 -1
  134. package/dist/spot-ui/src/lib/orders/v2-orders.d.ts +0 -11
  135. package/dist/spot-ui/src/lib/orders/v2-orders.d.ts.map +0 -1
  136. package/dist/spot-ui/src/lib/submit-order.d.ts +0 -3
  137. package/dist/spot-ui/src/lib/submit-order.d.ts.map +0 -1
  138. package/dist/spot-ui/src/lib/types.d.ts +0 -318
  139. package/dist/spot-ui/src/lib/types.d.ts.map +0 -1
  140. package/dist/spot-ui/src/lib/utils.d.ts +0 -578
  141. package/dist/spot-ui/src/lib/utils.d.ts.map +0 -1
@@ -1,578 +0,0 @@
1
- import { default as BN } from 'bignumber.js';
2
- import { Config, Order, Partners, TimeDuration, TimeUnit } from './types';
3
- export declare const getTheGraphUrl: (chainId?: number) => string | undefined;
4
- export declare const groupBy: (array: any | undefined, key: string) => any;
5
- type KeyByArray<T> = {
6
- [key: string]: T;
7
- };
8
- export declare const keyBy: <T>(array: T[], key: keyof T) => KeyByArray<T>;
9
- export declare const compact: <T>(array: (T | null | undefined | false | "")[]) => T[];
10
- export declare const orderBy: <T>(array: T[], key: (item: T) => any, order?: "asc" | "desc") => T[];
11
- export declare const amountUi: (decimals?: number, amount?: string) => string;
12
- export declare const amountBN: (decimals?: number, amount?: string) => string;
13
- export declare const zero: BN;
14
- export declare const one: BN;
15
- export declare const ten: BN;
16
- export declare const ether: BN;
17
- export declare function bn(n: BN.Value, base?: number): BN;
18
- export declare function convertDecimals(n: BN.Value, sourceDecimals: number, targetDecimals: number): BN;
19
- export declare function eqIgnoreCase(a: string, b: string): boolean;
20
- export declare function parsebn(n: BN.Value, defaultValue?: BN, fmt?: BN.Format): BN;
21
- export declare const isNativeAddress: (address?: string) => boolean;
22
- export declare function delay(ms: number): Promise<unknown>;
23
- export declare function findTimeUnit(millis: number): TimeUnit;
24
- export declare const getTimeDurationMillis: (duration?: TimeDuration) => number;
25
- export declare const safeInteger: (value?: string) => string;
26
- export declare const safeBNString: (value?: string | number) => string;
27
- export declare const safeBNNumber: (value?: string | number) => number;
28
- export declare const getNetwork: (chainId?: number) => {
29
- id: number;
30
- name: string;
31
- shortname: string;
32
- native: {
33
- address: string;
34
- symbol: string;
35
- decimals: number;
36
- logoUrl: string;
37
- };
38
- wToken: {
39
- symbol: string;
40
- address: string;
41
- decimals: number;
42
- logoUrl: string;
43
- };
44
- publicRpcUrl: string;
45
- logoUrl: string;
46
- explorer: string;
47
- eip1559: boolean;
48
- } | {
49
- id: number;
50
- name: string;
51
- shortname: string;
52
- native: {
53
- address: string;
54
- symbol: string;
55
- decimals: number;
56
- logoUrl: string;
57
- };
58
- wToken: {
59
- symbol: string;
60
- address: string;
61
- decimals: number;
62
- logoUrl: string;
63
- };
64
- publicRpcUrl: string;
65
- logoUrl: string;
66
- explorer: string;
67
- eip1559: boolean;
68
- } | {
69
- id: number;
70
- name: string;
71
- shortname: string;
72
- native: {
73
- address: string;
74
- symbol: string;
75
- decimals: number;
76
- logoUrl: string;
77
- };
78
- wToken: {
79
- symbol: string;
80
- address: string;
81
- decimals: number;
82
- logoUrl: string;
83
- };
84
- publicRpcUrl: string;
85
- logoUrl: string;
86
- explorer: string;
87
- eip1559: boolean;
88
- } | {
89
- id: number;
90
- name: string;
91
- shortname: string;
92
- native: {
93
- address: string;
94
- symbol: string;
95
- decimals: number;
96
- logoUrl: string;
97
- };
98
- wToken: {
99
- symbol: string;
100
- address: string;
101
- decimals: number;
102
- logoUrl: string;
103
- };
104
- publicRpcUrl: string;
105
- logoUrl: string;
106
- explorer: string;
107
- eip1559: boolean;
108
- } | {
109
- id: number;
110
- name: string;
111
- shortname: string;
112
- native: {
113
- address: string;
114
- symbol: string;
115
- decimals: number;
116
- logoUrl: string;
117
- };
118
- wToken: {
119
- symbol: string;
120
- address: string;
121
- decimals: number;
122
- logoUrl: string;
123
- };
124
- publicRpcUrl: string;
125
- logoUrl: string;
126
- explorer: string;
127
- eip1559: boolean;
128
- } | {
129
- id: number;
130
- name: string;
131
- shortname: string;
132
- native: {
133
- address: string;
134
- symbol: string;
135
- decimals: number;
136
- logoUrl: string;
137
- };
138
- wToken: {
139
- symbol: string;
140
- address: string;
141
- decimals: number;
142
- logoUrl: string;
143
- };
144
- publicRpcUrl: string;
145
- logoUrl: string;
146
- explorer: string;
147
- eip1559: boolean;
148
- } | {
149
- id: number;
150
- name: string;
151
- shortname: string;
152
- native: {
153
- address: string;
154
- symbol: string;
155
- decimals: number;
156
- logoUrl: string;
157
- };
158
- wToken: {
159
- symbol: string;
160
- address: string;
161
- decimals: number;
162
- logoUrl: string;
163
- };
164
- publicRpcUrl: string;
165
- logoUrl: string;
166
- explorer: string;
167
- eip1559: boolean;
168
- } | {
169
- id: number;
170
- name: string;
171
- shortname: string;
172
- native: {
173
- address: string;
174
- symbol: string;
175
- decimals: number;
176
- logoUrl: string;
177
- };
178
- wToken: {
179
- symbol: string;
180
- address: string;
181
- decimals: number;
182
- logoUrl: string;
183
- };
184
- publicRpcUrl: string;
185
- logoUrl: string;
186
- explorer: string;
187
- eip1559: boolean;
188
- } | {
189
- id: number;
190
- name: string;
191
- shortname: string;
192
- native: {
193
- address: string;
194
- symbol: string;
195
- decimals: number;
196
- logoUrl: string;
197
- };
198
- wToken: {
199
- symbol: string;
200
- address: string;
201
- decimals: number;
202
- logoUrl: string;
203
- };
204
- publicRpcUrl: string;
205
- logoUrl: string;
206
- explorer: string;
207
- eip1559: boolean;
208
- } | {
209
- id: number;
210
- name: string;
211
- shortname: string;
212
- native: {
213
- address: string;
214
- symbol: string;
215
- decimals: number;
216
- logoUrl: string;
217
- };
218
- wToken: {
219
- symbol: string;
220
- address: string;
221
- decimals: number;
222
- logoUrl: string;
223
- };
224
- publicRpcUrl: string;
225
- logoUrl: string;
226
- explorer: string;
227
- eip1559: boolean;
228
- } | {
229
- id: number;
230
- name: string;
231
- shortname: string;
232
- native: {
233
- address: string;
234
- symbol: string;
235
- decimals: number;
236
- logoUrl: string;
237
- };
238
- wToken: {
239
- symbol: string;
240
- address: string;
241
- decimals: number;
242
- logoUrl: string;
243
- };
244
- publicRpcUrl: string;
245
- logoUrl: string;
246
- explorer: string;
247
- eip1559: boolean;
248
- } | {
249
- id: number;
250
- name: string;
251
- shortname: string;
252
- native: {
253
- address: string;
254
- symbol: string;
255
- decimals: number;
256
- logoUrl: string;
257
- };
258
- wToken: {
259
- symbol: string;
260
- address: string;
261
- decimals: number;
262
- logoUrl: string;
263
- };
264
- publicRpcUrl: string;
265
- logoUrl: string;
266
- explorer: string;
267
- eip1559: boolean;
268
- } | {
269
- id: number;
270
- name: string;
271
- shortname: string;
272
- native: {
273
- address: string;
274
- symbol: string;
275
- decimals: number;
276
- logoUrl: string;
277
- };
278
- wToken: {
279
- symbol: string;
280
- address: string;
281
- decimals: number;
282
- logoUrl: string;
283
- };
284
- publicRpcUrl: string;
285
- logoUrl: string;
286
- explorer: string;
287
- eip1559: boolean;
288
- } | {
289
- id: number;
290
- name: string;
291
- shortname: string;
292
- native: {
293
- address: string;
294
- symbol: string;
295
- decimals: number;
296
- logoUrl: string;
297
- };
298
- wToken: {
299
- symbol: string;
300
- address: string;
301
- decimals: number;
302
- logoUrl: string;
303
- };
304
- publicRpcUrl: string;
305
- logoUrl: string;
306
- explorer: string;
307
- eip1559: boolean;
308
- } | {
309
- id: number;
310
- name: string;
311
- shortname: string;
312
- native: {
313
- address: string;
314
- symbol: string;
315
- decimals: number;
316
- logoUrl: string;
317
- };
318
- wToken: {
319
- symbol: string;
320
- address: string;
321
- decimals: number;
322
- logoUrl: string;
323
- };
324
- publicRpcUrl: string;
325
- logoUrl: string;
326
- explorer: string;
327
- eip1559: boolean;
328
- } | {
329
- id: number;
330
- name: string;
331
- shortname: string;
332
- native: {
333
- address: string;
334
- symbol: string;
335
- decimals: number;
336
- logoUrl: string;
337
- };
338
- wToken: {
339
- symbol: string;
340
- address: string;
341
- decimals: number;
342
- logoUrl: string;
343
- };
344
- publicRpcUrl: string;
345
- logoUrl: string;
346
- explorer: string;
347
- eip1559: boolean;
348
- } | {
349
- id: number;
350
- name: string;
351
- shortname: string;
352
- native: {
353
- address: string;
354
- symbol: string;
355
- decimals: number;
356
- logoUrl: string;
357
- };
358
- wToken: {
359
- symbol: string;
360
- address: string;
361
- decimals: number;
362
- logoUrl: string;
363
- };
364
- publicRpcUrl: string;
365
- logoUrl: string;
366
- explorer: string;
367
- eip1559: boolean;
368
- } | {
369
- id: number;
370
- name: string;
371
- shortname: string;
372
- native: {
373
- address: string;
374
- symbol: string;
375
- decimals: number;
376
- logoUrl: string;
377
- };
378
- wToken: {
379
- symbol: string;
380
- address: string;
381
- decimals: number;
382
- logoUrl: string;
383
- };
384
- publicRpcUrl: string;
385
- logoUrl: string;
386
- explorer: string;
387
- eip1559: boolean;
388
- } | {
389
- id: number;
390
- name: string;
391
- shortname: string;
392
- native: {
393
- address: string;
394
- symbol: string;
395
- decimals: number;
396
- logoUrl: string;
397
- };
398
- wToken: {
399
- symbol: string;
400
- address: string;
401
- decimals: number;
402
- logoUrl: string;
403
- };
404
- publicRpcUrl: string;
405
- logoUrl: string;
406
- explorer: string;
407
- eip1559: boolean;
408
- } | {
409
- id: number;
410
- name: string;
411
- shortname: string;
412
- native: {
413
- address: string;
414
- symbol: string;
415
- decimals: number;
416
- logoUrl: string;
417
- };
418
- wToken: {
419
- symbol: string;
420
- address: string;
421
- decimals: number;
422
- logoUrl: string;
423
- };
424
- publicRpcUrl: string;
425
- logoUrl: string;
426
- explorer: string;
427
- eip1559: boolean;
428
- } | {
429
- id: number;
430
- name: string;
431
- shortname: string;
432
- native: {
433
- address: string;
434
- symbol: string;
435
- decimals: number;
436
- logoUrl: string;
437
- };
438
- wToken: {
439
- symbol: string;
440
- address: string;
441
- decimals: number;
442
- logoUrl: string;
443
- };
444
- publicRpcUrl: string;
445
- logoUrl: string;
446
- explorer: string;
447
- eip1559: boolean;
448
- } | {
449
- id: number;
450
- name: string;
451
- shortname: string;
452
- native: {
453
- address: string;
454
- symbol: string;
455
- decimals: number;
456
- logoUrl: string;
457
- };
458
- wToken: {
459
- symbol: string;
460
- address: string;
461
- decimals: number;
462
- logoUrl: string;
463
- };
464
- publicRpcUrl: string;
465
- logoUrl: string;
466
- explorer: string;
467
- eip1559: boolean;
468
- } | {
469
- id: number;
470
- name: string;
471
- shortname: string;
472
- native: {
473
- address: string;
474
- symbol: string;
475
- decimals: number;
476
- logoUrl: string;
477
- };
478
- wToken: {
479
- symbol: string;
480
- address: string;
481
- decimals: number;
482
- logoUrl: string;
483
- };
484
- publicRpcUrl: string;
485
- logoUrl: string;
486
- explorer: string;
487
- eip1559: boolean;
488
- } | {
489
- id: number;
490
- name: string;
491
- shortname: string;
492
- native: {
493
- address: string;
494
- symbol: string;
495
- decimals: number;
496
- logoUrl: string;
497
- };
498
- wToken: {
499
- symbol: string;
500
- address: string;
501
- decimals: number;
502
- logoUrl: string;
503
- };
504
- publicRpcUrl: string;
505
- logoUrl: string;
506
- explorer: string;
507
- eip1559: boolean;
508
- } | {
509
- id: number;
510
- name: string;
511
- shortname: string;
512
- native: {
513
- address: string;
514
- symbol: string;
515
- decimals: number;
516
- logoUrl: string;
517
- };
518
- wToken: {
519
- symbol: string;
520
- address: string;
521
- decimals: number;
522
- logoUrl: string;
523
- };
524
- publicRpcUrl: string;
525
- logoUrl: string;
526
- explorer: string;
527
- eip1559: boolean;
528
- } | {
529
- id: number;
530
- name: string;
531
- shortname: string;
532
- native: {
533
- address: string;
534
- symbol: string;
535
- decimals: number;
536
- logoUrl: string;
537
- };
538
- wToken: {
539
- symbol: string;
540
- address: string;
541
- decimals: number;
542
- logoUrl: string;
543
- };
544
- publicRpcUrl: string;
545
- logoUrl: string;
546
- explorer: string;
547
- eip1559: boolean;
548
- } | {
549
- id: number;
550
- name: string;
551
- shortname: string;
552
- native: {
553
- address: string;
554
- symbol: string;
555
- decimals: number;
556
- logoUrl: string;
557
- };
558
- wToken: {
559
- symbol: string;
560
- address: string;
561
- decimals: number;
562
- logoUrl: string;
563
- };
564
- publicRpcUrl: string;
565
- logoUrl: string;
566
- explorer: string;
567
- eip1559: boolean;
568
- } | undefined;
569
- export declare const getExchanges: (config?: Config[]) => string[] | undefined;
570
- export declare const numberToHex: (value: number | bigint, padding?: number) => string;
571
- export declare const getOrderFillDelayMillis: (order: Order, config?: Config) => number;
572
- export declare const getQueryParam: (name: string) => string | null;
573
- export declare const getPartnerChains: (partner: Partners) => number[];
574
- export declare const getOrderExecutionRate: (srcAmountFilled?: string, dstAmountFilled?: string, srcTokenDecimals?: number, dstTokenDecimals?: number) => string;
575
- export declare const getOrderLimitPriceRate: (order: Order, srcTokenDecimals: number, dstTokenDecimals: number) => string;
576
- export declare const getTriggerPriceRate: (order: Order, srcTokenDecimals: number, dstTokenDecimals: number) => string;
577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