@metamask-previews/bridge-controller 77.3.2-preview-bbd2df29f → 77.3.2-preview-34f2bcbf7

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 (195) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/bridge-controller.cjs.map +1 -1
  3. package/dist/bridge-controller.d.cts +3 -2
  4. package/dist/bridge-controller.d.cts.map +1 -1
  5. package/dist/bridge-controller.d.mts +3 -2
  6. package/dist/bridge-controller.d.mts.map +1 -1
  7. package/dist/bridge-controller.mjs +1 -1
  8. package/dist/bridge-controller.mjs.map +1 -1
  9. package/dist/index.cjs +36 -30
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +14 -5
  12. package/dist/index.d.cts.map +1 -1
  13. package/dist/index.d.mts +14 -5
  14. package/dist/index.d.mts.map +1 -1
  15. package/dist/index.mjs +10 -4
  16. package/dist/index.mjs.map +1 -1
  17. package/dist/selectors.cjs.map +1 -1
  18. package/dist/selectors.d.cts +5971 -6520
  19. package/dist/selectors.d.cts.map +1 -1
  20. package/dist/selectors.d.mts +5971 -6520
  21. package/dist/selectors.d.mts.map +1 -1
  22. package/dist/selectors.mjs.map +1 -1
  23. package/dist/types.cjs +1 -12
  24. package/dist/types.cjs.map +1 -1
  25. package/dist/types.d.cts +21 -41
  26. package/dist/types.d.cts.map +1 -1
  27. package/dist/types.d.mts +21 -41
  28. package/dist/types.d.mts.map +1 -1
  29. package/dist/types.mjs +0 -11
  30. package/dist/types.mjs.map +1 -1
  31. package/dist/utils/bridge.cjs +1 -0
  32. package/dist/utils/bridge.cjs.map +1 -1
  33. package/dist/utils/bridge.d.cts +4 -3
  34. package/dist/utils/bridge.d.cts.map +1 -1
  35. package/dist/utils/bridge.d.mts +4 -3
  36. package/dist/utils/bridge.d.mts.map +1 -1
  37. package/dist/utils/bridge.mjs +1 -0
  38. package/dist/utils/bridge.mjs.map +1 -1
  39. package/dist/utils/feature-flags.cjs +2 -2
  40. package/dist/utils/feature-flags.cjs.map +1 -1
  41. package/dist/utils/feature-flags.d.cts +1 -1
  42. package/dist/utils/feature-flags.d.mts +1 -1
  43. package/dist/utils/feature-flags.mjs +1 -1
  44. package/dist/utils/feature-flags.mjs.map +1 -1
  45. package/dist/utils/fetch.cjs +16 -11
  46. package/dist/utils/fetch.cjs.map +1 -1
  47. package/dist/utils/fetch.d.cts +3 -1
  48. package/dist/utils/fetch.d.cts.map +1 -1
  49. package/dist/utils/fetch.d.mts +3 -1
  50. package/dist/utils/fetch.d.mts.map +1 -1
  51. package/dist/utils/fetch.mjs +9 -4
  52. package/dist/utils/fetch.mjs.map +1 -1
  53. package/dist/utils/metrics/properties.cjs +2 -2
  54. package/dist/utils/metrics/properties.cjs.map +1 -1
  55. package/dist/utils/metrics/properties.d.cts +4 -2
  56. package/dist/utils/metrics/properties.d.cts.map +1 -1
  57. package/dist/utils/metrics/properties.d.mts +4 -2
  58. package/dist/utils/metrics/properties.d.mts.map +1 -1
  59. package/dist/utils/metrics/properties.mjs +1 -1
  60. package/dist/utils/metrics/properties.mjs.map +1 -1
  61. package/dist/utils/metrics/types.cjs.map +1 -1
  62. package/dist/utils/metrics/types.d.cts +2 -1
  63. package/dist/utils/metrics/types.d.cts.map +1 -1
  64. package/dist/utils/metrics/types.d.mts +2 -1
  65. package/dist/utils/metrics/types.d.mts.map +1 -1
  66. package/dist/utils/metrics/types.mjs.map +1 -1
  67. package/dist/utils/quote-fees.cjs +2 -1
  68. package/dist/utils/quote-fees.cjs.map +1 -1
  69. package/dist/utils/quote-fees.d.cts +2 -1
  70. package/dist/utils/quote-fees.d.cts.map +1 -1
  71. package/dist/utils/quote-fees.d.mts +2 -1
  72. package/dist/utils/quote-fees.d.mts.map +1 -1
  73. package/dist/utils/quote-fees.mjs +2 -1
  74. package/dist/utils/quote-fees.mjs.map +1 -1
  75. package/dist/utils/quote.cjs +3 -3
  76. package/dist/utils/quote.cjs.map +1 -1
  77. package/dist/utils/quote.d.cts +5 -2
  78. package/dist/utils/quote.d.cts.map +1 -1
  79. package/dist/utils/quote.d.mts +5 -2
  80. package/dist/utils/quote.d.mts.map +1 -1
  81. package/dist/utils/quote.mjs +2 -2
  82. package/dist/utils/quote.mjs.map +1 -1
  83. package/dist/utils/struct-error.cjs +16 -0
  84. package/dist/utils/struct-error.cjs.map +1 -0
  85. package/dist/utils/struct-error.d.cts +11 -0
  86. package/dist/utils/struct-error.d.cts.map +1 -0
  87. package/dist/utils/struct-error.d.mts +11 -0
  88. package/dist/utils/struct-error.d.mts.map +1 -0
  89. package/dist/utils/struct-error.mjs +12 -0
  90. package/dist/utils/struct-error.mjs.map +1 -0
  91. package/dist/utils/trade-utils.cjs +7 -66
  92. package/dist/utils/trade-utils.cjs.map +1 -1
  93. package/dist/utils/trade-utils.d.cts +1 -54
  94. package/dist/utils/trade-utils.d.cts.map +1 -1
  95. package/dist/utils/trade-utils.d.mts +1 -54
  96. package/dist/utils/trade-utils.d.mts.map +1 -1
  97. package/dist/utils/trade-utils.mjs +1 -56
  98. package/dist/utils/trade-utils.mjs.map +1 -1
  99. package/dist/validators/batch-sell.cjs +39 -0
  100. package/dist/validators/batch-sell.cjs.map +1 -0
  101. package/dist/validators/batch-sell.d.cts +79 -0
  102. package/dist/validators/batch-sell.d.cts.map +1 -0
  103. package/dist/validators/batch-sell.d.mts +79 -0
  104. package/dist/validators/batch-sell.d.mts.map +1 -0
  105. package/dist/validators/batch-sell.mjs +35 -0
  106. package/dist/validators/batch-sell.mjs.map +1 -0
  107. package/dist/validators/bridge-asset.cjs +42 -0
  108. package/dist/validators/bridge-asset.cjs.map +1 -0
  109. package/dist/validators/bridge-asset.d.cts +52 -0
  110. package/dist/validators/bridge-asset.d.cts.map +1 -0
  111. package/dist/validators/bridge-asset.d.mts +52 -0
  112. package/dist/validators/bridge-asset.d.mts.map +1 -0
  113. package/dist/validators/bridge-asset.mjs +38 -0
  114. package/dist/validators/bridge-asset.mjs.map +1 -0
  115. package/dist/validators/feature-flags.cjs +110 -0
  116. package/dist/validators/feature-flags.cjs.map +1 -0
  117. package/dist/validators/feature-flags.d.cts +264 -0
  118. package/dist/validators/feature-flags.d.cts.map +1 -0
  119. package/dist/validators/feature-flags.d.mts +264 -0
  120. package/dist/validators/feature-flags.d.mts.map +1 -0
  121. package/dist/validators/feature-flags.mjs +106 -0
  122. package/dist/validators/feature-flags.mjs.map +1 -0
  123. package/dist/validators/intent.cjs +122 -0
  124. package/dist/validators/intent.cjs.map +1 -0
  125. package/dist/validators/intent.d.cts +231 -0
  126. package/dist/validators/intent.d.cts.map +1 -0
  127. package/dist/validators/intent.d.mts +231 -0
  128. package/dist/validators/intent.d.mts.map +1 -0
  129. package/dist/validators/intent.mjs +119 -0
  130. package/dist/validators/intent.mjs.map +1 -0
  131. package/dist/validators/number.cjs +8 -0
  132. package/dist/validators/number.cjs.map +1 -0
  133. package/dist/validators/number.d.cts +4 -0
  134. package/dist/validators/number.d.cts.map +1 -0
  135. package/dist/validators/number.d.mts +4 -0
  136. package/dist/validators/number.d.mts.map +1 -0
  137. package/dist/validators/number.mjs +5 -0
  138. package/dist/validators/number.mjs.map +1 -0
  139. package/dist/validators/quote-response-v1.cjs +31 -0
  140. package/dist/validators/quote-response-v1.cjs.map +1 -0
  141. package/dist/validators/quote-response-v1.d.cts +658 -0
  142. package/dist/validators/quote-response-v1.d.cts.map +1 -0
  143. package/dist/validators/quote-response-v1.d.mts +658 -0
  144. package/dist/validators/quote-response-v1.d.mts.map +1 -0
  145. package/dist/validators/quote-response-v1.mjs +27 -0
  146. package/dist/validators/quote-response-v1.mjs.map +1 -0
  147. package/dist/validators/quote-stream-complete.cjs +29 -0
  148. package/dist/validators/quote-stream-complete.cjs.map +1 -0
  149. package/dist/validators/quote-stream-complete.d.cts +39 -0
  150. package/dist/validators/quote-stream-complete.d.cts.map +1 -0
  151. package/dist/validators/quote-stream-complete.d.mts +39 -0
  152. package/dist/validators/quote-stream-complete.d.mts.map +1 -0
  153. package/dist/validators/quote-stream-complete.mjs +25 -0
  154. package/dist/validators/quote-stream-complete.mjs.map +1 -0
  155. package/dist/validators/quote.cjs +96 -0
  156. package/dist/validators/quote.cjs.map +1 -0
  157. package/dist/validators/quote.d.cts +230 -0
  158. package/dist/validators/quote.d.cts.map +1 -0
  159. package/dist/validators/quote.d.mts +230 -0
  160. package/dist/validators/quote.d.mts.map +1 -0
  161. package/dist/validators/quote.mjs +93 -0
  162. package/dist/validators/quote.mjs.map +1 -0
  163. package/dist/validators/step.cjs +20 -0
  164. package/dist/validators/step.cjs.map +1 -0
  165. package/dist/validators/step.d.cts +148 -0
  166. package/dist/validators/step.d.cts.map +1 -0
  167. package/dist/validators/step.d.mts +148 -0
  168. package/dist/validators/step.d.mts.map +1 -0
  169. package/dist/validators/step.mjs +17 -0
  170. package/dist/validators/step.mjs.map +1 -0
  171. package/dist/validators/token-feature.cjs +22 -0
  172. package/dist/validators/token-feature.cjs.map +1 -0
  173. package/dist/validators/token-feature.d.cts +26 -0
  174. package/dist/validators/token-feature.d.cts.map +1 -0
  175. package/dist/validators/token-feature.d.mts +26 -0
  176. package/dist/validators/token-feature.d.mts.map +1 -0
  177. package/dist/validators/token-feature.mjs +18 -0
  178. package/dist/validators/token-feature.mjs.map +1 -0
  179. package/dist/validators/trade.cjs +94 -0
  180. package/dist/validators/trade.cjs.map +1 -0
  181. package/dist/validators/trade.d.cts +121 -0
  182. package/dist/validators/trade.d.cts.map +1 -0
  183. package/dist/validators/trade.d.mts +121 -0
  184. package/dist/validators/trade.d.mts.map +1 -0
  185. package/dist/validators/trade.mjs +86 -0
  186. package/dist/validators/trade.mjs.map +1 -0
  187. package/package.json +4 -4
  188. package/dist/utils/validators.cjs +0 -471
  189. package/dist/utils/validators.cjs.map +0 -1
  190. package/dist/utils/validators.d.cts +0 -1765
  191. package/dist/utils/validators.d.cts.map +0 -1
  192. package/dist/utils/validators.d.mts +0 -1765
  193. package/dist/utils/validators.d.mts.map +0 -1
  194. package/dist/utils/validators.mjs +0 -461
  195. package/dist/utils/validators.mjs.map +0 -1
@@ -1,1765 +0,0 @@
1
- export declare enum FeeType {
2
- METABRIDGE = "metabridge",
3
- REFUEL = "refuel",
4
- TX_FEE = "txFee"
5
- }
6
- export declare enum DiscountType {
7
- VIP = "vip",
8
- PROMO = "promo",
9
- DAO = "dao"
10
- }
11
- export declare enum ActionTypes {
12
- BRIDGE = "bridge",
13
- SWAP = "swap",
14
- REFUEL = "refuel"
15
- }
16
- export declare const truthyString: (value: string) => boolean;
17
- export declare const BridgeAssetSchema: import("@metamask/superstruct").Struct<{
18
- symbol: string;
19
- chainId: number;
20
- address: string;
21
- assetId: `${string}:${string}/${string}:${string}`;
22
- name: string;
23
- decimals: number;
24
- icon?: string | null | undefined;
25
- iconUrl?: string | null | undefined;
26
- }, {
27
- /**
28
- * The chainId of the token
29
- */
30
- chainId: import("@metamask/superstruct").Struct<number, null>;
31
- /**
32
- * An address that the metaswap-api recognizes as the default token
33
- */
34
- address: import("@metamask/superstruct").Struct<string, null>;
35
- /**
36
- * The assetId of the token
37
- */
38
- assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
39
- /**
40
- * The symbol of token object
41
- */
42
- symbol: import("@metamask/superstruct").Struct<string, null>;
43
- /**
44
- * The name for the network
45
- */
46
- name: import("@metamask/superstruct").Struct<string, null>;
47
- decimals: import("@metamask/superstruct").Struct<number, null>;
48
- /**
49
- * URL for token icon
50
- */
51
- icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
52
- /**
53
- * URL for token icon
54
- */
55
- iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
56
- }>;
57
- export declare const ChainRankingItemSchema: import("@metamask/superstruct").Struct<{
58
- chainId: `${string}:${string}`;
59
- name: string;
60
- }, {
61
- /**
62
- * The CAIP-2 chain identifier (e.g., "eip155:1" for Ethereum mainnet)
63
- */
64
- chainId: import("@metamask/superstruct").Struct<`${string}:${string}`, null>;
65
- /**
66
- * The display name of the chain (e.g., "Ethereum")
67
- */
68
- name: import("@metamask/superstruct").Struct<string, null>;
69
- }>;
70
- export declare const ChainRankingSchema: import("@metamask/superstruct").Struct<{
71
- chainId: `${string}:${string}`;
72
- name: string;
73
- }[] | undefined, import("@metamask/superstruct").Struct<{
74
- chainId: `${string}:${string}`;
75
- name: string;
76
- }, {
77
- /**
78
- * The CAIP-2 chain identifier (e.g., "eip155:1" for Ethereum mainnet)
79
- */
80
- chainId: import("@metamask/superstruct").Struct<`${string}:${string}`, null>;
81
- /**
82
- * The display name of the chain (e.g., "Ethereum")
83
- */
84
- name: import("@metamask/superstruct").Struct<string, null>;
85
- }>>;
86
- export declare const ChainConfigurationSchema: import("@metamask/superstruct").Struct<{
87
- isActiveSrc: boolean;
88
- isActiveDest: boolean;
89
- refreshRate?: number | undefined;
90
- topAssets?: string[] | undefined;
91
- stablecoins?: string[] | undefined;
92
- batchSellDestStablecoins?: `${string}:${string}/${string}:${string}`[] | undefined;
93
- isUnifiedUIEnabled?: boolean | undefined;
94
- isSingleSwapBridgeButtonEnabled?: boolean | undefined;
95
- isGaslessSwapEnabled?: boolean | undefined;
96
- noFeeAssets?: string[] | undefined;
97
- defaultPairs?: {
98
- standard: Record<string, string>;
99
- other: Record<string, string>;
100
- } | undefined;
101
- }, {
102
- isActiveSrc: import("@metamask/superstruct").Struct<boolean, null>;
103
- isActiveDest: import("@metamask/superstruct").Struct<boolean, null>;
104
- refreshRate: import("@metamask/superstruct").Struct<number | undefined, null>;
105
- topAssets: import("@metamask/superstruct").Struct<string[] | undefined, import("@metamask/superstruct").Struct<string, null>>;
106
- stablecoins: import("@metamask/superstruct").Struct<string[] | undefined, import("@metamask/superstruct").Struct<string, null>>;
107
- batchSellDestStablecoins: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`[] | undefined, import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>>;
108
- isUnifiedUIEnabled: import("@metamask/superstruct").Struct<boolean | undefined, null>;
109
- isSingleSwapBridgeButtonEnabled: import("@metamask/superstruct").Struct<boolean | undefined, null>;
110
- isGaslessSwapEnabled: import("@metamask/superstruct").Struct<boolean | undefined, null>;
111
- noFeeAssets: import("@metamask/superstruct").Struct<string[] | undefined, import("@metamask/superstruct").Struct<string, null>>;
112
- defaultPairs: import("@metamask/superstruct").Struct<{
113
- standard: Record<string, string>;
114
- other: Record<string, string>;
115
- } | undefined, {
116
- /**
117
- * The standard default pairs. Use this if the pair is only set once.
118
- * The key is the CAIP asset type of the src token and the value is the CAIP asset type of the dest token.
119
- */
120
- standard: import("@metamask/superstruct").Struct<Record<string, string>, null>;
121
- /**
122
- * The other default pairs. Use this if the dest token depends on the src token and can be set multiple times.
123
- * The key is the CAIP asset type of the src token and the value is the CAIP asset type of the dest token.
124
- */
125
- other: import("@metamask/superstruct").Struct<Record<string, string>, null>;
126
- }>;
127
- }>;
128
- export declare const PriceImpactThresholdSchema: import("@metamask/superstruct").Struct<{
129
- gasless: number;
130
- normal: number;
131
- warning?: number | undefined;
132
- error?: number | undefined;
133
- }, {
134
- gasless: import("@metamask/superstruct").Struct<number, null>;
135
- normal: import("@metamask/superstruct").Struct<number, null>;
136
- warning: import("@metamask/superstruct").Struct<number | undefined, null>;
137
- error: import("@metamask/superstruct").Struct<number | undefined, null>;
138
- }>;
139
- /**
140
- * This is the schema for the feature flags response from the RemoteFeatureFlagController
141
- */
142
- export declare const PlatformConfigSchema: import("@metamask/superstruct").Struct<{
143
- refreshRate: number;
144
- minimumVersion: string;
145
- maxRefreshCount: number;
146
- support: boolean;
147
- chains: Record<string, {
148
- isActiveSrc: boolean;
149
- isActiveDest: boolean;
150
- refreshRate?: number | undefined;
151
- topAssets?: string[] | undefined;
152
- stablecoins?: string[] | undefined;
153
- batchSellDestStablecoins?: `${string}:${string}/${string}:${string}`[] | undefined;
154
- isUnifiedUIEnabled?: boolean | undefined;
155
- isSingleSwapBridgeButtonEnabled?: boolean | undefined;
156
- isGaslessSwapEnabled?: boolean | undefined;
157
- noFeeAssets?: string[] | undefined;
158
- defaultPairs?: {
159
- standard: Record<string, string>;
160
- other: Record<string, string>;
161
- } | undefined;
162
- }>;
163
- priceImpactThreshold?: {
164
- gasless: number;
165
- normal: number;
166
- warning?: number | undefined;
167
- error?: number | undefined;
168
- } | undefined;
169
- quoteRequestOverrides?: Record<string, {
170
- aggIds?: string[] | undefined;
171
- bridgeIds?: string[] | undefined;
172
- fee?: number | undefined;
173
- } | undefined> | undefined;
174
- bip44DefaultPairs?: Record<string, {
175
- standard: Record<string, string>;
176
- other: Record<string, string>;
177
- } | undefined> | undefined;
178
- sse?: {
179
- minimumVersion: string;
180
- enabled: boolean;
181
- } | undefined;
182
- chainRanking?: {
183
- chainId: `${string}:${string}`;
184
- name: string;
185
- }[] | undefined;
186
- maxPendingHistoryItemAgeMs?: number | undefined;
187
- }, {
188
- priceImpactThreshold: import("@metamask/superstruct").Struct<{
189
- gasless: number;
190
- normal: number;
191
- warning?: number | undefined;
192
- error?: number | undefined;
193
- } | undefined, {
194
- gasless: import("@metamask/superstruct").Struct<number, null>;
195
- normal: import("@metamask/superstruct").Struct<number, null>;
196
- warning: import("@metamask/superstruct").Struct<number | undefined, null>;
197
- error: import("@metamask/superstruct").Struct<number | undefined, null>;
198
- }>;
199
- quoteRequestOverrides: import("@metamask/superstruct").Struct<Record<string, {
200
- aggIds?: string[] | undefined;
201
- bridgeIds?: string[] | undefined;
202
- fee?: number | undefined;
203
- } | undefined> | undefined, null>;
204
- minimumVersion: import("@metamask/superstruct").Struct<string, null>;
205
- refreshRate: import("@metamask/superstruct").Struct<number, null>;
206
- maxRefreshCount: import("@metamask/superstruct").Struct<number, null>;
207
- support: import("@metamask/superstruct").Struct<boolean, null>;
208
- chains: import("@metamask/superstruct").Struct<Record<string, {
209
- isActiveSrc: boolean;
210
- isActiveDest: boolean;
211
- refreshRate?: number | undefined;
212
- topAssets?: string[] | undefined;
213
- stablecoins?: string[] | undefined;
214
- batchSellDestStablecoins?: `${string}:${string}/${string}:${string}`[] | undefined;
215
- isUnifiedUIEnabled?: boolean | undefined;
216
- isSingleSwapBridgeButtonEnabled?: boolean | undefined;
217
- isGaslessSwapEnabled?: boolean | undefined;
218
- noFeeAssets?: string[] | undefined;
219
- defaultPairs?: {
220
- standard: Record<string, string>;
221
- other: Record<string, string>;
222
- } | undefined;
223
- }>, null>;
224
- /**
225
- * The bip44 default pairs for the chains
226
- * Key is the CAIP chainId namespace
227
- */
228
- bip44DefaultPairs: import("@metamask/superstruct").Struct<Record<string, {
229
- standard: Record<string, string>;
230
- other: Record<string, string>;
231
- } | undefined> | undefined, null>;
232
- sse: import("@metamask/superstruct").Struct<{
233
- minimumVersion: string;
234
- enabled: boolean;
235
- } | undefined, {
236
- enabled: import("@metamask/superstruct").Struct<boolean, null>;
237
- /**
238
- * The minimum version of the client required to enable SSE, for example 13.8.0
239
- */
240
- minimumVersion: import("@metamask/superstruct").Struct<string, null>;
241
- }>;
242
- /**
243
- * Array of chain objects ordered by preference/ranking
244
- */
245
- chainRanking: import("@metamask/superstruct").Struct<{
246
- chainId: `${string}:${string}`;
247
- name: string;
248
- }[] | undefined, import("@metamask/superstruct").Struct<{
249
- chainId: `${string}:${string}`;
250
- name: string;
251
- }, {
252
- /**
253
- * The CAIP-2 chain identifier (e.g., "eip155:1" for Ethereum mainnet)
254
- */
255
- chainId: import("@metamask/superstruct").Struct<`${string}:${string}`, null>;
256
- /**
257
- * The display name of the chain (e.g., "Ethereum")
258
- */
259
- name: import("@metamask/superstruct").Struct<string, null>;
260
- }>>;
261
- maxPendingHistoryItemAgeMs: import("@metamask/superstruct").Struct<number | undefined, null>;
262
- }>;
263
- export declare const validateFeatureFlagsResponse: (data: unknown) => data is {
264
- refreshRate: number;
265
- minimumVersion: string;
266
- maxRefreshCount: number;
267
- support: boolean;
268
- chains: Record<string, {
269
- isActiveSrc: boolean;
270
- isActiveDest: boolean;
271
- refreshRate?: number | undefined;
272
- topAssets?: string[] | undefined;
273
- stablecoins?: string[] | undefined;
274
- batchSellDestStablecoins?: `${string}:${string}/${string}:${string}`[] | undefined;
275
- isUnifiedUIEnabled?: boolean | undefined;
276
- isSingleSwapBridgeButtonEnabled?: boolean | undefined;
277
- isGaslessSwapEnabled?: boolean | undefined;
278
- noFeeAssets?: string[] | undefined;
279
- defaultPairs?: {
280
- standard: Record<string, string>;
281
- other: Record<string, string>;
282
- } | undefined;
283
- }>;
284
- priceImpactThreshold?: {
285
- gasless: number;
286
- normal: number;
287
- warning?: number | undefined;
288
- error?: number | undefined;
289
- } | undefined;
290
- quoteRequestOverrides?: Record<string, {
291
- aggIds?: string[] | undefined;
292
- bridgeIds?: string[] | undefined;
293
- fee?: number | undefined;
294
- } | undefined> | undefined;
295
- bip44DefaultPairs?: Record<string, {
296
- standard: Record<string, string>;
297
- other: Record<string, string>;
298
- } | undefined> | undefined;
299
- sse?: {
300
- minimumVersion: string;
301
- enabled: boolean;
302
- } | undefined;
303
- chainRanking?: {
304
- chainId: `${string}:${string}`;
305
- name: string;
306
- }[] | undefined;
307
- maxPendingHistoryItemAgeMs?: number | undefined;
308
- };
309
- export declare const validateSwapsTokenObject: (data: unknown) => data is {
310
- symbol: string;
311
- chainId: number;
312
- address: string;
313
- assetId: `${string}:${string}/${string}:${string}`;
314
- name: string;
315
- decimals: number;
316
- icon?: string | null | undefined;
317
- iconUrl?: string | null | undefined;
318
- };
319
- export declare const FeeDataSchema: import("@metamask/superstruct").Struct<{
320
- amount: string;
321
- asset: {
322
- symbol: string;
323
- chainId: number;
324
- address: string;
325
- assetId: `${string}:${string}/${string}:${string}`;
326
- name: string;
327
- decimals: number;
328
- icon?: string | null | undefined;
329
- iconUrl?: string | null | undefined;
330
- };
331
- discountType?: string | null | undefined;
332
- }, {
333
- amount: import("@metamask/superstruct").Struct<string, null>;
334
- asset: import("@metamask/superstruct").Struct<{
335
- symbol: string;
336
- chainId: number;
337
- address: string;
338
- assetId: `${string}:${string}/${string}:${string}`;
339
- name: string;
340
- decimals: number;
341
- icon?: string | null | undefined;
342
- iconUrl?: string | null | undefined;
343
- }, {
344
- /**
345
- * The chainId of the token
346
- */
347
- chainId: import("@metamask/superstruct").Struct<number, null>;
348
- /**
349
- * An address that the metaswap-api recognizes as the default token
350
- */
351
- address: import("@metamask/superstruct").Struct<string, null>;
352
- /**
353
- * The assetId of the token
354
- */
355
- assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
356
- /**
357
- * The symbol of token object
358
- */
359
- symbol: import("@metamask/superstruct").Struct<string, null>;
360
- /**
361
- * The name for the network
362
- */
363
- name: import("@metamask/superstruct").Struct<string, null>;
364
- decimals: import("@metamask/superstruct").Struct<number, null>;
365
- /**
366
- * URL for token icon
367
- */
368
- icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
369
- /**
370
- * URL for token icon
371
- */
372
- iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
373
- }>;
374
- discountType: import("@metamask/superstruct").Struct<string | null | undefined, null>;
375
- }>;
376
- export declare const ProtocolSchema: import("@metamask/superstruct").Struct<{
377
- name: string;
378
- icon?: string | undefined;
379
- displayName?: string | undefined;
380
- }, {
381
- name: import("@metamask/superstruct").Struct<string, null>;
382
- displayName: import("@metamask/superstruct").Struct<string | undefined, null>;
383
- icon: import("@metamask/superstruct").Struct<string | undefined, null>;
384
- }>;
385
- export declare const StepSchema: import("@metamask/superstruct").Struct<{
386
- action: ActionTypes;
387
- srcChainId: number;
388
- srcAsset: {
389
- symbol: string;
390
- chainId: number;
391
- address: string;
392
- assetId: `${string}:${string}/${string}:${string}`;
393
- name: string;
394
- decimals: number;
395
- icon?: string | null | undefined;
396
- iconUrl?: string | null | undefined;
397
- };
398
- destAsset: {
399
- symbol: string;
400
- chainId: number;
401
- address: string;
402
- assetId: `${string}:${string}/${string}:${string}`;
403
- name: string;
404
- decimals: number;
405
- icon?: string | null | undefined;
406
- iconUrl?: string | null | undefined;
407
- };
408
- srcAmount: string;
409
- destAmount: string;
410
- protocol: {
411
- name: string;
412
- icon?: string | undefined;
413
- displayName?: string | undefined;
414
- };
415
- destChainId?: number | undefined;
416
- }, {
417
- action: import("@metamask/superstruct").Struct<ActionTypes, {
418
- bridge: ActionTypes.BRIDGE;
419
- swap: ActionTypes.SWAP;
420
- refuel: ActionTypes.REFUEL;
421
- }>;
422
- srcChainId: import("@metamask/superstruct").Struct<number, null>;
423
- destChainId: import("@metamask/superstruct").Struct<number | undefined, null>;
424
- srcAsset: import("@metamask/superstruct").Struct<{
425
- symbol: string;
426
- chainId: number;
427
- address: string;
428
- assetId: `${string}:${string}/${string}:${string}`;
429
- name: string;
430
- decimals: number;
431
- icon?: string | null | undefined;
432
- iconUrl?: string | null | undefined;
433
- }, {
434
- /**
435
- * The chainId of the token
436
- */
437
- chainId: import("@metamask/superstruct").Struct<number, null>;
438
- /**
439
- * An address that the metaswap-api recognizes as the default token
440
- */
441
- address: import("@metamask/superstruct").Struct<string, null>;
442
- /**
443
- * The assetId of the token
444
- */
445
- assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
446
- /**
447
- * The symbol of token object
448
- */
449
- symbol: import("@metamask/superstruct").Struct<string, null>;
450
- /**
451
- * The name for the network
452
- */
453
- name: import("@metamask/superstruct").Struct<string, null>;
454
- decimals: import("@metamask/superstruct").Struct<number, null>;
455
- /**
456
- * URL for token icon
457
- */
458
- icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
459
- /**
460
- * URL for token icon
461
- */
462
- iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
463
- }>;
464
- destAsset: import("@metamask/superstruct").Struct<{
465
- symbol: string;
466
- chainId: number;
467
- address: string;
468
- assetId: `${string}:${string}/${string}:${string}`;
469
- name: string;
470
- decimals: number;
471
- icon?: string | null | undefined;
472
- iconUrl?: string | null | undefined;
473
- }, {
474
- /**
475
- * The chainId of the token
476
- */
477
- chainId: import("@metamask/superstruct").Struct<number, null>;
478
- /**
479
- * An address that the metaswap-api recognizes as the default token
480
- */
481
- address: import("@metamask/superstruct").Struct<string, null>;
482
- /**
483
- * The assetId of the token
484
- */
485
- assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
486
- /**
487
- * The symbol of token object
488
- */
489
- symbol: import("@metamask/superstruct").Struct<string, null>;
490
- /**
491
- * The name for the network
492
- */
493
- name: import("@metamask/superstruct").Struct<string, null>;
494
- decimals: import("@metamask/superstruct").Struct<number, null>;
495
- /**
496
- * URL for token icon
497
- */
498
- icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
499
- /**
500
- * URL for token icon
501
- */
502
- iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
503
- }>;
504
- srcAmount: import("@metamask/superstruct").Struct<string, null>;
505
- destAmount: import("@metamask/superstruct").Struct<string, null>;
506
- protocol: import("@metamask/superstruct").Struct<{
507
- name: string;
508
- icon?: string | undefined;
509
- displayName?: string | undefined;
510
- }, {
511
- name: import("@metamask/superstruct").Struct<string, null>;
512
- displayName: import("@metamask/superstruct").Struct<string | undefined, null>;
513
- icon: import("@metamask/superstruct").Struct<string | undefined, null>;
514
- }>;
515
- }>;
516
- /**
517
- * Schema for an intent-based order used for EIP-712 signing and submission.
518
- *
519
- * This represents the minimal subset of fields required by intent-based
520
- * protocols (e.g. CoW Swap) to build, sign, and submit an order.
521
- */
522
- export declare const IntentOrderSchema: import("@metamask/superstruct").Struct<{
523
- sellToken: `0x${string}`;
524
- buyToken: `0x${string}`;
525
- validTo: string | number;
526
- appData: string;
527
- appDataHash: `0x${string}`;
528
- feeAmount: string;
529
- kind: "sell" | "buy";
530
- partiallyFillable: boolean;
531
- receiver?: `0x${string}` | undefined;
532
- sellAmount?: string | undefined;
533
- buyAmount?: string | undefined;
534
- from?: `0x${string}` | undefined;
535
- }, {
536
- /**
537
- * Address of the token being sold.
538
- */
539
- sellToken: import("@metamask/superstruct").Struct<`0x${string}`, null>;
540
- /**
541
- * Address of the token being bought.
542
- */
543
- buyToken: import("@metamask/superstruct").Struct<`0x${string}`, null>;
544
- /**
545
- * Optional receiver of the bought tokens.
546
- * If omitted, defaults to the signer / order owner.
547
- */
548
- receiver: import("@metamask/superstruct").Struct<`0x${string}` | undefined, null>;
549
- /**
550
- * Order expiration time.
551
- *
552
- * Can be provided as a UNIX timestamp in seconds, either as a number
553
- * or as a digit string, depending on provider requirements.
554
- */
555
- validTo: import("@metamask/superstruct").Struct<string | number, null>;
556
- /**
557
- * Arbitrary application-specific data attached to the order.
558
- */
559
- appData: import("@metamask/superstruct").Struct<string, null>;
560
- /**
561
- * Hash of the `appData` field, used for EIP-712 signing.
562
- */
563
- appDataHash: import("@metamask/superstruct").Struct<`0x${string}`, null>;
564
- /**
565
- * Fee amount paid for order execution, expressed as a digit string.
566
- */
567
- feeAmount: import("@metamask/superstruct").Struct<string, null>;
568
- /**
569
- * Order kind.
570
- *
571
- * - `sell`: exact sell amount, variable buy amount
572
- * - `buy`: exact buy amount, variable sell amount
573
- */
574
- kind: import("@metamask/superstruct").Struct<"sell" | "buy", {
575
- sell: "sell";
576
- buy: "buy";
577
- }>;
578
- /**
579
- * Whether the order can be partially filled.
580
- */
581
- partiallyFillable: import("@metamask/superstruct").Struct<boolean, null>;
582
- /**
583
- * Exact amount of the sell token.
584
- *
585
- * Required for `sell` orders.
586
- */
587
- sellAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
588
- /**
589
- * Exact amount of the buy token.
590
- *
591
- * Required for `buy` orders.
592
- */
593
- buyAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
594
- /**
595
- * Optional order owner / sender address.
596
- *
597
- * Provided for convenience when building the EIP-712 domain and message.
598
- */
599
- from: import("@metamask/superstruct").Struct<`0x${string}` | undefined, null>;
600
- }>;
601
- /**
602
- * Schema representing an intent submission payload.
603
- *
604
- * Wraps the intent order along with protocol and optional routing metadata
605
- * required by the backend or relayer infrastructure.
606
- */
607
- export declare const IntentSchema: import("@metamask/superstruct").Struct<{
608
- protocol: string;
609
- order: {
610
- sellToken: `0x${string}`;
611
- buyToken: `0x${string}`;
612
- validTo: string | number;
613
- appData: string;
614
- appDataHash: `0x${string}`;
615
- feeAmount: string;
616
- kind: "sell" | "buy";
617
- partiallyFillable: boolean;
618
- receiver?: `0x${string}` | undefined;
619
- sellAmount?: string | undefined;
620
- buyAmount?: string | undefined;
621
- from?: `0x${string}` | undefined;
622
- };
623
- typedData: {
624
- types: Record<string, {
625
- name: string;
626
- type: string;
627
- }[]>;
628
- primaryType: string;
629
- domain: Record<string, any>;
630
- message: Record<string, any>;
631
- };
632
- settlementContract?: `0x${string}` | undefined;
633
- }, {
634
- /**
635
- * Identifier of the intent protocol used to interpret the order.
636
- */
637
- protocol: import("@metamask/superstruct").Struct<string, null>;
638
- /**
639
- * The intent order to be signed and submitted.
640
- */
641
- order: import("@metamask/superstruct").Struct<{
642
- sellToken: `0x${string}`;
643
- buyToken: `0x${string}`;
644
- validTo: string | number;
645
- appData: string;
646
- appDataHash: `0x${string}`;
647
- feeAmount: string;
648
- kind: "sell" | "buy";
649
- partiallyFillable: boolean;
650
- receiver?: `0x${string}` | undefined;
651
- sellAmount?: string | undefined;
652
- buyAmount?: string | undefined;
653
- from?: `0x${string}` | undefined;
654
- }, {
655
- /**
656
- * Address of the token being sold.
657
- */
658
- sellToken: import("@metamask/superstruct").Struct<`0x${string}`, null>;
659
- /**
660
- * Address of the token being bought.
661
- */
662
- buyToken: import("@metamask/superstruct").Struct<`0x${string}`, null>;
663
- /**
664
- * Optional receiver of the bought tokens.
665
- * If omitted, defaults to the signer / order owner.
666
- */
667
- receiver: import("@metamask/superstruct").Struct<`0x${string}` | undefined, null>;
668
- /**
669
- * Order expiration time.
670
- *
671
- * Can be provided as a UNIX timestamp in seconds, either as a number
672
- * or as a digit string, depending on provider requirements.
673
- */
674
- validTo: import("@metamask/superstruct").Struct<string | number, null>;
675
- /**
676
- * Arbitrary application-specific data attached to the order.
677
- */
678
- appData: import("@metamask/superstruct").Struct<string, null>;
679
- /**
680
- * Hash of the `appData` field, used for EIP-712 signing.
681
- */
682
- appDataHash: import("@metamask/superstruct").Struct<`0x${string}`, null>;
683
- /**
684
- * Fee amount paid for order execution, expressed as a digit string.
685
- */
686
- feeAmount: import("@metamask/superstruct").Struct<string, null>;
687
- /**
688
- * Order kind.
689
- *
690
- * - `sell`: exact sell amount, variable buy amount
691
- * - `buy`: exact buy amount, variable sell amount
692
- */
693
- kind: import("@metamask/superstruct").Struct<"sell" | "buy", {
694
- sell: "sell";
695
- buy: "buy";
696
- }>;
697
- /**
698
- * Whether the order can be partially filled.
699
- */
700
- partiallyFillable: import("@metamask/superstruct").Struct<boolean, null>;
701
- /**
702
- * Exact amount of the sell token.
703
- *
704
- * Required for `sell` orders.
705
- */
706
- sellAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
707
- /**
708
- * Exact amount of the buy token.
709
- *
710
- * Required for `buy` orders.
711
- */
712
- buyAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
713
- /**
714
- * Optional order owner / sender address.
715
- *
716
- * Provided for convenience when building the EIP-712 domain and message.
717
- */
718
- from: import("@metamask/superstruct").Struct<`0x${string}` | undefined, null>;
719
- }>;
720
- /**
721
- * Optional settlement contract address used for execution.
722
- */
723
- settlementContract: import("@metamask/superstruct").Struct<`0x${string}` | undefined, null>;
724
- /**
725
- * Optional EIP-712 typed data payload for signing.
726
- * Must be JSON-serializable and include required EIP-712 fields.
727
- */
728
- typedData: import("@metamask/superstruct").Struct<{
729
- types: Record<string, {
730
- name: string;
731
- type: string;
732
- }[]>;
733
- primaryType: string;
734
- domain: Record<string, any>;
735
- message: Record<string, any>;
736
- }, {
737
- types: import("@metamask/superstruct").Struct<Record<string, {
738
- name: string;
739
- type: string;
740
- }[]>, null>;
741
- primaryType: import("@metamask/superstruct").Struct<string, null>;
742
- domain: import("@metamask/superstruct").Struct<Record<string, any>, null>;
743
- message: import("@metamask/superstruct").Struct<Record<string, any>, null>;
744
- }>;
745
- }>;
746
- export declare const TxFeeGasLimitsSchema: import("@metamask/superstruct").Struct<{
747
- maxFeePerGas: string;
748
- maxPriorityFeePerGas: string;
749
- }, {
750
- maxFeePerGas: import("@metamask/superstruct").Struct<string, null>;
751
- maxPriorityFeePerGas: import("@metamask/superstruct").Struct<string, null>;
752
- }>;
753
- export declare const GaslessPropertiesSchema: import("@metamask/superstruct").Struct<{
754
- gasIncluded?: boolean | undefined;
755
- gasIncluded7702?: boolean | undefined;
756
- gasSponsored?: boolean | undefined;
757
- }, {
758
- gasIncluded: import("@metamask/superstruct").Struct<boolean | undefined, null>;
759
- /**
760
- * Whether the quote can use EIP-7702 delegated gasless execution
761
- */
762
- gasIncluded7702: import("@metamask/superstruct").Struct<boolean | undefined, null>;
763
- /**
764
- * A third party sponsors the gas. If true, then gasIncluded7702 is also true.
765
- */
766
- gasSponsored: import("@metamask/superstruct").Struct<boolean | undefined, null>;
767
- }>;
768
- export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
769
- gasIncluded?: boolean | undefined;
770
- gasIncluded7702?: boolean | undefined;
771
- gasSponsored?: boolean | undefined;
772
- } & {
773
- srcChainId: number;
774
- destChainId: number;
775
- srcAsset: {
776
- symbol: string;
777
- chainId: number;
778
- address: string;
779
- assetId: `${string}:${string}/${string}:${string}`;
780
- name: string;
781
- decimals: number;
782
- icon?: string | null | undefined;
783
- iconUrl?: string | null | undefined;
784
- };
785
- destAsset: {
786
- symbol: string;
787
- chainId: number;
788
- address: string;
789
- assetId: `${string}:${string}/${string}:${string}`;
790
- name: string;
791
- decimals: number;
792
- icon?: string | null | undefined;
793
- iconUrl?: string | null | undefined;
794
- };
795
- requestId: string;
796
- srcTokenAmount: string;
797
- destTokenAmount: string;
798
- minDestTokenAmount: string;
799
- feeData: {
800
- metabridge: {
801
- amount: string;
802
- asset: {
803
- symbol: string;
804
- chainId: number;
805
- address: string;
806
- assetId: `${string}:${string}/${string}:${string}`;
807
- name: string;
808
- decimals: number;
809
- icon?: string | null | undefined;
810
- iconUrl?: string | null | undefined;
811
- };
812
- discountType?: string | null | undefined;
813
- };
814
- txFee?: ({
815
- amount: string;
816
- asset: {
817
- symbol: string;
818
- chainId: number;
819
- address: string;
820
- assetId: `${string}:${string}/${string}:${string}`;
821
- name: string;
822
- decimals: number;
823
- icon?: string | null | undefined;
824
- iconUrl?: string | null | undefined;
825
- };
826
- discountType?: string | null | undefined;
827
- } & {
828
- maxFeePerGas: string;
829
- maxPriorityFeePerGas: string;
830
- }) | undefined;
831
- };
832
- bridgeId: string;
833
- bridges: string[];
834
- steps: {
835
- action: ActionTypes;
836
- srcChainId: number;
837
- srcAsset: {
838
- symbol: string;
839
- chainId: number;
840
- address: string;
841
- assetId: `${string}:${string}/${string}:${string}`;
842
- name: string;
843
- decimals: number;
844
- icon?: string | null | undefined;
845
- iconUrl?: string | null | undefined;
846
- };
847
- destAsset: {
848
- symbol: string;
849
- chainId: number;
850
- address: string;
851
- assetId: `${string}:${string}/${string}:${string}`;
852
- name: string;
853
- decimals: number;
854
- icon?: string | null | undefined;
855
- iconUrl?: string | null | undefined;
856
- };
857
- srcAmount: string;
858
- destAmount: string;
859
- protocol: {
860
- name: string;
861
- icon?: string | undefined;
862
- displayName?: string | undefined;
863
- };
864
- destChainId?: number | undefined;
865
- }[];
866
- refuel?: {
867
- action: ActionTypes;
868
- srcChainId: number;
869
- srcAsset: {
870
- symbol: string;
871
- chainId: number;
872
- address: string;
873
- assetId: `${string}:${string}/${string}:${string}`;
874
- name: string;
875
- decimals: number;
876
- icon?: string | null | undefined;
877
- iconUrl?: string | null | undefined;
878
- };
879
- destAsset: {
880
- symbol: string;
881
- chainId: number;
882
- address: string;
883
- assetId: `${string}:${string}/${string}:${string}`;
884
- name: string;
885
- decimals: number;
886
- icon?: string | null | undefined;
887
- iconUrl?: string | null | undefined;
888
- };
889
- srcAmount: string;
890
- destAmount: string;
891
- protocol: {
892
- name: string;
893
- icon?: string | undefined;
894
- displayName?: string | undefined;
895
- };
896
- destChainId?: number | undefined;
897
- } | undefined;
898
- priceData?: {
899
- totalFromAmountUsd?: string | undefined;
900
- totalToAmountUsd?: string | undefined;
901
- priceImpact?: string | undefined;
902
- totalFeeAmountUsd?: string | undefined;
903
- } | undefined;
904
- intent?: {
905
- protocol: string;
906
- order: {
907
- sellToken: `0x${string}`;
908
- buyToken: `0x${string}`;
909
- validTo: string | number;
910
- appData: string;
911
- appDataHash: `0x${string}`;
912
- feeAmount: string;
913
- kind: "sell" | "buy";
914
- partiallyFillable: boolean;
915
- receiver?: `0x${string}` | undefined;
916
- sellAmount?: string | undefined;
917
- buyAmount?: string | undefined;
918
- from?: `0x${string}` | undefined;
919
- };
920
- typedData: {
921
- types: Record<string, {
922
- name: string;
923
- type: string;
924
- }[]>;
925
- primaryType: string;
926
- domain: Record<string, any>;
927
- message: Record<string, any>;
928
- };
929
- settlementContract?: `0x${string}` | undefined;
930
- } | undefined;
931
- }, null>;
932
- export declare const TxDataSchema: import("@metamask/superstruct").Struct<{
933
- chainId: number;
934
- from: `0x${string}`;
935
- to: `0x${string}`;
936
- value: `0x${string}`;
937
- data: `0x${string}`;
938
- gasLimit: number | null;
939
- effectiveGas?: number | undefined;
940
- }, {
941
- chainId: import("@metamask/superstruct").Struct<number, null>;
942
- to: import("@metamask/superstruct").Struct<`0x${string}`, null>;
943
- from: import("@metamask/superstruct").Struct<`0x${string}`, null>;
944
- value: import("@metamask/superstruct").Struct<`0x${string}`, null>;
945
- data: import("@metamask/superstruct").Struct<`0x${string}`, null>;
946
- gasLimit: import("@metamask/superstruct").Struct<number | null, null>;
947
- effectiveGas: import("@metamask/superstruct").Struct<number | undefined, null>;
948
- }>;
949
- export declare const BitcoinTradeDataSchema: import("@metamask/superstruct").Struct<{
950
- unsignedPsbtBase64: string;
951
- inputsToSign: {}[] | null;
952
- }, {
953
- unsignedPsbtBase64: import("@metamask/superstruct").Struct<string, null>;
954
- inputsToSign: import("@metamask/superstruct").Struct<{}[] | null, import("@metamask/superstruct").Struct<{}, {}>>;
955
- }>;
956
- export declare const TronTradeDataSchema: import("@metamask/superstruct").Struct<{
957
- raw_data_hex: string;
958
- visible?: boolean | undefined;
959
- raw_data?: {
960
- contract?: {
961
- type?: string | undefined;
962
- }[] | undefined;
963
- fee_limit?: number | undefined;
964
- } | null | undefined;
965
- }, {
966
- raw_data_hex: import("@metamask/superstruct").Struct<string, null>;
967
- visible: import("@metamask/superstruct").Struct<boolean | undefined, null>;
968
- raw_data: import("@metamask/superstruct").Struct<{
969
- contract?: {
970
- type?: string | undefined;
971
- }[] | undefined;
972
- fee_limit?: number | undefined;
973
- } | null | undefined, {
974
- contract: import("@metamask/superstruct").Struct<{
975
- type?: string | undefined;
976
- }[] | undefined, import("@metamask/superstruct").Struct<{
977
- type?: string | undefined;
978
- }, {
979
- type: import("@metamask/superstruct").Struct<string | undefined, null>;
980
- }>>;
981
- fee_limit: import("@metamask/superstruct").Struct<number | undefined, null>;
982
- }>;
983
- }>;
984
- /**
985
- * Stellar bridge quote: unsigned transaction envelope as XDR (base64).
986
- */
987
- export declare const StellarTradeDataSchema: import("@metamask/superstruct").Struct<{
988
- xdrBase64: string;
989
- } | {
990
- xdr: string;
991
- }, null>;
992
- export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct<{
993
- quote: {
994
- gasIncluded?: boolean | undefined;
995
- gasIncluded7702?: boolean | undefined;
996
- gasSponsored?: boolean | undefined;
997
- } & {
998
- srcChainId: number;
999
- destChainId: number;
1000
- srcAsset: {
1001
- symbol: string;
1002
- chainId: number;
1003
- address: string;
1004
- assetId: `${string}:${string}/${string}:${string}`;
1005
- name: string;
1006
- decimals: number;
1007
- icon?: string | null | undefined;
1008
- iconUrl?: string | null | undefined;
1009
- };
1010
- destAsset: {
1011
- symbol: string;
1012
- chainId: number;
1013
- address: string;
1014
- assetId: `${string}:${string}/${string}:${string}`;
1015
- name: string;
1016
- decimals: number;
1017
- icon?: string | null | undefined;
1018
- iconUrl?: string | null | undefined;
1019
- };
1020
- requestId: string;
1021
- srcTokenAmount: string;
1022
- destTokenAmount: string;
1023
- minDestTokenAmount: string;
1024
- feeData: {
1025
- metabridge: {
1026
- amount: string;
1027
- asset: {
1028
- symbol: string;
1029
- chainId: number;
1030
- address: string;
1031
- assetId: `${string}:${string}/${string}:${string}`;
1032
- name: string;
1033
- decimals: number;
1034
- icon?: string | null | undefined;
1035
- iconUrl?: string | null | undefined;
1036
- };
1037
- discountType?: string | null | undefined;
1038
- };
1039
- txFee?: ({
1040
- amount: string;
1041
- asset: {
1042
- symbol: string;
1043
- chainId: number;
1044
- address: string;
1045
- assetId: `${string}:${string}/${string}:${string}`;
1046
- name: string;
1047
- decimals: number;
1048
- icon?: string | null | undefined;
1049
- iconUrl?: string | null | undefined;
1050
- };
1051
- discountType?: string | null | undefined;
1052
- } & {
1053
- maxFeePerGas: string;
1054
- maxPriorityFeePerGas: string;
1055
- }) | undefined;
1056
- };
1057
- bridgeId: string;
1058
- bridges: string[];
1059
- steps: {
1060
- action: ActionTypes;
1061
- srcChainId: number;
1062
- srcAsset: {
1063
- symbol: string;
1064
- chainId: number;
1065
- address: string;
1066
- assetId: `${string}:${string}/${string}:${string}`;
1067
- name: string;
1068
- decimals: number;
1069
- icon?: string | null | undefined;
1070
- iconUrl?: string | null | undefined;
1071
- };
1072
- destAsset: {
1073
- symbol: string;
1074
- chainId: number;
1075
- address: string;
1076
- assetId: `${string}:${string}/${string}:${string}`;
1077
- name: string;
1078
- decimals: number;
1079
- icon?: string | null | undefined;
1080
- iconUrl?: string | null | undefined;
1081
- };
1082
- srcAmount: string;
1083
- destAmount: string;
1084
- protocol: {
1085
- name: string;
1086
- icon?: string | undefined;
1087
- displayName?: string | undefined;
1088
- };
1089
- destChainId?: number | undefined;
1090
- }[];
1091
- refuel?: {
1092
- action: ActionTypes;
1093
- srcChainId: number;
1094
- srcAsset: {
1095
- symbol: string;
1096
- chainId: number;
1097
- address: string;
1098
- assetId: `${string}:${string}/${string}:${string}`;
1099
- name: string;
1100
- decimals: number;
1101
- icon?: string | null | undefined;
1102
- iconUrl?: string | null | undefined;
1103
- };
1104
- destAsset: {
1105
- symbol: string;
1106
- chainId: number;
1107
- address: string;
1108
- assetId: `${string}:${string}/${string}:${string}`;
1109
- name: string;
1110
- decimals: number;
1111
- icon?: string | null | undefined;
1112
- iconUrl?: string | null | undefined;
1113
- };
1114
- srcAmount: string;
1115
- destAmount: string;
1116
- protocol: {
1117
- name: string;
1118
- icon?: string | undefined;
1119
- displayName?: string | undefined;
1120
- };
1121
- destChainId?: number | undefined;
1122
- } | undefined;
1123
- priceData?: {
1124
- totalFromAmountUsd?: string | undefined;
1125
- totalToAmountUsd?: string | undefined;
1126
- priceImpact?: string | undefined;
1127
- totalFeeAmountUsd?: string | undefined;
1128
- } | undefined;
1129
- intent?: {
1130
- protocol: string;
1131
- order: {
1132
- sellToken: `0x${string}`;
1133
- buyToken: `0x${string}`;
1134
- validTo: string | number;
1135
- appData: string;
1136
- appDataHash: `0x${string}`;
1137
- feeAmount: string;
1138
- kind: "sell" | "buy";
1139
- partiallyFillable: boolean;
1140
- receiver?: `0x${string}` | undefined;
1141
- sellAmount?: string | undefined;
1142
- buyAmount?: string | undefined;
1143
- from?: `0x${string}` | undefined;
1144
- };
1145
- typedData: {
1146
- types: Record<string, {
1147
- name: string;
1148
- type: string;
1149
- }[]>;
1150
- primaryType: string;
1151
- domain: Record<string, any>;
1152
- message: Record<string, any>;
1153
- };
1154
- settlementContract?: `0x${string}` | undefined;
1155
- } | undefined;
1156
- };
1157
- estimatedProcessingTimeInSeconds: number;
1158
- trade: string | {
1159
- chainId: number;
1160
- from: `0x${string}`;
1161
- to: `0x${string}`;
1162
- value: `0x${string}`;
1163
- data: `0x${string}`;
1164
- gasLimit: number | null;
1165
- effectiveGas?: number | undefined;
1166
- } | {
1167
- unsignedPsbtBase64: string;
1168
- inputsToSign: {}[] | null;
1169
- } | {
1170
- raw_data_hex: string;
1171
- visible?: boolean | undefined;
1172
- raw_data?: {
1173
- contract?: {
1174
- type?: string | undefined;
1175
- }[] | undefined;
1176
- fee_limit?: number | undefined;
1177
- } | null | undefined;
1178
- } | {
1179
- xdrBase64: string;
1180
- } | {
1181
- xdr: string;
1182
- };
1183
- quoteId?: string | undefined;
1184
- approval?: {
1185
- chainId: number;
1186
- from: `0x${string}`;
1187
- to: `0x${string}`;
1188
- value: `0x${string}`;
1189
- data: `0x${string}`;
1190
- gasLimit: number | null;
1191
- effectiveGas?: number | undefined;
1192
- } | {
1193
- raw_data_hex: string;
1194
- visible?: boolean | undefined;
1195
- raw_data?: {
1196
- contract?: {
1197
- type?: string | undefined;
1198
- }[] | undefined;
1199
- fee_limit?: number | undefined;
1200
- } | null | undefined;
1201
- } | undefined;
1202
- }, {
1203
- quoteId: import("@metamask/superstruct").Struct<string | undefined, null>;
1204
- quote: import("@metamask/superstruct").Struct<{
1205
- gasIncluded?: boolean | undefined;
1206
- gasIncluded7702?: boolean | undefined;
1207
- gasSponsored?: boolean | undefined;
1208
- } & {
1209
- srcChainId: number;
1210
- destChainId: number;
1211
- srcAsset: {
1212
- symbol: string;
1213
- chainId: number;
1214
- address: string;
1215
- assetId: `${string}:${string}/${string}:${string}`;
1216
- name: string;
1217
- decimals: number;
1218
- icon?: string | null | undefined;
1219
- iconUrl?: string | null | undefined;
1220
- };
1221
- destAsset: {
1222
- symbol: string;
1223
- chainId: number;
1224
- address: string;
1225
- assetId: `${string}:${string}/${string}:${string}`;
1226
- name: string;
1227
- decimals: number;
1228
- icon?: string | null | undefined;
1229
- iconUrl?: string | null | undefined;
1230
- };
1231
- requestId: string;
1232
- srcTokenAmount: string;
1233
- destTokenAmount: string;
1234
- minDestTokenAmount: string;
1235
- feeData: {
1236
- metabridge: {
1237
- amount: string;
1238
- asset: {
1239
- symbol: string;
1240
- chainId: number;
1241
- address: string;
1242
- assetId: `${string}:${string}/${string}:${string}`;
1243
- name: string;
1244
- decimals: number;
1245
- icon?: string | null | undefined;
1246
- iconUrl?: string | null | undefined;
1247
- };
1248
- discountType?: string | null | undefined;
1249
- };
1250
- txFee?: ({
1251
- amount: string;
1252
- asset: {
1253
- symbol: string;
1254
- chainId: number;
1255
- address: string;
1256
- assetId: `${string}:${string}/${string}:${string}`;
1257
- name: string;
1258
- decimals: number;
1259
- icon?: string | null | undefined;
1260
- iconUrl?: string | null | undefined;
1261
- };
1262
- discountType?: string | null | undefined;
1263
- } & {
1264
- maxFeePerGas: string;
1265
- maxPriorityFeePerGas: string;
1266
- }) | undefined;
1267
- };
1268
- bridgeId: string;
1269
- bridges: string[];
1270
- steps: {
1271
- action: ActionTypes;
1272
- srcChainId: number;
1273
- srcAsset: {
1274
- symbol: string;
1275
- chainId: number;
1276
- address: string;
1277
- assetId: `${string}:${string}/${string}:${string}`;
1278
- name: string;
1279
- decimals: number;
1280
- icon?: string | null | undefined;
1281
- iconUrl?: string | null | undefined;
1282
- };
1283
- destAsset: {
1284
- symbol: string;
1285
- chainId: number;
1286
- address: string;
1287
- assetId: `${string}:${string}/${string}:${string}`;
1288
- name: string;
1289
- decimals: number;
1290
- icon?: string | null | undefined;
1291
- iconUrl?: string | null | undefined;
1292
- };
1293
- srcAmount: string;
1294
- destAmount: string;
1295
- protocol: {
1296
- name: string;
1297
- icon?: string | undefined;
1298
- displayName?: string | undefined;
1299
- };
1300
- destChainId?: number | undefined;
1301
- }[];
1302
- refuel?: {
1303
- action: ActionTypes;
1304
- srcChainId: number;
1305
- srcAsset: {
1306
- symbol: string;
1307
- chainId: number;
1308
- address: string;
1309
- assetId: `${string}:${string}/${string}:${string}`;
1310
- name: string;
1311
- decimals: number;
1312
- icon?: string | null | undefined;
1313
- iconUrl?: string | null | undefined;
1314
- };
1315
- destAsset: {
1316
- symbol: string;
1317
- chainId: number;
1318
- address: string;
1319
- assetId: `${string}:${string}/${string}:${string}`;
1320
- name: string;
1321
- decimals: number;
1322
- icon?: string | null | undefined;
1323
- iconUrl?: string | null | undefined;
1324
- };
1325
- srcAmount: string;
1326
- destAmount: string;
1327
- protocol: {
1328
- name: string;
1329
- icon?: string | undefined;
1330
- displayName?: string | undefined;
1331
- };
1332
- destChainId?: number | undefined;
1333
- } | undefined;
1334
- priceData?: {
1335
- totalFromAmountUsd?: string | undefined;
1336
- totalToAmountUsd?: string | undefined;
1337
- priceImpact?: string | undefined;
1338
- totalFeeAmountUsd?: string | undefined;
1339
- } | undefined;
1340
- intent?: {
1341
- protocol: string;
1342
- order: {
1343
- sellToken: `0x${string}`;
1344
- buyToken: `0x${string}`;
1345
- validTo: string | number;
1346
- appData: string;
1347
- appDataHash: `0x${string}`;
1348
- feeAmount: string;
1349
- kind: "sell" | "buy";
1350
- partiallyFillable: boolean;
1351
- receiver?: `0x${string}` | undefined;
1352
- sellAmount?: string | undefined;
1353
- buyAmount?: string | undefined;
1354
- from?: `0x${string}` | undefined;
1355
- };
1356
- typedData: {
1357
- types: Record<string, {
1358
- name: string;
1359
- type: string;
1360
- }[]>;
1361
- primaryType: string;
1362
- domain: Record<string, any>;
1363
- message: Record<string, any>;
1364
- };
1365
- settlementContract?: `0x${string}` | undefined;
1366
- } | undefined;
1367
- }, null>;
1368
- estimatedProcessingTimeInSeconds: import("@metamask/superstruct").Struct<number, null>;
1369
- approval: import("@metamask/superstruct").Struct<{
1370
- chainId: number;
1371
- from: `0x${string}`;
1372
- to: `0x${string}`;
1373
- value: `0x${string}`;
1374
- data: `0x${string}`;
1375
- gasLimit: number | null;
1376
- effectiveGas?: number | undefined;
1377
- } | {
1378
- raw_data_hex: string;
1379
- visible?: boolean | undefined;
1380
- raw_data?: {
1381
- contract?: {
1382
- type?: string | undefined;
1383
- }[] | undefined;
1384
- fee_limit?: number | undefined;
1385
- } | null | undefined;
1386
- } | undefined, null>;
1387
- trade: import("@metamask/superstruct").Struct<string | {
1388
- chainId: number;
1389
- from: `0x${string}`;
1390
- to: `0x${string}`;
1391
- value: `0x${string}`;
1392
- data: `0x${string}`;
1393
- gasLimit: number | null;
1394
- effectiveGas?: number | undefined;
1395
- } | {
1396
- unsignedPsbtBase64: string;
1397
- inputsToSign: {}[] | null;
1398
- } | {
1399
- raw_data_hex: string;
1400
- visible?: boolean | undefined;
1401
- raw_data?: {
1402
- contract?: {
1403
- type?: string | undefined;
1404
- }[] | undefined;
1405
- fee_limit?: number | undefined;
1406
- } | null | undefined;
1407
- } | {
1408
- xdrBase64: string;
1409
- } | {
1410
- xdr: string;
1411
- }, null>;
1412
- }>;
1413
- export declare const validateQuoteResponseV1: (data: unknown) => data is {
1414
- quote: {
1415
- gasIncluded?: boolean | undefined;
1416
- gasIncluded7702?: boolean | undefined;
1417
- gasSponsored?: boolean | undefined;
1418
- } & {
1419
- srcChainId: number;
1420
- destChainId: number;
1421
- srcAsset: {
1422
- symbol: string;
1423
- chainId: number;
1424
- address: string;
1425
- assetId: `${string}:${string}/${string}:${string}`;
1426
- name: string;
1427
- decimals: number;
1428
- icon?: string | null | undefined;
1429
- iconUrl?: string | null | undefined;
1430
- };
1431
- destAsset: {
1432
- symbol: string;
1433
- chainId: number;
1434
- address: string;
1435
- assetId: `${string}:${string}/${string}:${string}`;
1436
- name: string;
1437
- decimals: number;
1438
- icon?: string | null | undefined;
1439
- iconUrl?: string | null | undefined;
1440
- };
1441
- requestId: string;
1442
- srcTokenAmount: string;
1443
- destTokenAmount: string;
1444
- minDestTokenAmount: string;
1445
- feeData: {
1446
- metabridge: {
1447
- amount: string;
1448
- asset: {
1449
- symbol: string;
1450
- chainId: number;
1451
- address: string;
1452
- assetId: `${string}:${string}/${string}:${string}`;
1453
- name: string;
1454
- decimals: number;
1455
- icon?: string | null | undefined;
1456
- iconUrl?: string | null | undefined;
1457
- };
1458
- discountType?: string | null | undefined;
1459
- };
1460
- txFee?: ({
1461
- amount: string;
1462
- asset: {
1463
- symbol: string;
1464
- chainId: number;
1465
- address: string;
1466
- assetId: `${string}:${string}/${string}:${string}`;
1467
- name: string;
1468
- decimals: number;
1469
- icon?: string | null | undefined;
1470
- iconUrl?: string | null | undefined;
1471
- };
1472
- discountType?: string | null | undefined;
1473
- } & {
1474
- maxFeePerGas: string;
1475
- maxPriorityFeePerGas: string;
1476
- }) | undefined;
1477
- };
1478
- bridgeId: string;
1479
- bridges: string[];
1480
- steps: {
1481
- action: ActionTypes;
1482
- srcChainId: number;
1483
- srcAsset: {
1484
- symbol: string;
1485
- chainId: number;
1486
- address: string;
1487
- assetId: `${string}:${string}/${string}:${string}`;
1488
- name: string;
1489
- decimals: number;
1490
- icon?: string | null | undefined;
1491
- iconUrl?: string | null | undefined;
1492
- };
1493
- destAsset: {
1494
- symbol: string;
1495
- chainId: number;
1496
- address: string;
1497
- assetId: `${string}:${string}/${string}:${string}`;
1498
- name: string;
1499
- decimals: number;
1500
- icon?: string | null | undefined;
1501
- iconUrl?: string | null | undefined;
1502
- };
1503
- srcAmount: string;
1504
- destAmount: string;
1505
- protocol: {
1506
- name: string;
1507
- icon?: string | undefined;
1508
- displayName?: string | undefined;
1509
- };
1510
- destChainId?: number | undefined;
1511
- }[];
1512
- refuel?: {
1513
- action: ActionTypes;
1514
- srcChainId: number;
1515
- srcAsset: {
1516
- symbol: string;
1517
- chainId: number;
1518
- address: string;
1519
- assetId: `${string}:${string}/${string}:${string}`;
1520
- name: string;
1521
- decimals: number;
1522
- icon?: string | null | undefined;
1523
- iconUrl?: string | null | undefined;
1524
- };
1525
- destAsset: {
1526
- symbol: string;
1527
- chainId: number;
1528
- address: string;
1529
- assetId: `${string}:${string}/${string}:${string}`;
1530
- name: string;
1531
- decimals: number;
1532
- icon?: string | null | undefined;
1533
- iconUrl?: string | null | undefined;
1534
- };
1535
- srcAmount: string;
1536
- destAmount: string;
1537
- protocol: {
1538
- name: string;
1539
- icon?: string | undefined;
1540
- displayName?: string | undefined;
1541
- };
1542
- destChainId?: number | undefined;
1543
- } | undefined;
1544
- priceData?: {
1545
- totalFromAmountUsd?: string | undefined;
1546
- totalToAmountUsd?: string | undefined;
1547
- priceImpact?: string | undefined;
1548
- totalFeeAmountUsd?: string | undefined;
1549
- } | undefined;
1550
- intent?: {
1551
- protocol: string;
1552
- order: {
1553
- sellToken: `0x${string}`;
1554
- buyToken: `0x${string}`;
1555
- validTo: string | number;
1556
- appData: string;
1557
- appDataHash: `0x${string}`;
1558
- feeAmount: string;
1559
- kind: "sell" | "buy";
1560
- partiallyFillable: boolean;
1561
- receiver?: `0x${string}` | undefined;
1562
- sellAmount?: string | undefined;
1563
- buyAmount?: string | undefined;
1564
- from?: `0x${string}` | undefined;
1565
- };
1566
- typedData: {
1567
- types: Record<string, {
1568
- name: string;
1569
- type: string;
1570
- }[]>;
1571
- primaryType: string;
1572
- domain: Record<string, any>;
1573
- message: Record<string, any>;
1574
- };
1575
- settlementContract?: `0x${string}` | undefined;
1576
- } | undefined;
1577
- };
1578
- estimatedProcessingTimeInSeconds: number;
1579
- trade: string | {
1580
- chainId: number;
1581
- from: `0x${string}`;
1582
- to: `0x${string}`;
1583
- value: `0x${string}`;
1584
- data: `0x${string}`;
1585
- gasLimit: number | null;
1586
- effectiveGas?: number | undefined;
1587
- } | {
1588
- unsignedPsbtBase64: string;
1589
- inputsToSign: {}[] | null;
1590
- } | {
1591
- raw_data_hex: string;
1592
- visible?: boolean | undefined;
1593
- raw_data?: {
1594
- contract?: {
1595
- type?: string | undefined;
1596
- }[] | undefined;
1597
- fee_limit?: number | undefined;
1598
- } | null | undefined;
1599
- } | {
1600
- xdrBase64: string;
1601
- } | {
1602
- xdr: string;
1603
- };
1604
- quoteId?: string | undefined;
1605
- approval?: {
1606
- chainId: number;
1607
- from: `0x${string}`;
1608
- to: `0x${string}`;
1609
- value: `0x${string}`;
1610
- data: `0x${string}`;
1611
- gasLimit: number | null;
1612
- effectiveGas?: number | undefined;
1613
- } | {
1614
- raw_data_hex: string;
1615
- visible?: boolean | undefined;
1616
- raw_data?: {
1617
- contract?: {
1618
- type?: string | undefined;
1619
- }[] | undefined;
1620
- fee_limit?: number | undefined;
1621
- } | null | undefined;
1622
- } | undefined;
1623
- };
1624
- export declare enum TokenFeatureType {
1625
- MALICIOUS = "Malicious",
1626
- WARNING = "Warning",
1627
- INFO = "Info",
1628
- BENIGN = "Benign"
1629
- }
1630
- export declare const TokenFeatureSchema: import("@metamask/superstruct").Struct<{
1631
- type: TokenFeatureType;
1632
- feature_id: string;
1633
- description: string;
1634
- }, {
1635
- feature_id: import("@metamask/superstruct").Struct<string, null>;
1636
- type: import("@metamask/superstruct").Struct<TokenFeatureType, {
1637
- Malicious: TokenFeatureType.MALICIOUS;
1638
- Warning: TokenFeatureType.WARNING;
1639
- Info: TokenFeatureType.INFO;
1640
- Benign: TokenFeatureType.BENIGN;
1641
- }>;
1642
- description: import("@metamask/superstruct").Struct<string, null>;
1643
- }>;
1644
- export declare const validateTokenFeature: (data: unknown) => data is {
1645
- type: TokenFeatureType;
1646
- feature_id: string;
1647
- description: string;
1648
- };
1649
- export declare enum QuoteStreamCompleteReason {
1650
- RETRY = "RETRY",
1651
- AMOUNT_TOO_HIGH = "AMOUNT_TOO_HIGH",
1652
- AMOUNT_TOO_LOW = "AMOUNT_TOO_LOW",
1653
- SLIPPAGE_TOO_HIGH = "SLIPPAGE_TOO_HIGH",
1654
- SLIPPAGE_TOO_LOW = "SLIPPAGE_TOO_LOW",
1655
- TOKEN_NOT_SUPPORTED = "TOKEN_NOT_SUPPORTED",
1656
- RWA_GEO_RESTRICTED = "RWA_GEO_RESTRICTED",
1657
- RWA_NATIVE_TOKEN_UNSUPPORTED = "RWA_NATIVE_TOKEN_UNSUPPORTED",
1658
- RWA_MARKET_UNAVAILABLE = "RWA_MARKET_UNAVAILABLE"
1659
- }
1660
- export declare const QuoteStreamCompleteSchema: import("@metamask/superstruct").Struct<{
1661
- quoteCount: number;
1662
- hasQuotes: boolean;
1663
- reason?: QuoteStreamCompleteReason | undefined;
1664
- context?: Record<string, any> | undefined;
1665
- }, {
1666
- quoteCount: import("@metamask/superstruct").Struct<number, null>;
1667
- hasQuotes: import("@metamask/superstruct").Struct<boolean, null>;
1668
- reason: import("@metamask/superstruct").Struct<QuoteStreamCompleteReason | undefined, {
1669
- RETRY: QuoteStreamCompleteReason.RETRY;
1670
- AMOUNT_TOO_HIGH: QuoteStreamCompleteReason.AMOUNT_TOO_HIGH;
1671
- AMOUNT_TOO_LOW: QuoteStreamCompleteReason.AMOUNT_TOO_LOW;
1672
- SLIPPAGE_TOO_HIGH: QuoteStreamCompleteReason.SLIPPAGE_TOO_HIGH;
1673
- SLIPPAGE_TOO_LOW: QuoteStreamCompleteReason.SLIPPAGE_TOO_LOW;
1674
- TOKEN_NOT_SUPPORTED: QuoteStreamCompleteReason.TOKEN_NOT_SUPPORTED;
1675
- RWA_GEO_RESTRICTED: QuoteStreamCompleteReason.RWA_GEO_RESTRICTED;
1676
- RWA_NATIVE_TOKEN_UNSUPPORTED: QuoteStreamCompleteReason.RWA_NATIVE_TOKEN_UNSUPPORTED;
1677
- RWA_MARKET_UNAVAILABLE: QuoteStreamCompleteReason.RWA_MARKET_UNAVAILABLE;
1678
- }>;
1679
- context: import("@metamask/superstruct").Struct<Record<string, any> | undefined, null>;
1680
- }>;
1681
- export declare const validateQuoteStreamComplete: (data: unknown) => data is {
1682
- quoteCount: number;
1683
- hasQuotes: boolean;
1684
- reason?: QuoteStreamCompleteReason | undefined;
1685
- context?: Record<string, any> | undefined;
1686
- };
1687
- export declare enum BatchSellTransactionType {
1688
- TRADE = "trade",
1689
- APPROVAL = "approval",
1690
- TRANSFER = "transfer"
1691
- }
1692
- export declare const SimulatedGasFeeLimitsSchema: import("@metamask/superstruct").Struct<{
1693
- maxFeePerGas: `0x${string}`;
1694
- maxPriorityFeePerGas: `0x${string}`;
1695
- }, {
1696
- maxFeePerGas: import("@metamask/superstruct").Struct<`0x${string}`, null>;
1697
- maxPriorityFeePerGas: import("@metamask/superstruct").Struct<`0x${string}`, null>;
1698
- }>;
1699
- export declare const BatchSellTradesResponseSchema: import("@metamask/superstruct").Struct<{
1700
- transactions: ({
1701
- chainId: number;
1702
- from: `0x${string}`;
1703
- to: `0x${string}`;
1704
- value: `0x${string}`;
1705
- data: `0x${string}`;
1706
- gasLimit: number | null;
1707
- effectiveGas?: number | undefined;
1708
- } & {
1709
- maxFeePerGas: `0x${string}`;
1710
- maxPriorityFeePerGas: `0x${string}`;
1711
- } & {
1712
- type: BatchSellTransactionType;
1713
- })[];
1714
- fee?: {
1715
- amount: string;
1716
- asset: {
1717
- symbol: string;
1718
- chainId: number;
1719
- address: string;
1720
- assetId: `${string}:${string}/${string}:${string}`;
1721
- name: string;
1722
- decimals: number;
1723
- icon?: string | null | undefined;
1724
- iconUrl?: string | null | undefined;
1725
- };
1726
- } | undefined;
1727
- } & {
1728
- gasIncluded?: boolean | undefined;
1729
- gasIncluded7702?: boolean | undefined;
1730
- gasSponsored?: boolean | undefined;
1731
- }, null>;
1732
- export declare const validateBatchSellTradesResponse: (data: unknown) => data is {
1733
- transactions: ({
1734
- chainId: number;
1735
- from: `0x${string}`;
1736
- to: `0x${string}`;
1737
- value: `0x${string}`;
1738
- data: `0x${string}`;
1739
- gasLimit: number | null;
1740
- effectiveGas?: number | undefined;
1741
- } & {
1742
- maxFeePerGas: `0x${string}`;
1743
- maxPriorityFeePerGas: `0x${string}`;
1744
- } & {
1745
- type: BatchSellTransactionType;
1746
- })[];
1747
- fee?: {
1748
- amount: string;
1749
- asset: {
1750
- symbol: string;
1751
- chainId: number;
1752
- address: string;
1753
- assetId: `${string}:${string}/${string}:${string}`;
1754
- name: string;
1755
- decimals: number;
1756
- icon?: string | null | undefined;
1757
- iconUrl?: string | null | undefined;
1758
- };
1759
- } | undefined;
1760
- } & {
1761
- gasIncluded?: boolean | undefined;
1762
- gasIncluded7702?: boolean | undefined;
1763
- gasSponsored?: boolean | undefined;
1764
- };
1765
- //# sourceMappingURL=validators.d.cts.map