@metamask/bridge-controller 53.0.0 → 53.1.0

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 (84) hide show
  1. package/CHANGELOG.md +19 -1
  2. package/dist/bridge-controller.cjs +2 -2
  3. package/dist/bridge-controller.cjs.map +1 -1
  4. package/dist/bridge-controller.mjs +2 -2
  5. package/dist/bridge-controller.mjs.map +1 -1
  6. package/dist/constants/bridge.cjs +1 -0
  7. package/dist/constants/bridge.cjs.map +1 -1
  8. package/dist/constants/bridge.d.cts +1 -1
  9. package/dist/constants/bridge.d.cts.map +1 -1
  10. package/dist/constants/bridge.d.mts +1 -1
  11. package/dist/constants/bridge.d.mts.map +1 -1
  12. package/dist/constants/bridge.mjs +1 -0
  13. package/dist/constants/bridge.mjs.map +1 -1
  14. package/dist/constants/chains.cjs +4 -1
  15. package/dist/constants/chains.cjs.map +1 -1
  16. package/dist/constants/chains.d.cts +3 -0
  17. package/dist/constants/chains.d.cts.map +1 -1
  18. package/dist/constants/chains.d.mts +3 -0
  19. package/dist/constants/chains.d.mts.map +1 -1
  20. package/dist/constants/chains.mjs +3 -0
  21. package/dist/constants/chains.mjs.map +1 -1
  22. package/dist/constants/tokens.cjs +10 -0
  23. package/dist/constants/tokens.cjs.map +1 -1
  24. package/dist/constants/tokens.d.cts +7 -0
  25. package/dist/constants/tokens.d.cts.map +1 -1
  26. package/dist/constants/tokens.d.mts +7 -0
  27. package/dist/constants/tokens.d.mts.map +1 -1
  28. package/dist/constants/tokens.mjs +10 -0
  29. package/dist/constants/tokens.mjs.map +1 -1
  30. package/dist/selectors.cjs +1 -1
  31. package/dist/selectors.cjs.map +1 -1
  32. package/dist/selectors.d.cts +258 -222
  33. package/dist/selectors.d.cts.map +1 -1
  34. package/dist/selectors.d.mts +258 -222
  35. package/dist/selectors.d.mts.map +1 -1
  36. package/dist/selectors.mjs +2 -2
  37. package/dist/selectors.mjs.map +1 -1
  38. package/dist/types.cjs.map +1 -1
  39. package/dist/types.d.cts +3 -2
  40. package/dist/types.d.cts.map +1 -1
  41. package/dist/types.d.mts +3 -2
  42. package/dist/types.d.mts.map +1 -1
  43. package/dist/types.mjs.map +1 -1
  44. package/dist/utils/bridge.cjs +5 -1
  45. package/dist/utils/bridge.cjs.map +1 -1
  46. package/dist/utils/bridge.d.cts +10 -1
  47. package/dist/utils/bridge.d.cts.map +1 -1
  48. package/dist/utils/bridge.d.mts +10 -1
  49. package/dist/utils/bridge.d.mts.map +1 -1
  50. package/dist/utils/bridge.mjs +3 -0
  51. package/dist/utils/bridge.mjs.map +1 -1
  52. package/dist/utils/fetch-server-events.cjs +61 -0
  53. package/dist/utils/fetch-server-events.cjs.map +1 -0
  54. package/dist/utils/fetch-server-events.d.cts +17 -0
  55. package/dist/utils/fetch-server-events.d.cts.map +1 -0
  56. package/dist/utils/fetch-server-events.d.mts +17 -0
  57. package/dist/utils/fetch-server-events.d.mts.map +1 -0
  58. package/dist/utils/fetch-server-events.mjs +57 -0
  59. package/dist/utils/fetch-server-events.mjs.map +1 -0
  60. package/dist/utils/fetch.cjs +14 -24
  61. package/dist/utils/fetch.cjs.map +1 -1
  62. package/dist/utils/fetch.d.cts.map +1 -1
  63. package/dist/utils/fetch.d.mts.map +1 -1
  64. package/dist/utils/fetch.mjs +15 -25
  65. package/dist/utils/fetch.mjs.map +1 -1
  66. package/dist/utils/quote-fees.cjs.map +1 -1
  67. package/dist/utils/quote-fees.mjs.map +1 -1
  68. package/dist/utils/quote.cjs +2 -1
  69. package/dist/utils/quote.cjs.map +1 -1
  70. package/dist/utils/quote.d.cts +3 -3
  71. package/dist/utils/quote.d.cts.map +1 -1
  72. package/dist/utils/quote.d.mts +3 -3
  73. package/dist/utils/quote.d.mts.map +1 -1
  74. package/dist/utils/quote.mjs +2 -1
  75. package/dist/utils/quote.mjs.map +1 -1
  76. package/dist/utils/validators.cjs +1 -12
  77. package/dist/utils/validators.cjs.map +1 -1
  78. package/dist/utils/validators.d.cts +0 -972
  79. package/dist/utils/validators.d.cts.map +1 -1
  80. package/dist/utils/validators.d.mts +0 -972
  81. package/dist/utils/validators.d.mts.map +1 -1
  82. package/dist/utils/validators.mjs +0 -10
  83. package/dist/utils/validators.mjs.map +1 -1
  84. package/package.json +1 -2
@@ -1941,829 +1941,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1941
1941
  inputsToSign: {}[] | null;
1942
1942
  }, null>;
1943
1943
  }>;
1944
- export declare const BitcoinQuoteResponseSchema: import("@metamask/superstruct").Struct<{
1945
- quote: {
1946
- requestId: string;
1947
- srcChainId: number;
1948
- destChainId: number;
1949
- srcAsset: {
1950
- symbol: string;
1951
- address: string;
1952
- name: string;
1953
- chainId: number;
1954
- decimals: number;
1955
- assetId: `${string}:${string}/${string}:${string}`;
1956
- iconUrl?: string | null | undefined;
1957
- icon?: string | null | undefined;
1958
- };
1959
- destAsset: {
1960
- symbol: string;
1961
- address: string;
1962
- name: string;
1963
- chainId: number;
1964
- decimals: number;
1965
- assetId: `${string}:${string}/${string}:${string}`;
1966
- iconUrl?: string | null | undefined;
1967
- icon?: string | null | undefined;
1968
- };
1969
- srcTokenAmount: string;
1970
- destTokenAmount: string;
1971
- minDestTokenAmount: string;
1972
- feeData: {
1973
- metabridge: {
1974
- amount: string;
1975
- asset: {
1976
- symbol: string;
1977
- address: string;
1978
- name: string;
1979
- chainId: number;
1980
- decimals: number;
1981
- assetId: `${string}:${string}/${string}:${string}`;
1982
- iconUrl?: string | null | undefined;
1983
- icon?: string | null | undefined;
1984
- };
1985
- };
1986
- txFee?: ({
1987
- amount: string;
1988
- asset: {
1989
- symbol: string;
1990
- address: string;
1991
- name: string;
1992
- chainId: number;
1993
- decimals: number;
1994
- assetId: `${string}:${string}/${string}:${string}`;
1995
- iconUrl?: string | null | undefined;
1996
- icon?: string | null | undefined;
1997
- };
1998
- } & {
1999
- maxPriorityFeePerGas: string;
2000
- maxFeePerGas: string;
2001
- }) | undefined;
2002
- };
2003
- bridgeId: string;
2004
- bridges: string[];
2005
- steps: {
2006
- action: ActionTypes;
2007
- protocol: {
2008
- name: string;
2009
- displayName?: string | undefined;
2010
- icon?: string | undefined;
2011
- };
2012
- srcChainId: number;
2013
- srcAsset: {
2014
- symbol: string;
2015
- address: string;
2016
- name: string;
2017
- chainId: number;
2018
- decimals: number;
2019
- assetId: `${string}:${string}/${string}:${string}`;
2020
- iconUrl?: string | null | undefined;
2021
- icon?: string | null | undefined;
2022
- };
2023
- destAsset: {
2024
- symbol: string;
2025
- address: string;
2026
- name: string;
2027
- chainId: number;
2028
- decimals: number;
2029
- assetId: `${string}:${string}/${string}:${string}`;
2030
- iconUrl?: string | null | undefined;
2031
- icon?: string | null | undefined;
2032
- };
2033
- srcAmount: string;
2034
- destAmount: string;
2035
- destChainId?: number | undefined;
2036
- }[];
2037
- refuel?: {
2038
- action: ActionTypes;
2039
- protocol: {
2040
- name: string;
2041
- displayName?: string | undefined;
2042
- icon?: string | undefined;
2043
- };
2044
- srcChainId: number;
2045
- srcAsset: {
2046
- symbol: string;
2047
- address: string;
2048
- name: string;
2049
- chainId: number;
2050
- decimals: number;
2051
- assetId: `${string}:${string}/${string}:${string}`;
2052
- iconUrl?: string | null | undefined;
2053
- icon?: string | null | undefined;
2054
- };
2055
- destAsset: {
2056
- symbol: string;
2057
- address: string;
2058
- name: string;
2059
- chainId: number;
2060
- decimals: number;
2061
- assetId: `${string}:${string}/${string}:${string}`;
2062
- iconUrl?: string | null | undefined;
2063
- icon?: string | null | undefined;
2064
- };
2065
- srcAmount: string;
2066
- destAmount: string;
2067
- destChainId?: number | undefined;
2068
- } | undefined;
2069
- gasIncluded?: boolean | undefined;
2070
- gasIncluded7702?: boolean | undefined;
2071
- priceData?: {
2072
- totalFromAmountUsd?: string | undefined;
2073
- totalToAmountUsd?: string | undefined;
2074
- priceImpact?: string | undefined;
2075
- totalFeeAmountUsd?: string | undefined;
2076
- } | undefined;
2077
- };
2078
- estimatedProcessingTimeInSeconds: number;
2079
- trade: {
2080
- unsignedPsbtBase64: string;
2081
- inputsToSign: {}[] | null;
2082
- };
2083
- approval?: {
2084
- data: string;
2085
- value: string;
2086
- to: string;
2087
- from: string;
2088
- gasLimit: number | null;
2089
- chainId: number;
2090
- effectiveGas?: number | undefined;
2091
- } | undefined;
2092
- }, {
2093
- quote: import("@metamask/superstruct").Struct<{
2094
- requestId: string;
2095
- srcChainId: number;
2096
- destChainId: number;
2097
- srcAsset: {
2098
- symbol: string;
2099
- address: string;
2100
- name: string;
2101
- chainId: number;
2102
- decimals: number;
2103
- assetId: `${string}:${string}/${string}:${string}`;
2104
- iconUrl?: string | null | undefined;
2105
- icon?: string | null | undefined;
2106
- };
2107
- destAsset: {
2108
- symbol: string;
2109
- address: string;
2110
- name: string;
2111
- chainId: number;
2112
- decimals: number;
2113
- assetId: `${string}:${string}/${string}:${string}`;
2114
- iconUrl?: string | null | undefined;
2115
- icon?: string | null | undefined;
2116
- };
2117
- srcTokenAmount: string;
2118
- destTokenAmount: string;
2119
- minDestTokenAmount: string;
2120
- feeData: {
2121
- metabridge: {
2122
- amount: string;
2123
- asset: {
2124
- symbol: string;
2125
- address: string;
2126
- name: string;
2127
- chainId: number;
2128
- decimals: number;
2129
- assetId: `${string}:${string}/${string}:${string}`;
2130
- iconUrl?: string | null | undefined;
2131
- icon?: string | null | undefined;
2132
- };
2133
- };
2134
- txFee?: ({
2135
- amount: string;
2136
- asset: {
2137
- symbol: string;
2138
- address: string;
2139
- name: string;
2140
- chainId: number;
2141
- decimals: number;
2142
- assetId: `${string}:${string}/${string}:${string}`;
2143
- iconUrl?: string | null | undefined;
2144
- icon?: string | null | undefined;
2145
- };
2146
- } & {
2147
- maxPriorityFeePerGas: string;
2148
- maxFeePerGas: string;
2149
- }) | undefined;
2150
- };
2151
- bridgeId: string;
2152
- bridges: string[];
2153
- steps: {
2154
- action: ActionTypes;
2155
- protocol: {
2156
- name: string;
2157
- displayName?: string | undefined;
2158
- icon?: string | undefined;
2159
- };
2160
- srcChainId: number;
2161
- srcAsset: {
2162
- symbol: string;
2163
- address: string;
2164
- name: string;
2165
- chainId: number;
2166
- decimals: number;
2167
- assetId: `${string}:${string}/${string}:${string}`;
2168
- iconUrl?: string | null | undefined;
2169
- icon?: string | null | undefined;
2170
- };
2171
- destAsset: {
2172
- symbol: string;
2173
- address: string;
2174
- name: string;
2175
- chainId: number;
2176
- decimals: number;
2177
- assetId: `${string}:${string}/${string}:${string}`;
2178
- iconUrl?: string | null | undefined;
2179
- icon?: string | null | undefined;
2180
- };
2181
- srcAmount: string;
2182
- destAmount: string;
2183
- destChainId?: number | undefined;
2184
- }[];
2185
- refuel?: {
2186
- action: ActionTypes;
2187
- protocol: {
2188
- name: string;
2189
- displayName?: string | undefined;
2190
- icon?: string | undefined;
2191
- };
2192
- srcChainId: number;
2193
- srcAsset: {
2194
- symbol: string;
2195
- address: string;
2196
- name: string;
2197
- chainId: number;
2198
- decimals: number;
2199
- assetId: `${string}:${string}/${string}:${string}`;
2200
- iconUrl?: string | null | undefined;
2201
- icon?: string | null | undefined;
2202
- };
2203
- destAsset: {
2204
- symbol: string;
2205
- address: string;
2206
- name: string;
2207
- chainId: number;
2208
- decimals: number;
2209
- assetId: `${string}:${string}/${string}:${string}`;
2210
- iconUrl?: string | null | undefined;
2211
- icon?: string | null | undefined;
2212
- };
2213
- srcAmount: string;
2214
- destAmount: string;
2215
- destChainId?: number | undefined;
2216
- } | undefined;
2217
- gasIncluded?: boolean | undefined;
2218
- gasIncluded7702?: boolean | undefined;
2219
- priceData?: {
2220
- totalFromAmountUsd?: string | undefined;
2221
- totalToAmountUsd?: string | undefined;
2222
- priceImpact?: string | undefined;
2223
- totalFeeAmountUsd?: string | undefined;
2224
- } | undefined;
2225
- }, {
2226
- requestId: import("@metamask/superstruct").Struct<string, null>;
2227
- srcChainId: import("@metamask/superstruct").Struct<number, null>;
2228
- srcAsset: import("@metamask/superstruct").Struct<{
2229
- symbol: string;
2230
- address: string;
2231
- name: string;
2232
- chainId: number;
2233
- decimals: number;
2234
- assetId: `${string}:${string}/${string}:${string}`;
2235
- iconUrl?: string | null | undefined;
2236
- icon?: string | null | undefined;
2237
- }, {
2238
- /**
2239
- * The chainId of the token
2240
- */
2241
- chainId: import("@metamask/superstruct").Struct<number, null>;
2242
- /**
2243
- * An address that the metaswap-api recognizes as the default token
2244
- */
2245
- address: import("@metamask/superstruct").Struct<string, null>;
2246
- /**
2247
- * The assetId of the token
2248
- */
2249
- assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
2250
- /**
2251
- * The symbol of token object
2252
- */
2253
- symbol: import("@metamask/superstruct").Struct<string, null>;
2254
- /**
2255
- * The name for the network
2256
- */
2257
- name: import("@metamask/superstruct").Struct<string, null>;
2258
- decimals: import("@metamask/superstruct").Struct<number, null>;
2259
- /**
2260
- * URL for token icon
2261
- */
2262
- icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2263
- /**
2264
- * URL for token icon
2265
- */
2266
- iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2267
- }>;
2268
- /**
2269
- * The amount sent, in atomic amount: amount sent - fees
2270
- * Some tokens have a fee of 0, so sometimes it's equal to amount sent
2271
- */
2272
- srcTokenAmount: import("@metamask/superstruct").Struct<string, null>;
2273
- destChainId: import("@metamask/superstruct").Struct<number, null>;
2274
- destAsset: import("@metamask/superstruct").Struct<{
2275
- symbol: string;
2276
- address: string;
2277
- name: string;
2278
- chainId: number;
2279
- decimals: number;
2280
- assetId: `${string}:${string}/${string}:${string}`;
2281
- iconUrl?: string | null | undefined;
2282
- icon?: string | null | undefined;
2283
- }, {
2284
- /**
2285
- * The chainId of the token
2286
- */
2287
- chainId: import("@metamask/superstruct").Struct<number, null>;
2288
- /**
2289
- * An address that the metaswap-api recognizes as the default token
2290
- */
2291
- address: import("@metamask/superstruct").Struct<string, null>;
2292
- /**
2293
- * The assetId of the token
2294
- */
2295
- assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
2296
- /**
2297
- * The symbol of token object
2298
- */
2299
- symbol: import("@metamask/superstruct").Struct<string, null>;
2300
- /**
2301
- * The name for the network
2302
- */
2303
- name: import("@metamask/superstruct").Struct<string, null>;
2304
- decimals: import("@metamask/superstruct").Struct<number, null>;
2305
- /**
2306
- * URL for token icon
2307
- */
2308
- icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2309
- /**
2310
- * URL for token icon
2311
- */
2312
- iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2313
- }>;
2314
- /**
2315
- * The amount received, in atomic amount
2316
- */
2317
- destTokenAmount: import("@metamask/superstruct").Struct<string, null>;
2318
- /**
2319
- * The minimum amount that will be received, in atomic amount
2320
- */
2321
- minDestTokenAmount: import("@metamask/superstruct").Struct<string, null>;
2322
- feeData: import("@metamask/superstruct").Struct<{
2323
- metabridge: {
2324
- amount: string;
2325
- asset: {
2326
- symbol: string;
2327
- address: string;
2328
- name: string;
2329
- chainId: number;
2330
- decimals: number;
2331
- assetId: `${string}:${string}/${string}:${string}`;
2332
- iconUrl?: string | null | undefined;
2333
- icon?: string | null | undefined;
2334
- };
2335
- };
2336
- txFee?: ({
2337
- amount: string;
2338
- asset: {
2339
- symbol: string;
2340
- address: string;
2341
- name: string;
2342
- chainId: number;
2343
- decimals: number;
2344
- assetId: `${string}:${string}/${string}:${string}`;
2345
- iconUrl?: string | null | undefined;
2346
- icon?: string | null | undefined;
2347
- };
2348
- } & {
2349
- maxPriorityFeePerGas: string;
2350
- maxFeePerGas: string;
2351
- }) | undefined;
2352
- }, {
2353
- metabridge: import("@metamask/superstruct").Struct<{
2354
- amount: string;
2355
- asset: {
2356
- symbol: string;
2357
- address: string;
2358
- name: string;
2359
- chainId: number;
2360
- decimals: number;
2361
- assetId: `${string}:${string}/${string}:${string}`;
2362
- iconUrl?: string | null | undefined;
2363
- icon?: string | null | undefined;
2364
- };
2365
- }, {
2366
- amount: import("@metamask/superstruct").Struct<string, null>;
2367
- asset: import("@metamask/superstruct").Struct<{
2368
- symbol: string;
2369
- address: string;
2370
- name: string;
2371
- chainId: number;
2372
- decimals: number;
2373
- assetId: `${string}:${string}/${string}:${string}`;
2374
- iconUrl?: string | null | undefined;
2375
- icon?: string | null | undefined;
2376
- }, {
2377
- /**
2378
- * The chainId of the token
2379
- */
2380
- chainId: import("@metamask/superstruct").Struct<number, null>;
2381
- /**
2382
- * An address that the metaswap-api recognizes as the default token
2383
- */
2384
- address: import("@metamask/superstruct").Struct<string, null>;
2385
- /**
2386
- * The assetId of the token
2387
- */
2388
- assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
2389
- /**
2390
- * The symbol of token object
2391
- */
2392
- symbol: import("@metamask/superstruct").Struct<string, null>;
2393
- /**
2394
- * The name for the network
2395
- */
2396
- name: import("@metamask/superstruct").Struct<string, null>;
2397
- decimals: import("@metamask/superstruct").Struct<number, null>;
2398
- /**
2399
- * URL for token icon
2400
- */
2401
- icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2402
- /**
2403
- * URL for token icon
2404
- */
2405
- iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2406
- }>;
2407
- }>;
2408
- /**
2409
- * This is the fee for the swap transaction taken from either the
2410
- * src or dest token if the quote has gas fees included or "gasless"
2411
- */
2412
- txFee: import("@metamask/superstruct").Struct<({
2413
- amount: string;
2414
- asset: {
2415
- symbol: string;
2416
- address: string;
2417
- name: string;
2418
- chainId: number;
2419
- decimals: number;
2420
- assetId: `${string}:${string}/${string}:${string}`;
2421
- iconUrl?: string | null | undefined;
2422
- icon?: string | null | undefined;
2423
- };
2424
- } & {
2425
- maxPriorityFeePerGas: string;
2426
- maxFeePerGas: string;
2427
- }) | undefined, null>;
2428
- }>;
2429
- gasIncluded: import("@metamask/superstruct").Struct<boolean | undefined, null>;
2430
- /**
2431
- * Whether the quote can use EIP-7702 delegated gasless execution
2432
- */
2433
- gasIncluded7702: import("@metamask/superstruct").Struct<boolean | undefined, null>;
2434
- bridgeId: import("@metamask/superstruct").Struct<string, null>;
2435
- bridges: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
2436
- steps: import("@metamask/superstruct").Struct<{
2437
- action: ActionTypes;
2438
- protocol: {
2439
- name: string;
2440
- displayName?: string | undefined;
2441
- icon?: string | undefined;
2442
- };
2443
- srcChainId: number;
2444
- srcAsset: {
2445
- symbol: string;
2446
- address: string;
2447
- name: string;
2448
- chainId: number;
2449
- decimals: number;
2450
- assetId: `${string}:${string}/${string}:${string}`;
2451
- iconUrl?: string | null | undefined;
2452
- icon?: string | null | undefined;
2453
- };
2454
- destAsset: {
2455
- symbol: string;
2456
- address: string;
2457
- name: string;
2458
- chainId: number;
2459
- decimals: number;
2460
- assetId: `${string}:${string}/${string}:${string}`;
2461
- iconUrl?: string | null | undefined;
2462
- icon?: string | null | undefined;
2463
- };
2464
- srcAmount: string;
2465
- destAmount: string;
2466
- destChainId?: number | undefined;
2467
- }[], import("@metamask/superstruct").Struct<{
2468
- action: ActionTypes;
2469
- protocol: {
2470
- name: string;
2471
- displayName?: string | undefined;
2472
- icon?: string | undefined;
2473
- };
2474
- srcChainId: number;
2475
- srcAsset: {
2476
- symbol: string;
2477
- address: string;
2478
- name: string;
2479
- chainId: number;
2480
- decimals: number;
2481
- assetId: `${string}:${string}/${string}:${string}`;
2482
- iconUrl?: string | null | undefined;
2483
- icon?: string | null | undefined;
2484
- };
2485
- destAsset: {
2486
- symbol: string;
2487
- address: string;
2488
- name: string;
2489
- chainId: number;
2490
- decimals: number;
2491
- assetId: `${string}:${string}/${string}:${string}`;
2492
- iconUrl?: string | null | undefined;
2493
- icon?: string | null | undefined;
2494
- };
2495
- srcAmount: string;
2496
- destAmount: string;
2497
- destChainId?: number | undefined;
2498
- }, {
2499
- action: import("@metamask/superstruct").Struct<ActionTypes, {
2500
- bridge: ActionTypes.BRIDGE;
2501
- swap: ActionTypes.SWAP;
2502
- refuel: ActionTypes.REFUEL;
2503
- }>;
2504
- srcChainId: import("@metamask/superstruct").Struct<number, null>;
2505
- destChainId: import("@metamask/superstruct").Struct<number | undefined, null>;
2506
- srcAsset: import("@metamask/superstruct").Struct<{
2507
- symbol: string;
2508
- address: string;
2509
- name: string;
2510
- chainId: number;
2511
- decimals: number;
2512
- assetId: `${string}:${string}/${string}:${string}`;
2513
- iconUrl?: string | null | undefined;
2514
- icon?: string | null | undefined;
2515
- }, {
2516
- /**
2517
- * The chainId of the token
2518
- */
2519
- chainId: import("@metamask/superstruct").Struct<number, null>;
2520
- /**
2521
- * An address that the metaswap-api recognizes as the default token
2522
- */
2523
- address: import("@metamask/superstruct").Struct<string, null>;
2524
- /**
2525
- * The assetId of the token
2526
- */
2527
- assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
2528
- /**
2529
- * The symbol of token object
2530
- */
2531
- symbol: import("@metamask/superstruct").Struct<string, null>;
2532
- /**
2533
- * The name for the network
2534
- */
2535
- name: import("@metamask/superstruct").Struct<string, null>;
2536
- decimals: import("@metamask/superstruct").Struct<number, null>;
2537
- /**
2538
- * URL for token icon
2539
- */
2540
- icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2541
- /**
2542
- * URL for token icon
2543
- */
2544
- iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2545
- }>;
2546
- destAsset: import("@metamask/superstruct").Struct<{
2547
- symbol: string;
2548
- address: string;
2549
- name: string;
2550
- chainId: number;
2551
- decimals: number;
2552
- assetId: `${string}:${string}/${string}:${string}`;
2553
- iconUrl?: string | null | undefined;
2554
- icon?: string | null | undefined;
2555
- }, {
2556
- /**
2557
- * The chainId of the token
2558
- */
2559
- chainId: import("@metamask/superstruct").Struct<number, null>;
2560
- /**
2561
- * An address that the metaswap-api recognizes as the default token
2562
- */
2563
- address: import("@metamask/superstruct").Struct<string, null>;
2564
- /**
2565
- * The assetId of the token
2566
- */
2567
- assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
2568
- /**
2569
- * The symbol of token object
2570
- */
2571
- symbol: import("@metamask/superstruct").Struct<string, null>;
2572
- /**
2573
- * The name for the network
2574
- */
2575
- name: import("@metamask/superstruct").Struct<string, null>;
2576
- decimals: import("@metamask/superstruct").Struct<number, null>;
2577
- /**
2578
- * URL for token icon
2579
- */
2580
- icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2581
- /**
2582
- * URL for token icon
2583
- */
2584
- iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2585
- }>;
2586
- srcAmount: import("@metamask/superstruct").Struct<string, null>;
2587
- destAmount: import("@metamask/superstruct").Struct<string, null>;
2588
- protocol: import("@metamask/superstruct").Struct<{
2589
- name: string;
2590
- displayName?: string | undefined;
2591
- icon?: string | undefined;
2592
- }, {
2593
- name: import("@metamask/superstruct").Struct<string, null>;
2594
- displayName: import("@metamask/superstruct").Struct<string | undefined, null>;
2595
- icon: import("@metamask/superstruct").Struct<string | undefined, null>;
2596
- }>;
2597
- }>>;
2598
- refuel: import("@metamask/superstruct").Struct<{
2599
- action: ActionTypes;
2600
- protocol: {
2601
- name: string;
2602
- displayName?: string | undefined;
2603
- icon?: string | undefined;
2604
- };
2605
- srcChainId: number;
2606
- srcAsset: {
2607
- symbol: string;
2608
- address: string;
2609
- name: string;
2610
- chainId: number;
2611
- decimals: number;
2612
- assetId: `${string}:${string}/${string}:${string}`;
2613
- iconUrl?: string | null | undefined;
2614
- icon?: string | null | undefined;
2615
- };
2616
- destAsset: {
2617
- symbol: string;
2618
- address: string;
2619
- name: string;
2620
- chainId: number;
2621
- decimals: number;
2622
- assetId: `${string}:${string}/${string}:${string}`;
2623
- iconUrl?: string | null | undefined;
2624
- icon?: string | null | undefined;
2625
- };
2626
- srcAmount: string;
2627
- destAmount: string;
2628
- destChainId?: number | undefined;
2629
- } | undefined, {
2630
- action: import("@metamask/superstruct").Struct<ActionTypes, {
2631
- bridge: ActionTypes.BRIDGE;
2632
- swap: ActionTypes.SWAP;
2633
- refuel: ActionTypes.REFUEL;
2634
- }>;
2635
- srcChainId: import("@metamask/superstruct").Struct<number, null>;
2636
- destChainId: import("@metamask/superstruct").Struct<number | undefined, null>;
2637
- srcAsset: import("@metamask/superstruct").Struct<{
2638
- symbol: string;
2639
- address: string;
2640
- name: string;
2641
- chainId: number;
2642
- decimals: number;
2643
- assetId: `${string}:${string}/${string}:${string}`;
2644
- iconUrl?: string | null | undefined;
2645
- icon?: string | null | undefined;
2646
- }, {
2647
- /**
2648
- * The chainId of the token
2649
- */
2650
- chainId: import("@metamask/superstruct").Struct<number, null>;
2651
- /**
2652
- * An address that the metaswap-api recognizes as the default token
2653
- */
2654
- address: import("@metamask/superstruct").Struct<string, null>;
2655
- /**
2656
- * The assetId of the token
2657
- */
2658
- assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
2659
- /**
2660
- * The symbol of token object
2661
- */
2662
- symbol: import("@metamask/superstruct").Struct<string, null>;
2663
- /**
2664
- * The name for the network
2665
- */
2666
- name: import("@metamask/superstruct").Struct<string, null>;
2667
- decimals: import("@metamask/superstruct").Struct<number, null>;
2668
- /**
2669
- * URL for token icon
2670
- */
2671
- icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2672
- /**
2673
- * URL for token icon
2674
- */
2675
- iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2676
- }>;
2677
- destAsset: import("@metamask/superstruct").Struct<{
2678
- symbol: string;
2679
- address: string;
2680
- name: string;
2681
- chainId: number;
2682
- decimals: number;
2683
- assetId: `${string}:${string}/${string}:${string}`;
2684
- iconUrl?: string | null | undefined;
2685
- icon?: string | null | undefined;
2686
- }, {
2687
- /**
2688
- * The chainId of the token
2689
- */
2690
- chainId: import("@metamask/superstruct").Struct<number, null>;
2691
- /**
2692
- * An address that the metaswap-api recognizes as the default token
2693
- */
2694
- address: import("@metamask/superstruct").Struct<string, null>;
2695
- /**
2696
- * The assetId of the token
2697
- */
2698
- assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
2699
- /**
2700
- * The symbol of token object
2701
- */
2702
- symbol: import("@metamask/superstruct").Struct<string, null>;
2703
- /**
2704
- * The name for the network
2705
- */
2706
- name: import("@metamask/superstruct").Struct<string, null>;
2707
- decimals: import("@metamask/superstruct").Struct<number, null>;
2708
- /**
2709
- * URL for token icon
2710
- */
2711
- icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2712
- /**
2713
- * URL for token icon
2714
- */
2715
- iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2716
- }>;
2717
- srcAmount: import("@metamask/superstruct").Struct<string, null>;
2718
- destAmount: import("@metamask/superstruct").Struct<string, null>;
2719
- protocol: import("@metamask/superstruct").Struct<{
2720
- name: string;
2721
- displayName?: string | undefined;
2722
- icon?: string | undefined;
2723
- }, {
2724
- name: import("@metamask/superstruct").Struct<string, null>;
2725
- displayName: import("@metamask/superstruct").Struct<string | undefined, null>;
2726
- icon: import("@metamask/superstruct").Struct<string | undefined, null>;
2727
- }>;
2728
- }>;
2729
- priceData: import("@metamask/superstruct").Struct<{
2730
- totalFromAmountUsd?: string | undefined;
2731
- totalToAmountUsd?: string | undefined;
2732
- priceImpact?: string | undefined;
2733
- totalFeeAmountUsd?: string | undefined;
2734
- } | undefined, {
2735
- totalFromAmountUsd: import("@metamask/superstruct").Struct<string | undefined, null>;
2736
- totalToAmountUsd: import("@metamask/superstruct").Struct<string | undefined, null>;
2737
- priceImpact: import("@metamask/superstruct").Struct<string | undefined, null>;
2738
- totalFeeAmountUsd: import("@metamask/superstruct").Struct<string | undefined, null>;
2739
- }>;
2740
- }>;
2741
- estimatedProcessingTimeInSeconds: import("@metamask/superstruct").Struct<number, null>;
2742
- approval: import("@metamask/superstruct").Struct<{
2743
- data: string;
2744
- value: string;
2745
- to: string;
2746
- from: string;
2747
- gasLimit: number | null;
2748
- chainId: number;
2749
- effectiveGas?: number | undefined;
2750
- } | undefined, {
2751
- chainId: import("@metamask/superstruct").Struct<number, null>;
2752
- to: import("@metamask/superstruct").Struct<string, null>;
2753
- from: import("@metamask/superstruct").Struct<string, null>;
2754
- value: import("@metamask/superstruct").Struct<string, null>;
2755
- data: import("@metamask/superstruct").Struct<string, null>;
2756
- gasLimit: import("@metamask/superstruct").Struct<number | null, null>;
2757
- effectiveGas: import("@metamask/superstruct").Struct<number | undefined, null>;
2758
- }>;
2759
- trade: import("@metamask/superstruct").Struct<{
2760
- unsignedPsbtBase64: string;
2761
- inputsToSign: {}[] | null;
2762
- }, {
2763
- unsignedPsbtBase64: import("@metamask/superstruct").Struct<string, null>;
2764
- inputsToSign: import("@metamask/superstruct").Struct<{}[] | null, import("@metamask/superstruct").Struct<{}, {}>>;
2765
- }>;
2766
- }>;
2767
1944
  export declare const validateQuoteResponse: (data: unknown) => data is {
2768
1945
  quote: {
2769
1946
  requestId: string;
@@ -2921,153 +2098,4 @@ export declare const validateQuoteResponse: (data: unknown) => data is {
2921
2098
  effectiveGas?: number | undefined;
2922
2099
  } | undefined;
2923
2100
  };
2924
- export declare const validateBitcoinQuoteResponse: (data: unknown) => data is {
2925
- quote: {
2926
- requestId: string;
2927
- srcChainId: number;
2928
- destChainId: number;
2929
- srcAsset: {
2930
- symbol: string;
2931
- address: string;
2932
- name: string;
2933
- chainId: number;
2934
- decimals: number;
2935
- assetId: `${string}:${string}/${string}:${string}`;
2936
- iconUrl?: string | null | undefined;
2937
- icon?: string | null | undefined;
2938
- };
2939
- destAsset: {
2940
- symbol: string;
2941
- address: string;
2942
- name: string;
2943
- chainId: number;
2944
- decimals: number;
2945
- assetId: `${string}:${string}/${string}:${string}`;
2946
- iconUrl?: string | null | undefined;
2947
- icon?: string | null | undefined;
2948
- };
2949
- srcTokenAmount: string;
2950
- destTokenAmount: string;
2951
- minDestTokenAmount: string;
2952
- feeData: {
2953
- metabridge: {
2954
- amount: string;
2955
- asset: {
2956
- symbol: string;
2957
- address: string;
2958
- name: string;
2959
- chainId: number;
2960
- decimals: number;
2961
- assetId: `${string}:${string}/${string}:${string}`;
2962
- iconUrl?: string | null | undefined;
2963
- icon?: string | null | undefined;
2964
- };
2965
- };
2966
- txFee?: ({
2967
- amount: string;
2968
- asset: {
2969
- symbol: string;
2970
- address: string;
2971
- name: string;
2972
- chainId: number;
2973
- decimals: number;
2974
- assetId: `${string}:${string}/${string}:${string}`;
2975
- iconUrl?: string | null | undefined;
2976
- icon?: string | null | undefined;
2977
- };
2978
- } & {
2979
- maxPriorityFeePerGas: string;
2980
- maxFeePerGas: string;
2981
- }) | undefined;
2982
- };
2983
- bridgeId: string;
2984
- bridges: string[];
2985
- steps: {
2986
- action: ActionTypes;
2987
- protocol: {
2988
- name: string;
2989
- displayName?: string | undefined;
2990
- icon?: string | undefined;
2991
- };
2992
- srcChainId: number;
2993
- srcAsset: {
2994
- symbol: string;
2995
- address: string;
2996
- name: string;
2997
- chainId: number;
2998
- decimals: number;
2999
- assetId: `${string}:${string}/${string}:${string}`;
3000
- iconUrl?: string | null | undefined;
3001
- icon?: string | null | undefined;
3002
- };
3003
- destAsset: {
3004
- symbol: string;
3005
- address: string;
3006
- name: string;
3007
- chainId: number;
3008
- decimals: number;
3009
- assetId: `${string}:${string}/${string}:${string}`;
3010
- iconUrl?: string | null | undefined;
3011
- icon?: string | null | undefined;
3012
- };
3013
- srcAmount: string;
3014
- destAmount: string;
3015
- destChainId?: number | undefined;
3016
- }[];
3017
- refuel?: {
3018
- action: ActionTypes;
3019
- protocol: {
3020
- name: string;
3021
- displayName?: string | undefined;
3022
- icon?: string | undefined;
3023
- };
3024
- srcChainId: number;
3025
- srcAsset: {
3026
- symbol: string;
3027
- address: string;
3028
- name: string;
3029
- chainId: number;
3030
- decimals: number;
3031
- assetId: `${string}:${string}/${string}:${string}`;
3032
- iconUrl?: string | null | undefined;
3033
- icon?: string | null | undefined;
3034
- };
3035
- destAsset: {
3036
- symbol: string;
3037
- address: string;
3038
- name: string;
3039
- chainId: number;
3040
- decimals: number;
3041
- assetId: `${string}:${string}/${string}:${string}`;
3042
- iconUrl?: string | null | undefined;
3043
- icon?: string | null | undefined;
3044
- };
3045
- srcAmount: string;
3046
- destAmount: string;
3047
- destChainId?: number | undefined;
3048
- } | undefined;
3049
- gasIncluded?: boolean | undefined;
3050
- gasIncluded7702?: boolean | undefined;
3051
- priceData?: {
3052
- totalFromAmountUsd?: string | undefined;
3053
- totalToAmountUsd?: string | undefined;
3054
- priceImpact?: string | undefined;
3055
- totalFeeAmountUsd?: string | undefined;
3056
- } | undefined;
3057
- };
3058
- estimatedProcessingTimeInSeconds: number;
3059
- trade: {
3060
- unsignedPsbtBase64: string;
3061
- inputsToSign: {}[] | null;
3062
- };
3063
- approval?: {
3064
- data: string;
3065
- value: string;
3066
- to: string;
3067
- from: string;
3068
- gasLimit: number | null;
3069
- chainId: number;
3070
- effectiveGas?: number | undefined;
3071
- } | undefined;
3072
- };
3073
2101
  //# sourceMappingURL=validators.d.mts.map