@metamask/bridge-controller 49.0.0 → 50.0.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.
@@ -416,6 +416,7 @@ export declare const StepSchema: import("@metamask/superstruct").Struct<{
416
416
  }>;
417
417
  }>;
418
418
  export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
419
+ requestId: string;
419
420
  srcChainId: number;
420
421
  destChainId: number;
421
422
  srcAsset: {
@@ -438,7 +439,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
438
439
  iconUrl?: string | null | undefined;
439
440
  icon?: string | null | undefined;
440
441
  };
441
- requestId: string;
442
442
  srcTokenAmount: string;
443
443
  destTokenAmount: string;
444
444
  minDestTokenAmount: string;
@@ -1089,6 +1089,7 @@ export declare const BitcoinTradeDataSchema: import("@metamask/superstruct").Str
1089
1089
  }>;
1090
1090
  export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct<{
1091
1091
  quote: {
1092
+ requestId: string;
1092
1093
  srcChainId: number;
1093
1094
  destChainId: number;
1094
1095
  srcAsset: {
@@ -1111,7 +1112,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1111
1112
  iconUrl?: string | null | undefined;
1112
1113
  icon?: string | null | undefined;
1113
1114
  };
1114
- requestId: string;
1115
1115
  srcTokenAmount: string;
1116
1116
  destTokenAmount: string;
1117
1117
  minDestTokenAmount: string;
@@ -1245,6 +1245,7 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1245
1245
  } | undefined;
1246
1246
  }, {
1247
1247
  quote: import("@metamask/superstruct").Struct<{
1248
+ requestId: string;
1248
1249
  srcChainId: number;
1249
1250
  destChainId: number;
1250
1251
  srcAsset: {
@@ -1267,7 +1268,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1267
1268
  iconUrl?: string | null | undefined;
1268
1269
  icon?: string | null | undefined;
1269
1270
  };
1270
- requestId: string;
1271
1271
  srcTokenAmount: string;
1272
1272
  destTokenAmount: string;
1273
1273
  minDestTokenAmount: string;
@@ -1925,6 +1925,7 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1925
1925
  }>;
1926
1926
  export declare const BitcoinQuoteResponseSchema: import("@metamask/superstruct").Struct<{
1927
1927
  quote: {
1928
+ requestId: string;
1928
1929
  srcChainId: number;
1929
1930
  destChainId: number;
1930
1931
  srcAsset: {
@@ -1947,7 +1948,6 @@ export declare const BitcoinQuoteResponseSchema: import("@metamask/superstruct")
1947
1948
  iconUrl?: string | null | undefined;
1948
1949
  icon?: string | null | undefined;
1949
1950
  };
1950
- requestId: string;
1951
1951
  srcTokenAmount: string;
1952
1952
  destTokenAmount: string;
1953
1953
  minDestTokenAmount: string;
@@ -2073,6 +2073,7 @@ export declare const BitcoinQuoteResponseSchema: import("@metamask/superstruct")
2073
2073
  } | undefined;
2074
2074
  }, {
2075
2075
  quote: import("@metamask/superstruct").Struct<{
2076
+ requestId: string;
2076
2077
  srcChainId: number;
2077
2078
  destChainId: number;
2078
2079
  srcAsset: {
@@ -2095,7 +2096,6 @@ export declare const BitcoinQuoteResponseSchema: import("@metamask/superstruct")
2095
2096
  iconUrl?: string | null | undefined;
2096
2097
  icon?: string | null | undefined;
2097
2098
  };
2098
- requestId: string;
2099
2099
  srcTokenAmount: string;
2100
2100
  destTokenAmount: string;
2101
2101
  minDestTokenAmount: string;
@@ -2748,6 +2748,7 @@ export declare const BitcoinQuoteResponseSchema: import("@metamask/superstruct")
2748
2748
  }>;
2749
2749
  export declare const validateQuoteResponse: (data: unknown) => data is {
2750
2750
  quote: {
2751
+ requestId: string;
2751
2752
  srcChainId: number;
2752
2753
  destChainId: number;
2753
2754
  srcAsset: {
@@ -2770,7 +2771,6 @@ export declare const validateQuoteResponse: (data: unknown) => data is {
2770
2771
  iconUrl?: string | null | undefined;
2771
2772
  icon?: string | null | undefined;
2772
2773
  };
2773
- requestId: string;
2774
2774
  srcTokenAmount: string;
2775
2775
  destTokenAmount: string;
2776
2776
  minDestTokenAmount: string;
@@ -2905,6 +2905,7 @@ export declare const validateQuoteResponse: (data: unknown) => data is {
2905
2905
  };
2906
2906
  export declare const validateBitcoinQuoteResponse: (data: unknown) => data is {
2907
2907
  quote: {
2908
+ requestId: string;
2908
2909
  srcChainId: number;
2909
2910
  destChainId: number;
2910
2911
  srcAsset: {
@@ -2927,7 +2928,6 @@ export declare const validateBitcoinQuoteResponse: (data: unknown) => data is {
2927
2928
  iconUrl?: string | null | undefined;
2928
2929
  icon?: string | null | undefined;
2929
2930
  };
2930
- requestId: string;
2931
2931
  srcTokenAmount: string;
2932
2932
  destTokenAmount: string;
2933
2933
  minDestTokenAmount: string;
@@ -416,6 +416,7 @@ export declare const StepSchema: import("@metamask/superstruct").Struct<{
416
416
  }>;
417
417
  }>;
418
418
  export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
419
+ requestId: string;
419
420
  srcChainId: number;
420
421
  destChainId: number;
421
422
  srcAsset: {
@@ -438,7 +439,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
438
439
  iconUrl?: string | null | undefined;
439
440
  icon?: string | null | undefined;
440
441
  };
441
- requestId: string;
442
442
  srcTokenAmount: string;
443
443
  destTokenAmount: string;
444
444
  minDestTokenAmount: string;
@@ -1089,6 +1089,7 @@ export declare const BitcoinTradeDataSchema: import("@metamask/superstruct").Str
1089
1089
  }>;
1090
1090
  export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct<{
1091
1091
  quote: {
1092
+ requestId: string;
1092
1093
  srcChainId: number;
1093
1094
  destChainId: number;
1094
1095
  srcAsset: {
@@ -1111,7 +1112,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1111
1112
  iconUrl?: string | null | undefined;
1112
1113
  icon?: string | null | undefined;
1113
1114
  };
1114
- requestId: string;
1115
1115
  srcTokenAmount: string;
1116
1116
  destTokenAmount: string;
1117
1117
  minDestTokenAmount: string;
@@ -1245,6 +1245,7 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1245
1245
  } | undefined;
1246
1246
  }, {
1247
1247
  quote: import("@metamask/superstruct").Struct<{
1248
+ requestId: string;
1248
1249
  srcChainId: number;
1249
1250
  destChainId: number;
1250
1251
  srcAsset: {
@@ -1267,7 +1268,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1267
1268
  iconUrl?: string | null | undefined;
1268
1269
  icon?: string | null | undefined;
1269
1270
  };
1270
- requestId: string;
1271
1271
  srcTokenAmount: string;
1272
1272
  destTokenAmount: string;
1273
1273
  minDestTokenAmount: string;
@@ -1925,6 +1925,7 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1925
1925
  }>;
1926
1926
  export declare const BitcoinQuoteResponseSchema: import("@metamask/superstruct").Struct<{
1927
1927
  quote: {
1928
+ requestId: string;
1928
1929
  srcChainId: number;
1929
1930
  destChainId: number;
1930
1931
  srcAsset: {
@@ -1947,7 +1948,6 @@ export declare const BitcoinQuoteResponseSchema: import("@metamask/superstruct")
1947
1948
  iconUrl?: string | null | undefined;
1948
1949
  icon?: string | null | undefined;
1949
1950
  };
1950
- requestId: string;
1951
1951
  srcTokenAmount: string;
1952
1952
  destTokenAmount: string;
1953
1953
  minDestTokenAmount: string;
@@ -2073,6 +2073,7 @@ export declare const BitcoinQuoteResponseSchema: import("@metamask/superstruct")
2073
2073
  } | undefined;
2074
2074
  }, {
2075
2075
  quote: import("@metamask/superstruct").Struct<{
2076
+ requestId: string;
2076
2077
  srcChainId: number;
2077
2078
  destChainId: number;
2078
2079
  srcAsset: {
@@ -2095,7 +2096,6 @@ export declare const BitcoinQuoteResponseSchema: import("@metamask/superstruct")
2095
2096
  iconUrl?: string | null | undefined;
2096
2097
  icon?: string | null | undefined;
2097
2098
  };
2098
- requestId: string;
2099
2099
  srcTokenAmount: string;
2100
2100
  destTokenAmount: string;
2101
2101
  minDestTokenAmount: string;
@@ -2748,6 +2748,7 @@ export declare const BitcoinQuoteResponseSchema: import("@metamask/superstruct")
2748
2748
  }>;
2749
2749
  export declare const validateQuoteResponse: (data: unknown) => data is {
2750
2750
  quote: {
2751
+ requestId: string;
2751
2752
  srcChainId: number;
2752
2753
  destChainId: number;
2753
2754
  srcAsset: {
@@ -2770,7 +2771,6 @@ export declare const validateQuoteResponse: (data: unknown) => data is {
2770
2771
  iconUrl?: string | null | undefined;
2771
2772
  icon?: string | null | undefined;
2772
2773
  };
2773
- requestId: string;
2774
2774
  srcTokenAmount: string;
2775
2775
  destTokenAmount: string;
2776
2776
  minDestTokenAmount: string;
@@ -2905,6 +2905,7 @@ export declare const validateQuoteResponse: (data: unknown) => data is {
2905
2905
  };
2906
2906
  export declare const validateBitcoinQuoteResponse: (data: unknown) => data is {
2907
2907
  quote: {
2908
+ requestId: string;
2908
2909
  srcChainId: number;
2909
2910
  destChainId: number;
2910
2911
  srcAsset: {
@@ -2927,7 +2928,6 @@ export declare const validateBitcoinQuoteResponse: (data: unknown) => data is {
2927
2928
  iconUrl?: string | null | undefined;
2928
2929
  icon?: string | null | undefined;
2929
2930
  };
2930
- requestId: string;
2931
2931
  srcTokenAmount: string;
2932
2932
  destTokenAmount: string;
2933
2933
  minDestTokenAmount: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask/bridge-controller",
3
- "version": "49.0.0",
3
+ "version": "50.0.0",
4
4
  "description": "Manages bridge-related quote fetching functionality for MetaMask",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -52,28 +52,28 @@
52
52
  "@ethersproject/constants": "^5.7.0",
53
53
  "@ethersproject/contracts": "^5.7.0",
54
54
  "@ethersproject/providers": "^5.7.0",
55
- "@metamask/base-controller": "^8.4.0",
56
- "@metamask/controller-utils": "^11.14.0",
57
- "@metamask/gas-fee-controller": "^24.0.0",
55
+ "@metamask/base-controller": "^8.4.1",
56
+ "@metamask/controller-utils": "^11.14.1",
57
+ "@metamask/gas-fee-controller": "^24.1.0",
58
58
  "@metamask/keyring-api": "^21.0.0",
59
59
  "@metamask/metamask-eth-abis": "^3.1.1",
60
- "@metamask/multichain-network-controller": "^1.0.0",
61
- "@metamask/polling-controller": "^14.0.0",
60
+ "@metamask/multichain-network-controller": "^1.0.1",
61
+ "@metamask/polling-controller": "^14.0.1",
62
62
  "@metamask/utils": "^11.8.1",
63
63
  "bignumber.js": "^9.1.2",
64
64
  "reselect": "^5.1.1",
65
65
  "uuid": "^8.3.2"
66
66
  },
67
67
  "devDependencies": {
68
- "@metamask/accounts-controller": "^33.1.0",
69
- "@metamask/assets-controllers": "^79.0.0",
68
+ "@metamask/accounts-controller": "^33.1.1",
69
+ "@metamask/assets-controllers": "^80.0.0",
70
70
  "@metamask/auto-changelog": "^3.4.4",
71
- "@metamask/eth-json-rpc-provider": "^5.0.0",
72
- "@metamask/network-controller": "^24.2.0",
73
- "@metamask/remote-feature-flag-controller": "^1.7.0",
71
+ "@metamask/eth-json-rpc-provider": "^5.0.1",
72
+ "@metamask/network-controller": "^24.2.1",
73
+ "@metamask/remote-feature-flag-controller": "^1.8.0",
74
74
  "@metamask/snaps-controllers": "^14.0.1",
75
75
  "@metamask/superstruct": "^3.1.0",
76
- "@metamask/transaction-controller": "^60.6.0",
76
+ "@metamask/transaction-controller": "^60.6.1",
77
77
  "@types/jest": "^27.4.1",
78
78
  "deepmerge": "^4.2.2",
79
79
  "jest": "^27.5.1",
@@ -87,7 +87,7 @@
87
87
  },
88
88
  "peerDependencies": {
89
89
  "@metamask/accounts-controller": "^33.0.0",
90
- "@metamask/assets-controllers": "^79.0.0",
90
+ "@metamask/assets-controllers": "^80.0.0",
91
91
  "@metamask/network-controller": "^24.0.0",
92
92
  "@metamask/remote-feature-flag-controller": "^1.6.0",
93
93
  "@metamask/snaps-controllers": "^14.0.0",