@metamask/keyring-api 5.1.0 → 6.0.0
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 +12 -1
- package/dist/internal/types.d.ts +3 -0
- package/dist/internal/types.js +1 -0
- package/dist/internal/types.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [6.0.0]
|
11
|
+
|
12
|
+
### Changed
|
13
|
+
|
14
|
+
- **BREAKING**: Add `importTime` property to `InternalAccount` metadata ([#289](https://github.com/MetaMask/keyring-api/pull/289))
|
15
|
+
- Bump tar from 6.1.15 to 6.2.1 ([#286](https://github.com/MetaMask/keyring-api/pull/286))
|
16
|
+
- Bump @metamask/snaps-sdk from 3.2.0 to 4.0.0 ([#287](https://github.com/MetaMask/keyring-api/pull/287))
|
17
|
+
- Add documentation for `eth_decodeUserOperationCallData` ([#254](https://github.com/MetaMask/keyring-api/pull/254))
|
18
|
+
- Bump @metamask/snaps-sdk from 3.1.1 to 3.2.0 ([#284](https://github.com/MetaMask/keyring-api/pull/284))
|
19
|
+
|
10
20
|
## [5.1.0]
|
11
21
|
|
12
22
|
### Changed
|
@@ -252,7 +262,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
252
262
|
- SnapController keyring client. It is intended to be used by MetaMask to talk to the snap.
|
253
263
|
- Helper functions to create keyring handler in the snap.
|
254
264
|
|
255
|
-
[Unreleased]: https://github.com/MetaMask/keyring-api/compare/
|
265
|
+
[Unreleased]: https://github.com/MetaMask/keyring-api/compare/v6.0.0...HEAD
|
266
|
+
[6.0.0]: https://github.com/MetaMask/keyring-api/compare/v5.1.0...v6.0.0
|
256
267
|
[5.1.0]: https://github.com/MetaMask/keyring-api/compare/v5.0.0...v5.1.0
|
257
268
|
[5.0.0]: https://github.com/MetaMask/keyring-api/compare/v4.0.2...v5.0.0
|
258
269
|
[4.0.2]: https://github.com/MetaMask/keyring-api/compare/v4.0.1...v4.0.2
|
package/dist/internal/types.d.ts
CHANGED
@@ -7,6 +7,7 @@ export declare const InternalAccountStruct: import("superstruct").Struct<{
|
|
7
7
|
methods: ("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[];
|
8
8
|
metadata: {
|
9
9
|
name: string;
|
10
|
+
importTime: number;
|
10
11
|
keyring: {
|
11
12
|
type: string;
|
12
13
|
};
|
@@ -20,6 +21,7 @@ export declare const InternalAccountStruct: import("superstruct").Struct<{
|
|
20
21
|
}, {
|
21
22
|
metadata: import("superstruct").Struct<{
|
22
23
|
name: string;
|
24
|
+
importTime: number;
|
23
25
|
keyring: {
|
24
26
|
type: string;
|
25
27
|
};
|
@@ -41,6 +43,7 @@ export declare const InternalAccountStruct: import("superstruct").Struct<{
|
|
41
43
|
name: import("superstruct").Struct<string, null>;
|
42
44
|
}>;
|
43
45
|
lastSelected: import("superstruct").Struct<number | import("../superstruct").ExactOptionalTag, null>;
|
46
|
+
importTime: import("superstruct").Struct<number, null>;
|
44
47
|
keyring: import("superstruct").Struct<{
|
45
48
|
type: string;
|
46
49
|
}, {
|
package/dist/internal/types.js
CHANGED
@@ -14,6 +14,7 @@ exports.InternalAccountStruct = (0, superstruct_2.object)({
|
|
14
14
|
name: (0, superstruct_1.string)(),
|
15
15
|
})),
|
16
16
|
lastSelected: (0, superstruct_2.exactOptional)((0, superstruct_1.number)()),
|
17
|
+
importTime: (0, superstruct_1.number)(),
|
17
18
|
keyring: (0, superstruct_2.object)({
|
18
19
|
type: (0, superstruct_1.string)(),
|
19
20
|
}),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/internal/types.ts"],"names":[],"mappings":";;;AACA,6CAAsD;AAEtD,gCAA8C;AAC9C,gDAAuD;AAE1C,QAAA,qBAAqB,GAAG,IAAA,oBAAM,EAAC;IAC1C,GAAG,0BAAoB,CAAC,MAAM;IAC9B,QAAQ,EAAE,IAAA,oBAAM,EAAC;QACf,IAAI,EAAE,IAAA,oBAAM,GAAE;QACd,IAAI,EAAE,IAAA,2BAAa,EACjB,IAAA,oBAAM,EAAC;YACL,EAAE,EAAE,IAAA,oBAAM,GAAE;YACZ,OAAO,EAAE,IAAA,qBAAO,GAAE;YAClB,IAAI,EAAE,IAAA,oBAAM,GAAE;SACf,CAAC,CACH;QACD,YAAY,EAAE,IAAA,2BAAa,EAAC,IAAA,oBAAM,GAAE,CAAC;QACrC,OAAO,EAAE,IAAA,oBAAM,EAAC;YACd,IAAI,EAAE,IAAA,oBAAM,GAAE;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAC","sourcesContent":["import type { Infer } from 'superstruct';\nimport { boolean, string, number } from 'superstruct';\n\nimport { KeyringAccountStruct } from '../api';\nimport { exactOptional, object } from '../superstruct';\n\nexport const InternalAccountStruct = object({\n ...KeyringAccountStruct.schema,\n metadata: object({\n name: string(),\n snap: exactOptional(\n object({\n id: string(),\n enabled: boolean(),\n name: string(),\n }),\n ),\n lastSelected: exactOptional(number()),\n keyring: object({\n type: string(),\n }),\n }),\n});\n\n/**\n * Internal account representation.\n *\n * This type is used internally by MetaMask to add additional metadata to the\n * account object. It's should not be used by external applications.\n */\nexport type InternalAccount = Infer<typeof InternalAccountStruct>;\n"]}
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/internal/types.ts"],"names":[],"mappings":";;;AACA,6CAAsD;AAEtD,gCAA8C;AAC9C,gDAAuD;AAE1C,QAAA,qBAAqB,GAAG,IAAA,oBAAM,EAAC;IAC1C,GAAG,0BAAoB,CAAC,MAAM;IAC9B,QAAQ,EAAE,IAAA,oBAAM,EAAC;QACf,IAAI,EAAE,IAAA,oBAAM,GAAE;QACd,IAAI,EAAE,IAAA,2BAAa,EACjB,IAAA,oBAAM,EAAC;YACL,EAAE,EAAE,IAAA,oBAAM,GAAE;YACZ,OAAO,EAAE,IAAA,qBAAO,GAAE;YAClB,IAAI,EAAE,IAAA,oBAAM,GAAE;SACf,CAAC,CACH;QACD,YAAY,EAAE,IAAA,2BAAa,EAAC,IAAA,oBAAM,GAAE,CAAC;QACrC,UAAU,EAAE,IAAA,oBAAM,GAAE;QACpB,OAAO,EAAE,IAAA,oBAAM,EAAC;YACd,IAAI,EAAE,IAAA,oBAAM,GAAE;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAC","sourcesContent":["import type { Infer } from 'superstruct';\nimport { boolean, string, number } from 'superstruct';\n\nimport { KeyringAccountStruct } from '../api';\nimport { exactOptional, object } from '../superstruct';\n\nexport const InternalAccountStruct = object({\n ...KeyringAccountStruct.schema,\n metadata: object({\n name: string(),\n snap: exactOptional(\n object({\n id: string(),\n enabled: boolean(),\n name: string(),\n }),\n ),\n lastSelected: exactOptional(number()),\n importTime: number(),\n keyring: object({\n type: string(),\n }),\n }),\n});\n\n/**\n * Internal account representation.\n *\n * This type is used internally by MetaMask to add additional metadata to the\n * account object. It's should not be used by external applications.\n */\nexport type InternalAccount = Infer<typeof InternalAccountStruct>;\n"]}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@metamask/keyring-api",
|
3
|
-
"version": "
|
3
|
+
"version": "6.0.0",
|
4
4
|
"description": "MetaMask Keyring API",
|
5
5
|
"keywords": [
|
6
6
|
"metamask",
|
@@ -38,7 +38,7 @@
|
|
38
38
|
"test:watch": "jest --watch"
|
39
39
|
},
|
40
40
|
"dependencies": {
|
41
|
-
"@metamask/snaps-sdk": "^
|
41
|
+
"@metamask/snaps-sdk": "^4.0.0",
|
42
42
|
"@metamask/utils": "^8.3.0",
|
43
43
|
"@types/uuid": "^9.0.1",
|
44
44
|
"superstruct": "^1.0.3",
|