@metamask-previews/bridge-controller 77.8.0-preview-5959fe813 → 77.8.0-preview-0d2cbf546

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 (196) hide show
  1. package/CHANGELOG.md +0 -12
  2. package/dist/bridge-controller.cjs +3 -8
  3. package/dist/bridge-controller.cjs.map +1 -1
  4. package/dist/bridge-controller.d.cts +3 -4
  5. package/dist/bridge-controller.d.cts.map +1 -1
  6. package/dist/bridge-controller.d.mts +3 -4
  7. package/dist/bridge-controller.d.mts.map +1 -1
  8. package/dist/bridge-controller.mjs +3 -8
  9. package/dist/bridge-controller.mjs.map +1 -1
  10. package/dist/index.cjs +2 -19
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.d.cts +4 -12
  13. package/dist/index.d.cts.map +1 -1
  14. package/dist/index.d.mts +4 -12
  15. package/dist/index.d.mts.map +1 -1
  16. package/dist/index.mjs +1 -7
  17. package/dist/index.mjs.map +1 -1
  18. package/dist/selectors.cjs +29 -31
  19. package/dist/selectors.cjs.map +1 -1
  20. package/dist/selectors.d.cts +36410 -5110
  21. package/dist/selectors.d.cts.map +1 -1
  22. package/dist/selectors.d.mts +36410 -5110
  23. package/dist/selectors.d.mts.map +1 -1
  24. package/dist/selectors.mjs +29 -31
  25. package/dist/selectors.mjs.map +1 -1
  26. package/dist/types.cjs.map +1 -1
  27. package/dist/types.d.cts +7 -2
  28. package/dist/types.d.cts.map +1 -1
  29. package/dist/types.d.mts +7 -2
  30. package/dist/types.d.mts.map +1 -1
  31. package/dist/types.mjs.map +1 -1
  32. package/dist/utils/bridge.cjs +5 -1
  33. package/dist/utils/bridge.cjs.map +1 -1
  34. package/dist/utils/bridge.d.cts +19 -2
  35. package/dist/utils/bridge.d.cts.map +1 -1
  36. package/dist/utils/bridge.d.mts +19 -2
  37. package/dist/utils/bridge.d.mts.map +1 -1
  38. package/dist/utils/bridge.mjs +3 -0
  39. package/dist/utils/bridge.mjs.map +1 -1
  40. package/dist/utils/caip-formatters.cjs +3 -0
  41. package/dist/utils/caip-formatters.cjs.map +1 -1
  42. package/dist/utils/caip-formatters.d.cts.map +1 -1
  43. package/dist/utils/caip-formatters.d.mts.map +1 -1
  44. package/dist/utils/caip-formatters.mjs +3 -0
  45. package/dist/utils/caip-formatters.mjs.map +1 -1
  46. package/dist/utils/feature-flags.d.cts +2 -2
  47. package/dist/utils/feature-flags.d.mts +2 -2
  48. package/dist/utils/fetch.cjs +40 -37
  49. package/dist/utils/fetch.cjs.map +1 -1
  50. package/dist/utils/fetch.d.cts +4 -10
  51. package/dist/utils/fetch.d.cts.map +1 -1
  52. package/dist/utils/fetch.d.mts +4 -10
  53. package/dist/utils/fetch.d.mts.map +1 -1
  54. package/dist/utils/fetch.mjs +40 -37
  55. package/dist/utils/fetch.mjs.map +1 -1
  56. package/dist/utils/metrics/properties.cjs +6 -6
  57. package/dist/utils/metrics/properties.cjs.map +1 -1
  58. package/dist/utils/metrics/properties.d.cts +5 -8
  59. package/dist/utils/metrics/properties.d.cts.map +1 -1
  60. package/dist/utils/metrics/properties.d.mts +5 -8
  61. package/dist/utils/metrics/properties.d.mts.map +1 -1
  62. package/dist/utils/metrics/properties.mjs +6 -6
  63. package/dist/utils/metrics/properties.mjs.map +1 -1
  64. package/dist/utils/metrics/types.cjs.map +1 -1
  65. package/dist/utils/metrics/types.d.cts +1 -1
  66. package/dist/utils/metrics/types.d.cts.map +1 -1
  67. package/dist/utils/metrics/types.d.mts +1 -1
  68. package/dist/utils/metrics/types.d.mts.map +1 -1
  69. package/dist/utils/metrics/types.mjs.map +1 -1
  70. package/dist/utils/number-formatters.cjs +1 -74
  71. package/dist/utils/number-formatters.cjs.map +1 -1
  72. package/dist/utils/number-formatters.d.cts +0 -18
  73. package/dist/utils/number-formatters.d.cts.map +1 -1
  74. package/dist/utils/number-formatters.d.mts +0 -18
  75. package/dist/utils/number-formatters.d.mts.map +1 -1
  76. package/dist/utils/number-formatters.mjs +0 -71
  77. package/dist/utils/number-formatters.mjs.map +1 -1
  78. package/dist/utils/quote-fees.cjs +22 -23
  79. package/dist/utils/quote-fees.cjs.map +1 -1
  80. package/dist/utils/quote-fees.d.cts +2 -4
  81. package/dist/utils/quote-fees.d.cts.map +1 -1
  82. package/dist/utils/quote-fees.d.mts +2 -4
  83. package/dist/utils/quote-fees.d.mts.map +1 -1
  84. package/dist/utils/quote-fees.mjs +23 -24
  85. package/dist/utils/quote-fees.mjs.map +1 -1
  86. package/dist/utils/quote-metadata/calculators.cjs +35 -33
  87. package/dist/utils/quote-metadata/calculators.cjs.map +1 -1
  88. package/dist/utils/quote-metadata/calculators.d.cts +14 -20
  89. package/dist/utils/quote-metadata/calculators.d.cts.map +1 -1
  90. package/dist/utils/quote-metadata/calculators.d.mts +14 -20
  91. package/dist/utils/quote-metadata/calculators.d.mts.map +1 -1
  92. package/dist/utils/quote-metadata/calculators.mjs +36 -34
  93. package/dist/utils/quote-metadata/calculators.mjs.map +1 -1
  94. package/dist/utils/quote-metadata/merge.cjs +2 -24
  95. package/dist/utils/quote-metadata/merge.cjs.map +1 -1
  96. package/dist/utils/quote-metadata/merge.d.cts +2 -3
  97. package/dist/utils/quote-metadata/merge.d.cts.map +1 -1
  98. package/dist/utils/quote-metadata/merge.d.mts +2 -3
  99. package/dist/utils/quote-metadata/merge.d.mts.map +1 -1
  100. package/dist/utils/quote-metadata/merge.mjs +2 -24
  101. package/dist/utils/quote-metadata/merge.mjs.map +1 -1
  102. package/dist/utils/slippage.d.cts +1 -1
  103. package/dist/utils/slippage.d.mts +1 -1
  104. package/dist/validators/batch-sell.d.cts +8 -8
  105. package/dist/validators/batch-sell.d.mts +8 -8
  106. package/dist/validators/bridge-asset.cjs +1 -65
  107. package/dist/validators/bridge-asset.cjs.map +1 -1
  108. package/dist/validators/bridge-asset.d.cts +5 -99
  109. package/dist/validators/bridge-asset.d.cts.map +1 -1
  110. package/dist/validators/bridge-asset.d.mts +5 -99
  111. package/dist/validators/bridge-asset.d.mts.map +1 -1
  112. package/dist/validators/bridge-asset.mjs +1 -64
  113. package/dist/validators/bridge-asset.mjs.map +1 -1
  114. package/dist/validators/feature-flags.d.cts +5 -5
  115. package/dist/validators/feature-flags.d.mts +5 -5
  116. package/dist/validators/intent.d.cts +3 -3
  117. package/dist/validators/intent.d.mts +3 -3
  118. package/dist/validators/quote-response-v1.d.cts +179 -179
  119. package/dist/validators/quote-response-v1.d.mts +179 -179
  120. package/dist/validators/quote.cjs +3 -73
  121. package/dist/validators/quote.cjs.map +1 -1
  122. package/dist/validators/quote.d.cts +45 -407
  123. package/dist/validators/quote.d.cts.map +1 -1
  124. package/dist/validators/quote.d.mts +45 -407
  125. package/dist/validators/quote.d.mts.map +1 -1
  126. package/dist/validators/quote.mjs +4 -74
  127. package/dist/validators/quote.mjs.map +1 -1
  128. package/dist/validators/step.cjs +1 -7
  129. package/dist/validators/step.cjs.map +1 -1
  130. package/dist/validators/step.d.cts +26 -197
  131. package/dist/validators/step.d.cts.map +1 -1
  132. package/dist/validators/step.d.mts +26 -197
  133. package/dist/validators/step.d.mts.map +1 -1
  134. package/dist/validators/step.mjs +1 -7
  135. package/dist/validators/step.mjs.map +1 -1
  136. package/dist/validators/token-feature.d.cts +2 -2
  137. package/dist/validators/token-feature.d.mts +2 -2
  138. package/dist/validators/trade.d.cts +2 -2
  139. package/dist/validators/trade.d.mts +2 -2
  140. package/package.json +1 -1
  141. package/dist/coercers/quote-response-v1-to-v2.cjs +0 -137
  142. package/dist/coercers/quote-response-v1-to-v2.cjs.map +0 -1
  143. package/dist/coercers/quote-response-v1-to-v2.d.cts +0 -13
  144. package/dist/coercers/quote-response-v1-to-v2.d.cts.map +0 -1
  145. package/dist/coercers/quote-response-v1-to-v2.d.mts +0 -13
  146. package/dist/coercers/quote-response-v1-to-v2.d.mts.map +0 -1
  147. package/dist/coercers/quote-response-v1-to-v2.mjs +0 -132
  148. package/dist/coercers/quote-response-v1-to-v2.mjs.map +0 -1
  149. package/dist/coercers/quote-response-v2-to-v1.cjs +0 -173
  150. package/dist/coercers/quote-response-v2-to-v1.cjs.map +0 -1
  151. package/dist/coercers/quote-response-v2-to-v1.d.cts +0 -13
  152. package/dist/coercers/quote-response-v2-to-v1.d.cts.map +0 -1
  153. package/dist/coercers/quote-response-v2-to-v1.d.mts +0 -13
  154. package/dist/coercers/quote-response-v2-to-v1.d.mts.map +0 -1
  155. package/dist/coercers/quote-response-v2-to-v1.mjs +0 -169
  156. package/dist/coercers/quote-response-v2-to-v1.mjs.map +0 -1
  157. package/dist/utils/quote-metadata/to-normalized-amounts.cjs +0 -38
  158. package/dist/utils/quote-metadata/to-normalized-amounts.cjs.map +0 -1
  159. package/dist/utils/quote-metadata/to-normalized-amounts.d.cts +0 -10
  160. package/dist/utils/quote-metadata/to-normalized-amounts.d.cts.map +0 -1
  161. package/dist/utils/quote-metadata/to-normalized-amounts.d.mts +0 -10
  162. package/dist/utils/quote-metadata/to-normalized-amounts.d.mts.map +0 -1
  163. package/dist/utils/quote-metadata/to-normalized-amounts.mjs +0 -34
  164. package/dist/utils/quote-metadata/to-normalized-amounts.mjs.map +0 -1
  165. package/dist/utils/quote-metadata/to-quote-metadata-v1.cjs +0 -39
  166. package/dist/utils/quote-metadata/to-quote-metadata-v1.cjs.map +0 -1
  167. package/dist/utils/quote-metadata/to-quote-metadata-v1.d.cts +0 -13
  168. package/dist/utils/quote-metadata/to-quote-metadata-v1.d.cts.map +0 -1
  169. package/dist/utils/quote-metadata/to-quote-metadata-v1.d.mts +0 -13
  170. package/dist/utils/quote-metadata/to-quote-metadata-v1.d.mts.map +0 -1
  171. package/dist/utils/quote-metadata/to-quote-metadata-v1.mjs +0 -36
  172. package/dist/utils/quote-metadata/to-quote-metadata-v1.mjs.map +0 -1
  173. package/dist/utils/quote-metadata/to-quote-metadata-v2.cjs +0 -94
  174. package/dist/utils/quote-metadata/to-quote-metadata-v2.cjs.map +0 -1
  175. package/dist/utils/quote-metadata/to-quote-metadata-v2.d.cts +0 -12
  176. package/dist/utils/quote-metadata/to-quote-metadata-v2.d.cts.map +0 -1
  177. package/dist/utils/quote-metadata/to-quote-metadata-v2.d.mts +0 -12
  178. package/dist/utils/quote-metadata/to-quote-metadata-v2.d.mts.map +0 -1
  179. package/dist/utils/quote-metadata/to-quote-metadata-v2.mjs +0 -90
  180. package/dist/utils/quote-metadata/to-quote-metadata-v2.mjs.map +0 -1
  181. package/dist/validators/amount-and-asset.cjs +0 -27
  182. package/dist/validators/amount-and-asset.cjs.map +0 -1
  183. package/dist/validators/amount-and-asset.d.cts +0 -62
  184. package/dist/validators/amount-and-asset.d.cts.map +0 -1
  185. package/dist/validators/amount-and-asset.d.mts +0 -62
  186. package/dist/validators/amount-and-asset.d.mts.map +0 -1
  187. package/dist/validators/amount-and-asset.mjs +0 -24
  188. package/dist/validators/amount-and-asset.mjs.map +0 -1
  189. package/dist/validators/quote-response.cjs +0 -116
  190. package/dist/validators/quote-response.cjs.map +0 -1
  191. package/dist/validators/quote-response.d.cts +0 -1979
  192. package/dist/validators/quote-response.d.cts.map +0 -1
  193. package/dist/validators/quote-response.d.mts +0 -1979
  194. package/dist/validators/quote-response.d.mts.map +0 -1
  195. package/dist/validators/quote-response.mjs +0 -112
  196. package/dist/validators/quote-response.mjs.map +0 -1
@@ -1,1979 +0,0 @@
1
- import { Infer } from "@metamask/superstruct";
2
- import { CaipChainId, KnownCaipNamespace } from "@metamask/utils";
3
- import { FeatureId } from "./feature-flags.mjs";
4
- import { BitcoinTradeData, StellarTradeData, TronTradeData, TxData } from "./trade.mjs";
5
- export declare const QuoteResponseSchemaV2: import("@metamask/superstruct").Struct<({
6
- quote: {
7
- gasIncluded?: boolean | undefined;
8
- gasIncluded7702?: boolean | undefined;
9
- gasSponsored?: boolean | undefined;
10
- } & {
11
- src: {
12
- amount: string;
13
- asset: {
14
- symbol: string;
15
- name: string;
16
- assetId: `${string}:${string}/${string}:${string}`;
17
- decimals: number;
18
- } & {
19
- isVerified?: boolean | undefined;
20
- securityData?: {
21
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
22
- metadata?: {
23
- features: {
24
- featureId: string;
25
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
26
- description: string;
27
- }[];
28
- } | undefined;
29
- } | undefined;
30
- } & {
31
- iconUrl?: string | null | undefined;
32
- noFee?: {
33
- isDestination?: boolean | null | undefined;
34
- isSource?: boolean | null | undefined;
35
- } | undefined;
36
- };
37
- normalizedAmount?: string | undefined;
38
- usd?: string | null | undefined;
39
- valueInCurrency?: string | null | undefined;
40
- } & {
41
- walletAddress?: string | undefined;
42
- };
43
- dest: {
44
- amount: string;
45
- asset: {
46
- symbol: string;
47
- name: string;
48
- assetId: `${string}:${string}/${string}:${string}`;
49
- decimals: number;
50
- } & {
51
- isVerified?: boolean | undefined;
52
- securityData?: {
53
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
54
- metadata?: {
55
- features: {
56
- featureId: string;
57
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
58
- description: string;
59
- }[];
60
- } | undefined;
61
- } | undefined;
62
- } & {
63
- iconUrl?: string | null | undefined;
64
- noFee?: {
65
- isDestination?: boolean | null | undefined;
66
- isSource?: boolean | null | undefined;
67
- } | undefined;
68
- };
69
- normalizedAmount?: string | undefined;
70
- usd?: string | null | undefined;
71
- valueInCurrency?: string | null | undefined;
72
- } & {
73
- walletAddress?: string | undefined;
74
- minAmount?: string | undefined;
75
- minAmountUsd?: string | undefined;
76
- minAmountValueInCurrency?: string | undefined;
77
- minAmountNormalized?: string | undefined;
78
- };
79
- requestId: string;
80
- feeData: {
81
- metabridge: ({
82
- amount: string;
83
- asset: {
84
- symbol: string;
85
- name: string;
86
- assetId: `${string}:${string}/${string}:${string}`;
87
- decimals: number;
88
- } & {
89
- isVerified?: boolean | undefined;
90
- securityData?: {
91
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
92
- metadata?: {
93
- features: {
94
- featureId: string;
95
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
96
- description: string;
97
- }[];
98
- } | undefined;
99
- } | undefined;
100
- } & {
101
- iconUrl?: string | null | undefined;
102
- noFee?: {
103
- isDestination?: boolean | null | undefined;
104
- isSource?: boolean | null | undefined;
105
- } | undefined;
106
- };
107
- normalizedAmount?: string | undefined;
108
- usd?: string | null | undefined;
109
- valueInCurrency?: string | null | undefined;
110
- } & {
111
- quoteBpsFee?: number | undefined;
112
- baseBpsFee?: number | undefined;
113
- discountType?: string | null | undefined;
114
- })[];
115
- refuel?: {
116
- amount: string;
117
- asset: {
118
- symbol: string;
119
- name: string;
120
- assetId: `${string}:${string}/${string}:${string}`;
121
- decimals: number;
122
- } & {
123
- isVerified?: boolean | undefined;
124
- securityData?: {
125
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
126
- metadata?: {
127
- features: {
128
- featureId: string;
129
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
130
- description: string;
131
- }[];
132
- } | undefined;
133
- } | undefined;
134
- } & {
135
- iconUrl?: string | null | undefined;
136
- noFee?: {
137
- isDestination?: boolean | null | undefined;
138
- isSource?: boolean | null | undefined;
139
- } | undefined;
140
- };
141
- normalizedAmount?: string | undefined;
142
- usd?: string | null | undefined;
143
- valueInCurrency?: string | null | undefined;
144
- }[] | undefined;
145
- txFee?: ({
146
- amount: string;
147
- asset: {
148
- symbol: string;
149
- name: string;
150
- assetId: `${string}:${string}/${string}:${string}`;
151
- decimals: number;
152
- } & {
153
- isVerified?: boolean | undefined;
154
- securityData?: {
155
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
156
- metadata?: {
157
- features: {
158
- featureId: string;
159
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
160
- description: string;
161
- }[];
162
- } | undefined;
163
- } | undefined;
164
- } & {
165
- iconUrl?: string | null | undefined;
166
- noFee?: {
167
- isDestination?: boolean | null | undefined;
168
- isSource?: boolean | null | undefined;
169
- } | undefined;
170
- };
171
- normalizedAmount?: string | undefined;
172
- usd?: string | null | undefined;
173
- valueInCurrency?: string | null | undefined;
174
- } & {
175
- maxFeePerGas: string;
176
- maxPriorityFeePerGas: string;
177
- })[] | undefined;
178
- network?: {
179
- amount: string;
180
- asset: {
181
- symbol: string;
182
- name: string;
183
- assetId: `${string}:${string}/${string}:${string}`;
184
- decimals: number;
185
- } & {
186
- isVerified?: boolean | undefined;
187
- securityData?: {
188
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
189
- metadata?: {
190
- features: {
191
- featureId: string;
192
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
193
- description: string;
194
- }[];
195
- } | undefined;
196
- } | undefined;
197
- } & {
198
- iconUrl?: string | null | undefined;
199
- noFee?: {
200
- isDestination?: boolean | null | undefined;
201
- isSource?: boolean | null | undefined;
202
- } | undefined;
203
- };
204
- normalizedAmount?: string | undefined;
205
- usd?: string | null | undefined;
206
- valueInCurrency?: string | null | undefined;
207
- }[] | undefined;
208
- relayer?: {
209
- amount: string;
210
- asset: {
211
- symbol: string;
212
- name: string;
213
- assetId: `${string}:${string}/${string}:${string}`;
214
- decimals: number;
215
- } & {
216
- isVerified?: boolean | undefined;
217
- securityData?: {
218
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
219
- metadata?: {
220
- features: {
221
- featureId: string;
222
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
223
- description: string;
224
- }[];
225
- } | undefined;
226
- } | undefined;
227
- } & {
228
- iconUrl?: string | null | undefined;
229
- noFee?: {
230
- isDestination?: boolean | null | undefined;
231
- isSource?: boolean | null | undefined;
232
- } | undefined;
233
- };
234
- normalizedAmount?: string | undefined;
235
- usd?: string | null | undefined;
236
- valueInCurrency?: string | null | undefined;
237
- }[] | undefined;
238
- };
239
- aggregator: string;
240
- protocols: string[];
241
- slippage?: number | undefined;
242
- refuel?: {
243
- srcChainId: number;
244
- action: import("./step.mjs").ActionTypes;
245
- destChainId?: number | undefined;
246
- srcAsset?: {
247
- symbol: string;
248
- chainId: number;
249
- name: string;
250
- assetId: `${string}:${string}/${string}:${string}`;
251
- decimals: number;
252
- address: string;
253
- iconUrl?: string | null | undefined;
254
- icon?: string | null | undefined;
255
- } | undefined;
256
- destAsset?: {
257
- symbol: string;
258
- chainId: number;
259
- name: string;
260
- assetId: `${string}:${string}/${string}:${string}`;
261
- decimals: number;
262
- address: string;
263
- iconUrl?: string | null | undefined;
264
- icon?: string | null | undefined;
265
- } | undefined;
266
- } | undefined;
267
- priceData?: {
268
- swapRate?: string | undefined;
269
- priceImpact?: {
270
- amount?: string | null | undefined;
271
- usd?: string | null | undefined;
272
- valueInCurrency?: string | undefined;
273
- } | undefined;
274
- cost?: {
275
- usd?: string | null | undefined;
276
- valueInCurrency?: string | null | undefined;
277
- } | undefined;
278
- adjustedReturn?: {
279
- usd?: string | null | undefined;
280
- valueInCurrency?: string | null | undefined;
281
- } | undefined;
282
- } | undefined;
283
- steps?: {
284
- action: import("./step.mjs").ActionTypes;
285
- src: {
286
- asset: {
287
- symbol: string;
288
- name: string;
289
- assetId: `${string}:${string}/${string}:${string}`;
290
- decimals: number;
291
- } & {
292
- isVerified?: boolean | undefined;
293
- securityData?: {
294
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
295
- metadata?: {
296
- features: {
297
- featureId: string;
298
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
299
- description: string;
300
- }[];
301
- } | undefined;
302
- } | undefined;
303
- } & {
304
- iconUrl?: string | null | undefined;
305
- noFee?: {
306
- isDestination?: boolean | null | undefined;
307
- isSource?: boolean | null | undefined;
308
- } | undefined;
309
- };
310
- };
311
- dest: {
312
- asset: {
313
- symbol: string;
314
- name: string;
315
- assetId: `${string}:${string}/${string}:${string}`;
316
- decimals: number;
317
- } & {
318
- isVerified?: boolean | undefined;
319
- securityData?: {
320
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
321
- metadata?: {
322
- features: {
323
- featureId: string;
324
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
325
- description: string;
326
- }[];
327
- } | undefined;
328
- } | undefined;
329
- } & {
330
- iconUrl?: string | null | undefined;
331
- noFee?: {
332
- isDestination?: boolean | null | undefined;
333
- isSource?: boolean | null | undefined;
334
- } | undefined;
335
- };
336
- };
337
- }[] | undefined;
338
- intent?: {
339
- protocol: string;
340
- order: {
341
- sellToken: `0x${string}`;
342
- buyToken: `0x${string}`;
343
- validTo: string | number;
344
- appData: string;
345
- appDataHash: `0x${string}`;
346
- feeAmount: string;
347
- kind: "sell" | "buy";
348
- partiallyFillable: boolean;
349
- receiver?: `0x${string}` | undefined;
350
- sellAmount?: string | undefined;
351
- buyAmount?: string | undefined;
352
- from?: `0x${string}` | undefined;
353
- };
354
- typedData: {
355
- types: Record<string, {
356
- name: string;
357
- type: string;
358
- }[]>;
359
- primaryType: string;
360
- domain: Record<string, any>;
361
- message: Record<string, any>;
362
- };
363
- settlementContract?: `0x${string}` | undefined;
364
- } | undefined;
365
- };
366
- estimatedProcessingTimeInSeconds: number;
367
- quoteId?: string | undefined;
368
- featureId?: FeatureId | undefined;
369
- quoteRequestIndex?: number | undefined;
370
- nonEvmFeesInNative?: string | undefined;
371
- l1GasFeesInHexWei?: `0x${string}` | undefined;
372
- } & {
373
- chainId: `${string}:${string}`;
374
- namespace: KnownCaipNamespace.Eip155;
375
- trade: {
376
- chainId: number;
377
- from: `0x${string}`;
378
- to: `0x${string}`;
379
- value: `0x${string}`;
380
- data: `0x${string}`;
381
- gasLimit: number | null;
382
- effectiveGas?: number | undefined;
383
- };
384
- resetApproval?: {
385
- chainId: number;
386
- from: `0x${string}`;
387
- to: `0x${string}`;
388
- value: `0x${string}`;
389
- data: `0x${string}`;
390
- gasLimit: number | null;
391
- effectiveGas?: number | undefined;
392
- } | undefined;
393
- approval?: {
394
- chainId: number;
395
- from: `0x${string}`;
396
- to: `0x${string}`;
397
- value: `0x${string}`;
398
- data: `0x${string}`;
399
- gasLimit: number | null;
400
- effectiveGas?: number | undefined;
401
- } | undefined;
402
- }) | ({
403
- quote: {
404
- gasIncluded?: boolean | undefined;
405
- gasIncluded7702?: boolean | undefined;
406
- gasSponsored?: boolean | undefined;
407
- } & {
408
- src: {
409
- amount: string;
410
- asset: {
411
- symbol: string;
412
- name: string;
413
- assetId: `${string}:${string}/${string}:${string}`;
414
- decimals: number;
415
- } & {
416
- isVerified?: boolean | undefined;
417
- securityData?: {
418
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
419
- metadata?: {
420
- features: {
421
- featureId: string;
422
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
423
- description: string;
424
- }[];
425
- } | undefined;
426
- } | undefined;
427
- } & {
428
- iconUrl?: string | null | undefined;
429
- noFee?: {
430
- isDestination?: boolean | null | undefined;
431
- isSource?: boolean | null | undefined;
432
- } | undefined;
433
- };
434
- normalizedAmount?: string | undefined;
435
- usd?: string | null | undefined;
436
- valueInCurrency?: string | null | undefined;
437
- } & {
438
- walletAddress?: string | undefined;
439
- };
440
- dest: {
441
- amount: string;
442
- asset: {
443
- symbol: string;
444
- name: string;
445
- assetId: `${string}:${string}/${string}:${string}`;
446
- decimals: number;
447
- } & {
448
- isVerified?: boolean | undefined;
449
- securityData?: {
450
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
451
- metadata?: {
452
- features: {
453
- featureId: string;
454
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
455
- description: string;
456
- }[];
457
- } | undefined;
458
- } | undefined;
459
- } & {
460
- iconUrl?: string | null | undefined;
461
- noFee?: {
462
- isDestination?: boolean | null | undefined;
463
- isSource?: boolean | null | undefined;
464
- } | undefined;
465
- };
466
- normalizedAmount?: string | undefined;
467
- usd?: string | null | undefined;
468
- valueInCurrency?: string | null | undefined;
469
- } & {
470
- walletAddress?: string | undefined;
471
- minAmount?: string | undefined;
472
- minAmountUsd?: string | undefined;
473
- minAmountValueInCurrency?: string | undefined;
474
- minAmountNormalized?: string | undefined;
475
- };
476
- requestId: string;
477
- feeData: {
478
- metabridge: ({
479
- amount: string;
480
- asset: {
481
- symbol: string;
482
- name: string;
483
- assetId: `${string}:${string}/${string}:${string}`;
484
- decimals: number;
485
- } & {
486
- isVerified?: boolean | undefined;
487
- securityData?: {
488
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
489
- metadata?: {
490
- features: {
491
- featureId: string;
492
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
493
- description: string;
494
- }[];
495
- } | undefined;
496
- } | undefined;
497
- } & {
498
- iconUrl?: string | null | undefined;
499
- noFee?: {
500
- isDestination?: boolean | null | undefined;
501
- isSource?: boolean | null | undefined;
502
- } | undefined;
503
- };
504
- normalizedAmount?: string | undefined;
505
- usd?: string | null | undefined;
506
- valueInCurrency?: string | null | undefined;
507
- } & {
508
- quoteBpsFee?: number | undefined;
509
- baseBpsFee?: number | undefined;
510
- discountType?: string | null | undefined;
511
- })[];
512
- refuel?: {
513
- amount: string;
514
- asset: {
515
- symbol: string;
516
- name: string;
517
- assetId: `${string}:${string}/${string}:${string}`;
518
- decimals: number;
519
- } & {
520
- isVerified?: boolean | undefined;
521
- securityData?: {
522
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
523
- metadata?: {
524
- features: {
525
- featureId: string;
526
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
527
- description: string;
528
- }[];
529
- } | undefined;
530
- } | undefined;
531
- } & {
532
- iconUrl?: string | null | undefined;
533
- noFee?: {
534
- isDestination?: boolean | null | undefined;
535
- isSource?: boolean | null | undefined;
536
- } | undefined;
537
- };
538
- normalizedAmount?: string | undefined;
539
- usd?: string | null | undefined;
540
- valueInCurrency?: string | null | undefined;
541
- }[] | undefined;
542
- txFee?: ({
543
- amount: string;
544
- asset: {
545
- symbol: string;
546
- name: string;
547
- assetId: `${string}:${string}/${string}:${string}`;
548
- decimals: number;
549
- } & {
550
- isVerified?: boolean | undefined;
551
- securityData?: {
552
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
553
- metadata?: {
554
- features: {
555
- featureId: string;
556
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
557
- description: string;
558
- }[];
559
- } | undefined;
560
- } | undefined;
561
- } & {
562
- iconUrl?: string | null | undefined;
563
- noFee?: {
564
- isDestination?: boolean | null | undefined;
565
- isSource?: boolean | null | undefined;
566
- } | undefined;
567
- };
568
- normalizedAmount?: string | undefined;
569
- usd?: string | null | undefined;
570
- valueInCurrency?: string | null | undefined;
571
- } & {
572
- maxFeePerGas: string;
573
- maxPriorityFeePerGas: string;
574
- })[] | undefined;
575
- network?: {
576
- amount: string;
577
- asset: {
578
- symbol: string;
579
- name: string;
580
- assetId: `${string}:${string}/${string}:${string}`;
581
- decimals: number;
582
- } & {
583
- isVerified?: boolean | undefined;
584
- securityData?: {
585
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
586
- metadata?: {
587
- features: {
588
- featureId: string;
589
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
590
- description: string;
591
- }[];
592
- } | undefined;
593
- } | undefined;
594
- } & {
595
- iconUrl?: string | null | undefined;
596
- noFee?: {
597
- isDestination?: boolean | null | undefined;
598
- isSource?: boolean | null | undefined;
599
- } | undefined;
600
- };
601
- normalizedAmount?: string | undefined;
602
- usd?: string | null | undefined;
603
- valueInCurrency?: string | null | undefined;
604
- }[] | undefined;
605
- relayer?: {
606
- amount: string;
607
- asset: {
608
- symbol: string;
609
- name: string;
610
- assetId: `${string}:${string}/${string}:${string}`;
611
- decimals: number;
612
- } & {
613
- isVerified?: boolean | undefined;
614
- securityData?: {
615
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
616
- metadata?: {
617
- features: {
618
- featureId: string;
619
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
620
- description: string;
621
- }[];
622
- } | undefined;
623
- } | undefined;
624
- } & {
625
- iconUrl?: string | null | undefined;
626
- noFee?: {
627
- isDestination?: boolean | null | undefined;
628
- isSource?: boolean | null | undefined;
629
- } | undefined;
630
- };
631
- normalizedAmount?: string | undefined;
632
- usd?: string | null | undefined;
633
- valueInCurrency?: string | null | undefined;
634
- }[] | undefined;
635
- };
636
- aggregator: string;
637
- protocols: string[];
638
- slippage?: number | undefined;
639
- refuel?: {
640
- srcChainId: number;
641
- action: import("./step.mjs").ActionTypes;
642
- destChainId?: number | undefined;
643
- srcAsset?: {
644
- symbol: string;
645
- chainId: number;
646
- name: string;
647
- assetId: `${string}:${string}/${string}:${string}`;
648
- decimals: number;
649
- address: string;
650
- iconUrl?: string | null | undefined;
651
- icon?: string | null | undefined;
652
- } | undefined;
653
- destAsset?: {
654
- symbol: string;
655
- chainId: number;
656
- name: string;
657
- assetId: `${string}:${string}/${string}:${string}`;
658
- decimals: number;
659
- address: string;
660
- iconUrl?: string | null | undefined;
661
- icon?: string | null | undefined;
662
- } | undefined;
663
- } | undefined;
664
- priceData?: {
665
- swapRate?: string | undefined;
666
- priceImpact?: {
667
- amount?: string | null | undefined;
668
- usd?: string | null | undefined;
669
- valueInCurrency?: string | undefined;
670
- } | undefined;
671
- cost?: {
672
- usd?: string | null | undefined;
673
- valueInCurrency?: string | null | undefined;
674
- } | undefined;
675
- adjustedReturn?: {
676
- usd?: string | null | undefined;
677
- valueInCurrency?: string | null | undefined;
678
- } | undefined;
679
- } | undefined;
680
- steps?: {
681
- action: import("./step.mjs").ActionTypes;
682
- src: {
683
- asset: {
684
- symbol: string;
685
- name: string;
686
- assetId: `${string}:${string}/${string}:${string}`;
687
- decimals: number;
688
- } & {
689
- isVerified?: boolean | undefined;
690
- securityData?: {
691
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
692
- metadata?: {
693
- features: {
694
- featureId: string;
695
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
696
- description: string;
697
- }[];
698
- } | undefined;
699
- } | undefined;
700
- } & {
701
- iconUrl?: string | null | undefined;
702
- noFee?: {
703
- isDestination?: boolean | null | undefined;
704
- isSource?: boolean | null | undefined;
705
- } | undefined;
706
- };
707
- };
708
- dest: {
709
- asset: {
710
- symbol: string;
711
- name: string;
712
- assetId: `${string}:${string}/${string}:${string}`;
713
- decimals: number;
714
- } & {
715
- isVerified?: boolean | undefined;
716
- securityData?: {
717
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
718
- metadata?: {
719
- features: {
720
- featureId: string;
721
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
722
- description: string;
723
- }[];
724
- } | undefined;
725
- } | undefined;
726
- } & {
727
- iconUrl?: string | null | undefined;
728
- noFee?: {
729
- isDestination?: boolean | null | undefined;
730
- isSource?: boolean | null | undefined;
731
- } | undefined;
732
- };
733
- };
734
- }[] | undefined;
735
- intent?: {
736
- protocol: string;
737
- order: {
738
- sellToken: `0x${string}`;
739
- buyToken: `0x${string}`;
740
- validTo: string | number;
741
- appData: string;
742
- appDataHash: `0x${string}`;
743
- feeAmount: string;
744
- kind: "sell" | "buy";
745
- partiallyFillable: boolean;
746
- receiver?: `0x${string}` | undefined;
747
- sellAmount?: string | undefined;
748
- buyAmount?: string | undefined;
749
- from?: `0x${string}` | undefined;
750
- };
751
- typedData: {
752
- types: Record<string, {
753
- name: string;
754
- type: string;
755
- }[]>;
756
- primaryType: string;
757
- domain: Record<string, any>;
758
- message: Record<string, any>;
759
- };
760
- settlementContract?: `0x${string}` | undefined;
761
- } | undefined;
762
- };
763
- estimatedProcessingTimeInSeconds: number;
764
- quoteId?: string | undefined;
765
- featureId?: FeatureId | undefined;
766
- quoteRequestIndex?: number | undefined;
767
- nonEvmFeesInNative?: string | undefined;
768
- l1GasFeesInHexWei?: `0x${string}` | undefined;
769
- } & {
770
- chainId: `${string}:${string}`;
771
- namespace: KnownCaipNamespace.Solana;
772
- trade: string;
773
- approval?: {
774
- chainId: number;
775
- from: `0x${string}`;
776
- to: `0x${string}`;
777
- value: `0x${string}`;
778
- data: `0x${string}`;
779
- gasLimit: number | null;
780
- effectiveGas?: number | undefined;
781
- } | undefined;
782
- }) | ({
783
- quote: {
784
- gasIncluded?: boolean | undefined;
785
- gasIncluded7702?: boolean | undefined;
786
- gasSponsored?: boolean | undefined;
787
- } & {
788
- src: {
789
- amount: string;
790
- asset: {
791
- symbol: string;
792
- name: string;
793
- assetId: `${string}:${string}/${string}:${string}`;
794
- decimals: number;
795
- } & {
796
- isVerified?: boolean | undefined;
797
- securityData?: {
798
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
799
- metadata?: {
800
- features: {
801
- featureId: string;
802
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
803
- description: string;
804
- }[];
805
- } | undefined;
806
- } | undefined;
807
- } & {
808
- iconUrl?: string | null | undefined;
809
- noFee?: {
810
- isDestination?: boolean | null | undefined;
811
- isSource?: boolean | null | undefined;
812
- } | undefined;
813
- };
814
- normalizedAmount?: string | undefined;
815
- usd?: string | null | undefined;
816
- valueInCurrency?: string | null | undefined;
817
- } & {
818
- walletAddress?: string | undefined;
819
- };
820
- dest: {
821
- amount: string;
822
- asset: {
823
- symbol: string;
824
- name: string;
825
- assetId: `${string}:${string}/${string}:${string}`;
826
- decimals: number;
827
- } & {
828
- isVerified?: boolean | undefined;
829
- securityData?: {
830
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
831
- metadata?: {
832
- features: {
833
- featureId: string;
834
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
835
- description: string;
836
- }[];
837
- } | undefined;
838
- } | undefined;
839
- } & {
840
- iconUrl?: string | null | undefined;
841
- noFee?: {
842
- isDestination?: boolean | null | undefined;
843
- isSource?: boolean | null | undefined;
844
- } | undefined;
845
- };
846
- normalizedAmount?: string | undefined;
847
- usd?: string | null | undefined;
848
- valueInCurrency?: string | null | undefined;
849
- } & {
850
- walletAddress?: string | undefined;
851
- minAmount?: string | undefined;
852
- minAmountUsd?: string | undefined;
853
- minAmountValueInCurrency?: string | undefined;
854
- minAmountNormalized?: string | undefined;
855
- };
856
- requestId: string;
857
- feeData: {
858
- metabridge: ({
859
- amount: string;
860
- asset: {
861
- symbol: string;
862
- name: string;
863
- assetId: `${string}:${string}/${string}:${string}`;
864
- decimals: number;
865
- } & {
866
- isVerified?: boolean | undefined;
867
- securityData?: {
868
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
869
- metadata?: {
870
- features: {
871
- featureId: string;
872
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
873
- description: string;
874
- }[];
875
- } | undefined;
876
- } | undefined;
877
- } & {
878
- iconUrl?: string | null | undefined;
879
- noFee?: {
880
- isDestination?: boolean | null | undefined;
881
- isSource?: boolean | null | undefined;
882
- } | undefined;
883
- };
884
- normalizedAmount?: string | undefined;
885
- usd?: string | null | undefined;
886
- valueInCurrency?: string | null | undefined;
887
- } & {
888
- quoteBpsFee?: number | undefined;
889
- baseBpsFee?: number | undefined;
890
- discountType?: string | null | undefined;
891
- })[];
892
- refuel?: {
893
- amount: string;
894
- asset: {
895
- symbol: string;
896
- name: string;
897
- assetId: `${string}:${string}/${string}:${string}`;
898
- decimals: number;
899
- } & {
900
- isVerified?: boolean | undefined;
901
- securityData?: {
902
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
903
- metadata?: {
904
- features: {
905
- featureId: string;
906
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
907
- description: string;
908
- }[];
909
- } | undefined;
910
- } | undefined;
911
- } & {
912
- iconUrl?: string | null | undefined;
913
- noFee?: {
914
- isDestination?: boolean | null | undefined;
915
- isSource?: boolean | null | undefined;
916
- } | undefined;
917
- };
918
- normalizedAmount?: string | undefined;
919
- usd?: string | null | undefined;
920
- valueInCurrency?: string | null | undefined;
921
- }[] | undefined;
922
- txFee?: ({
923
- amount: string;
924
- asset: {
925
- symbol: string;
926
- name: string;
927
- assetId: `${string}:${string}/${string}:${string}`;
928
- decimals: number;
929
- } & {
930
- isVerified?: boolean | undefined;
931
- securityData?: {
932
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
933
- metadata?: {
934
- features: {
935
- featureId: string;
936
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
937
- description: string;
938
- }[];
939
- } | undefined;
940
- } | undefined;
941
- } & {
942
- iconUrl?: string | null | undefined;
943
- noFee?: {
944
- isDestination?: boolean | null | undefined;
945
- isSource?: boolean | null | undefined;
946
- } | undefined;
947
- };
948
- normalizedAmount?: string | undefined;
949
- usd?: string | null | undefined;
950
- valueInCurrency?: string | null | undefined;
951
- } & {
952
- maxFeePerGas: string;
953
- maxPriorityFeePerGas: string;
954
- })[] | undefined;
955
- network?: {
956
- amount: string;
957
- asset: {
958
- symbol: string;
959
- name: string;
960
- assetId: `${string}:${string}/${string}:${string}`;
961
- decimals: number;
962
- } & {
963
- isVerified?: boolean | undefined;
964
- securityData?: {
965
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
966
- metadata?: {
967
- features: {
968
- featureId: string;
969
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
970
- description: string;
971
- }[];
972
- } | undefined;
973
- } | undefined;
974
- } & {
975
- iconUrl?: string | null | undefined;
976
- noFee?: {
977
- isDestination?: boolean | null | undefined;
978
- isSource?: boolean | null | undefined;
979
- } | undefined;
980
- };
981
- normalizedAmount?: string | undefined;
982
- usd?: string | null | undefined;
983
- valueInCurrency?: string | null | undefined;
984
- }[] | undefined;
985
- relayer?: {
986
- amount: string;
987
- asset: {
988
- symbol: string;
989
- name: string;
990
- assetId: `${string}:${string}/${string}:${string}`;
991
- decimals: number;
992
- } & {
993
- isVerified?: boolean | undefined;
994
- securityData?: {
995
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
996
- metadata?: {
997
- features: {
998
- featureId: string;
999
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1000
- description: string;
1001
- }[];
1002
- } | undefined;
1003
- } | undefined;
1004
- } & {
1005
- iconUrl?: string | null | undefined;
1006
- noFee?: {
1007
- isDestination?: boolean | null | undefined;
1008
- isSource?: boolean | null | undefined;
1009
- } | undefined;
1010
- };
1011
- normalizedAmount?: string | undefined;
1012
- usd?: string | null | undefined;
1013
- valueInCurrency?: string | null | undefined;
1014
- }[] | undefined;
1015
- };
1016
- aggregator: string;
1017
- protocols: string[];
1018
- slippage?: number | undefined;
1019
- refuel?: {
1020
- srcChainId: number;
1021
- action: import("./step.mjs").ActionTypes;
1022
- destChainId?: number | undefined;
1023
- srcAsset?: {
1024
- symbol: string;
1025
- chainId: number;
1026
- name: string;
1027
- assetId: `${string}:${string}/${string}:${string}`;
1028
- decimals: number;
1029
- address: string;
1030
- iconUrl?: string | null | undefined;
1031
- icon?: string | null | undefined;
1032
- } | undefined;
1033
- destAsset?: {
1034
- symbol: string;
1035
- chainId: number;
1036
- name: string;
1037
- assetId: `${string}:${string}/${string}:${string}`;
1038
- decimals: number;
1039
- address: string;
1040
- iconUrl?: string | null | undefined;
1041
- icon?: string | null | undefined;
1042
- } | undefined;
1043
- } | undefined;
1044
- priceData?: {
1045
- swapRate?: string | undefined;
1046
- priceImpact?: {
1047
- amount?: string | null | undefined;
1048
- usd?: string | null | undefined;
1049
- valueInCurrency?: string | undefined;
1050
- } | undefined;
1051
- cost?: {
1052
- usd?: string | null | undefined;
1053
- valueInCurrency?: string | null | undefined;
1054
- } | undefined;
1055
- adjustedReturn?: {
1056
- usd?: string | null | undefined;
1057
- valueInCurrency?: string | null | undefined;
1058
- } | undefined;
1059
- } | undefined;
1060
- steps?: {
1061
- action: import("./step.mjs").ActionTypes;
1062
- src: {
1063
- asset: {
1064
- symbol: string;
1065
- name: string;
1066
- assetId: `${string}:${string}/${string}:${string}`;
1067
- decimals: number;
1068
- } & {
1069
- isVerified?: boolean | undefined;
1070
- securityData?: {
1071
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1072
- metadata?: {
1073
- features: {
1074
- featureId: string;
1075
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1076
- description: string;
1077
- }[];
1078
- } | undefined;
1079
- } | undefined;
1080
- } & {
1081
- iconUrl?: string | null | undefined;
1082
- noFee?: {
1083
- isDestination?: boolean | null | undefined;
1084
- isSource?: boolean | null | undefined;
1085
- } | undefined;
1086
- };
1087
- };
1088
- dest: {
1089
- asset: {
1090
- symbol: string;
1091
- name: string;
1092
- assetId: `${string}:${string}/${string}:${string}`;
1093
- decimals: number;
1094
- } & {
1095
- isVerified?: boolean | undefined;
1096
- securityData?: {
1097
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1098
- metadata?: {
1099
- features: {
1100
- featureId: string;
1101
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1102
- description: string;
1103
- }[];
1104
- } | undefined;
1105
- } | undefined;
1106
- } & {
1107
- iconUrl?: string | null | undefined;
1108
- noFee?: {
1109
- isDestination?: boolean | null | undefined;
1110
- isSource?: boolean | null | undefined;
1111
- } | undefined;
1112
- };
1113
- };
1114
- }[] | undefined;
1115
- intent?: {
1116
- protocol: string;
1117
- order: {
1118
- sellToken: `0x${string}`;
1119
- buyToken: `0x${string}`;
1120
- validTo: string | number;
1121
- appData: string;
1122
- appDataHash: `0x${string}`;
1123
- feeAmount: string;
1124
- kind: "sell" | "buy";
1125
- partiallyFillable: boolean;
1126
- receiver?: `0x${string}` | undefined;
1127
- sellAmount?: string | undefined;
1128
- buyAmount?: string | undefined;
1129
- from?: `0x${string}` | undefined;
1130
- };
1131
- typedData: {
1132
- types: Record<string, {
1133
- name: string;
1134
- type: string;
1135
- }[]>;
1136
- primaryType: string;
1137
- domain: Record<string, any>;
1138
- message: Record<string, any>;
1139
- };
1140
- settlementContract?: `0x${string}` | undefined;
1141
- } | undefined;
1142
- };
1143
- estimatedProcessingTimeInSeconds: number;
1144
- quoteId?: string | undefined;
1145
- featureId?: FeatureId | undefined;
1146
- quoteRequestIndex?: number | undefined;
1147
- nonEvmFeesInNative?: string | undefined;
1148
- l1GasFeesInHexWei?: `0x${string}` | undefined;
1149
- } & {
1150
- chainId: `${string}:${string}`;
1151
- namespace: KnownCaipNamespace.Tron;
1152
- trade: {
1153
- raw_data_hex: string;
1154
- visible?: boolean | undefined;
1155
- raw_data?: {
1156
- contract?: {
1157
- type?: string | undefined;
1158
- }[] | undefined;
1159
- fee_limit?: number | undefined;
1160
- } | null | undefined;
1161
- };
1162
- approval?: {
1163
- raw_data_hex: string;
1164
- visible?: boolean | undefined;
1165
- raw_data?: {
1166
- contract?: {
1167
- type?: string | undefined;
1168
- }[] | undefined;
1169
- fee_limit?: number | undefined;
1170
- } | null | undefined;
1171
- } | undefined;
1172
- }) | ({
1173
- quote: {
1174
- gasIncluded?: boolean | undefined;
1175
- gasIncluded7702?: boolean | undefined;
1176
- gasSponsored?: boolean | undefined;
1177
- } & {
1178
- src: {
1179
- amount: string;
1180
- asset: {
1181
- symbol: string;
1182
- name: string;
1183
- assetId: `${string}:${string}/${string}:${string}`;
1184
- decimals: number;
1185
- } & {
1186
- isVerified?: boolean | undefined;
1187
- securityData?: {
1188
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1189
- metadata?: {
1190
- features: {
1191
- featureId: string;
1192
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1193
- description: string;
1194
- }[];
1195
- } | undefined;
1196
- } | undefined;
1197
- } & {
1198
- iconUrl?: string | null | undefined;
1199
- noFee?: {
1200
- isDestination?: boolean | null | undefined;
1201
- isSource?: boolean | null | undefined;
1202
- } | undefined;
1203
- };
1204
- normalizedAmount?: string | undefined;
1205
- usd?: string | null | undefined;
1206
- valueInCurrency?: string | null | undefined;
1207
- } & {
1208
- walletAddress?: string | undefined;
1209
- };
1210
- dest: {
1211
- amount: string;
1212
- asset: {
1213
- symbol: string;
1214
- name: string;
1215
- assetId: `${string}:${string}/${string}:${string}`;
1216
- decimals: number;
1217
- } & {
1218
- isVerified?: boolean | undefined;
1219
- securityData?: {
1220
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1221
- metadata?: {
1222
- features: {
1223
- featureId: string;
1224
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1225
- description: string;
1226
- }[];
1227
- } | undefined;
1228
- } | undefined;
1229
- } & {
1230
- iconUrl?: string | null | undefined;
1231
- noFee?: {
1232
- isDestination?: boolean | null | undefined;
1233
- isSource?: boolean | null | undefined;
1234
- } | undefined;
1235
- };
1236
- normalizedAmount?: string | undefined;
1237
- usd?: string | null | undefined;
1238
- valueInCurrency?: string | null | undefined;
1239
- } & {
1240
- walletAddress?: string | undefined;
1241
- minAmount?: string | undefined;
1242
- minAmountUsd?: string | undefined;
1243
- minAmountValueInCurrency?: string | undefined;
1244
- minAmountNormalized?: string | undefined;
1245
- };
1246
- requestId: string;
1247
- feeData: {
1248
- metabridge: ({
1249
- amount: string;
1250
- asset: {
1251
- symbol: string;
1252
- name: string;
1253
- assetId: `${string}:${string}/${string}:${string}`;
1254
- decimals: number;
1255
- } & {
1256
- isVerified?: boolean | undefined;
1257
- securityData?: {
1258
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1259
- metadata?: {
1260
- features: {
1261
- featureId: string;
1262
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1263
- description: string;
1264
- }[];
1265
- } | undefined;
1266
- } | undefined;
1267
- } & {
1268
- iconUrl?: string | null | undefined;
1269
- noFee?: {
1270
- isDestination?: boolean | null | undefined;
1271
- isSource?: boolean | null | undefined;
1272
- } | undefined;
1273
- };
1274
- normalizedAmount?: string | undefined;
1275
- usd?: string | null | undefined;
1276
- valueInCurrency?: string | null | undefined;
1277
- } & {
1278
- quoteBpsFee?: number | undefined;
1279
- baseBpsFee?: number | undefined;
1280
- discountType?: string | null | undefined;
1281
- })[];
1282
- refuel?: {
1283
- amount: string;
1284
- asset: {
1285
- symbol: string;
1286
- name: string;
1287
- assetId: `${string}:${string}/${string}:${string}`;
1288
- decimals: number;
1289
- } & {
1290
- isVerified?: boolean | undefined;
1291
- securityData?: {
1292
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1293
- metadata?: {
1294
- features: {
1295
- featureId: string;
1296
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1297
- description: string;
1298
- }[];
1299
- } | undefined;
1300
- } | undefined;
1301
- } & {
1302
- iconUrl?: string | null | undefined;
1303
- noFee?: {
1304
- isDestination?: boolean | null | undefined;
1305
- isSource?: boolean | null | undefined;
1306
- } | undefined;
1307
- };
1308
- normalizedAmount?: string | undefined;
1309
- usd?: string | null | undefined;
1310
- valueInCurrency?: string | null | undefined;
1311
- }[] | undefined;
1312
- txFee?: ({
1313
- amount: string;
1314
- asset: {
1315
- symbol: string;
1316
- name: string;
1317
- assetId: `${string}:${string}/${string}:${string}`;
1318
- decimals: number;
1319
- } & {
1320
- isVerified?: boolean | undefined;
1321
- securityData?: {
1322
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1323
- metadata?: {
1324
- features: {
1325
- featureId: string;
1326
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1327
- description: string;
1328
- }[];
1329
- } | undefined;
1330
- } | undefined;
1331
- } & {
1332
- iconUrl?: string | null | undefined;
1333
- noFee?: {
1334
- isDestination?: boolean | null | undefined;
1335
- isSource?: boolean | null | undefined;
1336
- } | undefined;
1337
- };
1338
- normalizedAmount?: string | undefined;
1339
- usd?: string | null | undefined;
1340
- valueInCurrency?: string | null | undefined;
1341
- } & {
1342
- maxFeePerGas: string;
1343
- maxPriorityFeePerGas: string;
1344
- })[] | undefined;
1345
- network?: {
1346
- amount: string;
1347
- asset: {
1348
- symbol: string;
1349
- name: string;
1350
- assetId: `${string}:${string}/${string}:${string}`;
1351
- decimals: number;
1352
- } & {
1353
- isVerified?: boolean | undefined;
1354
- securityData?: {
1355
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1356
- metadata?: {
1357
- features: {
1358
- featureId: string;
1359
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1360
- description: string;
1361
- }[];
1362
- } | undefined;
1363
- } | undefined;
1364
- } & {
1365
- iconUrl?: string | null | undefined;
1366
- noFee?: {
1367
- isDestination?: boolean | null | undefined;
1368
- isSource?: boolean | null | undefined;
1369
- } | undefined;
1370
- };
1371
- normalizedAmount?: string | undefined;
1372
- usd?: string | null | undefined;
1373
- valueInCurrency?: string | null | undefined;
1374
- }[] | undefined;
1375
- relayer?: {
1376
- amount: string;
1377
- asset: {
1378
- symbol: string;
1379
- name: string;
1380
- assetId: `${string}:${string}/${string}:${string}`;
1381
- decimals: number;
1382
- } & {
1383
- isVerified?: boolean | undefined;
1384
- securityData?: {
1385
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1386
- metadata?: {
1387
- features: {
1388
- featureId: string;
1389
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1390
- description: string;
1391
- }[];
1392
- } | undefined;
1393
- } | undefined;
1394
- } & {
1395
- iconUrl?: string | null | undefined;
1396
- noFee?: {
1397
- isDestination?: boolean | null | undefined;
1398
- isSource?: boolean | null | undefined;
1399
- } | undefined;
1400
- };
1401
- normalizedAmount?: string | undefined;
1402
- usd?: string | null | undefined;
1403
- valueInCurrency?: string | null | undefined;
1404
- }[] | undefined;
1405
- };
1406
- aggregator: string;
1407
- protocols: string[];
1408
- slippage?: number | undefined;
1409
- refuel?: {
1410
- srcChainId: number;
1411
- action: import("./step.mjs").ActionTypes;
1412
- destChainId?: number | undefined;
1413
- srcAsset?: {
1414
- symbol: string;
1415
- chainId: number;
1416
- name: string;
1417
- assetId: `${string}:${string}/${string}:${string}`;
1418
- decimals: number;
1419
- address: string;
1420
- iconUrl?: string | null | undefined;
1421
- icon?: string | null | undefined;
1422
- } | undefined;
1423
- destAsset?: {
1424
- symbol: string;
1425
- chainId: number;
1426
- name: string;
1427
- assetId: `${string}:${string}/${string}:${string}`;
1428
- decimals: number;
1429
- address: string;
1430
- iconUrl?: string | null | undefined;
1431
- icon?: string | null | undefined;
1432
- } | undefined;
1433
- } | undefined;
1434
- priceData?: {
1435
- swapRate?: string | undefined;
1436
- priceImpact?: {
1437
- amount?: string | null | undefined;
1438
- usd?: string | null | undefined;
1439
- valueInCurrency?: string | undefined;
1440
- } | undefined;
1441
- cost?: {
1442
- usd?: string | null | undefined;
1443
- valueInCurrency?: string | null | undefined;
1444
- } | undefined;
1445
- adjustedReturn?: {
1446
- usd?: string | null | undefined;
1447
- valueInCurrency?: string | null | undefined;
1448
- } | undefined;
1449
- } | undefined;
1450
- steps?: {
1451
- action: import("./step.mjs").ActionTypes;
1452
- src: {
1453
- asset: {
1454
- symbol: string;
1455
- name: string;
1456
- assetId: `${string}:${string}/${string}:${string}`;
1457
- decimals: number;
1458
- } & {
1459
- isVerified?: boolean | undefined;
1460
- securityData?: {
1461
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1462
- metadata?: {
1463
- features: {
1464
- featureId: string;
1465
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1466
- description: string;
1467
- }[];
1468
- } | undefined;
1469
- } | undefined;
1470
- } & {
1471
- iconUrl?: string | null | undefined;
1472
- noFee?: {
1473
- isDestination?: boolean | null | undefined;
1474
- isSource?: boolean | null | undefined;
1475
- } | undefined;
1476
- };
1477
- };
1478
- dest: {
1479
- asset: {
1480
- symbol: string;
1481
- name: string;
1482
- assetId: `${string}:${string}/${string}:${string}`;
1483
- decimals: number;
1484
- } & {
1485
- isVerified?: boolean | undefined;
1486
- securityData?: {
1487
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1488
- metadata?: {
1489
- features: {
1490
- featureId: string;
1491
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1492
- description: string;
1493
- }[];
1494
- } | undefined;
1495
- } | undefined;
1496
- } & {
1497
- iconUrl?: string | null | undefined;
1498
- noFee?: {
1499
- isDestination?: boolean | null | undefined;
1500
- isSource?: boolean | null | undefined;
1501
- } | undefined;
1502
- };
1503
- };
1504
- }[] | undefined;
1505
- intent?: {
1506
- protocol: string;
1507
- order: {
1508
- sellToken: `0x${string}`;
1509
- buyToken: `0x${string}`;
1510
- validTo: string | number;
1511
- appData: string;
1512
- appDataHash: `0x${string}`;
1513
- feeAmount: string;
1514
- kind: "sell" | "buy";
1515
- partiallyFillable: boolean;
1516
- receiver?: `0x${string}` | undefined;
1517
- sellAmount?: string | undefined;
1518
- buyAmount?: string | undefined;
1519
- from?: `0x${string}` | undefined;
1520
- };
1521
- typedData: {
1522
- types: Record<string, {
1523
- name: string;
1524
- type: string;
1525
- }[]>;
1526
- primaryType: string;
1527
- domain: Record<string, any>;
1528
- message: Record<string, any>;
1529
- };
1530
- settlementContract?: `0x${string}` | undefined;
1531
- } | undefined;
1532
- };
1533
- estimatedProcessingTimeInSeconds: number;
1534
- quoteId?: string | undefined;
1535
- featureId?: FeatureId | undefined;
1536
- quoteRequestIndex?: number | undefined;
1537
- nonEvmFeesInNative?: string | undefined;
1538
- l1GasFeesInHexWei?: `0x${string}` | undefined;
1539
- } & {
1540
- chainId: `${string}:${string}`;
1541
- namespace: KnownCaipNamespace.Bip122;
1542
- trade: {
1543
- unsignedPsbtBase64: string;
1544
- inputsToSign: {}[] | null;
1545
- };
1546
- approval?: {
1547
- chainId: number;
1548
- from: `0x${string}`;
1549
- to: `0x${string}`;
1550
- value: `0x${string}`;
1551
- data: `0x${string}`;
1552
- gasLimit: number | null;
1553
- effectiveGas?: number | undefined;
1554
- } | undefined;
1555
- }) | ({
1556
- quote: {
1557
- gasIncluded?: boolean | undefined;
1558
- gasIncluded7702?: boolean | undefined;
1559
- gasSponsored?: boolean | undefined;
1560
- } & {
1561
- src: {
1562
- amount: string;
1563
- asset: {
1564
- symbol: string;
1565
- name: string;
1566
- assetId: `${string}:${string}/${string}:${string}`;
1567
- decimals: number;
1568
- } & {
1569
- isVerified?: boolean | undefined;
1570
- securityData?: {
1571
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1572
- metadata?: {
1573
- features: {
1574
- featureId: string;
1575
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1576
- description: string;
1577
- }[];
1578
- } | undefined;
1579
- } | undefined;
1580
- } & {
1581
- iconUrl?: string | null | undefined;
1582
- noFee?: {
1583
- isDestination?: boolean | null | undefined;
1584
- isSource?: boolean | null | undefined;
1585
- } | undefined;
1586
- };
1587
- normalizedAmount?: string | undefined;
1588
- usd?: string | null | undefined;
1589
- valueInCurrency?: string | null | undefined;
1590
- } & {
1591
- walletAddress?: string | undefined;
1592
- };
1593
- dest: {
1594
- amount: string;
1595
- asset: {
1596
- symbol: string;
1597
- name: string;
1598
- assetId: `${string}:${string}/${string}:${string}`;
1599
- decimals: number;
1600
- } & {
1601
- isVerified?: boolean | undefined;
1602
- securityData?: {
1603
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1604
- metadata?: {
1605
- features: {
1606
- featureId: string;
1607
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1608
- description: string;
1609
- }[];
1610
- } | undefined;
1611
- } | undefined;
1612
- } & {
1613
- iconUrl?: string | null | undefined;
1614
- noFee?: {
1615
- isDestination?: boolean | null | undefined;
1616
- isSource?: boolean | null | undefined;
1617
- } | undefined;
1618
- };
1619
- normalizedAmount?: string | undefined;
1620
- usd?: string | null | undefined;
1621
- valueInCurrency?: string | null | undefined;
1622
- } & {
1623
- walletAddress?: string | undefined;
1624
- minAmount?: string | undefined;
1625
- minAmountUsd?: string | undefined;
1626
- minAmountValueInCurrency?: string | undefined;
1627
- minAmountNormalized?: string | undefined;
1628
- };
1629
- requestId: string;
1630
- feeData: {
1631
- metabridge: ({
1632
- amount: string;
1633
- asset: {
1634
- symbol: string;
1635
- name: string;
1636
- assetId: `${string}:${string}/${string}:${string}`;
1637
- decimals: number;
1638
- } & {
1639
- isVerified?: boolean | undefined;
1640
- securityData?: {
1641
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1642
- metadata?: {
1643
- features: {
1644
- featureId: string;
1645
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1646
- description: string;
1647
- }[];
1648
- } | undefined;
1649
- } | undefined;
1650
- } & {
1651
- iconUrl?: string | null | undefined;
1652
- noFee?: {
1653
- isDestination?: boolean | null | undefined;
1654
- isSource?: boolean | null | undefined;
1655
- } | undefined;
1656
- };
1657
- normalizedAmount?: string | undefined;
1658
- usd?: string | null | undefined;
1659
- valueInCurrency?: string | null | undefined;
1660
- } & {
1661
- quoteBpsFee?: number | undefined;
1662
- baseBpsFee?: number | undefined;
1663
- discountType?: string | null | undefined;
1664
- })[];
1665
- refuel?: {
1666
- amount: string;
1667
- asset: {
1668
- symbol: string;
1669
- name: string;
1670
- assetId: `${string}:${string}/${string}:${string}`;
1671
- decimals: number;
1672
- } & {
1673
- isVerified?: boolean | undefined;
1674
- securityData?: {
1675
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1676
- metadata?: {
1677
- features: {
1678
- featureId: string;
1679
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1680
- description: string;
1681
- }[];
1682
- } | undefined;
1683
- } | undefined;
1684
- } & {
1685
- iconUrl?: string | null | undefined;
1686
- noFee?: {
1687
- isDestination?: boolean | null | undefined;
1688
- isSource?: boolean | null | undefined;
1689
- } | undefined;
1690
- };
1691
- normalizedAmount?: string | undefined;
1692
- usd?: string | null | undefined;
1693
- valueInCurrency?: string | null | undefined;
1694
- }[] | undefined;
1695
- txFee?: ({
1696
- amount: string;
1697
- asset: {
1698
- symbol: string;
1699
- name: string;
1700
- assetId: `${string}:${string}/${string}:${string}`;
1701
- decimals: number;
1702
- } & {
1703
- isVerified?: boolean | undefined;
1704
- securityData?: {
1705
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1706
- metadata?: {
1707
- features: {
1708
- featureId: string;
1709
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1710
- description: string;
1711
- }[];
1712
- } | undefined;
1713
- } | undefined;
1714
- } & {
1715
- iconUrl?: string | null | undefined;
1716
- noFee?: {
1717
- isDestination?: boolean | null | undefined;
1718
- isSource?: boolean | null | undefined;
1719
- } | undefined;
1720
- };
1721
- normalizedAmount?: string | undefined;
1722
- usd?: string | null | undefined;
1723
- valueInCurrency?: string | null | undefined;
1724
- } & {
1725
- maxFeePerGas: string;
1726
- maxPriorityFeePerGas: string;
1727
- })[] | undefined;
1728
- network?: {
1729
- amount: string;
1730
- asset: {
1731
- symbol: string;
1732
- name: string;
1733
- assetId: `${string}:${string}/${string}:${string}`;
1734
- decimals: number;
1735
- } & {
1736
- isVerified?: boolean | undefined;
1737
- securityData?: {
1738
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1739
- metadata?: {
1740
- features: {
1741
- featureId: string;
1742
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1743
- description: string;
1744
- }[];
1745
- } | undefined;
1746
- } | undefined;
1747
- } & {
1748
- iconUrl?: string | null | undefined;
1749
- noFee?: {
1750
- isDestination?: boolean | null | undefined;
1751
- isSource?: boolean | null | undefined;
1752
- } | undefined;
1753
- };
1754
- normalizedAmount?: string | undefined;
1755
- usd?: string | null | undefined;
1756
- valueInCurrency?: string | null | undefined;
1757
- }[] | undefined;
1758
- relayer?: {
1759
- amount: string;
1760
- asset: {
1761
- symbol: string;
1762
- name: string;
1763
- assetId: `${string}:${string}/${string}:${string}`;
1764
- decimals: number;
1765
- } & {
1766
- isVerified?: boolean | undefined;
1767
- securityData?: {
1768
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1769
- metadata?: {
1770
- features: {
1771
- featureId: string;
1772
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1773
- description: string;
1774
- }[];
1775
- } | undefined;
1776
- } | undefined;
1777
- } & {
1778
- iconUrl?: string | null | undefined;
1779
- noFee?: {
1780
- isDestination?: boolean | null | undefined;
1781
- isSource?: boolean | null | undefined;
1782
- } | undefined;
1783
- };
1784
- normalizedAmount?: string | undefined;
1785
- usd?: string | null | undefined;
1786
- valueInCurrency?: string | null | undefined;
1787
- }[] | undefined;
1788
- };
1789
- aggregator: string;
1790
- protocols: string[];
1791
- slippage?: number | undefined;
1792
- refuel?: {
1793
- srcChainId: number;
1794
- action: import("./step.mjs").ActionTypes;
1795
- destChainId?: number | undefined;
1796
- srcAsset?: {
1797
- symbol: string;
1798
- chainId: number;
1799
- name: string;
1800
- assetId: `${string}:${string}/${string}:${string}`;
1801
- decimals: number;
1802
- address: string;
1803
- iconUrl?: string | null | undefined;
1804
- icon?: string | null | undefined;
1805
- } | undefined;
1806
- destAsset?: {
1807
- symbol: string;
1808
- chainId: number;
1809
- name: string;
1810
- assetId: `${string}:${string}/${string}:${string}`;
1811
- decimals: number;
1812
- address: string;
1813
- iconUrl?: string | null | undefined;
1814
- icon?: string | null | undefined;
1815
- } | undefined;
1816
- } | undefined;
1817
- priceData?: {
1818
- swapRate?: string | undefined;
1819
- priceImpact?: {
1820
- amount?: string | null | undefined;
1821
- usd?: string | null | undefined;
1822
- valueInCurrency?: string | undefined;
1823
- } | undefined;
1824
- cost?: {
1825
- usd?: string | null | undefined;
1826
- valueInCurrency?: string | null | undefined;
1827
- } | undefined;
1828
- adjustedReturn?: {
1829
- usd?: string | null | undefined;
1830
- valueInCurrency?: string | null | undefined;
1831
- } | undefined;
1832
- } | undefined;
1833
- steps?: {
1834
- action: import("./step.mjs").ActionTypes;
1835
- src: {
1836
- asset: {
1837
- symbol: string;
1838
- name: string;
1839
- assetId: `${string}:${string}/${string}:${string}`;
1840
- decimals: number;
1841
- } & {
1842
- isVerified?: boolean | undefined;
1843
- securityData?: {
1844
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1845
- metadata?: {
1846
- features: {
1847
- featureId: string;
1848
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1849
- description: string;
1850
- }[];
1851
- } | undefined;
1852
- } | undefined;
1853
- } & {
1854
- iconUrl?: string | null | undefined;
1855
- noFee?: {
1856
- isDestination?: boolean | null | undefined;
1857
- isSource?: boolean | null | undefined;
1858
- } | undefined;
1859
- };
1860
- };
1861
- dest: {
1862
- asset: {
1863
- symbol: string;
1864
- name: string;
1865
- assetId: `${string}:${string}/${string}:${string}`;
1866
- decimals: number;
1867
- } & {
1868
- isVerified?: boolean | undefined;
1869
- securityData?: {
1870
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1871
- metadata?: {
1872
- features: {
1873
- featureId: string;
1874
- type: import("./bridge-asset.mjs").BridgeAssetSecurityDataType;
1875
- description: string;
1876
- }[];
1877
- } | undefined;
1878
- } | undefined;
1879
- } & {
1880
- iconUrl?: string | null | undefined;
1881
- noFee?: {
1882
- isDestination?: boolean | null | undefined;
1883
- isSource?: boolean | null | undefined;
1884
- } | undefined;
1885
- };
1886
- };
1887
- }[] | undefined;
1888
- intent?: {
1889
- protocol: string;
1890
- order: {
1891
- sellToken: `0x${string}`;
1892
- buyToken: `0x${string}`;
1893
- validTo: string | number;
1894
- appData: string;
1895
- appDataHash: `0x${string}`;
1896
- feeAmount: string;
1897
- kind: "sell" | "buy";
1898
- partiallyFillable: boolean;
1899
- receiver?: `0x${string}` | undefined;
1900
- sellAmount?: string | undefined;
1901
- buyAmount?: string | undefined;
1902
- from?: `0x${string}` | undefined;
1903
- };
1904
- typedData: {
1905
- types: Record<string, {
1906
- name: string;
1907
- type: string;
1908
- }[]>;
1909
- primaryType: string;
1910
- domain: Record<string, any>;
1911
- message: Record<string, any>;
1912
- };
1913
- settlementContract?: `0x${string}` | undefined;
1914
- } | undefined;
1915
- };
1916
- estimatedProcessingTimeInSeconds: number;
1917
- quoteId?: string | undefined;
1918
- featureId?: FeatureId | undefined;
1919
- quoteRequestIndex?: number | undefined;
1920
- nonEvmFeesInNative?: string | undefined;
1921
- l1GasFeesInHexWei?: `0x${string}` | undefined;
1922
- } & {
1923
- chainId: `${string}:${string}`;
1924
- namespace: KnownCaipNamespace.Stellar;
1925
- trade: {
1926
- xdrBase64: string;
1927
- } | {
1928
- xdr: string;
1929
- };
1930
- approval?: {
1931
- chainId: number;
1932
- from: `0x${string}`;
1933
- to: `0x${string}`;
1934
- value: `0x${string}`;
1935
- data: `0x${string}`;
1936
- gasLimit: number | null;
1937
- effectiveGas?: number | undefined;
1938
- } | undefined;
1939
- }) | null, null>;
1940
- /**
1941
- * This is the V2 QuoteResponse type, including metadata calculated after quote fetch
1942
- */
1943
- export type QuoteResponse = Omit<NonNullable<Infer<typeof QuoteResponseSchemaV2>>, 'trade' | 'approval' | 'resetApproval'> & ({
1944
- namespace: KnownCaipNamespace.Eip155;
1945
- chainId: CaipChainId;
1946
- trade: TxData & {
1947
- data: string;
1948
- };
1949
- approval?: TxData;
1950
- /**
1951
- * Appended to the quote response based on the quote request resetApproval flag
1952
- * If defined, the quote's total network fee will include the reset approval's gas limit.
1953
- */
1954
- resetApproval?: TxData;
1955
- } | {
1956
- namespace: KnownCaipNamespace.Solana;
1957
- chainId: CaipChainId;
1958
- trade: string;
1959
- approval?: TxData;
1960
- } | {
1961
- namespace: KnownCaipNamespace.Tron;
1962
- chainId: CaipChainId;
1963
- trade: TronTradeData & {
1964
- raw_data_hex: string;
1965
- };
1966
- approval?: TronTradeData;
1967
- } | {
1968
- namespace: KnownCaipNamespace.Bip122;
1969
- chainId: CaipChainId;
1970
- trade: BitcoinTradeData;
1971
- approval?: TxData;
1972
- } | {
1973
- namespace: KnownCaipNamespace.Stellar;
1974
- chainId: CaipChainId;
1975
- trade: StellarTradeData;
1976
- approval?: TxData;
1977
- });
1978
- export declare const validateQuoteResponse: (quoteResponse: unknown) => quoteResponse is QuoteResponse;
1979
- //# sourceMappingURL=quote-response.d.mts.map