@metamask-previews/transaction-pay-controller 10.6.0-preview-8a4f4ea3 → 11.0.0-preview-a033b2d7

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.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [11.0.0]
11
+
10
12
  ### Added
11
13
 
12
14
  - **BREAKING:** Support max amount quotes ([#7562](https://github.com/MetaMask/core/pull/7562))
@@ -20,8 +22,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
20
22
 
21
23
  - Bump `@metamask/controller-utils` from `^11.17.0` to `^11.18.0` ([#7583](https://github.com/MetaMask/core/pull/7583))
22
24
  - Bump `@metamask/network-controller` from `^27.1.0` to `^27.2.0` ([#7583](https://github.com/MetaMask/core/pull/7583))
23
- - Bump `@metamask/assets-controllers` from `^94.0.0` to `^95.0.0` ([#7584](https://github.com/MetaMask/core/pull/7584))
24
- - Bump `@metamask/transaction-controller` from `^62.7.0` to `^62.8.0` ([#7596](https://github.com/MetaMask/core/pull/7596))
25
+ - Bump `@metamask/assets-controllers` from `^94.0.0` to `^95.1.0` ([#7584](https://github.com/MetaMask/core/pull/7584), [#7600](https://github.com/MetaMask/core/pull/7600))
26
+ - Bump `@metamask/transaction-controller` from `^62.7.0` to `^62.9.0` ([#7596](https://github.com/MetaMask/core/pull/7596), [#7602](https://github.com/MetaMask/core/pull/7602))
25
27
  - Bump `@metamask/bridge-controller` from `^64.3.0` to `^64.4.0` ([#7596](https://github.com/MetaMask/core/pull/7596))
26
28
  - Bump `@metamask/bridge-status-controller` from `^64.3.0` to `^64.4.1` ([#7596](https://github.com/MetaMask/core/pull/7596), [#7597](https://github.com/MetaMask/core/pull/7597))
27
29
 
@@ -249,7 +251,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
249
251
 
250
252
  - Initial release ([#6820](https://github.com/MetaMask/core/pull/6820))
251
253
 
252
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-pay-controller@10.6.0...HEAD
254
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-pay-controller@11.0.0...HEAD
255
+ [11.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-pay-controller@10.6.0...@metamask/transaction-pay-controller@11.0.0
253
256
  [10.6.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-pay-controller@10.5.0...@metamask/transaction-pay-controller@10.6.0
254
257
  [10.5.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-pay-controller@10.4.0...@metamask/transaction-pay-controller@10.5.0
255
258
  [10.4.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-pay-controller@10.3.0...@metamask/transaction-pay-controller@10.4.0
@@ -68,16 +68,16 @@ export declare function getMessengerMock({ skipRegister, }?: {
68
68
  icon?: string | null | undefined;
69
69
  iconUrl?: string | null | undefined;
70
70
  rwaData?: {
71
- instrumentType: string;
72
- ticker: string;
73
- market: {
74
- nextOpen: string;
75
- nextClose: string;
76
- };
77
- nextPause: {
78
- start: string;
79
- end: string;
80
- };
71
+ instrumentType?: string | undefined;
72
+ ticker?: string | undefined;
73
+ market?: {
74
+ nextOpen?: string | undefined;
75
+ nextClose?: string | undefined;
76
+ } | undefined;
77
+ nextPause?: {
78
+ start?: string | undefined;
79
+ end?: string | undefined;
80
+ } | undefined;
81
81
  } | undefined;
82
82
  };
83
83
  destAsset: {
@@ -90,16 +90,16 @@ export declare function getMessengerMock({ skipRegister, }?: {
90
90
  icon?: string | null | undefined;
91
91
  iconUrl?: string | null | undefined;
92
92
  rwaData?: {
93
- instrumentType: string;
94
- ticker: string;
95
- market: {
96
- nextOpen: string;
97
- nextClose: string;
98
- };
99
- nextPause: {
100
- start: string;
101
- end: string;
102
- };
93
+ instrumentType?: string | undefined;
94
+ ticker?: string | undefined;
95
+ market?: {
96
+ nextOpen?: string | undefined;
97
+ nextClose?: string | undefined;
98
+ } | undefined;
99
+ nextPause?: {
100
+ start?: string | undefined;
101
+ end?: string | undefined;
102
+ } | undefined;
103
103
  } | undefined;
104
104
  };
105
105
  requestId: string;
@@ -119,16 +119,16 @@ export declare function getMessengerMock({ skipRegister, }?: {
119
119
  icon?: string | null | undefined;
120
120
  iconUrl?: string | null | undefined;
121
121
  rwaData?: {
122
- instrumentType: string;
123
- ticker: string;
124
- market: {
125
- nextOpen: string;
126
- nextClose: string;
127
- };
128
- nextPause: {
129
- start: string;
130
- end: string;
131
- };
122
+ instrumentType?: string | undefined;
123
+ ticker?: string | undefined;
124
+ market?: {
125
+ nextOpen?: string | undefined;
126
+ nextClose?: string | undefined;
127
+ } | undefined;
128
+ nextPause?: {
129
+ start?: string | undefined;
130
+ end?: string | undefined;
131
+ } | undefined;
132
132
  } | undefined;
133
133
  };
134
134
  };
@@ -144,16 +144,16 @@ export declare function getMessengerMock({ skipRegister, }?: {
144
144
  icon?: string | null | undefined;
145
145
  iconUrl?: string | null | undefined;
146
146
  rwaData?: {
147
- instrumentType: string;
148
- ticker: string;
149
- market: {
150
- nextOpen: string;
151
- nextClose: string;
152
- };
153
- nextPause: {
154
- start: string;
155
- end: string;
156
- };
147
+ instrumentType?: string | undefined;
148
+ ticker?: string | undefined;
149
+ market?: {
150
+ nextOpen?: string | undefined;
151
+ nextClose?: string | undefined;
152
+ } | undefined;
153
+ nextPause?: {
154
+ start?: string | undefined;
155
+ end?: string | undefined;
156
+ } | undefined;
157
157
  } | undefined;
158
158
  };
159
159
  } & {
@@ -176,16 +176,16 @@ export declare function getMessengerMock({ skipRegister, }?: {
176
176
  icon?: string | null | undefined;
177
177
  iconUrl?: string | null | undefined;
178
178
  rwaData?: {
179
- instrumentType: string;
180
- ticker: string;
181
- market: {
182
- nextOpen: string;
183
- nextClose: string;
184
- };
185
- nextPause: {
186
- start: string;
187
- end: string;
188
- };
179
+ instrumentType?: string | undefined;
180
+ ticker?: string | undefined;
181
+ market?: {
182
+ nextOpen?: string | undefined;
183
+ nextClose?: string | undefined;
184
+ } | undefined;
185
+ nextPause?: {
186
+ start?: string | undefined;
187
+ end?: string | undefined;
188
+ } | undefined;
189
189
  } | undefined;
190
190
  };
191
191
  destAsset: {
@@ -198,16 +198,16 @@ export declare function getMessengerMock({ skipRegister, }?: {
198
198
  icon?: string | null | undefined;
199
199
  iconUrl?: string | null | undefined;
200
200
  rwaData?: {
201
- instrumentType: string;
202
- ticker: string;
203
- market: {
204
- nextOpen: string;
205
- nextClose: string;
206
- };
207
- nextPause: {
208
- start: string;
209
- end: string;
210
- };
201
+ instrumentType?: string | undefined;
202
+ ticker?: string | undefined;
203
+ market?: {
204
+ nextOpen?: string | undefined;
205
+ nextClose?: string | undefined;
206
+ } | undefined;
207
+ nextPause?: {
208
+ start?: string | undefined;
209
+ end?: string | undefined;
210
+ } | undefined;
211
211
  } | undefined;
212
212
  };
213
213
  srcAmount: string;
@@ -232,16 +232,16 @@ export declare function getMessengerMock({ skipRegister, }?: {
232
232
  icon?: string | null | undefined;
233
233
  iconUrl?: string | null | undefined;
234
234
  rwaData?: {
235
- instrumentType: string;
236
- ticker: string;
237
- market: {
238
- nextOpen: string;
239
- nextClose: string;
240
- };
241
- nextPause: {
242
- start: string;
243
- end: string;
244
- };
235
+ instrumentType?: string | undefined;
236
+ ticker?: string | undefined;
237
+ market?: {
238
+ nextOpen?: string | undefined;
239
+ nextClose?: string | undefined;
240
+ } | undefined;
241
+ nextPause?: {
242
+ start?: string | undefined;
243
+ end?: string | undefined;
244
+ } | undefined;
245
245
  } | undefined;
246
246
  };
247
247
  destAsset: {
@@ -254,16 +254,16 @@ export declare function getMessengerMock({ skipRegister, }?: {
254
254
  icon?: string | null | undefined;
255
255
  iconUrl?: string | null | undefined;
256
256
  rwaData?: {
257
- instrumentType: string;
258
- ticker: string;
259
- market: {
260
- nextOpen: string;
261
- nextClose: string;
262
- };
263
- nextPause: {
264
- start: string;
265
- end: string;
266
- };
257
+ instrumentType?: string | undefined;
258
+ ticker?: string | undefined;
259
+ market?: {
260
+ nextOpen?: string | undefined;
261
+ nextClose?: string | undefined;
262
+ } | undefined;
263
+ nextPause?: {
264
+ start?: string | undefined;
265
+ end?: string | undefined;
266
+ } | undefined;
267
267
  } | undefined;
268
268
  };
269
269
  srcAmount: string;
@@ -68,16 +68,16 @@ export declare function getMessengerMock({ skipRegister, }?: {
68
68
  icon?: string | null | undefined;
69
69
  iconUrl?: string | null | undefined;
70
70
  rwaData?: {
71
- instrumentType: string;
72
- ticker: string;
73
- market: {
74
- nextOpen: string;
75
- nextClose: string;
76
- };
77
- nextPause: {
78
- start: string;
79
- end: string;
80
- };
71
+ instrumentType?: string | undefined;
72
+ ticker?: string | undefined;
73
+ market?: {
74
+ nextOpen?: string | undefined;
75
+ nextClose?: string | undefined;
76
+ } | undefined;
77
+ nextPause?: {
78
+ start?: string | undefined;
79
+ end?: string | undefined;
80
+ } | undefined;
81
81
  } | undefined;
82
82
  };
83
83
  destAsset: {
@@ -90,16 +90,16 @@ export declare function getMessengerMock({ skipRegister, }?: {
90
90
  icon?: string | null | undefined;
91
91
  iconUrl?: string | null | undefined;
92
92
  rwaData?: {
93
- instrumentType: string;
94
- ticker: string;
95
- market: {
96
- nextOpen: string;
97
- nextClose: string;
98
- };
99
- nextPause: {
100
- start: string;
101
- end: string;
102
- };
93
+ instrumentType?: string | undefined;
94
+ ticker?: string | undefined;
95
+ market?: {
96
+ nextOpen?: string | undefined;
97
+ nextClose?: string | undefined;
98
+ } | undefined;
99
+ nextPause?: {
100
+ start?: string | undefined;
101
+ end?: string | undefined;
102
+ } | undefined;
103
103
  } | undefined;
104
104
  };
105
105
  requestId: string;
@@ -119,16 +119,16 @@ export declare function getMessengerMock({ skipRegister, }?: {
119
119
  icon?: string | null | undefined;
120
120
  iconUrl?: string | null | undefined;
121
121
  rwaData?: {
122
- instrumentType: string;
123
- ticker: string;
124
- market: {
125
- nextOpen: string;
126
- nextClose: string;
127
- };
128
- nextPause: {
129
- start: string;
130
- end: string;
131
- };
122
+ instrumentType?: string | undefined;
123
+ ticker?: string | undefined;
124
+ market?: {
125
+ nextOpen?: string | undefined;
126
+ nextClose?: string | undefined;
127
+ } | undefined;
128
+ nextPause?: {
129
+ start?: string | undefined;
130
+ end?: string | undefined;
131
+ } | undefined;
132
132
  } | undefined;
133
133
  };
134
134
  };
@@ -144,16 +144,16 @@ export declare function getMessengerMock({ skipRegister, }?: {
144
144
  icon?: string | null | undefined;
145
145
  iconUrl?: string | null | undefined;
146
146
  rwaData?: {
147
- instrumentType: string;
148
- ticker: string;
149
- market: {
150
- nextOpen: string;
151
- nextClose: string;
152
- };
153
- nextPause: {
154
- start: string;
155
- end: string;
156
- };
147
+ instrumentType?: string | undefined;
148
+ ticker?: string | undefined;
149
+ market?: {
150
+ nextOpen?: string | undefined;
151
+ nextClose?: string | undefined;
152
+ } | undefined;
153
+ nextPause?: {
154
+ start?: string | undefined;
155
+ end?: string | undefined;
156
+ } | undefined;
157
157
  } | undefined;
158
158
  };
159
159
  } & {
@@ -176,16 +176,16 @@ export declare function getMessengerMock({ skipRegister, }?: {
176
176
  icon?: string | null | undefined;
177
177
  iconUrl?: string | null | undefined;
178
178
  rwaData?: {
179
- instrumentType: string;
180
- ticker: string;
181
- market: {
182
- nextOpen: string;
183
- nextClose: string;
184
- };
185
- nextPause: {
186
- start: string;
187
- end: string;
188
- };
179
+ instrumentType?: string | undefined;
180
+ ticker?: string | undefined;
181
+ market?: {
182
+ nextOpen?: string | undefined;
183
+ nextClose?: string | undefined;
184
+ } | undefined;
185
+ nextPause?: {
186
+ start?: string | undefined;
187
+ end?: string | undefined;
188
+ } | undefined;
189
189
  } | undefined;
190
190
  };
191
191
  destAsset: {
@@ -198,16 +198,16 @@ export declare function getMessengerMock({ skipRegister, }?: {
198
198
  icon?: string | null | undefined;
199
199
  iconUrl?: string | null | undefined;
200
200
  rwaData?: {
201
- instrumentType: string;
202
- ticker: string;
203
- market: {
204
- nextOpen: string;
205
- nextClose: string;
206
- };
207
- nextPause: {
208
- start: string;
209
- end: string;
210
- };
201
+ instrumentType?: string | undefined;
202
+ ticker?: string | undefined;
203
+ market?: {
204
+ nextOpen?: string | undefined;
205
+ nextClose?: string | undefined;
206
+ } | undefined;
207
+ nextPause?: {
208
+ start?: string | undefined;
209
+ end?: string | undefined;
210
+ } | undefined;
211
211
  } | undefined;
212
212
  };
213
213
  srcAmount: string;
@@ -232,16 +232,16 @@ export declare function getMessengerMock({ skipRegister, }?: {
232
232
  icon?: string | null | undefined;
233
233
  iconUrl?: string | null | undefined;
234
234
  rwaData?: {
235
- instrumentType: string;
236
- ticker: string;
237
- market: {
238
- nextOpen: string;
239
- nextClose: string;
240
- };
241
- nextPause: {
242
- start: string;
243
- end: string;
244
- };
235
+ instrumentType?: string | undefined;
236
+ ticker?: string | undefined;
237
+ market?: {
238
+ nextOpen?: string | undefined;
239
+ nextClose?: string | undefined;
240
+ } | undefined;
241
+ nextPause?: {
242
+ start?: string | undefined;
243
+ end?: string | undefined;
244
+ } | undefined;
245
245
  } | undefined;
246
246
  };
247
247
  destAsset: {
@@ -254,16 +254,16 @@ export declare function getMessengerMock({ skipRegister, }?: {
254
254
  icon?: string | null | undefined;
255
255
  iconUrl?: string | null | undefined;
256
256
  rwaData?: {
257
- instrumentType: string;
258
- ticker: string;
259
- market: {
260
- nextOpen: string;
261
- nextClose: string;
262
- };
263
- nextPause: {
264
- start: string;
265
- end: string;
266
- };
257
+ instrumentType?: string | undefined;
258
+ ticker?: string | undefined;
259
+ market?: {
260
+ nextOpen?: string | undefined;
261
+ nextClose?: string | undefined;
262
+ } | undefined;
263
+ nextPause?: {
264
+ start?: string | undefined;
265
+ end?: string | undefined;
266
+ } | undefined;
267
267
  } | undefined;
268
268
  };
269
269
  srcAmount: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/transaction-pay-controller",
3
- "version": "10.6.0-preview-8a4f4ea3",
3
+ "version": "11.0.0-preview-a033b2d7",
4
4
  "description": "Manages alternate payment strategies to provide required funds for transactions in MetaMask",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -51,7 +51,7 @@
51
51
  "dependencies": {
52
52
  "@ethersproject/abi": "^5.7.0",
53
53
  "@ethersproject/contracts": "^5.7.0",
54
- "@metamask/assets-controllers": "^95.0.0",
54
+ "@metamask/assets-controllers": "^95.1.0",
55
55
  "@metamask/base-controller": "^9.0.0",
56
56
  "@metamask/bridge-controller": "^64.4.0",
57
57
  "@metamask/bridge-status-controller": "^64.4.1",
@@ -61,7 +61,7 @@
61
61
  "@metamask/metamask-eth-abis": "^3.1.1",
62
62
  "@metamask/network-controller": "^27.2.0",
63
63
  "@metamask/remote-feature-flag-controller": "^4.0.0",
64
- "@metamask/transaction-controller": "^62.8.0",
64
+ "@metamask/transaction-controller": "^62.9.0",
65
65
  "@metamask/utils": "^11.9.0",
66
66
  "bignumber.js": "^9.1.2",
67
67
  "bn.js": "^5.2.1",