@metamask-previews/keyring-controller 19.1.0-preview-7a21cbc → 19.1.0-preview-52c28555
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/dist/KeyringController.cjs +22 -134
- package/dist/KeyringController.cjs.map +1 -1
- package/dist/KeyringController.d.cts +4 -38
- package/dist/KeyringController.d.cts.map +1 -1
- package/dist/KeyringController.d.mts +4 -38
- package/dist/KeyringController.d.mts.map +1 -1
- package/dist/KeyringController.mjs +26 -136
- package/dist/KeyringController.mjs.map +1 -1
- package/dist/constants.cjs +0 -4
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.d.cts +1 -5
- package/dist/constants.d.cts.map +1 -1
- package/dist/constants.d.mts +1 -5
- package/dist/constants.d.mts.map +1 -1
- package/dist/constants.mjs +0 -4
- package/dist/constants.mjs.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +0 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -12
- package/dist/types.cjs +0 -3
- package/dist/types.cjs.map +0 -1
- package/dist/types.d.cts +0 -70
- package/dist/types.d.cts.map +0 -1
- package/dist/types.d.mts +0 -70
- package/dist/types.d.mts.map +0 -1
- package/dist/types.mjs +0 -2
- package/dist/types.mjs.map +0 -1
package/dist/constants.cjs
CHANGED
|
@@ -19,7 +19,6 @@ var KeyringControllerError;
|
|
|
19
19
|
KeyringControllerError["UnsupportedSignTransaction"] = "KeyringController - The keyring for the current address does not support the method signTransaction.";
|
|
20
20
|
KeyringControllerError["UnsupportedSignMessage"] = "KeyringController - The keyring for the current address does not support the method signMessage.";
|
|
21
21
|
KeyringControllerError["UnsupportedSignPersonalMessage"] = "KeyringController - The keyring for the current address does not support the method signPersonalMessage.";
|
|
22
|
-
KeyringControllerError["UnsupportedSignEip7702Authorization"] = "KeyringController - The keyring for the current address does not support the method signEip7702Authorization.";
|
|
23
22
|
KeyringControllerError["UnsupportedGetEncryptionPublicKey"] = "KeyringController - The keyring for the current address does not support the method getEncryptionPublicKey.";
|
|
24
23
|
KeyringControllerError["UnsupportedDecryptMessage"] = "KeyringController - The keyring for the current address does not support the method decryptMessage.";
|
|
25
24
|
KeyringControllerError["UnsupportedSignTypedMessage"] = "KeyringController - The keyring for the current address does not support the method signTypedMessage.";
|
|
@@ -28,7 +27,6 @@ var KeyringControllerError;
|
|
|
28
27
|
KeyringControllerError["UnsupportedPrepareUserOperation"] = "KeyringController - The keyring for the current address does not support the method prepareUserOperation.";
|
|
29
28
|
KeyringControllerError["UnsupportedPatchUserOperation"] = "KeyringController - The keyring for the current address does not support the method patchUserOperation.";
|
|
30
29
|
KeyringControllerError["UnsupportedSignUserOperation"] = "KeyringController - The keyring for the current address does not support the method signUserOperation.";
|
|
31
|
-
KeyringControllerError["UnsupportedVerifySeedPhrase"] = "KeyringController - The keyring does not support the method verifySeedPhrase.";
|
|
32
30
|
KeyringControllerError["NoAccountOnKeychain"] = "KeyringController - The keychain doesn't have accounts.";
|
|
33
31
|
KeyringControllerError["ControllerLocked"] = "KeyringController - The operation cannot be completed while the controller is locked.";
|
|
34
32
|
KeyringControllerError["MissingCredentials"] = "KeyringController - Cannot persist vault without password and encryption key";
|
|
@@ -38,7 +36,5 @@ var KeyringControllerError;
|
|
|
38
36
|
KeyringControllerError["DataType"] = "KeyringController - Incorrect data type provided";
|
|
39
37
|
KeyringControllerError["NoHdKeyring"] = "KeyringController - No HD Keyring found";
|
|
40
38
|
KeyringControllerError["ControllerLockRequired"] = "KeyringController - attempt to update vault during a non mutually exclusive operation";
|
|
41
|
-
KeyringControllerError["KeyringMetadataLengthMismatch"] = "KeyringController - keyring metadata length mismatch";
|
|
42
|
-
KeyringControllerError["LastAccountInPrimaryKeyring"] = "KeyringController - Last account in primary keyring cannot be removed";
|
|
43
39
|
})(KeyringControllerError || (exports.KeyringControllerError = KeyringControllerError = {}));
|
|
44
40
|
//# sourceMappingURL=constants.cjs.map
|
package/dist/constants.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.cjs","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"constants.cjs","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAkCX;AAlCD,WAAY,sBAAsB;IAChC,4EAAkD,CAAA;IAClD,oFAA0D,CAAA;IAC1D,iHAAuF,CAAA;IACvF,oGAA0E,CAAA;IAC1E,gGAAsE,CAAA;IACtE,yFAA+D,CAAA;IAC/D,uHAA6F,CAAA;IAC7F,oGAA0E,CAAA;IAC1E,6GAAmF,CAAA;IACnF,sIAA4G,CAAA;IAC5G,2JAAiI,CAAA;IACjI,yJAA+H,CAAA;IAC/H,yJAA+H,CAAA;IAC/H,6JAAmI,CAAA;IACnI,qJAA2H,CAAA;IAC3H,qKAA2I,CAAA;IAC3I,2KAAiJ,CAAA;IACjJ,2JAAiI,CAAA;IACjI,+JAAqI,CAAA;IACrI,+JAAqI,CAAA;IACrI,2KAAiJ,CAAA;IACjJ,uKAA6I,CAAA;IAC7I,mKAAyI,CAAA;IACzI,iKAAuI,CAAA;IACvI,yGAA+E,CAAA;IAC/E,oIAA0G,CAAA;IAC1G,6HAAmG,CAAA;IACnG,iHAAuF,CAAA;IACvF,iHAAuF,CAAA;IACvF,sGAA4E,CAAA;IAC5E,uFAA6D,CAAA;IAC7D,iFAAuD,CAAA;IACvD,0IAAgH,CAAA;AAClH,CAAC,EAlCW,sBAAsB,sCAAtB,sBAAsB,QAkCjC","sourcesContent":["export enum KeyringControllerError {\n NoKeyring = 'KeyringController - No keyring found',\n KeyringNotFound = 'KeyringController - Keyring not found.',\n UnsafeDirectKeyringAccess = 'KeyringController - Returning keyring instances is unsafe',\n WrongPasswordType = 'KeyringController - Password must be of type string.',\n InvalidEmptyPassword = 'KeyringController - Password cannot be empty.',\n NoFirstAccount = 'KeyringController - First Account not found.',\n DuplicatedAccount = 'KeyringController - The account you are trying to import is a duplicate',\n VaultError = 'KeyringController - Cannot unlock without a previous vault.',\n VaultDataError = 'KeyringController - The decrypted vault has an unexpected shape.',\n UnsupportedEncryptionKeyExport = 'KeyringController - The encryptor does not support encryption key export.',\n UnsupportedGenerateRandomMnemonic = 'KeyringController - The current keyring does not support the method generateRandomMnemonic.',\n UnsupportedExportAccount = '`KeyringController - The keyring for the current address does not support the method exportAccount',\n UnsupportedRemoveAccount = '`KeyringController - The keyring for the current address does not support the method removeAccount',\n UnsupportedSignTransaction = 'KeyringController - The keyring for the current address does not support the method signTransaction.',\n UnsupportedSignMessage = 'KeyringController - The keyring for the current address does not support the method signMessage.',\n UnsupportedSignPersonalMessage = 'KeyringController - The keyring for the current address does not support the method signPersonalMessage.',\n UnsupportedGetEncryptionPublicKey = 'KeyringController - The keyring for the current address does not support the method getEncryptionPublicKey.',\n UnsupportedDecryptMessage = 'KeyringController - The keyring for the current address does not support the method decryptMessage.',\n UnsupportedSignTypedMessage = 'KeyringController - The keyring for the current address does not support the method signTypedMessage.',\n UnsupportedGetAppKeyAddress = 'KeyringController - The keyring for the current address does not support the method getAppKeyAddress.',\n UnsupportedExportAppKeyForAddress = 'KeyringController - The keyring for the current address does not support the method exportAppKeyForAddress.',\n UnsupportedPrepareUserOperation = 'KeyringController - The keyring for the current address does not support the method prepareUserOperation.',\n UnsupportedPatchUserOperation = 'KeyringController - The keyring for the current address does not support the method patchUserOperation.',\n UnsupportedSignUserOperation = 'KeyringController - The keyring for the current address does not support the method signUserOperation.',\n NoAccountOnKeychain = \"KeyringController - The keychain doesn't have accounts.\",\n ControllerLocked = 'KeyringController - The operation cannot be completed while the controller is locked.',\n MissingCredentials = 'KeyringController - Cannot persist vault without password and encryption key',\n MissingVaultData = 'KeyringController - Cannot persist vault without vault information',\n ExpiredCredentials = 'KeyringController - Encryption key and salt provided are expired',\n NoKeyringBuilder = 'KeyringController - No keyringBuilder found for keyring',\n DataType = 'KeyringController - Incorrect data type provided',\n NoHdKeyring = 'KeyringController - No HD Keyring found',\n ControllerLockRequired = 'KeyringController - attempt to update vault during a non mutually exclusive operation',\n}\n"]}
|
package/dist/constants.d.cts
CHANGED
|
@@ -15,7 +15,6 @@ export declare enum KeyringControllerError {
|
|
|
15
15
|
UnsupportedSignTransaction = "KeyringController - The keyring for the current address does not support the method signTransaction.",
|
|
16
16
|
UnsupportedSignMessage = "KeyringController - The keyring for the current address does not support the method signMessage.",
|
|
17
17
|
UnsupportedSignPersonalMessage = "KeyringController - The keyring for the current address does not support the method signPersonalMessage.",
|
|
18
|
-
UnsupportedSignEip7702Authorization = "KeyringController - The keyring for the current address does not support the method signEip7702Authorization.",
|
|
19
18
|
UnsupportedGetEncryptionPublicKey = "KeyringController - The keyring for the current address does not support the method getEncryptionPublicKey.",
|
|
20
19
|
UnsupportedDecryptMessage = "KeyringController - The keyring for the current address does not support the method decryptMessage.",
|
|
21
20
|
UnsupportedSignTypedMessage = "KeyringController - The keyring for the current address does not support the method signTypedMessage.",
|
|
@@ -24,7 +23,6 @@ export declare enum KeyringControllerError {
|
|
|
24
23
|
UnsupportedPrepareUserOperation = "KeyringController - The keyring for the current address does not support the method prepareUserOperation.",
|
|
25
24
|
UnsupportedPatchUserOperation = "KeyringController - The keyring for the current address does not support the method patchUserOperation.",
|
|
26
25
|
UnsupportedSignUserOperation = "KeyringController - The keyring for the current address does not support the method signUserOperation.",
|
|
27
|
-
UnsupportedVerifySeedPhrase = "KeyringController - The keyring does not support the method verifySeedPhrase.",
|
|
28
26
|
NoAccountOnKeychain = "KeyringController - The keychain doesn't have accounts.",
|
|
29
27
|
ControllerLocked = "KeyringController - The operation cannot be completed while the controller is locked.",
|
|
30
28
|
MissingCredentials = "KeyringController - Cannot persist vault without password and encryption key",
|
|
@@ -33,8 +31,6 @@ export declare enum KeyringControllerError {
|
|
|
33
31
|
NoKeyringBuilder = "KeyringController - No keyringBuilder found for keyring",
|
|
34
32
|
DataType = "KeyringController - Incorrect data type provided",
|
|
35
33
|
NoHdKeyring = "KeyringController - No HD Keyring found",
|
|
36
|
-
ControllerLockRequired = "KeyringController - attempt to update vault during a non mutually exclusive operation"
|
|
37
|
-
KeyringMetadataLengthMismatch = "KeyringController - keyring metadata length mismatch",
|
|
38
|
-
LastAccountInPrimaryKeyring = "KeyringController - Last account in primary keyring cannot be removed"
|
|
34
|
+
ControllerLockRequired = "KeyringController - attempt to update vault during a non mutually exclusive operation"
|
|
39
35
|
}
|
|
40
36
|
//# sourceMappingURL=constants.d.cts.map
|
package/dist/constants.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.cts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,sBAAsB;IAChC,SAAS,yCAAyC;IAClD,eAAe,2CAA2C;IAC1D,yBAAyB,8DAA8D;IACvF,iBAAiB,yDAAyD;IAC1E,oBAAoB,kDAAkD;IACtE,cAAc,iDAAiD;IAC/D,iBAAiB,4EAA4E;IAC7F,UAAU,gEAAgE;IAC1E,cAAc,qEAAqE;IACnF,8BAA8B,8EAA8E;IAC5G,iCAAiC,gGAAgG;IACjI,wBAAwB,uGAAuG;IAC/H,wBAAwB,uGAAuG;IAC/H,0BAA0B,yGAAyG;IACnI,sBAAsB,qGAAqG;IAC3H,8BAA8B,6GAA6G;IAC3I,
|
|
1
|
+
{"version":3,"file":"constants.d.cts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,sBAAsB;IAChC,SAAS,yCAAyC;IAClD,eAAe,2CAA2C;IAC1D,yBAAyB,8DAA8D;IACvF,iBAAiB,yDAAyD;IAC1E,oBAAoB,kDAAkD;IACtE,cAAc,iDAAiD;IAC/D,iBAAiB,4EAA4E;IAC7F,UAAU,gEAAgE;IAC1E,cAAc,qEAAqE;IACnF,8BAA8B,8EAA8E;IAC5G,iCAAiC,gGAAgG;IACjI,wBAAwB,uGAAuG;IAC/H,wBAAwB,uGAAuG;IAC/H,0BAA0B,yGAAyG;IACnI,sBAAsB,qGAAqG;IAC3H,8BAA8B,6GAA6G;IAC3I,iCAAiC,gHAAgH;IACjJ,yBAAyB,wGAAwG;IACjI,2BAA2B,0GAA0G;IACrI,2BAA2B,0GAA0G;IACrI,iCAAiC,gHAAgH;IACjJ,+BAA+B,8GAA8G;IAC7I,6BAA6B,4GAA4G;IACzI,4BAA4B,2GAA2G;IACvI,mBAAmB,4DAA4D;IAC/E,gBAAgB,0FAA0F;IAC1G,kBAAkB,iFAAiF;IACnG,gBAAgB,uEAAuE;IACvF,kBAAkB,qEAAqE;IACvF,gBAAgB,4DAA4D;IAC5E,QAAQ,qDAAqD;IAC7D,WAAW,4CAA4C;IACvD,sBAAsB,0FAA0F;CACjH"}
|
package/dist/constants.d.mts
CHANGED
|
@@ -15,7 +15,6 @@ export declare enum KeyringControllerError {
|
|
|
15
15
|
UnsupportedSignTransaction = "KeyringController - The keyring for the current address does not support the method signTransaction.",
|
|
16
16
|
UnsupportedSignMessage = "KeyringController - The keyring for the current address does not support the method signMessage.",
|
|
17
17
|
UnsupportedSignPersonalMessage = "KeyringController - The keyring for the current address does not support the method signPersonalMessage.",
|
|
18
|
-
UnsupportedSignEip7702Authorization = "KeyringController - The keyring for the current address does not support the method signEip7702Authorization.",
|
|
19
18
|
UnsupportedGetEncryptionPublicKey = "KeyringController - The keyring for the current address does not support the method getEncryptionPublicKey.",
|
|
20
19
|
UnsupportedDecryptMessage = "KeyringController - The keyring for the current address does not support the method decryptMessage.",
|
|
21
20
|
UnsupportedSignTypedMessage = "KeyringController - The keyring for the current address does not support the method signTypedMessage.",
|
|
@@ -24,7 +23,6 @@ export declare enum KeyringControllerError {
|
|
|
24
23
|
UnsupportedPrepareUserOperation = "KeyringController - The keyring for the current address does not support the method prepareUserOperation.",
|
|
25
24
|
UnsupportedPatchUserOperation = "KeyringController - The keyring for the current address does not support the method patchUserOperation.",
|
|
26
25
|
UnsupportedSignUserOperation = "KeyringController - The keyring for the current address does not support the method signUserOperation.",
|
|
27
|
-
UnsupportedVerifySeedPhrase = "KeyringController - The keyring does not support the method verifySeedPhrase.",
|
|
28
26
|
NoAccountOnKeychain = "KeyringController - The keychain doesn't have accounts.",
|
|
29
27
|
ControllerLocked = "KeyringController - The operation cannot be completed while the controller is locked.",
|
|
30
28
|
MissingCredentials = "KeyringController - Cannot persist vault without password and encryption key",
|
|
@@ -33,8 +31,6 @@ export declare enum KeyringControllerError {
|
|
|
33
31
|
NoKeyringBuilder = "KeyringController - No keyringBuilder found for keyring",
|
|
34
32
|
DataType = "KeyringController - Incorrect data type provided",
|
|
35
33
|
NoHdKeyring = "KeyringController - No HD Keyring found",
|
|
36
|
-
ControllerLockRequired = "KeyringController - attempt to update vault during a non mutually exclusive operation"
|
|
37
|
-
KeyringMetadataLengthMismatch = "KeyringController - keyring metadata length mismatch",
|
|
38
|
-
LastAccountInPrimaryKeyring = "KeyringController - Last account in primary keyring cannot be removed"
|
|
34
|
+
ControllerLockRequired = "KeyringController - attempt to update vault during a non mutually exclusive operation"
|
|
39
35
|
}
|
|
40
36
|
//# sourceMappingURL=constants.d.mts.map
|
package/dist/constants.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,sBAAsB;IAChC,SAAS,yCAAyC;IAClD,eAAe,2CAA2C;IAC1D,yBAAyB,8DAA8D;IACvF,iBAAiB,yDAAyD;IAC1E,oBAAoB,kDAAkD;IACtE,cAAc,iDAAiD;IAC/D,iBAAiB,4EAA4E;IAC7F,UAAU,gEAAgE;IAC1E,cAAc,qEAAqE;IACnF,8BAA8B,8EAA8E;IAC5G,iCAAiC,gGAAgG;IACjI,wBAAwB,uGAAuG;IAC/H,wBAAwB,uGAAuG;IAC/H,0BAA0B,yGAAyG;IACnI,sBAAsB,qGAAqG;IAC3H,8BAA8B,6GAA6G;IAC3I,
|
|
1
|
+
{"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,sBAAsB;IAChC,SAAS,yCAAyC;IAClD,eAAe,2CAA2C;IAC1D,yBAAyB,8DAA8D;IACvF,iBAAiB,yDAAyD;IAC1E,oBAAoB,kDAAkD;IACtE,cAAc,iDAAiD;IAC/D,iBAAiB,4EAA4E;IAC7F,UAAU,gEAAgE;IAC1E,cAAc,qEAAqE;IACnF,8BAA8B,8EAA8E;IAC5G,iCAAiC,gGAAgG;IACjI,wBAAwB,uGAAuG;IAC/H,wBAAwB,uGAAuG;IAC/H,0BAA0B,yGAAyG;IACnI,sBAAsB,qGAAqG;IAC3H,8BAA8B,6GAA6G;IAC3I,iCAAiC,gHAAgH;IACjJ,yBAAyB,wGAAwG;IACjI,2BAA2B,0GAA0G;IACrI,2BAA2B,0GAA0G;IACrI,iCAAiC,gHAAgH;IACjJ,+BAA+B,8GAA8G;IAC7I,6BAA6B,4GAA4G;IACzI,4BAA4B,2GAA2G;IACvI,mBAAmB,4DAA4D;IAC/E,gBAAgB,0FAA0F;IAC1G,kBAAkB,iFAAiF;IACnG,gBAAgB,uEAAuE;IACvF,kBAAkB,qEAAqE;IACvF,gBAAgB,4DAA4D;IAC5E,QAAQ,qDAAqD;IAC7D,WAAW,4CAA4C;IACvD,sBAAsB,0FAA0F;CACjH"}
|
package/dist/constants.mjs
CHANGED
|
@@ -16,7 +16,6 @@ export var KeyringControllerError;
|
|
|
16
16
|
KeyringControllerError["UnsupportedSignTransaction"] = "KeyringController - The keyring for the current address does not support the method signTransaction.";
|
|
17
17
|
KeyringControllerError["UnsupportedSignMessage"] = "KeyringController - The keyring for the current address does not support the method signMessage.";
|
|
18
18
|
KeyringControllerError["UnsupportedSignPersonalMessage"] = "KeyringController - The keyring for the current address does not support the method signPersonalMessage.";
|
|
19
|
-
KeyringControllerError["UnsupportedSignEip7702Authorization"] = "KeyringController - The keyring for the current address does not support the method signEip7702Authorization.";
|
|
20
19
|
KeyringControllerError["UnsupportedGetEncryptionPublicKey"] = "KeyringController - The keyring for the current address does not support the method getEncryptionPublicKey.";
|
|
21
20
|
KeyringControllerError["UnsupportedDecryptMessage"] = "KeyringController - The keyring for the current address does not support the method decryptMessage.";
|
|
22
21
|
KeyringControllerError["UnsupportedSignTypedMessage"] = "KeyringController - The keyring for the current address does not support the method signTypedMessage.";
|
|
@@ -25,7 +24,6 @@ export var KeyringControllerError;
|
|
|
25
24
|
KeyringControllerError["UnsupportedPrepareUserOperation"] = "KeyringController - The keyring for the current address does not support the method prepareUserOperation.";
|
|
26
25
|
KeyringControllerError["UnsupportedPatchUserOperation"] = "KeyringController - The keyring for the current address does not support the method patchUserOperation.";
|
|
27
26
|
KeyringControllerError["UnsupportedSignUserOperation"] = "KeyringController - The keyring for the current address does not support the method signUserOperation.";
|
|
28
|
-
KeyringControllerError["UnsupportedVerifySeedPhrase"] = "KeyringController - The keyring does not support the method verifySeedPhrase.";
|
|
29
27
|
KeyringControllerError["NoAccountOnKeychain"] = "KeyringController - The keychain doesn't have accounts.";
|
|
30
28
|
KeyringControllerError["ControllerLocked"] = "KeyringController - The operation cannot be completed while the controller is locked.";
|
|
31
29
|
KeyringControllerError["MissingCredentials"] = "KeyringController - Cannot persist vault without password and encryption key";
|
|
@@ -35,7 +33,5 @@ export var KeyringControllerError;
|
|
|
35
33
|
KeyringControllerError["DataType"] = "KeyringController - Incorrect data type provided";
|
|
36
34
|
KeyringControllerError["NoHdKeyring"] = "KeyringController - No HD Keyring found";
|
|
37
35
|
KeyringControllerError["ControllerLockRequired"] = "KeyringController - attempt to update vault during a non mutually exclusive operation";
|
|
38
|
-
KeyringControllerError["KeyringMetadataLengthMismatch"] = "KeyringController - keyring metadata length mismatch";
|
|
39
|
-
KeyringControllerError["LastAccountInPrimaryKeyring"] = "KeyringController - Last account in primary keyring cannot be removed";
|
|
40
36
|
})(KeyringControllerError || (KeyringControllerError = {}));
|
|
41
37
|
//# sourceMappingURL=constants.mjs.map
|
package/dist/constants.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.mjs","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"constants.mjs","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,sBAkCX;AAlCD,WAAY,sBAAsB;IAChC,4EAAkD,CAAA;IAClD,oFAA0D,CAAA;IAC1D,iHAAuF,CAAA;IACvF,oGAA0E,CAAA;IAC1E,gGAAsE,CAAA;IACtE,yFAA+D,CAAA;IAC/D,uHAA6F,CAAA;IAC7F,oGAA0E,CAAA;IAC1E,6GAAmF,CAAA;IACnF,sIAA4G,CAAA;IAC5G,2JAAiI,CAAA;IACjI,yJAA+H,CAAA;IAC/H,yJAA+H,CAAA;IAC/H,6JAAmI,CAAA;IACnI,qJAA2H,CAAA;IAC3H,qKAA2I,CAAA;IAC3I,2KAAiJ,CAAA;IACjJ,2JAAiI,CAAA;IACjI,+JAAqI,CAAA;IACrI,+JAAqI,CAAA;IACrI,2KAAiJ,CAAA;IACjJ,uKAA6I,CAAA;IAC7I,mKAAyI,CAAA;IACzI,iKAAuI,CAAA;IACvI,yGAA+E,CAAA;IAC/E,oIAA0G,CAAA;IAC1G,6HAAmG,CAAA;IACnG,iHAAuF,CAAA;IACvF,iHAAuF,CAAA;IACvF,sGAA4E,CAAA;IAC5E,uFAA6D,CAAA;IAC7D,iFAAuD,CAAA;IACvD,0IAAgH,CAAA;AAClH,CAAC,EAlCW,sBAAsB,KAAtB,sBAAsB,QAkCjC","sourcesContent":["export enum KeyringControllerError {\n NoKeyring = 'KeyringController - No keyring found',\n KeyringNotFound = 'KeyringController - Keyring not found.',\n UnsafeDirectKeyringAccess = 'KeyringController - Returning keyring instances is unsafe',\n WrongPasswordType = 'KeyringController - Password must be of type string.',\n InvalidEmptyPassword = 'KeyringController - Password cannot be empty.',\n NoFirstAccount = 'KeyringController - First Account not found.',\n DuplicatedAccount = 'KeyringController - The account you are trying to import is a duplicate',\n VaultError = 'KeyringController - Cannot unlock without a previous vault.',\n VaultDataError = 'KeyringController - The decrypted vault has an unexpected shape.',\n UnsupportedEncryptionKeyExport = 'KeyringController - The encryptor does not support encryption key export.',\n UnsupportedGenerateRandomMnemonic = 'KeyringController - The current keyring does not support the method generateRandomMnemonic.',\n UnsupportedExportAccount = '`KeyringController - The keyring for the current address does not support the method exportAccount',\n UnsupportedRemoveAccount = '`KeyringController - The keyring for the current address does not support the method removeAccount',\n UnsupportedSignTransaction = 'KeyringController - The keyring for the current address does not support the method signTransaction.',\n UnsupportedSignMessage = 'KeyringController - The keyring for the current address does not support the method signMessage.',\n UnsupportedSignPersonalMessage = 'KeyringController - The keyring for the current address does not support the method signPersonalMessage.',\n UnsupportedGetEncryptionPublicKey = 'KeyringController - The keyring for the current address does not support the method getEncryptionPublicKey.',\n UnsupportedDecryptMessage = 'KeyringController - The keyring for the current address does not support the method decryptMessage.',\n UnsupportedSignTypedMessage = 'KeyringController - The keyring for the current address does not support the method signTypedMessage.',\n UnsupportedGetAppKeyAddress = 'KeyringController - The keyring for the current address does not support the method getAppKeyAddress.',\n UnsupportedExportAppKeyForAddress = 'KeyringController - The keyring for the current address does not support the method exportAppKeyForAddress.',\n UnsupportedPrepareUserOperation = 'KeyringController - The keyring for the current address does not support the method prepareUserOperation.',\n UnsupportedPatchUserOperation = 'KeyringController - The keyring for the current address does not support the method patchUserOperation.',\n UnsupportedSignUserOperation = 'KeyringController - The keyring for the current address does not support the method signUserOperation.',\n NoAccountOnKeychain = \"KeyringController - The keychain doesn't have accounts.\",\n ControllerLocked = 'KeyringController - The operation cannot be completed while the controller is locked.',\n MissingCredentials = 'KeyringController - Cannot persist vault without password and encryption key',\n MissingVaultData = 'KeyringController - Cannot persist vault without vault information',\n ExpiredCredentials = 'KeyringController - Encryption key and salt provided are expired',\n NoKeyringBuilder = 'KeyringController - No keyringBuilder found for keyring',\n DataType = 'KeyringController - Incorrect data type provided',\n NoHdKeyring = 'KeyringController - No HD Keyring found',\n ControllerLockRequired = 'KeyringController - attempt to update vault during a non mutually exclusive operation',\n}\n"]}
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAoC","sourcesContent":["export * from './KeyringController';\
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAoC","sourcesContent":["export * from './KeyringController';\n"]}
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,wCAAoC
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,wCAAoC"}
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,wCAAoC
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,wCAAoC"}
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,wCAAoC","sourcesContent":["export * from './KeyringController';\
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,wCAAoC","sourcesContent":["export * from './KeyringController';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/keyring-controller",
|
|
3
|
-
"version": "19.1.0-preview-
|
|
3
|
+
"version": "19.1.0-preview-52c28555",
|
|
4
4
|
"description": "Stores identities seen in the wallet and manages interactions such as signing",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -51,16 +51,16 @@
|
|
|
51
51
|
"@keystonehq/metamask-airgapped-keyring": "^0.14.1",
|
|
52
52
|
"@metamask/base-controller": "^8.0.0",
|
|
53
53
|
"@metamask/browser-passworder": "^4.3.0",
|
|
54
|
-
"@metamask/eth-hd-keyring": "^
|
|
55
|
-
"@metamask/eth-sig-util": "^8.
|
|
56
|
-
"@metamask/eth-simple-keyring": "^
|
|
54
|
+
"@metamask/eth-hd-keyring": "^7.0.4",
|
|
55
|
+
"@metamask/eth-sig-util": "^8.0.0",
|
|
56
|
+
"@metamask/eth-simple-keyring": "^6.0.5",
|
|
57
57
|
"@metamask/keyring-api": "^17.0.0",
|
|
58
58
|
"@metamask/keyring-internal-api": "^4.0.1",
|
|
59
|
-
"@metamask/
|
|
59
|
+
"@metamask/message-manager": "^12.0.1",
|
|
60
|
+
"@metamask/utils": "^11.1.0",
|
|
60
61
|
"async-mutex": "^0.5.0",
|
|
61
62
|
"ethereumjs-wallet": "^1.0.1",
|
|
62
|
-
"immer": "^9.0.6"
|
|
63
|
-
"ulid": "^2.3.0"
|
|
63
|
+
"immer": "^9.0.6"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@ethereumjs/common": "^3.2.0",
|
|
@@ -89,10 +89,6 @@
|
|
|
89
89
|
"registry": "https://registry.npmjs.org/"
|
|
90
90
|
},
|
|
91
91
|
"lavamoat": {
|
|
92
|
-
"allowScripts": {
|
|
93
|
-
"@lavamoat/preinstall-always-fail": false,
|
|
94
|
-
"ethereumjs-wallet>ethereum-cryptography>keccak": false,
|
|
95
|
-
"ethereumjs-wallet>ethereum-cryptography>secp256k1": false
|
|
96
|
-
}
|
|
92
|
+
"allowScripts": {}
|
|
97
93
|
}
|
|
98
94
|
}
|
package/dist/types.cjs
DELETED
package/dist/types.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import type { SIWEMessage } from "@metamask/controller-utils";
|
|
2
|
-
/**
|
|
3
|
-
* AbstractMessageParams
|
|
4
|
-
*
|
|
5
|
-
* Represents the parameters to pass to the signing method once the signature request is approved.
|
|
6
|
-
*
|
|
7
|
-
* from - Address from which the message is processed
|
|
8
|
-
* origin? - Added for request origin identification
|
|
9
|
-
* requestId? - Original request id
|
|
10
|
-
* deferSetAsSigned? - Whether to defer setting the message as signed immediately after the keyring is told to sign it
|
|
11
|
-
*/
|
|
12
|
-
export type AbstractMessageParams = {
|
|
13
|
-
from: string;
|
|
14
|
-
origin?: string;
|
|
15
|
-
requestId?: number;
|
|
16
|
-
deferSetAsSigned?: boolean;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Eip7702AuthorizationParams
|
|
20
|
-
*
|
|
21
|
-
* Represents the parameters for EIP-7702 authorization signing requests.
|
|
22
|
-
*
|
|
23
|
-
* chainId - The chain ID
|
|
24
|
-
* contractAddress - The contract address
|
|
25
|
-
* nonce - The nonce
|
|
26
|
-
*/
|
|
27
|
-
export type Eip7702AuthorizationParams = {
|
|
28
|
-
chainId: number;
|
|
29
|
-
contractAddress: string;
|
|
30
|
-
nonce: number;
|
|
31
|
-
} & AbstractMessageParams;
|
|
32
|
-
/**
|
|
33
|
-
* PersonalMessageParams
|
|
34
|
-
*
|
|
35
|
-
* Represents the parameters for personal signing messages.
|
|
36
|
-
*
|
|
37
|
-
* data - The data to sign
|
|
38
|
-
* siwe? - The SIWE message
|
|
39
|
-
*/
|
|
40
|
-
export type PersonalMessageParams = {
|
|
41
|
-
data: string;
|
|
42
|
-
siwe?: SIWEMessage;
|
|
43
|
-
} & AbstractMessageParams;
|
|
44
|
-
/**
|
|
45
|
-
* SignTypedDataMessageV3V4
|
|
46
|
-
*
|
|
47
|
-
* Represents the structure of a typed data message for EIP-712 signing requests.
|
|
48
|
-
*
|
|
49
|
-
* types - The types of the message
|
|
50
|
-
* domain - The domain of the message
|
|
51
|
-
* primaryType - The primary type of the message
|
|
52
|
-
* message - The message
|
|
53
|
-
*/
|
|
54
|
-
export type SignTypedDataMessageV3V4 = {
|
|
55
|
-
types: Record<string, unknown>;
|
|
56
|
-
domain: Record<string, unknown>;
|
|
57
|
-
primaryType: string;
|
|
58
|
-
message: unknown;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* TypedMessageParams
|
|
62
|
-
*
|
|
63
|
-
* Represents the parameters for typed signing messages.
|
|
64
|
-
*
|
|
65
|
-
* data - The data to sign
|
|
66
|
-
*/
|
|
67
|
-
export type TypedMessageParams = {
|
|
68
|
-
data: Record<string, unknown>[] | string | SignTypedDataMessageV3V4;
|
|
69
|
-
} & AbstractMessageParams;
|
|
70
|
-
//# sourceMappingURL=types.d.cts.map
|
package/dist/types.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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,0BAA0B,GAAG;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,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.d.mts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import type { SIWEMessage } from "@metamask/controller-utils";
|
|
2
|
-
/**
|
|
3
|
-
* AbstractMessageParams
|
|
4
|
-
*
|
|
5
|
-
* Represents the parameters to pass to the signing method once the signature request is approved.
|
|
6
|
-
*
|
|
7
|
-
* from - Address from which the message is processed
|
|
8
|
-
* origin? - Added for request origin identification
|
|
9
|
-
* requestId? - Original request id
|
|
10
|
-
* deferSetAsSigned? - Whether to defer setting the message as signed immediately after the keyring is told to sign it
|
|
11
|
-
*/
|
|
12
|
-
export type AbstractMessageParams = {
|
|
13
|
-
from: string;
|
|
14
|
-
origin?: string;
|
|
15
|
-
requestId?: number;
|
|
16
|
-
deferSetAsSigned?: boolean;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Eip7702AuthorizationParams
|
|
20
|
-
*
|
|
21
|
-
* Represents the parameters for EIP-7702 authorization signing requests.
|
|
22
|
-
*
|
|
23
|
-
* chainId - The chain ID
|
|
24
|
-
* contractAddress - The contract address
|
|
25
|
-
* nonce - The nonce
|
|
26
|
-
*/
|
|
27
|
-
export type Eip7702AuthorizationParams = {
|
|
28
|
-
chainId: number;
|
|
29
|
-
contractAddress: string;
|
|
30
|
-
nonce: number;
|
|
31
|
-
} & AbstractMessageParams;
|
|
32
|
-
/**
|
|
33
|
-
* PersonalMessageParams
|
|
34
|
-
*
|
|
35
|
-
* Represents the parameters for personal signing messages.
|
|
36
|
-
*
|
|
37
|
-
* data - The data to sign
|
|
38
|
-
* siwe? - The SIWE message
|
|
39
|
-
*/
|
|
40
|
-
export type PersonalMessageParams = {
|
|
41
|
-
data: string;
|
|
42
|
-
siwe?: SIWEMessage;
|
|
43
|
-
} & AbstractMessageParams;
|
|
44
|
-
/**
|
|
45
|
-
* SignTypedDataMessageV3V4
|
|
46
|
-
*
|
|
47
|
-
* Represents the structure of a typed data message for EIP-712 signing requests.
|
|
48
|
-
*
|
|
49
|
-
* types - The types of the message
|
|
50
|
-
* domain - The domain of the message
|
|
51
|
-
* primaryType - The primary type of the message
|
|
52
|
-
* message - The message
|
|
53
|
-
*/
|
|
54
|
-
export type SignTypedDataMessageV3V4 = {
|
|
55
|
-
types: Record<string, unknown>;
|
|
56
|
-
domain: Record<string, unknown>;
|
|
57
|
-
primaryType: string;
|
|
58
|
-
message: unknown;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* TypedMessageParams
|
|
62
|
-
*
|
|
63
|
-
* Represents the parameters for typed signing messages.
|
|
64
|
-
*
|
|
65
|
-
* data - The data to sign
|
|
66
|
-
*/
|
|
67
|
-
export type TypedMessageParams = {
|
|
68
|
-
data: Record<string, unknown>[] | string | SignTypedDataMessageV3V4;
|
|
69
|
-
} & AbstractMessageParams;
|
|
70
|
-
//# sourceMappingURL=types.d.mts.map
|
package/dist/types.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,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
DELETED
package/dist/types.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"]}
|