@metamask/snaps-controllers 11.2.1 → 11.2.3
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 +17 -2
- package/dist/services/AbstractExecutionService.cjs +1 -1
- package/dist/services/AbstractExecutionService.cjs.map +1 -1
- package/dist/services/AbstractExecutionService.mjs +2 -2
- package/dist/services/AbstractExecutionService.mjs.map +1 -1
- package/dist/services/webview/WebViewMessageStream.cjs +2 -4
- package/dist/services/webview/WebViewMessageStream.cjs.map +1 -1
- package/dist/services/webview/WebViewMessageStream.d.cts.map +1 -1
- package/dist/services/webview/WebViewMessageStream.d.mts.map +1 -1
- package/dist/services/webview/WebViewMessageStream.mjs +3 -5
- package/dist/services/webview/WebViewMessageStream.mjs.map +1 -1
- package/dist/snaps/SnapController.cjs +1 -1
- package/dist/snaps/SnapController.cjs.map +1 -1
- package/dist/snaps/SnapController.mjs +1 -1
- package/dist/snaps/SnapController.mjs.map +1 -1
- package/dist/types/controllers.cjs.map +1 -1
- package/dist/types/controllers.d.cts +2 -2
- package/dist/types/controllers.d.mts +2 -2
- package/dist/types/controllers.mjs.map +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controllers.cjs","sourceRoot":"","sources":["../../src/types/controllers.ts"],"names":[],"mappings":"","sourcesContent":["import type { ControllerStateChangeEvent } from '@metamask/base-controller';\nimport type { Hex, Json } from '@metamask/utils';\n\n// Partial types that should overlap with types from controllers.\nexport type TransactionMeta = {\n /**\n * Generated UUID associated with this transaction.\n */\n id: string;\n\n /**\n * Network code as per EIP-155 for this transaction.\n */\n chainId: Hex;\n\n /**\n * Origin this transaction was sent from.\n */\n origin?: string;\n\n /**\n * Underlying Transaction object.\n */\n txParams: TransactionParams;\n\n /**\n * The status of the transaction.\n */\n status: string;\n};\n\n/**\n * Standard data concerning a transaction to be processed by the blockchain.\n */\nexport type TransactionParams = {\n /**\n *
|
|
1
|
+
{"version":3,"file":"controllers.cjs","sourceRoot":"","sources":["../../src/types/controllers.ts"],"names":[],"mappings":"","sourcesContent":["import type { ControllerStateChangeEvent } from '@metamask/base-controller';\nimport type { Hex, Json } from '@metamask/utils';\n\n// Partial types that should overlap with types from controllers.\nexport type TransactionMeta = {\n /**\n * Generated UUID associated with this transaction.\n */\n id: string;\n\n /**\n * Network code as per EIP-155 for this transaction.\n */\n chainId: Hex;\n\n /**\n * Origin this transaction was sent from.\n */\n origin?: string;\n\n /**\n * Underlying Transaction object.\n */\n txParams: TransactionParams;\n\n /**\n * The status of the transaction.\n */\n status: string;\n};\n\n/**\n * Standard data concerning a transaction to be processed by the blockchain.\n */\nexport type TransactionParams = {\n /**\n * Chain ID as per EIP-155.\n */\n chainId?: Hex;\n\n /**\n * Data to pass with this transaction.\n */\n data?: string;\n\n /**\n * Error message for gas estimation failure.\n */\n estimateGasError?: string;\n\n /**\n * Estimated base fee for this transaction.\n */\n estimatedBaseFee?: string;\n\n /**\n * Which estimate level that the API suggested.\n */\n estimateSuggested?: string;\n\n /**\n * Which estimate level was used\n */\n estimateUsed?: string;\n\n /**\n * Address to send this transaction from.\n */\n from: string;\n\n /**\n * same as gasLimit?\n */\n gas?: string;\n\n /**\n * Maximum number of units of gas to use for this transaction.\n */\n gasLimit?: string;\n\n /**\n * Price per gas for legacy txs\n */\n gasPrice?: string;\n\n /**\n * Gas used in the transaction.\n */\n gasUsed?: string;\n\n /**\n * Maximum amount per gas to pay for the transaction, including the priority\n * fee.\n */\n maxFeePerGas?: string;\n\n /**\n * Maximum amount per gas to give to validator as incentive.\n */\n maxPriorityFeePerGas?: string;\n\n /**\n * Unique number to prevent replay attacks.\n */\n nonce?: string;\n\n /**\n * Address to send this transaction to.\n */\n to?: string;\n\n /**\n * Value associated with this transaction.\n */\n value?: string;\n\n /**\n * Type of transaction.\n * 0x0 indicates a legacy transaction.\n */\n type?: string;\n};\n\nexport type TransactionControllerUnapprovedTransactionAddedEvent = {\n type: `TransactionController:unapprovedTransactionAdded`;\n payload: [transactionMeta: TransactionMeta];\n};\n\nexport type TransactionControllerTransactionStatusUpdatedEvent = {\n type: `TransactionController:transactionStatusUpdated`;\n payload: [\n {\n transactionMeta: TransactionMeta;\n },\n ];\n};\n\nexport type StateSignatureParams = {\n from: string;\n origin?: string;\n deferSetAsSigned?: boolean;\n data: string | Record<string, Json>;\n signatureMethod: string;\n};\n\nexport type StateSignature = {\n id: string;\n msgParams: StateSignatureParams;\n};\n\nexport type SignatureControllerState = {\n unapprovedPersonalMsgs: Record<string, StateSignature>;\n unapprovedTypedMessages: Record<string, StateSignature>;\n unapprovedPersonalMsgCount: number;\n unapprovedTypedMessagesCount: number;\n};\n\nexport type SignatureStateChange = ControllerStateChangeEvent<\n 'SignatureController',\n SignatureControllerState\n>;\n"]}
|
|
@@ -27,7 +27,7 @@ export type TransactionMeta = {
|
|
|
27
27
|
*/
|
|
28
28
|
export type TransactionParams = {
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Chain ID as per EIP-155.
|
|
31
31
|
*/
|
|
32
32
|
chainId?: Hex;
|
|
33
33
|
/**
|
|
@@ -59,7 +59,7 @@ export type TransactionParams = {
|
|
|
59
59
|
*/
|
|
60
60
|
gas?: string;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Maximum number of units of gas to use for this transaction.
|
|
63
63
|
*/
|
|
64
64
|
gasLimit?: string;
|
|
65
65
|
/**
|
|
@@ -27,7 +27,7 @@ export type TransactionMeta = {
|
|
|
27
27
|
*/
|
|
28
28
|
export type TransactionParams = {
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Chain ID as per EIP-155.
|
|
31
31
|
*/
|
|
32
32
|
chainId?: Hex;
|
|
33
33
|
/**
|
|
@@ -59,7 +59,7 @@ export type TransactionParams = {
|
|
|
59
59
|
*/
|
|
60
60
|
gas?: string;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Maximum number of units of gas to use for this transaction.
|
|
63
63
|
*/
|
|
64
64
|
gasLimit?: string;
|
|
65
65
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controllers.mjs","sourceRoot":"","sources":["../../src/types/controllers.ts"],"names":[],"mappings":"","sourcesContent":["import type { ControllerStateChangeEvent } from '@metamask/base-controller';\nimport type { Hex, Json } from '@metamask/utils';\n\n// Partial types that should overlap with types from controllers.\nexport type TransactionMeta = {\n /**\n * Generated UUID associated with this transaction.\n */\n id: string;\n\n /**\n * Network code as per EIP-155 for this transaction.\n */\n chainId: Hex;\n\n /**\n * Origin this transaction was sent from.\n */\n origin?: string;\n\n /**\n * Underlying Transaction object.\n */\n txParams: TransactionParams;\n\n /**\n * The status of the transaction.\n */\n status: string;\n};\n\n/**\n * Standard data concerning a transaction to be processed by the blockchain.\n */\nexport type TransactionParams = {\n /**\n *
|
|
1
|
+
{"version":3,"file":"controllers.mjs","sourceRoot":"","sources":["../../src/types/controllers.ts"],"names":[],"mappings":"","sourcesContent":["import type { ControllerStateChangeEvent } from '@metamask/base-controller';\nimport type { Hex, Json } from '@metamask/utils';\n\n// Partial types that should overlap with types from controllers.\nexport type TransactionMeta = {\n /**\n * Generated UUID associated with this transaction.\n */\n id: string;\n\n /**\n * Network code as per EIP-155 for this transaction.\n */\n chainId: Hex;\n\n /**\n * Origin this transaction was sent from.\n */\n origin?: string;\n\n /**\n * Underlying Transaction object.\n */\n txParams: TransactionParams;\n\n /**\n * The status of the transaction.\n */\n status: string;\n};\n\n/**\n * Standard data concerning a transaction to be processed by the blockchain.\n */\nexport type TransactionParams = {\n /**\n * Chain ID as per EIP-155.\n */\n chainId?: Hex;\n\n /**\n * Data to pass with this transaction.\n */\n data?: string;\n\n /**\n * Error message for gas estimation failure.\n */\n estimateGasError?: string;\n\n /**\n * Estimated base fee for this transaction.\n */\n estimatedBaseFee?: string;\n\n /**\n * Which estimate level that the API suggested.\n */\n estimateSuggested?: string;\n\n /**\n * Which estimate level was used\n */\n estimateUsed?: string;\n\n /**\n * Address to send this transaction from.\n */\n from: string;\n\n /**\n * same as gasLimit?\n */\n gas?: string;\n\n /**\n * Maximum number of units of gas to use for this transaction.\n */\n gasLimit?: string;\n\n /**\n * Price per gas for legacy txs\n */\n gasPrice?: string;\n\n /**\n * Gas used in the transaction.\n */\n gasUsed?: string;\n\n /**\n * Maximum amount per gas to pay for the transaction, including the priority\n * fee.\n */\n maxFeePerGas?: string;\n\n /**\n * Maximum amount per gas to give to validator as incentive.\n */\n maxPriorityFeePerGas?: string;\n\n /**\n * Unique number to prevent replay attacks.\n */\n nonce?: string;\n\n /**\n * Address to send this transaction to.\n */\n to?: string;\n\n /**\n * Value associated with this transaction.\n */\n value?: string;\n\n /**\n * Type of transaction.\n * 0x0 indicates a legacy transaction.\n */\n type?: string;\n};\n\nexport type TransactionControllerUnapprovedTransactionAddedEvent = {\n type: `TransactionController:unapprovedTransactionAdded`;\n payload: [transactionMeta: TransactionMeta];\n};\n\nexport type TransactionControllerTransactionStatusUpdatedEvent = {\n type: `TransactionController:transactionStatusUpdated`;\n payload: [\n {\n transactionMeta: TransactionMeta;\n },\n ];\n};\n\nexport type StateSignatureParams = {\n from: string;\n origin?: string;\n deferSetAsSigned?: boolean;\n data: string | Record<string, Json>;\n signatureMethod: string;\n};\n\nexport type StateSignature = {\n id: string;\n msgParams: StateSignatureParams;\n};\n\nexport type SignatureControllerState = {\n unapprovedPersonalMsgs: Record<string, StateSignature>;\n unapprovedTypedMessages: Record<string, StateSignature>;\n unapprovedPersonalMsgCount: number;\n unapprovedTypedMessagesCount: number;\n};\n\nexport type SignatureStateChange = ControllerStateChangeEvent<\n 'SignatureController',\n SignatureControllerState\n>;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask/snaps-controllers",
|
|
3
|
-
"version": "11.2.
|
|
3
|
+
"version": "11.2.3",
|
|
4
4
|
"description": "Controllers for MetaMask Snaps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -87,14 +87,14 @@
|
|
|
87
87
|
"@metamask/key-tree": "^10.1.1",
|
|
88
88
|
"@metamask/object-multiplex": "^2.1.0",
|
|
89
89
|
"@metamask/permission-controller": "^11.0.6",
|
|
90
|
-
"@metamask/phishing-controller": "^12.
|
|
90
|
+
"@metamask/phishing-controller": "^12.5.0",
|
|
91
91
|
"@metamask/post-message-stream": "^9.0.0",
|
|
92
92
|
"@metamask/rpc-errors": "^7.0.2",
|
|
93
93
|
"@metamask/snaps-registry": "^3.2.3",
|
|
94
94
|
"@metamask/snaps-rpc-methods": "^12.1.0",
|
|
95
|
-
"@metamask/snaps-sdk": "^6.22.
|
|
96
|
-
"@metamask/snaps-utils": "^9.2.
|
|
97
|
-
"@metamask/utils": "^11.
|
|
95
|
+
"@metamask/snaps-sdk": "^6.22.1",
|
|
96
|
+
"@metamask/snaps-utils": "^9.2.1",
|
|
97
|
+
"@metamask/utils": "^11.4.0",
|
|
98
98
|
"@xstate/fsm": "^2.0.0",
|
|
99
99
|
"async-mutex": "^0.5.0",
|
|
100
100
|
"browserify-zlib": "^0.2.0",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"@types/readable-stream": "^4.0.15",
|
|
129
129
|
"@types/semver": "^7.5.0",
|
|
130
130
|
"@types/tar-stream": "^3.1.1",
|
|
131
|
-
"@vitest/browser": "^3.
|
|
131
|
+
"@vitest/browser": "^3.1.1",
|
|
132
132
|
"deepmerge": "^4.2.2",
|
|
133
133
|
"depcheck": "^1.4.7",
|
|
134
134
|
"eslint": "^9.11.0",
|
|
@@ -146,10 +146,10 @@
|
|
|
146
146
|
"vite": "^6.2.6",
|
|
147
147
|
"vite-plugin-node-polyfills": "^0.23.0",
|
|
148
148
|
"vite-tsconfig-paths": "^4.0.5",
|
|
149
|
-
"vitest": "^3.
|
|
149
|
+
"vitest": "^3.1.1"
|
|
150
150
|
},
|
|
151
151
|
"peerDependencies": {
|
|
152
|
-
"@metamask/snaps-execution-environments": "^7.2.
|
|
152
|
+
"@metamask/snaps-execution-environments": "^7.2.2"
|
|
153
153
|
},
|
|
154
154
|
"peerDependenciesMeta": {
|
|
155
155
|
"@metamask/snaps-execution-environments": {
|