@metamask-previews/keyring-controller 26.0.0-preview-e4acb70 → 26.0.0-preview-5620ede0b
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 +0 -4
- package/dist/KeyringController-method-action-types.cjs.map +1 -1
- package/dist/KeyringController-method-action-types.d.cts +2 -4
- package/dist/KeyringController-method-action-types.d.cts.map +1 -1
- package/dist/KeyringController-method-action-types.d.mts +2 -4
- package/dist/KeyringController-method-action-types.d.mts.map +1 -1
- package/dist/KeyringController-method-action-types.mjs.map +1 -1
- package/dist/KeyringController.cjs +8 -47
- package/dist/KeyringController.cjs.map +1 -1
- package/dist/KeyringController.d.cts +5 -7
- package/dist/KeyringController.d.cts.map +1 -1
- package/dist/KeyringController.d.mts +5 -7
- package/dist/KeyringController.d.mts.map +1 -1
- package/dist/KeyringController.mjs +8 -47
- package/dist/KeyringController.mjs.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +0 -10
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +0 -10
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs.map +1 -1
- package/package.json +1 -1
package/dist/types.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.cjs","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { SIWEMessage } from '@metamask/controller-utils';\n\n/**\n * AbstractMessageParams\n *\n * Represents the parameters to pass to the signing method once the signature request is approved.\n *\n * from - Address from which the message is processed\n * origin? - Added for request origin identification\n * requestId? - Original request id\n * deferSetAsSigned? - Whether to defer setting the message as signed immediately after the keyring is told to sign it\n */\nexport type AbstractMessageParams = {\n from: string;\n origin?: string;\n requestId?: number;\n deferSetAsSigned?: boolean;\n};\n\n/**\n * Eip7702AuthorizationParams\n *\n * Represents the parameters for EIP-7702 authorization signing requests.\n *\n * chainId - The chain ID\n * contractAddress - The contract address\n * nonce - The nonce\n */\nexport type Eip7702AuthorizationParams = {\n chainId: number;\n contractAddress: string;\n nonce: number;\n} & AbstractMessageParams;\n\n/**\n * PersonalMessageParams\n *\n * Represents the parameters for personal signing messages.\n *\n * data - The data to sign\n * siwe? - The SIWE message\n */\nexport type PersonalMessageParams = {\n data: string;\n siwe?: SIWEMessage;\n} & AbstractMessageParams;\n\n/**\n * SignTypedDataMessageV3V4\n *\n * Represents the structure of a typed data message for EIP-712 signing requests.\n *\n * types - The types of the message\n * domain - The domain of the message\n * primaryType - The primary type of the message\n * message - The message\n */\nexport type SignTypedDataMessageV3V4 = {\n types: Record<string, unknown>;\n domain: Record<string, unknown>;\n primaryType: string;\n message: unknown;\n};\n\n/**\n * TypedMessageParams\n *\n * Represents the parameters for typed signing messages.\n *\n * data - The data to sign\n */\nexport type TypedMessageParams = {\n data: Record<string, unknown>[] | string | SignTypedDataMessageV3V4;\n} & AbstractMessageParams;\n
|
|
1
|
+
{"version":3,"file":"types.cjs","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { SIWEMessage } from '@metamask/controller-utils';\n\n/**\n * AbstractMessageParams\n *\n * Represents the parameters to pass to the signing method once the signature request is approved.\n *\n * from - Address from which the message is processed\n * origin? - Added for request origin identification\n * requestId? - Original request id\n * deferSetAsSigned? - Whether to defer setting the message as signed immediately after the keyring is told to sign it\n */\nexport type AbstractMessageParams = {\n from: string;\n origin?: string;\n requestId?: number;\n deferSetAsSigned?: boolean;\n};\n\n/**\n * Eip7702AuthorizationParams\n *\n * Represents the parameters for EIP-7702 authorization signing requests.\n *\n * chainId - The chain ID\n * contractAddress - The contract address\n * nonce - The nonce\n */\nexport type Eip7702AuthorizationParams = {\n chainId: number;\n contractAddress: string;\n nonce: number;\n} & AbstractMessageParams;\n\n/**\n * PersonalMessageParams\n *\n * Represents the parameters for personal signing messages.\n *\n * data - The data to sign\n * siwe? - The SIWE message\n */\nexport type PersonalMessageParams = {\n data: string;\n siwe?: SIWEMessage;\n} & AbstractMessageParams;\n\n/**\n * SignTypedDataMessageV3V4\n *\n * Represents the structure of a typed data message for EIP-712 signing requests.\n *\n * types - The types of the message\n * domain - The domain of the message\n * primaryType - The primary type of the message\n * message - The message\n */\nexport type SignTypedDataMessageV3V4 = {\n types: Record<string, unknown>;\n domain: Record<string, unknown>;\n primaryType: string;\n message: unknown;\n};\n\n/**\n * TypedMessageParams\n *\n * Represents the parameters for typed signing messages.\n *\n * data - The data to sign\n */\nexport type TypedMessageParams = {\n data: Record<string, unknown>[] | string | SignTypedDataMessageV3V4;\n} & AbstractMessageParams;\n"]}
|
package/dist/types.d.cts
CHANGED
|
@@ -67,14 +67,4 @@ export type SignTypedDataMessageV3V4 = {
|
|
|
67
67
|
export type TypedMessageParams = {
|
|
68
68
|
data: Record<string, unknown>[] | string | SignTypedDataMessageV3V4;
|
|
69
69
|
} & AbstractMessageParams;
|
|
70
|
-
/**
|
|
71
|
-
* Credentials for re-authenticating the keyring during sensitive operations
|
|
72
|
-
* such as `exportSeedPhrase` and `exportAccount`.
|
|
73
|
-
*/
|
|
74
|
-
export type Credentials = {
|
|
75
|
-
password: string;
|
|
76
|
-
} | {
|
|
77
|
-
encryptionKey: string;
|
|
78
|
-
encryptionSalt?: string;
|
|
79
|
-
};
|
|
80
70
|
//# sourceMappingURL=types.d.cts.map
|
package/dist/types.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,mCAAmC;AAE9D;;;;;;;;;GASG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,0B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C,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB,GAAG,qBAAqB,CAAC;AAE1B;;;;;;;;;GASG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,MAAM,GAAG,wBAAwB,CAAC;CACrE,GAAG,qBAAqB,CAAC"}
|
package/dist/types.d.mts
CHANGED
|
@@ -67,14 +67,4 @@ export type SignTypedDataMessageV3V4 = {
|
|
|
67
67
|
export type TypedMessageParams = {
|
|
68
68
|
data: Record<string, unknown>[] | string | SignTypedDataMessageV3V4;
|
|
69
69
|
} & AbstractMessageParams;
|
|
70
|
-
/**
|
|
71
|
-
* Credentials for re-authenticating the keyring during sensitive operations
|
|
72
|
-
* such as `exportSeedPhrase` and `exportAccount`.
|
|
73
|
-
*/
|
|
74
|
-
export type Credentials = {
|
|
75
|
-
password: string;
|
|
76
|
-
} | {
|
|
77
|
-
encryptionKey: string;
|
|
78
|
-
encryptionSalt?: string;
|
|
79
|
-
};
|
|
80
70
|
//# sourceMappingURL=types.d.mts.map
|
package/dist/types.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,mCAAmC;AAE9D;;;;;;;;;GASG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,C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Ae,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,qBAAqB,CAAC;AAE1B;;;;;;;GAOG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB,GAAG,qBAAqB,CAAC;AAE1B;;;;;;;;;GASG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,MAAM,GAAG,wBAAwB,CAAC;CACrE,GAAG,qBAAqB,CAAC"}
|
package/dist/types.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.mjs","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { SIWEMessage } from '@metamask/controller-utils';\n\n/**\n * AbstractMessageParams\n *\n * Represents the parameters to pass to the signing method once the signature request is approved.\n *\n * from - Address from which the message is processed\n * origin? - Added for request origin identification\n * requestId? - Original request id\n * deferSetAsSigned? - Whether to defer setting the message as signed immediately after the keyring is told to sign it\n */\nexport type AbstractMessageParams = {\n from: string;\n origin?: string;\n requestId?: number;\n deferSetAsSigned?: boolean;\n};\n\n/**\n * Eip7702AuthorizationParams\n *\n * Represents the parameters for EIP-7702 authorization signing requests.\n *\n * chainId - The chain ID\n * contractAddress - The contract address\n * nonce - The nonce\n */\nexport type Eip7702AuthorizationParams = {\n chainId: number;\n contractAddress: string;\n nonce: number;\n} & AbstractMessageParams;\n\n/**\n * PersonalMessageParams\n *\n * Represents the parameters for personal signing messages.\n *\n * data - The data to sign\n * siwe? - The SIWE message\n */\nexport type PersonalMessageParams = {\n data: string;\n siwe?: SIWEMessage;\n} & AbstractMessageParams;\n\n/**\n * SignTypedDataMessageV3V4\n *\n * Represents the structure of a typed data message for EIP-712 signing requests.\n *\n * types - The types of the message\n * domain - The domain of the message\n * primaryType - The primary type of the message\n * message - The message\n */\nexport type SignTypedDataMessageV3V4 = {\n types: Record<string, unknown>;\n domain: Record<string, unknown>;\n primaryType: string;\n message: unknown;\n};\n\n/**\n * TypedMessageParams\n *\n * Represents the parameters for typed signing messages.\n *\n * data - The data to sign\n */\nexport type TypedMessageParams = {\n data: Record<string, unknown>[] | string | SignTypedDataMessageV3V4;\n} & AbstractMessageParams;\n
|
|
1
|
+
{"version":3,"file":"types.mjs","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { SIWEMessage } from '@metamask/controller-utils';\n\n/**\n * AbstractMessageParams\n *\n * Represents the parameters to pass to the signing method once the signature request is approved.\n *\n * from - Address from which the message is processed\n * origin? - Added for request origin identification\n * requestId? - Original request id\n * deferSetAsSigned? - Whether to defer setting the message as signed immediately after the keyring is told to sign it\n */\nexport type AbstractMessageParams = {\n from: string;\n origin?: string;\n requestId?: number;\n deferSetAsSigned?: boolean;\n};\n\n/**\n * Eip7702AuthorizationParams\n *\n * Represents the parameters for EIP-7702 authorization signing requests.\n *\n * chainId - The chain ID\n * contractAddress - The contract address\n * nonce - The nonce\n */\nexport type Eip7702AuthorizationParams = {\n chainId: number;\n contractAddress: string;\n nonce: number;\n} & AbstractMessageParams;\n\n/**\n * PersonalMessageParams\n *\n * Represents the parameters for personal signing messages.\n *\n * data - The data to sign\n * siwe? - The SIWE message\n */\nexport type PersonalMessageParams = {\n data: string;\n siwe?: SIWEMessage;\n} & AbstractMessageParams;\n\n/**\n * SignTypedDataMessageV3V4\n *\n * Represents the structure of a typed data message for EIP-712 signing requests.\n *\n * types - The types of the message\n * domain - The domain of the message\n * primaryType - The primary type of the message\n * message - The message\n */\nexport type SignTypedDataMessageV3V4 = {\n types: Record<string, unknown>;\n domain: Record<string, unknown>;\n primaryType: string;\n message: unknown;\n};\n\n/**\n * TypedMessageParams\n *\n * Represents the parameters for typed signing messages.\n *\n * data - The data to sign\n */\nexport type TypedMessageParams = {\n data: Record<string, unknown>[] | string | SignTypedDataMessageV3V4;\n} & AbstractMessageParams;\n"]}
|
package/package.json
CHANGED