@metamask/keyring-api 17.6.0 → 19.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 +18 -1
- package/dist/api/account-options.cjs +122 -0
- package/dist/api/account-options.cjs.map +1 -0
- package/dist/api/account-options.d.cts +131 -0
- package/dist/api/account-options.d.cts.map +1 -0
- package/dist/api/account-options.d.mts +131 -0
- package/dist/api/account-options.d.mts.map +1 -0
- package/dist/api/account-options.mjs +119 -0
- package/dist/api/account-options.mjs.map +1 -0
- package/dist/api/account.cjs +2 -2
- package/dist/api/account.cjs.map +1 -1
- package/dist/api/account.d.cts +22 -2
- package/dist/api/account.d.cts.map +1 -1
- package/dist/api/account.d.mts +22 -2
- package/dist/api/account.d.mts.map +1 -1
- package/dist/api/account.mjs +3 -3
- package/dist/api/account.mjs.map +1 -1
- package/dist/api/discovery.d.cts +2 -2
- package/dist/api/discovery.d.mts +2 -2
- package/dist/api/index.cjs +1 -0
- package/dist/api/index.cjs.map +1 -1
- package/dist/api/index.d.cts +1 -0
- package/dist/api/index.d.cts.map +1 -1
- package/dist/api/index.d.mts +1 -0
- package/dist/api/index.d.mts.map +1 -1
- package/dist/api/index.mjs +1 -0
- package/dist/api/index.mjs.map +1 -1
- package/dist/api/request.cjs +4 -0
- package/dist/api/request.cjs.map +1 -1
- package/dist/api/request.d.cts +5 -0
- package/dist/api/request.d.cts.map +1 -1
- package/dist/api/request.d.mts +5 -0
- package/dist/api/request.d.mts.map +1 -1
- package/dist/api/request.mjs +4 -0
- package/dist/api/request.mjs.map +1 -1
- package/dist/btc/types.d.cts +88 -8
- package/dist/btc/types.d.cts.map +1 -1
- package/dist/btc/types.d.mts +88 -8
- package/dist/btc/types.d.mts.map +1 -1
- package/dist/eth/types.d.cts +44 -4
- package/dist/eth/types.d.cts.map +1 -1
- package/dist/eth/types.d.mts +44 -4
- package/dist/eth/types.d.mts.map +1 -1
- package/dist/events.d.cts +88 -8
- package/dist/events.d.cts.map +1 -1
- package/dist/events.d.mts +88 -8
- package/dist/events.d.mts.map +1 -1
- package/dist/rpc.d.cts +133 -15
- package/dist/rpc.d.cts.map +1 -1
- package/dist/rpc.d.mts +133 -15
- package/dist/rpc.d.mts.map +1 -1
- package/dist/sol/types.d.cts +22 -2
- package/dist/sol/types.d.cts.map +1 -1
- package/dist/sol/types.d.mts +22 -2
- package/dist/sol/types.d.mts.map +1 -1
- package/package.json +3 -3
package/dist/sol/types.d.cts
CHANGED
@@ -18,7 +18,17 @@ export declare enum SolMethod {
|
|
18
18
|
export declare const SolDataAccountStruct: import("@metamask/superstruct").Struct<{
|
19
19
|
type: "solana:data-account";
|
20
20
|
id: string;
|
21
|
-
options: Record<string, import("@metamask/utils").Json
|
21
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
22
|
+
entropy?: {
|
23
|
+
type: "mnemonic";
|
24
|
+
id: string;
|
25
|
+
derivationPath: string;
|
26
|
+
groupIndex: number;
|
27
|
+
} | {
|
28
|
+
type: "private-key";
|
29
|
+
};
|
30
|
+
exportable?: boolean;
|
31
|
+
};
|
22
32
|
address: string;
|
23
33
|
scopes: `${string}:${string}`[];
|
24
34
|
methods: SolMethod[];
|
@@ -46,7 +56,17 @@ export declare const SolDataAccountStruct: import("@metamask/superstruct").Struc
|
|
46
56
|
signIn: SolMethod.SignIn;
|
47
57
|
}>>;
|
48
58
|
id: import("@metamask/superstruct").Struct<string, null>;
|
49
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
59
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
60
|
+
entropy?: {
|
61
|
+
type: "mnemonic";
|
62
|
+
id: string;
|
63
|
+
derivationPath: string;
|
64
|
+
groupIndex: number;
|
65
|
+
} | {
|
66
|
+
type: "private-key";
|
67
|
+
};
|
68
|
+
exportable?: boolean;
|
69
|
+
}, null>;
|
50
70
|
}>;
|
51
71
|
export type SolDataAccount = Infer<typeof SolDataAccountStruct>;
|
52
72
|
//# sourceMappingURL=types.d.cts.map
|
package/dist/sol/types.d.cts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../src/sol/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAUnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAKnB,yBAAyB,8BAA8B;IAEvD,sBAAsB,2BAA2B;IACjD,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,oBAAoB
|
1
|
+
{"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../src/sol/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAUnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAKnB,yBAAyB,8BAA8B;IAEvD,sBAAsB,2BAA2B;IACjD,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;IAG/B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/dist/sol/types.d.mts
CHANGED
@@ -18,7 +18,17 @@ export declare enum SolMethod {
|
|
18
18
|
export declare const SolDataAccountStruct: import("@metamask/superstruct").Struct<{
|
19
19
|
type: "solana:data-account";
|
20
20
|
id: string;
|
21
|
-
options: Record<string, import("@metamask/utils").Json
|
21
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
22
|
+
entropy?: {
|
23
|
+
type: "mnemonic";
|
24
|
+
id: string;
|
25
|
+
derivationPath: string;
|
26
|
+
groupIndex: number;
|
27
|
+
} | {
|
28
|
+
type: "private-key";
|
29
|
+
};
|
30
|
+
exportable?: boolean;
|
31
|
+
};
|
22
32
|
address: string;
|
23
33
|
scopes: `${string}:${string}`[];
|
24
34
|
methods: SolMethod[];
|
@@ -46,7 +56,17 @@ export declare const SolDataAccountStruct: import("@metamask/superstruct").Struc
|
|
46
56
|
signIn: SolMethod.SignIn;
|
47
57
|
}>>;
|
48
58
|
id: import("@metamask/superstruct").Struct<string, null>;
|
49
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
59
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
60
|
+
entropy?: {
|
61
|
+
type: "mnemonic";
|
62
|
+
id: string;
|
63
|
+
derivationPath: string;
|
64
|
+
groupIndex: number;
|
65
|
+
} | {
|
66
|
+
type: "private-key";
|
67
|
+
};
|
68
|
+
exportable?: boolean;
|
69
|
+
}, null>;
|
50
70
|
}>;
|
51
71
|
export type SolDataAccount = Infer<typeof SolDataAccountStruct>;
|
52
72
|
//# sourceMappingURL=types.d.mts.map
|
package/dist/sol/types.d.mts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../src/sol/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAUnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAKnB,yBAAyB,8BAA8B;IAEvD,sBAAsB,2BAA2B;IACjD,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,oBAAoB
|
1
|
+
{"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../src/sol/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAUnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAKnB,yBAAyB,8BAA8B;IAEvD,sBAAsB,2BAA2B;IACjD,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;IAG/B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@metamask/keyring-api",
|
3
|
-
"version": "
|
3
|
+
"version": "19.0.0",
|
4
4
|
"description": "MetaMask Keyring API",
|
5
5
|
"keywords": [
|
6
6
|
"metamask",
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"test:watch": "jest --watch"
|
47
47
|
},
|
48
48
|
"dependencies": {
|
49
|
-
"@metamask/keyring-utils": "^3.
|
49
|
+
"@metamask/keyring-utils": "^3.1.0",
|
50
50
|
"@metamask/superstruct": "^3.1.0",
|
51
51
|
"@metamask/utils": "^11.1.0",
|
52
52
|
"bitcoin-address-validation": "^2.2.3"
|
@@ -55,7 +55,7 @@
|
|
55
55
|
"@lavamoat/allow-scripts": "^3.2.1",
|
56
56
|
"@lavamoat/preinstall-always-fail": "^2.1.0",
|
57
57
|
"@metamask/auto-changelog": "^3.4.4",
|
58
|
-
"@metamask/keyring-utils": "^3.
|
58
|
+
"@metamask/keyring-utils": "^3.1.0",
|
59
59
|
"@ts-bridge/cli": "^0.6.3",
|
60
60
|
"@types/jest": "^29.5.12",
|
61
61
|
"@types/node": "^20.12.12",
|