@metamask-previews/transaction-pay-controller 10.6.0-preview-6a568504 → 11.0.0-preview-f5ec6061
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.
|
|
24
|
-
- Bump `@metamask/transaction-controller` from `^62.7.0` to `^62.
|
|
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@
|
|
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
|
|
@@ -67,6 +67,18 @@ export declare function getMessengerMock({ skipRegister, }?: {
|
|
|
67
67
|
decimals: number;
|
|
68
68
|
icon?: string | null | undefined;
|
|
69
69
|
iconUrl?: string | null | undefined;
|
|
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
|
+
};
|
|
81
|
+
} | undefined;
|
|
70
82
|
};
|
|
71
83
|
destAsset: {
|
|
72
84
|
symbol: string;
|
|
@@ -77,6 +89,18 @@ export declare function getMessengerMock({ skipRegister, }?: {
|
|
|
77
89
|
decimals: number;
|
|
78
90
|
icon?: string | null | undefined;
|
|
79
91
|
iconUrl?: string | null | undefined;
|
|
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
|
+
};
|
|
103
|
+
} | undefined;
|
|
80
104
|
};
|
|
81
105
|
requestId: string;
|
|
82
106
|
srcTokenAmount: string;
|
|
@@ -94,6 +118,18 @@ export declare function getMessengerMock({ skipRegister, }?: {
|
|
|
94
118
|
decimals: number;
|
|
95
119
|
icon?: string | null | undefined;
|
|
96
120
|
iconUrl?: string | null | undefined;
|
|
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
|
+
};
|
|
132
|
+
} | undefined;
|
|
97
133
|
};
|
|
98
134
|
};
|
|
99
135
|
txFee?: ({
|
|
@@ -107,6 +143,18 @@ export declare function getMessengerMock({ skipRegister, }?: {
|
|
|
107
143
|
decimals: number;
|
|
108
144
|
icon?: string | null | undefined;
|
|
109
145
|
iconUrl?: string | null | undefined;
|
|
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
|
+
};
|
|
157
|
+
} | undefined;
|
|
110
158
|
};
|
|
111
159
|
} & {
|
|
112
160
|
maxFeePerGas: string;
|
|
@@ -127,6 +175,18 @@ export declare function getMessengerMock({ skipRegister, }?: {
|
|
|
127
175
|
decimals: number;
|
|
128
176
|
icon?: string | null | undefined;
|
|
129
177
|
iconUrl?: string | null | undefined;
|
|
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
|
+
};
|
|
189
|
+
} | undefined;
|
|
130
190
|
};
|
|
131
191
|
destAsset: {
|
|
132
192
|
symbol: string;
|
|
@@ -137,6 +197,18 @@ export declare function getMessengerMock({ skipRegister, }?: {
|
|
|
137
197
|
decimals: number;
|
|
138
198
|
icon?: string | null | undefined;
|
|
139
199
|
iconUrl?: string | null | undefined;
|
|
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
|
+
};
|
|
211
|
+
} | undefined;
|
|
140
212
|
};
|
|
141
213
|
srcAmount: string;
|
|
142
214
|
destAmount: string;
|
|
@@ -159,6 +231,18 @@ export declare function getMessengerMock({ skipRegister, }?: {
|
|
|
159
231
|
decimals: number;
|
|
160
232
|
icon?: string | null | undefined;
|
|
161
233
|
iconUrl?: string | null | undefined;
|
|
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
|
+
};
|
|
245
|
+
} | undefined;
|
|
162
246
|
};
|
|
163
247
|
destAsset: {
|
|
164
248
|
symbol: string;
|
|
@@ -169,6 +253,18 @@ export declare function getMessengerMock({ skipRegister, }?: {
|
|
|
169
253
|
decimals: number;
|
|
170
254
|
icon?: string | null | undefined;
|
|
171
255
|
iconUrl?: string | null | undefined;
|
|
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
|
+
};
|
|
267
|
+
} | undefined;
|
|
172
268
|
};
|
|
173
269
|
srcAmount: string;
|
|
174
270
|
destAmount: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messenger-mock.d.cts","sourceRoot":"","sources":["../../src/tests/messenger-mock.ts"],"names":[],"mappings":";AAwBA,OAAO,KAAK,EAAE,iCAAiC,EAAE,qBAAW;AAY5D;;;;;;GAMG;AAEH,wBAAgB,gBAAgB,CAAC,EAC/B,YAAY,GACb,GAAE;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAO
|
|
1
|
+
{"version":3,"file":"messenger-mock.d.cts","sourceRoot":"","sources":["../../src/tests/messenger-mock.ts"],"names":[],"mappings":";AAwBA,OAAO,KAAK,EAAE,iCAAiC,EAAE,qBAAW;AAY5D;;;;;;GAMG;AAEH,wBAAgB,gBAAgB,CAAC,EAC/B,YAAY,GACb,GAAE;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmOjC"}
|
|
@@ -67,6 +67,18 @@ export declare function getMessengerMock({ skipRegister, }?: {
|
|
|
67
67
|
decimals: number;
|
|
68
68
|
icon?: string | null | undefined;
|
|
69
69
|
iconUrl?: string | null | undefined;
|
|
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
|
+
};
|
|
81
|
+
} | undefined;
|
|
70
82
|
};
|
|
71
83
|
destAsset: {
|
|
72
84
|
symbol: string;
|
|
@@ -77,6 +89,18 @@ export declare function getMessengerMock({ skipRegister, }?: {
|
|
|
77
89
|
decimals: number;
|
|
78
90
|
icon?: string | null | undefined;
|
|
79
91
|
iconUrl?: string | null | undefined;
|
|
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
|
+
};
|
|
103
|
+
} | undefined;
|
|
80
104
|
};
|
|
81
105
|
requestId: string;
|
|
82
106
|
srcTokenAmount: string;
|
|
@@ -94,6 +118,18 @@ export declare function getMessengerMock({ skipRegister, }?: {
|
|
|
94
118
|
decimals: number;
|
|
95
119
|
icon?: string | null | undefined;
|
|
96
120
|
iconUrl?: string | null | undefined;
|
|
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
|
+
};
|
|
132
|
+
} | undefined;
|
|
97
133
|
};
|
|
98
134
|
};
|
|
99
135
|
txFee?: ({
|
|
@@ -107,6 +143,18 @@ export declare function getMessengerMock({ skipRegister, }?: {
|
|
|
107
143
|
decimals: number;
|
|
108
144
|
icon?: string | null | undefined;
|
|
109
145
|
iconUrl?: string | null | undefined;
|
|
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
|
+
};
|
|
157
|
+
} | undefined;
|
|
110
158
|
};
|
|
111
159
|
} & {
|
|
112
160
|
maxFeePerGas: string;
|
|
@@ -127,6 +175,18 @@ export declare function getMessengerMock({ skipRegister, }?: {
|
|
|
127
175
|
decimals: number;
|
|
128
176
|
icon?: string | null | undefined;
|
|
129
177
|
iconUrl?: string | null | undefined;
|
|
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
|
+
};
|
|
189
|
+
} | undefined;
|
|
130
190
|
};
|
|
131
191
|
destAsset: {
|
|
132
192
|
symbol: string;
|
|
@@ -137,6 +197,18 @@ export declare function getMessengerMock({ skipRegister, }?: {
|
|
|
137
197
|
decimals: number;
|
|
138
198
|
icon?: string | null | undefined;
|
|
139
199
|
iconUrl?: string | null | undefined;
|
|
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
|
+
};
|
|
211
|
+
} | undefined;
|
|
140
212
|
};
|
|
141
213
|
srcAmount: string;
|
|
142
214
|
destAmount: string;
|
|
@@ -159,6 +231,18 @@ export declare function getMessengerMock({ skipRegister, }?: {
|
|
|
159
231
|
decimals: number;
|
|
160
232
|
icon?: string | null | undefined;
|
|
161
233
|
iconUrl?: string | null | undefined;
|
|
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
|
+
};
|
|
245
|
+
} | undefined;
|
|
162
246
|
};
|
|
163
247
|
destAsset: {
|
|
164
248
|
symbol: string;
|
|
@@ -169,6 +253,18 @@ export declare function getMessengerMock({ skipRegister, }?: {
|
|
|
169
253
|
decimals: number;
|
|
170
254
|
icon?: string | null | undefined;
|
|
171
255
|
iconUrl?: string | null | undefined;
|
|
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
|
+
};
|
|
267
|
+
} | undefined;
|
|
172
268
|
};
|
|
173
269
|
srcAmount: string;
|
|
174
270
|
destAmount: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messenger-mock.d.mts","sourceRoot":"","sources":["../../src/tests/messenger-mock.ts"],"names":[],"mappings":";AAwBA,OAAO,KAAK,EAAE,iCAAiC,EAAE,qBAAW;AAY5D;;;;;;GAMG;AAEH,wBAAgB,gBAAgB,CAAC,EAC/B,YAAY,GACb,GAAE;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAO
|
|
1
|
+
{"version":3,"file":"messenger-mock.d.mts","sourceRoot":"","sources":["../../src/tests/messenger-mock.ts"],"names":[],"mappings":";AAwBA,OAAO,KAAK,EAAE,iCAAiC,EAAE,qBAAW;AAY5D;;;;;;GAMG;AAEH,wBAAgB,gBAAgB,CAAC,EAC/B,YAAY,GACb,GAAE;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmOjC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/transaction-pay-controller",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0-preview-f5ec6061",
|
|
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.
|
|
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.
|
|
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",
|