@relayprotocol/relay-kit-hooks 2.0.3 → 2.0.5
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/_cjs/tsconfig.build.tsbuildinfo +1 -1
- package/_esm/tsconfig.build.tsbuildinfo +1 -1
- package/_types/src/hooks/useExecutionStatus.d.ts +2 -2
- package/_types/src/hooks/useQuote.d.ts +202 -0
- package/_types/src/hooks/useQuote.d.ts.map +1 -1
- package/_types/src/hooks/useRequests.d.ts +2880 -30
- package/_types/src/hooks/useRequests.d.ts.map +1 -1
- package/_types/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -9,7 +9,7 @@ type QueryOptions = Parameters<QueryType>['0'];
|
|
|
9
9
|
export declare const queryExecutionStatus: (baseApiUrl?: string, options?: ExecutionStatusParams, headers?: HeadersInit) => Promise<ExecutionStatusResponse>;
|
|
10
10
|
export type onProgress = (data: ProgressData) => void;
|
|
11
11
|
export default function (client?: RelayClient, options?: ExecutionStatusParams, onRequest?: () => void, onResponse?: (data: Execute) => void, queryOptions?: Partial<QueryOptions>): Omit<import("@tanstack/react-query").UseQueryResult<{
|
|
12
|
-
status?: "refund" | "
|
|
12
|
+
status?: "refund" | "waiting" | "failure" | "pending" | "success" | "delayed" | undefined;
|
|
13
13
|
details?: string | undefined;
|
|
14
14
|
inTxHashes?: string[] | undefined;
|
|
15
15
|
txHashes?: string[] | undefined;
|
|
@@ -18,7 +18,7 @@ export default function (client?: RelayClient, options?: ExecutionStatusParams,
|
|
|
18
18
|
destinationChainId?: number | undefined;
|
|
19
19
|
}, Error>, "data"> & {
|
|
20
20
|
data?: {
|
|
21
|
-
status?: "refund" | "
|
|
21
|
+
status?: "refund" | "waiting" | "failure" | "pending" | "success" | "delayed" | undefined;
|
|
22
22
|
details?: string | undefined;
|
|
23
23
|
inTxHashes?: string[] | undefined;
|
|
24
24
|
txHashes?: string[] | undefined;
|
|
@@ -175,6 +175,24 @@ export default function (client?: RelayClient, wallet?: WalletClient | AdaptedWa
|
|
|
175
175
|
amountUsd?: string | undefined;
|
|
176
176
|
minimumAmount?: string | undefined;
|
|
177
177
|
} | undefined;
|
|
178
|
+
refundCurrency?: {
|
|
179
|
+
currency?: {
|
|
180
|
+
chainId?: number | undefined;
|
|
181
|
+
address?: string | undefined;
|
|
182
|
+
symbol?: string | undefined;
|
|
183
|
+
name?: string | undefined;
|
|
184
|
+
decimals?: number | undefined;
|
|
185
|
+
metadata?: {
|
|
186
|
+
logoURI?: string | undefined;
|
|
187
|
+
verified?: boolean | undefined;
|
|
188
|
+
isNative?: boolean | undefined;
|
|
189
|
+
} | undefined;
|
|
190
|
+
} | undefined;
|
|
191
|
+
amount?: string | undefined;
|
|
192
|
+
amountFormatted?: string | undefined;
|
|
193
|
+
amountUsd?: string | undefined;
|
|
194
|
+
minimumAmount?: string | undefined;
|
|
195
|
+
} | undefined;
|
|
178
196
|
currencyGasTopup?: {
|
|
179
197
|
currency?: {
|
|
180
198
|
chainId?: number | undefined;
|
|
@@ -231,6 +249,89 @@ export default function (client?: RelayClient, wallet?: WalletClient | AdaptedWa
|
|
|
231
249
|
timeEstimate?: number | undefined;
|
|
232
250
|
userBalance?: string | undefined;
|
|
233
251
|
fallbackType?: string | undefined;
|
|
252
|
+
isFixedRate?: boolean | undefined;
|
|
253
|
+
route?: {
|
|
254
|
+
origin?: {
|
|
255
|
+
inputCurrency?: {
|
|
256
|
+
currency?: {
|
|
257
|
+
chainId?: number | undefined;
|
|
258
|
+
address?: string | undefined;
|
|
259
|
+
symbol?: string | undefined;
|
|
260
|
+
name?: string | undefined;
|
|
261
|
+
decimals?: number | undefined;
|
|
262
|
+
metadata?: {
|
|
263
|
+
logoURI?: string | undefined;
|
|
264
|
+
verified?: boolean | undefined;
|
|
265
|
+
isNative?: boolean | undefined;
|
|
266
|
+
} | undefined;
|
|
267
|
+
} | undefined;
|
|
268
|
+
amount?: string | undefined;
|
|
269
|
+
amountFormatted?: string | undefined;
|
|
270
|
+
amountUsd?: string | undefined;
|
|
271
|
+
minimumAmount?: string | undefined;
|
|
272
|
+
} | undefined;
|
|
273
|
+
outputCurrency?: {
|
|
274
|
+
currency?: {
|
|
275
|
+
chainId?: number | undefined;
|
|
276
|
+
address?: string | undefined;
|
|
277
|
+
symbol?: string | undefined;
|
|
278
|
+
name?: string | undefined;
|
|
279
|
+
decimals?: number | undefined;
|
|
280
|
+
metadata?: {
|
|
281
|
+
logoURI?: string | undefined;
|
|
282
|
+
verified?: boolean | undefined;
|
|
283
|
+
isNative?: boolean | undefined;
|
|
284
|
+
} | undefined;
|
|
285
|
+
} | undefined;
|
|
286
|
+
amount?: string | undefined;
|
|
287
|
+
amountFormatted?: string | undefined;
|
|
288
|
+
amountUsd?: string | undefined;
|
|
289
|
+
minimumAmount?: string | undefined;
|
|
290
|
+
} | undefined;
|
|
291
|
+
router?: string | undefined;
|
|
292
|
+
includedSwapSources?: string[] | undefined;
|
|
293
|
+
} | undefined;
|
|
294
|
+
destination?: {
|
|
295
|
+
inputCurrency?: {
|
|
296
|
+
currency?: {
|
|
297
|
+
chainId?: number | undefined;
|
|
298
|
+
address?: string | undefined;
|
|
299
|
+
symbol?: string | undefined;
|
|
300
|
+
name?: string | undefined;
|
|
301
|
+
decimals?: number | undefined;
|
|
302
|
+
metadata?: {
|
|
303
|
+
logoURI?: string | undefined;
|
|
304
|
+
verified?: boolean | undefined;
|
|
305
|
+
isNative?: boolean | undefined;
|
|
306
|
+
} | undefined;
|
|
307
|
+
} | undefined;
|
|
308
|
+
amount?: string | undefined;
|
|
309
|
+
amountFormatted?: string | undefined;
|
|
310
|
+
amountUsd?: string | undefined;
|
|
311
|
+
minimumAmount?: string | undefined;
|
|
312
|
+
} | undefined;
|
|
313
|
+
outputCurrency?: {
|
|
314
|
+
currency?: {
|
|
315
|
+
chainId?: number | undefined;
|
|
316
|
+
address?: string | undefined;
|
|
317
|
+
symbol?: string | undefined;
|
|
318
|
+
name?: string | undefined;
|
|
319
|
+
decimals?: number | undefined;
|
|
320
|
+
metadata?: {
|
|
321
|
+
logoURI?: string | undefined;
|
|
322
|
+
verified?: boolean | undefined;
|
|
323
|
+
isNative?: boolean | undefined;
|
|
324
|
+
} | undefined;
|
|
325
|
+
} | undefined;
|
|
326
|
+
amount?: string | undefined;
|
|
327
|
+
amountFormatted?: string | undefined;
|
|
328
|
+
amountUsd?: string | undefined;
|
|
329
|
+
minimumAmount?: string | undefined;
|
|
330
|
+
} | undefined;
|
|
331
|
+
router?: string | undefined;
|
|
332
|
+
includedSwapSources?: string[] | undefined;
|
|
333
|
+
} | undefined;
|
|
334
|
+
} | undefined;
|
|
234
335
|
} | undefined;
|
|
235
336
|
protocol?: {
|
|
236
337
|
v2?: {
|
|
@@ -411,6 +512,24 @@ export default function (client?: RelayClient, wallet?: WalletClient | AdaptedWa
|
|
|
411
512
|
amountUsd?: string | undefined;
|
|
412
513
|
minimumAmount?: string | undefined;
|
|
413
514
|
} | undefined;
|
|
515
|
+
refundCurrency?: {
|
|
516
|
+
currency?: {
|
|
517
|
+
chainId?: number | undefined;
|
|
518
|
+
address?: string | undefined;
|
|
519
|
+
symbol?: string | undefined;
|
|
520
|
+
name?: string | undefined;
|
|
521
|
+
decimals?: number | undefined;
|
|
522
|
+
metadata?: {
|
|
523
|
+
logoURI?: string | undefined;
|
|
524
|
+
verified?: boolean | undefined;
|
|
525
|
+
isNative?: boolean | undefined;
|
|
526
|
+
} | undefined;
|
|
527
|
+
} | undefined;
|
|
528
|
+
amount?: string | undefined;
|
|
529
|
+
amountFormatted?: string | undefined;
|
|
530
|
+
amountUsd?: string | undefined;
|
|
531
|
+
minimumAmount?: string | undefined;
|
|
532
|
+
} | undefined;
|
|
414
533
|
currencyGasTopup?: {
|
|
415
534
|
currency?: {
|
|
416
535
|
chainId?: number | undefined;
|
|
@@ -467,6 +586,89 @@ export default function (client?: RelayClient, wallet?: WalletClient | AdaptedWa
|
|
|
467
586
|
timeEstimate?: number | undefined;
|
|
468
587
|
userBalance?: string | undefined;
|
|
469
588
|
fallbackType?: string | undefined;
|
|
589
|
+
isFixedRate?: boolean | undefined;
|
|
590
|
+
route?: {
|
|
591
|
+
origin?: {
|
|
592
|
+
inputCurrency?: {
|
|
593
|
+
currency?: {
|
|
594
|
+
chainId?: number | undefined;
|
|
595
|
+
address?: string | undefined;
|
|
596
|
+
symbol?: string | undefined;
|
|
597
|
+
name?: string | undefined;
|
|
598
|
+
decimals?: number | undefined;
|
|
599
|
+
metadata?: {
|
|
600
|
+
logoURI?: string | undefined;
|
|
601
|
+
verified?: boolean | undefined;
|
|
602
|
+
isNative?: boolean | undefined;
|
|
603
|
+
} | undefined;
|
|
604
|
+
} | undefined;
|
|
605
|
+
amount?: string | undefined;
|
|
606
|
+
amountFormatted?: string | undefined;
|
|
607
|
+
amountUsd?: string | undefined;
|
|
608
|
+
minimumAmount?: string | undefined;
|
|
609
|
+
} | undefined;
|
|
610
|
+
outputCurrency?: {
|
|
611
|
+
currency?: {
|
|
612
|
+
chainId?: number | undefined;
|
|
613
|
+
address?: string | undefined;
|
|
614
|
+
symbol?: string | undefined;
|
|
615
|
+
name?: string | undefined;
|
|
616
|
+
decimals?: number | undefined;
|
|
617
|
+
metadata?: {
|
|
618
|
+
logoURI?: string | undefined;
|
|
619
|
+
verified?: boolean | undefined;
|
|
620
|
+
isNative?: boolean | undefined;
|
|
621
|
+
} | undefined;
|
|
622
|
+
} | undefined;
|
|
623
|
+
amount?: string | undefined;
|
|
624
|
+
amountFormatted?: string | undefined;
|
|
625
|
+
amountUsd?: string | undefined;
|
|
626
|
+
minimumAmount?: string | undefined;
|
|
627
|
+
} | undefined;
|
|
628
|
+
router?: string | undefined;
|
|
629
|
+
includedSwapSources?: string[] | undefined;
|
|
630
|
+
} | undefined;
|
|
631
|
+
destination?: {
|
|
632
|
+
inputCurrency?: {
|
|
633
|
+
currency?: {
|
|
634
|
+
chainId?: number | undefined;
|
|
635
|
+
address?: string | undefined;
|
|
636
|
+
symbol?: string | undefined;
|
|
637
|
+
name?: string | undefined;
|
|
638
|
+
decimals?: number | undefined;
|
|
639
|
+
metadata?: {
|
|
640
|
+
logoURI?: string | undefined;
|
|
641
|
+
verified?: boolean | undefined;
|
|
642
|
+
isNative?: boolean | undefined;
|
|
643
|
+
} | undefined;
|
|
644
|
+
} | undefined;
|
|
645
|
+
amount?: string | undefined;
|
|
646
|
+
amountFormatted?: string | undefined;
|
|
647
|
+
amountUsd?: string | undefined;
|
|
648
|
+
minimumAmount?: string | undefined;
|
|
649
|
+
} | undefined;
|
|
650
|
+
outputCurrency?: {
|
|
651
|
+
currency?: {
|
|
652
|
+
chainId?: number | undefined;
|
|
653
|
+
address?: string | undefined;
|
|
654
|
+
symbol?: string | undefined;
|
|
655
|
+
name?: string | undefined;
|
|
656
|
+
decimals?: number | undefined;
|
|
657
|
+
metadata?: {
|
|
658
|
+
logoURI?: string | undefined;
|
|
659
|
+
verified?: boolean | undefined;
|
|
660
|
+
isNative?: boolean | undefined;
|
|
661
|
+
} | undefined;
|
|
662
|
+
} | undefined;
|
|
663
|
+
amount?: string | undefined;
|
|
664
|
+
amountFormatted?: string | undefined;
|
|
665
|
+
amountUsd?: string | undefined;
|
|
666
|
+
minimumAmount?: string | undefined;
|
|
667
|
+
} | undefined;
|
|
668
|
+
router?: string | undefined;
|
|
669
|
+
includedSwapSources?: string[] | undefined;
|
|
670
|
+
} | undefined;
|
|
671
|
+
} | undefined;
|
|
470
672
|
} | undefined;
|
|
471
673
|
protocol?: {
|
|
472
674
|
v2?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useQuote.d.ts","sourceRoot":"","sources":["../../../src/hooks/useQuote.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,EACX,KAAK,aAAa,EAClB,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,YAAY,EAClB,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EACL,QAAQ,EACR,KAAK,YAAY,EACjB,KAAK,QAAQ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