@relayprotocol/relay-kit-hooks 3.0.11 → 3.0.12

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.
@@ -10,7 +10,7 @@ export declare const queryQuote: (baseApiUrl?: string, options?: QuoteBody, conf
10
10
  export type onProgress = (data: ProgressData) => void;
11
11
  export default function (client?: RelayClient, wallet?: WalletClient | AdaptedWallet, options?: QuoteBody, onRequest?: (options?: QuoteBody, config?: AxiosRequestConfig) => void, onResponse?: (data: QuoteResponse, options?: QuoteBody) => void, queryOptions?: Partial<QueryOptions>, onError?: (e: any) => void, config?: AxiosRequestConfig, baseApiUrl?: string): Omit<import("@tanstack/react-query").UseQueryResult<{
12
12
  steps?: {
13
- id: "deposit" | "approve" | "authorize" | "authorize1" | "authorize2" | "swap" | "send";
13
+ id: "swap" | "deposit" | "approve" | "authorize" | "authorize1" | "authorize2" | "send";
14
14
  action: string;
15
15
  description: string;
16
16
  kind: string;
@@ -135,6 +135,555 @@ export default function (client?: RelayClient, wallet?: WalletClient | AdaptedWa
135
135
  minimumAmount?: string | undefined;
136
136
  } | undefined;
137
137
  } | undefined;
138
+ feeSponsorship?: {
139
+ quoted?: {
140
+ selectedComponents: ("execution" | "swap" | "relay" | "app")[];
141
+ maxSubsidizationAmount?: string | undefined;
142
+ capHit: boolean;
143
+ components: {
144
+ execution: {
145
+ selected: boolean;
146
+ total: {
147
+ currency?: {
148
+ chainId?: number | undefined;
149
+ address?: string | undefined;
150
+ symbol?: string | undefined;
151
+ name?: string | undefined;
152
+ decimals?: number | undefined;
153
+ metadata?: {
154
+ logoURI?: string | undefined;
155
+ verified?: boolean | undefined;
156
+ isNative?: boolean | undefined;
157
+ } | undefined;
158
+ } | undefined;
159
+ amount?: string | undefined;
160
+ amountFormatted?: string | undefined;
161
+ amountUsd?: string | undefined;
162
+ minimumAmount?: string | undefined;
163
+ };
164
+ sponsored: {
165
+ currency?: {
166
+ chainId?: number | undefined;
167
+ address?: string | undefined;
168
+ symbol?: string | undefined;
169
+ name?: string | undefined;
170
+ decimals?: number | undefined;
171
+ metadata?: {
172
+ logoURI?: string | undefined;
173
+ verified?: boolean | undefined;
174
+ isNative?: boolean | undefined;
175
+ } | undefined;
176
+ } | undefined;
177
+ amount?: string | undefined;
178
+ amountFormatted?: string | undefined;
179
+ amountUsd?: string | undefined;
180
+ minimumAmount?: string | undefined;
181
+ };
182
+ userPays: {
183
+ currency?: {
184
+ chainId?: number | undefined;
185
+ address?: string | undefined;
186
+ symbol?: string | undefined;
187
+ name?: string | undefined;
188
+ decimals?: number | undefined;
189
+ metadata?: {
190
+ logoURI?: string | undefined;
191
+ verified?: boolean | undefined;
192
+ isNative?: boolean | undefined;
193
+ } | undefined;
194
+ } | undefined;
195
+ amount?: string | undefined;
196
+ amountFormatted?: string | undefined;
197
+ amountUsd?: string | undefined;
198
+ minimumAmount?: string | undefined;
199
+ };
200
+ };
201
+ swap: {
202
+ selected: boolean;
203
+ total: {
204
+ currency?: {
205
+ chainId?: number | undefined;
206
+ address?: string | undefined;
207
+ symbol?: string | undefined;
208
+ name?: string | undefined;
209
+ decimals?: number | undefined;
210
+ metadata?: {
211
+ logoURI?: string | undefined;
212
+ verified?: boolean | undefined;
213
+ isNative?: boolean | undefined;
214
+ } | undefined;
215
+ } | undefined;
216
+ amount?: string | undefined;
217
+ amountFormatted?: string | undefined;
218
+ amountUsd?: string | undefined;
219
+ minimumAmount?: string | undefined;
220
+ };
221
+ sponsored: {
222
+ currency?: {
223
+ chainId?: number | undefined;
224
+ address?: string | undefined;
225
+ symbol?: string | undefined;
226
+ name?: string | undefined;
227
+ decimals?: number | undefined;
228
+ metadata?: {
229
+ logoURI?: string | undefined;
230
+ verified?: boolean | undefined;
231
+ isNative?: boolean | undefined;
232
+ } | undefined;
233
+ } | undefined;
234
+ amount?: string | undefined;
235
+ amountFormatted?: string | undefined;
236
+ amountUsd?: string | undefined;
237
+ minimumAmount?: string | undefined;
238
+ };
239
+ userPays: {
240
+ currency?: {
241
+ chainId?: number | undefined;
242
+ address?: string | undefined;
243
+ symbol?: string | undefined;
244
+ name?: string | undefined;
245
+ decimals?: number | undefined;
246
+ metadata?: {
247
+ logoURI?: string | undefined;
248
+ verified?: boolean | undefined;
249
+ isNative?: boolean | undefined;
250
+ } | undefined;
251
+ } | undefined;
252
+ amount?: string | undefined;
253
+ amountFormatted?: string | undefined;
254
+ amountUsd?: string | undefined;
255
+ minimumAmount?: string | undefined;
256
+ };
257
+ };
258
+ relay: {
259
+ selected: boolean;
260
+ total: {
261
+ currency?: {
262
+ chainId?: number | undefined;
263
+ address?: string | undefined;
264
+ symbol?: string | undefined;
265
+ name?: string | undefined;
266
+ decimals?: number | undefined;
267
+ metadata?: {
268
+ logoURI?: string | undefined;
269
+ verified?: boolean | undefined;
270
+ isNative?: boolean | undefined;
271
+ } | undefined;
272
+ } | undefined;
273
+ amount?: string | undefined;
274
+ amountFormatted?: string | undefined;
275
+ amountUsd?: string | undefined;
276
+ minimumAmount?: string | undefined;
277
+ };
278
+ sponsored: {
279
+ currency?: {
280
+ chainId?: number | undefined;
281
+ address?: string | undefined;
282
+ symbol?: string | undefined;
283
+ name?: string | undefined;
284
+ decimals?: number | undefined;
285
+ metadata?: {
286
+ logoURI?: string | undefined;
287
+ verified?: boolean | undefined;
288
+ isNative?: boolean | undefined;
289
+ } | undefined;
290
+ } | undefined;
291
+ amount?: string | undefined;
292
+ amountFormatted?: string | undefined;
293
+ amountUsd?: string | undefined;
294
+ minimumAmount?: string | undefined;
295
+ };
296
+ userPays: {
297
+ currency?: {
298
+ chainId?: number | undefined;
299
+ address?: string | undefined;
300
+ symbol?: string | undefined;
301
+ name?: string | undefined;
302
+ decimals?: number | undefined;
303
+ metadata?: {
304
+ logoURI?: string | undefined;
305
+ verified?: boolean | undefined;
306
+ isNative?: boolean | undefined;
307
+ } | undefined;
308
+ } | undefined;
309
+ amount?: string | undefined;
310
+ amountFormatted?: string | undefined;
311
+ amountUsd?: string | undefined;
312
+ minimumAmount?: string | undefined;
313
+ };
314
+ };
315
+ app: {
316
+ selected: boolean;
317
+ total: {
318
+ currency?: {
319
+ chainId?: number | undefined;
320
+ address?: string | undefined;
321
+ symbol?: string | undefined;
322
+ name?: string | undefined;
323
+ decimals?: number | undefined;
324
+ metadata?: {
325
+ logoURI?: string | undefined;
326
+ verified?: boolean | undefined;
327
+ isNative?: boolean | undefined;
328
+ } | undefined;
329
+ } | undefined;
330
+ amount?: string | undefined;
331
+ amountFormatted?: string | undefined;
332
+ amountUsd?: string | undefined;
333
+ minimumAmount?: string | undefined;
334
+ };
335
+ sponsored: {
336
+ currency?: {
337
+ chainId?: number | undefined;
338
+ address?: string | undefined;
339
+ symbol?: string | undefined;
340
+ name?: string | undefined;
341
+ decimals?: number | undefined;
342
+ metadata?: {
343
+ logoURI?: string | undefined;
344
+ verified?: boolean | undefined;
345
+ isNative?: boolean | undefined;
346
+ } | undefined;
347
+ } | undefined;
348
+ amount?: string | undefined;
349
+ amountFormatted?: string | undefined;
350
+ amountUsd?: string | undefined;
351
+ minimumAmount?: string | undefined;
352
+ };
353
+ userPays: {
354
+ currency?: {
355
+ chainId?: number | undefined;
356
+ address?: string | undefined;
357
+ symbol?: string | undefined;
358
+ name?: string | undefined;
359
+ decimals?: number | undefined;
360
+ metadata?: {
361
+ logoURI?: string | undefined;
362
+ verified?: boolean | undefined;
363
+ isNative?: boolean | undefined;
364
+ } | undefined;
365
+ } | undefined;
366
+ amount?: string | undefined;
367
+ amountFormatted?: string | undefined;
368
+ amountUsd?: string | undefined;
369
+ minimumAmount?: string | undefined;
370
+ };
371
+ };
372
+ };
373
+ sponsoredTotal: {
374
+ currency?: {
375
+ chainId?: number | undefined;
376
+ address?: string | undefined;
377
+ symbol?: string | undefined;
378
+ name?: string | undefined;
379
+ decimals?: number | undefined;
380
+ metadata?: {
381
+ logoURI?: string | undefined;
382
+ verified?: boolean | undefined;
383
+ isNative?: boolean | undefined;
384
+ } | undefined;
385
+ } | undefined;
386
+ amount?: string | undefined;
387
+ amountFormatted?: string | undefined;
388
+ amountUsd?: string | undefined;
389
+ minimumAmount?: string | undefined;
390
+ };
391
+ userPaysTotal: {
392
+ currency?: {
393
+ chainId?: number | undefined;
394
+ address?: string | undefined;
395
+ symbol?: string | undefined;
396
+ name?: string | undefined;
397
+ decimals?: number | undefined;
398
+ metadata?: {
399
+ logoURI?: string | undefined;
400
+ verified?: boolean | undefined;
401
+ isNative?: boolean | undefined;
402
+ } | undefined;
403
+ } | undefined;
404
+ amount?: string | undefined;
405
+ amountFormatted?: string | undefined;
406
+ amountUsd?: string | undefined;
407
+ minimumAmount?: string | undefined;
408
+ };
409
+ } | undefined;
410
+ actual?: {
411
+ selectedComponents: ("execution" | "swap" | "relay" | "app")[];
412
+ maxSubsidizationAmount?: string | undefined;
413
+ capHit: boolean;
414
+ components: {
415
+ execution: {
416
+ selected: boolean;
417
+ total: {
418
+ currency?: {
419
+ chainId?: number | undefined;
420
+ address?: string | undefined;
421
+ symbol?: string | undefined;
422
+ name?: string | undefined;
423
+ decimals?: number | undefined;
424
+ metadata?: {
425
+ logoURI?: string | undefined;
426
+ verified?: boolean | undefined;
427
+ isNative?: boolean | undefined;
428
+ } | undefined;
429
+ } | undefined;
430
+ amount?: string | undefined;
431
+ amountFormatted?: string | undefined;
432
+ amountUsd?: string | undefined;
433
+ minimumAmount?: string | undefined;
434
+ };
435
+ sponsored: {
436
+ currency?: {
437
+ chainId?: number | undefined;
438
+ address?: string | undefined;
439
+ symbol?: string | undefined;
440
+ name?: string | undefined;
441
+ decimals?: number | undefined;
442
+ metadata?: {
443
+ logoURI?: string | undefined;
444
+ verified?: boolean | undefined;
445
+ isNative?: boolean | undefined;
446
+ } | undefined;
447
+ } | undefined;
448
+ amount?: string | undefined;
449
+ amountFormatted?: string | undefined;
450
+ amountUsd?: string | undefined;
451
+ minimumAmount?: string | undefined;
452
+ };
453
+ userPays: {
454
+ currency?: {
455
+ chainId?: number | undefined;
456
+ address?: string | undefined;
457
+ symbol?: string | undefined;
458
+ name?: string | undefined;
459
+ decimals?: number | undefined;
460
+ metadata?: {
461
+ logoURI?: string | undefined;
462
+ verified?: boolean | undefined;
463
+ isNative?: boolean | undefined;
464
+ } | undefined;
465
+ } | undefined;
466
+ amount?: string | undefined;
467
+ amountFormatted?: string | undefined;
468
+ amountUsd?: string | undefined;
469
+ minimumAmount?: string | undefined;
470
+ };
471
+ };
472
+ swap: {
473
+ selected: boolean;
474
+ total: {
475
+ currency?: {
476
+ chainId?: number | undefined;
477
+ address?: string | undefined;
478
+ symbol?: string | undefined;
479
+ name?: string | undefined;
480
+ decimals?: number | undefined;
481
+ metadata?: {
482
+ logoURI?: string | undefined;
483
+ verified?: boolean | undefined;
484
+ isNative?: boolean | undefined;
485
+ } | undefined;
486
+ } | undefined;
487
+ amount?: string | undefined;
488
+ amountFormatted?: string | undefined;
489
+ amountUsd?: string | undefined;
490
+ minimumAmount?: string | undefined;
491
+ };
492
+ sponsored: {
493
+ currency?: {
494
+ chainId?: number | undefined;
495
+ address?: string | undefined;
496
+ symbol?: string | undefined;
497
+ name?: string | undefined;
498
+ decimals?: number | undefined;
499
+ metadata?: {
500
+ logoURI?: string | undefined;
501
+ verified?: boolean | undefined;
502
+ isNative?: boolean | undefined;
503
+ } | undefined;
504
+ } | undefined;
505
+ amount?: string | undefined;
506
+ amountFormatted?: string | undefined;
507
+ amountUsd?: string | undefined;
508
+ minimumAmount?: string | undefined;
509
+ };
510
+ userPays: {
511
+ currency?: {
512
+ chainId?: number | undefined;
513
+ address?: string | undefined;
514
+ symbol?: string | undefined;
515
+ name?: string | undefined;
516
+ decimals?: number | undefined;
517
+ metadata?: {
518
+ logoURI?: string | undefined;
519
+ verified?: boolean | undefined;
520
+ isNative?: boolean | undefined;
521
+ } | undefined;
522
+ } | undefined;
523
+ amount?: string | undefined;
524
+ amountFormatted?: string | undefined;
525
+ amountUsd?: string | undefined;
526
+ minimumAmount?: string | undefined;
527
+ };
528
+ };
529
+ relay: {
530
+ selected: boolean;
531
+ total: {
532
+ currency?: {
533
+ chainId?: number | undefined;
534
+ address?: string | undefined;
535
+ symbol?: string | undefined;
536
+ name?: string | undefined;
537
+ decimals?: number | undefined;
538
+ metadata?: {
539
+ logoURI?: string | undefined;
540
+ verified?: boolean | undefined;
541
+ isNative?: boolean | undefined;
542
+ } | undefined;
543
+ } | undefined;
544
+ amount?: string | undefined;
545
+ amountFormatted?: string | undefined;
546
+ amountUsd?: string | undefined;
547
+ minimumAmount?: string | undefined;
548
+ };
549
+ sponsored: {
550
+ currency?: {
551
+ chainId?: number | undefined;
552
+ address?: string | undefined;
553
+ symbol?: string | undefined;
554
+ name?: string | undefined;
555
+ decimals?: number | undefined;
556
+ metadata?: {
557
+ logoURI?: string | undefined;
558
+ verified?: boolean | undefined;
559
+ isNative?: boolean | undefined;
560
+ } | undefined;
561
+ } | undefined;
562
+ amount?: string | undefined;
563
+ amountFormatted?: string | undefined;
564
+ amountUsd?: string | undefined;
565
+ minimumAmount?: string | undefined;
566
+ };
567
+ userPays: {
568
+ currency?: {
569
+ chainId?: number | undefined;
570
+ address?: string | undefined;
571
+ symbol?: string | undefined;
572
+ name?: string | undefined;
573
+ decimals?: number | undefined;
574
+ metadata?: {
575
+ logoURI?: string | undefined;
576
+ verified?: boolean | undefined;
577
+ isNative?: boolean | undefined;
578
+ } | undefined;
579
+ } | undefined;
580
+ amount?: string | undefined;
581
+ amountFormatted?: string | undefined;
582
+ amountUsd?: string | undefined;
583
+ minimumAmount?: string | undefined;
584
+ };
585
+ };
586
+ app: {
587
+ selected: boolean;
588
+ total: {
589
+ currency?: {
590
+ chainId?: number | undefined;
591
+ address?: string | undefined;
592
+ symbol?: string | undefined;
593
+ name?: string | undefined;
594
+ decimals?: number | undefined;
595
+ metadata?: {
596
+ logoURI?: string | undefined;
597
+ verified?: boolean | undefined;
598
+ isNative?: boolean | undefined;
599
+ } | undefined;
600
+ } | undefined;
601
+ amount?: string | undefined;
602
+ amountFormatted?: string | undefined;
603
+ amountUsd?: string | undefined;
604
+ minimumAmount?: string | undefined;
605
+ };
606
+ sponsored: {
607
+ currency?: {
608
+ chainId?: number | undefined;
609
+ address?: string | undefined;
610
+ symbol?: string | undefined;
611
+ name?: string | undefined;
612
+ decimals?: number | undefined;
613
+ metadata?: {
614
+ logoURI?: string | undefined;
615
+ verified?: boolean | undefined;
616
+ isNative?: boolean | undefined;
617
+ } | undefined;
618
+ } | undefined;
619
+ amount?: string | undefined;
620
+ amountFormatted?: string | undefined;
621
+ amountUsd?: string | undefined;
622
+ minimumAmount?: string | undefined;
623
+ };
624
+ userPays: {
625
+ currency?: {
626
+ chainId?: number | undefined;
627
+ address?: string | undefined;
628
+ symbol?: string | undefined;
629
+ name?: string | undefined;
630
+ decimals?: number | undefined;
631
+ metadata?: {
632
+ logoURI?: string | undefined;
633
+ verified?: boolean | undefined;
634
+ isNative?: boolean | undefined;
635
+ } | undefined;
636
+ } | undefined;
637
+ amount?: string | undefined;
638
+ amountFormatted?: string | undefined;
639
+ amountUsd?: string | undefined;
640
+ minimumAmount?: string | undefined;
641
+ };
642
+ };
643
+ };
644
+ sponsoredTotal: {
645
+ currency?: {
646
+ chainId?: number | undefined;
647
+ address?: string | undefined;
648
+ symbol?: string | undefined;
649
+ name?: string | undefined;
650
+ decimals?: number | undefined;
651
+ metadata?: {
652
+ logoURI?: string | undefined;
653
+ verified?: boolean | undefined;
654
+ isNative?: boolean | undefined;
655
+ } | undefined;
656
+ } | undefined;
657
+ amount?: string | undefined;
658
+ amountFormatted?: string | undefined;
659
+ amountUsd?: string | undefined;
660
+ minimumAmount?: string | undefined;
661
+ };
662
+ userPaysTotal: {
663
+ currency?: {
664
+ chainId?: number | undefined;
665
+ address?: string | undefined;
666
+ symbol?: string | undefined;
667
+ name?: string | undefined;
668
+ decimals?: number | undefined;
669
+ metadata?: {
670
+ logoURI?: string | undefined;
671
+ verified?: boolean | undefined;
672
+ isNative?: boolean | undefined;
673
+ } | undefined;
674
+ } | undefined;
675
+ amount?: string | undefined;
676
+ amountFormatted?: string | undefined;
677
+ amountUsd?: string | undefined;
678
+ minimumAmount?: string | undefined;
679
+ };
680
+ sponsorPayment?: {
681
+ amount: string;
682
+ address: string;
683
+ chainId: number;
684
+ } | undefined;
685
+ } | undefined;
686
+ } | undefined;
138
687
  details?: {
139
688
  operation?: string | undefined;
140
689
  sender?: string | undefined;
@@ -232,6 +781,9 @@ export default function (client?: RelayClient, wallet?: WalletClient | AdaptedWa
232
781
  app?: {
233
782
  usd?: string | undefined;
234
783
  } | undefined;
784
+ sponsored?: {
785
+ usd?: string | undefined;
786
+ } | undefined;
235
787
  } | undefined;
236
788
  rate?: string | undefined;
237
789
  slippageTolerance?: {
@@ -250,6 +802,9 @@ export default function (client?: RelayClient, wallet?: WalletClient | AdaptedWa
250
802
  userBalance?: string | undefined;
251
803
  fallbackType?: string | undefined;
252
804
  isFixedRate?: boolean | undefined;
805
+ fixedRateFee?: {
806
+ usd?: string | undefined;
807
+ } | undefined;
253
808
  route?: {
254
809
  origin?: {
255
810
  inputCurrency?: {
@@ -348,7 +903,7 @@ export default function (client?: RelayClient, wallet?: WalletClient | AdaptedWa
348
903
  }, Error>, "data"> & {
349
904
  data?: {
350
905
  steps?: {
351
- id: "deposit" | "approve" | "authorize" | "authorize1" | "authorize2" | "swap" | "send";
906
+ id: "swap" | "deposit" | "approve" | "authorize" | "authorize1" | "authorize2" | "send";
352
907
  action: string;
353
908
  description: string;
354
909
  kind: string;
@@ -473,6 +1028,555 @@ export default function (client?: RelayClient, wallet?: WalletClient | AdaptedWa
473
1028
  minimumAmount?: string | undefined;
474
1029
  } | undefined;
475
1030
  } | undefined;
1031
+ feeSponsorship?: {
1032
+ quoted?: {
1033
+ selectedComponents: ("execution" | "swap" | "relay" | "app")[];
1034
+ maxSubsidizationAmount?: string | undefined;
1035
+ capHit: boolean;
1036
+ components: {
1037
+ execution: {
1038
+ selected: boolean;
1039
+ total: {
1040
+ currency?: {
1041
+ chainId?: number | undefined;
1042
+ address?: string | undefined;
1043
+ symbol?: string | undefined;
1044
+ name?: string | undefined;
1045
+ decimals?: number | undefined;
1046
+ metadata?: {
1047
+ logoURI?: string | undefined;
1048
+ verified?: boolean | undefined;
1049
+ isNative?: boolean | undefined;
1050
+ } | undefined;
1051
+ } | undefined;
1052
+ amount?: string | undefined;
1053
+ amountFormatted?: string | undefined;
1054
+ amountUsd?: string | undefined;
1055
+ minimumAmount?: string | undefined;
1056
+ };
1057
+ sponsored: {
1058
+ currency?: {
1059
+ chainId?: number | undefined;
1060
+ address?: string | undefined;
1061
+ symbol?: string | undefined;
1062
+ name?: string | undefined;
1063
+ decimals?: number | undefined;
1064
+ metadata?: {
1065
+ logoURI?: string | undefined;
1066
+ verified?: boolean | undefined;
1067
+ isNative?: boolean | undefined;
1068
+ } | undefined;
1069
+ } | undefined;
1070
+ amount?: string | undefined;
1071
+ amountFormatted?: string | undefined;
1072
+ amountUsd?: string | undefined;
1073
+ minimumAmount?: string | undefined;
1074
+ };
1075
+ userPays: {
1076
+ currency?: {
1077
+ chainId?: number | undefined;
1078
+ address?: string | undefined;
1079
+ symbol?: string | undefined;
1080
+ name?: string | undefined;
1081
+ decimals?: number | undefined;
1082
+ metadata?: {
1083
+ logoURI?: string | undefined;
1084
+ verified?: boolean | undefined;
1085
+ isNative?: boolean | undefined;
1086
+ } | undefined;
1087
+ } | undefined;
1088
+ amount?: string | undefined;
1089
+ amountFormatted?: string | undefined;
1090
+ amountUsd?: string | undefined;
1091
+ minimumAmount?: string | undefined;
1092
+ };
1093
+ };
1094
+ swap: {
1095
+ selected: boolean;
1096
+ total: {
1097
+ currency?: {
1098
+ chainId?: number | undefined;
1099
+ address?: string | undefined;
1100
+ symbol?: string | undefined;
1101
+ name?: string | undefined;
1102
+ decimals?: number | undefined;
1103
+ metadata?: {
1104
+ logoURI?: string | undefined;
1105
+ verified?: boolean | undefined;
1106
+ isNative?: boolean | undefined;
1107
+ } | undefined;
1108
+ } | undefined;
1109
+ amount?: string | undefined;
1110
+ amountFormatted?: string | undefined;
1111
+ amountUsd?: string | undefined;
1112
+ minimumAmount?: string | undefined;
1113
+ };
1114
+ sponsored: {
1115
+ currency?: {
1116
+ chainId?: number | undefined;
1117
+ address?: string | undefined;
1118
+ symbol?: string | undefined;
1119
+ name?: string | undefined;
1120
+ decimals?: number | undefined;
1121
+ metadata?: {
1122
+ logoURI?: string | undefined;
1123
+ verified?: boolean | undefined;
1124
+ isNative?: boolean | undefined;
1125
+ } | undefined;
1126
+ } | undefined;
1127
+ amount?: string | undefined;
1128
+ amountFormatted?: string | undefined;
1129
+ amountUsd?: string | undefined;
1130
+ minimumAmount?: string | undefined;
1131
+ };
1132
+ userPays: {
1133
+ currency?: {
1134
+ chainId?: number | undefined;
1135
+ address?: string | undefined;
1136
+ symbol?: string | undefined;
1137
+ name?: string | undefined;
1138
+ decimals?: number | undefined;
1139
+ metadata?: {
1140
+ logoURI?: string | undefined;
1141
+ verified?: boolean | undefined;
1142
+ isNative?: boolean | undefined;
1143
+ } | undefined;
1144
+ } | undefined;
1145
+ amount?: string | undefined;
1146
+ amountFormatted?: string | undefined;
1147
+ amountUsd?: string | undefined;
1148
+ minimumAmount?: string | undefined;
1149
+ };
1150
+ };
1151
+ relay: {
1152
+ selected: boolean;
1153
+ total: {
1154
+ currency?: {
1155
+ chainId?: number | undefined;
1156
+ address?: string | undefined;
1157
+ symbol?: string | undefined;
1158
+ name?: string | undefined;
1159
+ decimals?: number | undefined;
1160
+ metadata?: {
1161
+ logoURI?: string | undefined;
1162
+ verified?: boolean | undefined;
1163
+ isNative?: boolean | undefined;
1164
+ } | undefined;
1165
+ } | undefined;
1166
+ amount?: string | undefined;
1167
+ amountFormatted?: string | undefined;
1168
+ amountUsd?: string | undefined;
1169
+ minimumAmount?: string | undefined;
1170
+ };
1171
+ sponsored: {
1172
+ currency?: {
1173
+ chainId?: number | undefined;
1174
+ address?: string | undefined;
1175
+ symbol?: string | undefined;
1176
+ name?: string | undefined;
1177
+ decimals?: number | undefined;
1178
+ metadata?: {
1179
+ logoURI?: string | undefined;
1180
+ verified?: boolean | undefined;
1181
+ isNative?: boolean | undefined;
1182
+ } | undefined;
1183
+ } | undefined;
1184
+ amount?: string | undefined;
1185
+ amountFormatted?: string | undefined;
1186
+ amountUsd?: string | undefined;
1187
+ minimumAmount?: string | undefined;
1188
+ };
1189
+ userPays: {
1190
+ currency?: {
1191
+ chainId?: number | undefined;
1192
+ address?: string | undefined;
1193
+ symbol?: string | undefined;
1194
+ name?: string | undefined;
1195
+ decimals?: number | undefined;
1196
+ metadata?: {
1197
+ logoURI?: string | undefined;
1198
+ verified?: boolean | undefined;
1199
+ isNative?: boolean | undefined;
1200
+ } | undefined;
1201
+ } | undefined;
1202
+ amount?: string | undefined;
1203
+ amountFormatted?: string | undefined;
1204
+ amountUsd?: string | undefined;
1205
+ minimumAmount?: string | undefined;
1206
+ };
1207
+ };
1208
+ app: {
1209
+ selected: boolean;
1210
+ total: {
1211
+ currency?: {
1212
+ chainId?: number | undefined;
1213
+ address?: string | undefined;
1214
+ symbol?: string | undefined;
1215
+ name?: string | undefined;
1216
+ decimals?: number | undefined;
1217
+ metadata?: {
1218
+ logoURI?: string | undefined;
1219
+ verified?: boolean | undefined;
1220
+ isNative?: boolean | undefined;
1221
+ } | undefined;
1222
+ } | undefined;
1223
+ amount?: string | undefined;
1224
+ amountFormatted?: string | undefined;
1225
+ amountUsd?: string | undefined;
1226
+ minimumAmount?: string | undefined;
1227
+ };
1228
+ sponsored: {
1229
+ currency?: {
1230
+ chainId?: number | undefined;
1231
+ address?: string | undefined;
1232
+ symbol?: string | undefined;
1233
+ name?: string | undefined;
1234
+ decimals?: number | undefined;
1235
+ metadata?: {
1236
+ logoURI?: string | undefined;
1237
+ verified?: boolean | undefined;
1238
+ isNative?: boolean | undefined;
1239
+ } | undefined;
1240
+ } | undefined;
1241
+ amount?: string | undefined;
1242
+ amountFormatted?: string | undefined;
1243
+ amountUsd?: string | undefined;
1244
+ minimumAmount?: string | undefined;
1245
+ };
1246
+ userPays: {
1247
+ currency?: {
1248
+ chainId?: number | undefined;
1249
+ address?: string | undefined;
1250
+ symbol?: string | undefined;
1251
+ name?: string | undefined;
1252
+ decimals?: number | undefined;
1253
+ metadata?: {
1254
+ logoURI?: string | undefined;
1255
+ verified?: boolean | undefined;
1256
+ isNative?: boolean | undefined;
1257
+ } | undefined;
1258
+ } | undefined;
1259
+ amount?: string | undefined;
1260
+ amountFormatted?: string | undefined;
1261
+ amountUsd?: string | undefined;
1262
+ minimumAmount?: string | undefined;
1263
+ };
1264
+ };
1265
+ };
1266
+ sponsoredTotal: {
1267
+ currency?: {
1268
+ chainId?: number | undefined;
1269
+ address?: string | undefined;
1270
+ symbol?: string | undefined;
1271
+ name?: string | undefined;
1272
+ decimals?: number | undefined;
1273
+ metadata?: {
1274
+ logoURI?: string | undefined;
1275
+ verified?: boolean | undefined;
1276
+ isNative?: boolean | undefined;
1277
+ } | undefined;
1278
+ } | undefined;
1279
+ amount?: string | undefined;
1280
+ amountFormatted?: string | undefined;
1281
+ amountUsd?: string | undefined;
1282
+ minimumAmount?: string | undefined;
1283
+ };
1284
+ userPaysTotal: {
1285
+ currency?: {
1286
+ chainId?: number | undefined;
1287
+ address?: string | undefined;
1288
+ symbol?: string | undefined;
1289
+ name?: string | undefined;
1290
+ decimals?: number | undefined;
1291
+ metadata?: {
1292
+ logoURI?: string | undefined;
1293
+ verified?: boolean | undefined;
1294
+ isNative?: boolean | undefined;
1295
+ } | undefined;
1296
+ } | undefined;
1297
+ amount?: string | undefined;
1298
+ amountFormatted?: string | undefined;
1299
+ amountUsd?: string | undefined;
1300
+ minimumAmount?: string | undefined;
1301
+ };
1302
+ } | undefined;
1303
+ actual?: {
1304
+ selectedComponents: ("execution" | "swap" | "relay" | "app")[];
1305
+ maxSubsidizationAmount?: string | undefined;
1306
+ capHit: boolean;
1307
+ components: {
1308
+ execution: {
1309
+ selected: boolean;
1310
+ total: {
1311
+ currency?: {
1312
+ chainId?: number | undefined;
1313
+ address?: string | undefined;
1314
+ symbol?: string | undefined;
1315
+ name?: string | undefined;
1316
+ decimals?: number | undefined;
1317
+ metadata?: {
1318
+ logoURI?: string | undefined;
1319
+ verified?: boolean | undefined;
1320
+ isNative?: boolean | undefined;
1321
+ } | undefined;
1322
+ } | undefined;
1323
+ amount?: string | undefined;
1324
+ amountFormatted?: string | undefined;
1325
+ amountUsd?: string | undefined;
1326
+ minimumAmount?: string | undefined;
1327
+ };
1328
+ sponsored: {
1329
+ currency?: {
1330
+ chainId?: number | undefined;
1331
+ address?: string | undefined;
1332
+ symbol?: string | undefined;
1333
+ name?: string | undefined;
1334
+ decimals?: number | undefined;
1335
+ metadata?: {
1336
+ logoURI?: string | undefined;
1337
+ verified?: boolean | undefined;
1338
+ isNative?: boolean | undefined;
1339
+ } | undefined;
1340
+ } | undefined;
1341
+ amount?: string | undefined;
1342
+ amountFormatted?: string | undefined;
1343
+ amountUsd?: string | undefined;
1344
+ minimumAmount?: string | undefined;
1345
+ };
1346
+ userPays: {
1347
+ currency?: {
1348
+ chainId?: number | undefined;
1349
+ address?: string | undefined;
1350
+ symbol?: string | undefined;
1351
+ name?: string | undefined;
1352
+ decimals?: number | undefined;
1353
+ metadata?: {
1354
+ logoURI?: string | undefined;
1355
+ verified?: boolean | undefined;
1356
+ isNative?: boolean | undefined;
1357
+ } | undefined;
1358
+ } | undefined;
1359
+ amount?: string | undefined;
1360
+ amountFormatted?: string | undefined;
1361
+ amountUsd?: string | undefined;
1362
+ minimumAmount?: string | undefined;
1363
+ };
1364
+ };
1365
+ swap: {
1366
+ selected: boolean;
1367
+ total: {
1368
+ currency?: {
1369
+ chainId?: number | undefined;
1370
+ address?: string | undefined;
1371
+ symbol?: string | undefined;
1372
+ name?: string | undefined;
1373
+ decimals?: number | undefined;
1374
+ metadata?: {
1375
+ logoURI?: string | undefined;
1376
+ verified?: boolean | undefined;
1377
+ isNative?: boolean | undefined;
1378
+ } | undefined;
1379
+ } | undefined;
1380
+ amount?: string | undefined;
1381
+ amountFormatted?: string | undefined;
1382
+ amountUsd?: string | undefined;
1383
+ minimumAmount?: string | undefined;
1384
+ };
1385
+ sponsored: {
1386
+ currency?: {
1387
+ chainId?: number | undefined;
1388
+ address?: string | undefined;
1389
+ symbol?: string | undefined;
1390
+ name?: string | undefined;
1391
+ decimals?: number | undefined;
1392
+ metadata?: {
1393
+ logoURI?: string | undefined;
1394
+ verified?: boolean | undefined;
1395
+ isNative?: boolean | undefined;
1396
+ } | undefined;
1397
+ } | undefined;
1398
+ amount?: string | undefined;
1399
+ amountFormatted?: string | undefined;
1400
+ amountUsd?: string | undefined;
1401
+ minimumAmount?: string | undefined;
1402
+ };
1403
+ userPays: {
1404
+ currency?: {
1405
+ chainId?: number | undefined;
1406
+ address?: string | undefined;
1407
+ symbol?: string | undefined;
1408
+ name?: string | undefined;
1409
+ decimals?: number | undefined;
1410
+ metadata?: {
1411
+ logoURI?: string | undefined;
1412
+ verified?: boolean | undefined;
1413
+ isNative?: boolean | undefined;
1414
+ } | undefined;
1415
+ } | undefined;
1416
+ amount?: string | undefined;
1417
+ amountFormatted?: string | undefined;
1418
+ amountUsd?: string | undefined;
1419
+ minimumAmount?: string | undefined;
1420
+ };
1421
+ };
1422
+ relay: {
1423
+ selected: boolean;
1424
+ total: {
1425
+ currency?: {
1426
+ chainId?: number | undefined;
1427
+ address?: string | undefined;
1428
+ symbol?: string | undefined;
1429
+ name?: string | undefined;
1430
+ decimals?: number | undefined;
1431
+ metadata?: {
1432
+ logoURI?: string | undefined;
1433
+ verified?: boolean | undefined;
1434
+ isNative?: boolean | undefined;
1435
+ } | undefined;
1436
+ } | undefined;
1437
+ amount?: string | undefined;
1438
+ amountFormatted?: string | undefined;
1439
+ amountUsd?: string | undefined;
1440
+ minimumAmount?: string | undefined;
1441
+ };
1442
+ sponsored: {
1443
+ currency?: {
1444
+ chainId?: number | undefined;
1445
+ address?: string | undefined;
1446
+ symbol?: string | undefined;
1447
+ name?: string | undefined;
1448
+ decimals?: number | undefined;
1449
+ metadata?: {
1450
+ logoURI?: string | undefined;
1451
+ verified?: boolean | undefined;
1452
+ isNative?: boolean | undefined;
1453
+ } | undefined;
1454
+ } | undefined;
1455
+ amount?: string | undefined;
1456
+ amountFormatted?: string | undefined;
1457
+ amountUsd?: string | undefined;
1458
+ minimumAmount?: string | undefined;
1459
+ };
1460
+ userPays: {
1461
+ currency?: {
1462
+ chainId?: number | undefined;
1463
+ address?: string | undefined;
1464
+ symbol?: string | undefined;
1465
+ name?: string | undefined;
1466
+ decimals?: number | undefined;
1467
+ metadata?: {
1468
+ logoURI?: string | undefined;
1469
+ verified?: boolean | undefined;
1470
+ isNative?: boolean | undefined;
1471
+ } | undefined;
1472
+ } | undefined;
1473
+ amount?: string | undefined;
1474
+ amountFormatted?: string | undefined;
1475
+ amountUsd?: string | undefined;
1476
+ minimumAmount?: string | undefined;
1477
+ };
1478
+ };
1479
+ app: {
1480
+ selected: boolean;
1481
+ total: {
1482
+ currency?: {
1483
+ chainId?: number | undefined;
1484
+ address?: string | undefined;
1485
+ symbol?: string | undefined;
1486
+ name?: string | undefined;
1487
+ decimals?: number | undefined;
1488
+ metadata?: {
1489
+ logoURI?: string | undefined;
1490
+ verified?: boolean | undefined;
1491
+ isNative?: boolean | undefined;
1492
+ } | undefined;
1493
+ } | undefined;
1494
+ amount?: string | undefined;
1495
+ amountFormatted?: string | undefined;
1496
+ amountUsd?: string | undefined;
1497
+ minimumAmount?: string | undefined;
1498
+ };
1499
+ sponsored: {
1500
+ currency?: {
1501
+ chainId?: number | undefined;
1502
+ address?: string | undefined;
1503
+ symbol?: string | undefined;
1504
+ name?: string | undefined;
1505
+ decimals?: number | undefined;
1506
+ metadata?: {
1507
+ logoURI?: string | undefined;
1508
+ verified?: boolean | undefined;
1509
+ isNative?: boolean | undefined;
1510
+ } | undefined;
1511
+ } | undefined;
1512
+ amount?: string | undefined;
1513
+ amountFormatted?: string | undefined;
1514
+ amountUsd?: string | undefined;
1515
+ minimumAmount?: string | undefined;
1516
+ };
1517
+ userPays: {
1518
+ currency?: {
1519
+ chainId?: number | undefined;
1520
+ address?: string | undefined;
1521
+ symbol?: string | undefined;
1522
+ name?: string | undefined;
1523
+ decimals?: number | undefined;
1524
+ metadata?: {
1525
+ logoURI?: string | undefined;
1526
+ verified?: boolean | undefined;
1527
+ isNative?: boolean | undefined;
1528
+ } | undefined;
1529
+ } | undefined;
1530
+ amount?: string | undefined;
1531
+ amountFormatted?: string | undefined;
1532
+ amountUsd?: string | undefined;
1533
+ minimumAmount?: string | undefined;
1534
+ };
1535
+ };
1536
+ };
1537
+ sponsoredTotal: {
1538
+ currency?: {
1539
+ chainId?: number | undefined;
1540
+ address?: string | undefined;
1541
+ symbol?: string | undefined;
1542
+ name?: string | undefined;
1543
+ decimals?: number | undefined;
1544
+ metadata?: {
1545
+ logoURI?: string | undefined;
1546
+ verified?: boolean | undefined;
1547
+ isNative?: boolean | undefined;
1548
+ } | undefined;
1549
+ } | undefined;
1550
+ amount?: string | undefined;
1551
+ amountFormatted?: string | undefined;
1552
+ amountUsd?: string | undefined;
1553
+ minimumAmount?: string | undefined;
1554
+ };
1555
+ userPaysTotal: {
1556
+ currency?: {
1557
+ chainId?: number | undefined;
1558
+ address?: string | undefined;
1559
+ symbol?: string | undefined;
1560
+ name?: string | undefined;
1561
+ decimals?: number | undefined;
1562
+ metadata?: {
1563
+ logoURI?: string | undefined;
1564
+ verified?: boolean | undefined;
1565
+ isNative?: boolean | undefined;
1566
+ } | undefined;
1567
+ } | undefined;
1568
+ amount?: string | undefined;
1569
+ amountFormatted?: string | undefined;
1570
+ amountUsd?: string | undefined;
1571
+ minimumAmount?: string | undefined;
1572
+ };
1573
+ sponsorPayment?: {
1574
+ amount: string;
1575
+ address: string;
1576
+ chainId: number;
1577
+ } | undefined;
1578
+ } | undefined;
1579
+ } | undefined;
476
1580
  details?: {
477
1581
  operation?: string | undefined;
478
1582
  sender?: string | undefined;
@@ -570,6 +1674,9 @@ export default function (client?: RelayClient, wallet?: WalletClient | AdaptedWa
570
1674
  app?: {
571
1675
  usd?: string | undefined;
572
1676
  } | undefined;
1677
+ sponsored?: {
1678
+ usd?: string | undefined;
1679
+ } | undefined;
573
1680
  } | undefined;
574
1681
  rate?: string | undefined;
575
1682
  slippageTolerance?: {
@@ -588,6 +1695,9 @@ export default function (client?: RelayClient, wallet?: WalletClient | AdaptedWa
588
1695
  userBalance?: string | undefined;
589
1696
  fallbackType?: string | undefined;
590
1697
  isFixedRate?: boolean | undefined;
1698
+ fixedRateFee?: {
1699
+ usd?: string | undefined;
1700
+ } | undefined;
591
1701
  route?: {
592
1702
  origin?: {
593
1703
  inputCurrency?: {