@metamask/keyring-api 19.0.0 → 20.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 +19 -1
- package/dist/api/account.cjs +10 -1
- package/dist/api/account.cjs.map +1 -1
- package/dist/api/account.d.cts +11 -3
- package/dist/api/account.d.cts.map +1 -1
- package/dist/api/account.d.mts +11 -3
- package/dist/api/account.d.mts.map +1 -1
- package/dist/api/account.mjs +9 -0
- package/dist/api/account.mjs.map +1 -1
- package/dist/events.d.cts +10 -8
- package/dist/events.d.cts.map +1 -1
- package/dist/events.d.mts +10 -8
- package/dist/events.d.mts.map +1 -1
- package/dist/rpc.d.cts +15 -11
- package/dist/rpc.d.cts.map +1 -1
- package/dist/rpc.d.mts +15 -11
- package/dist/rpc.d.mts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [20.0.0]
|
11
|
+
|
12
|
+
### Changed
|
13
|
+
|
14
|
+
- **BREAKING:** Add generic account type ([#323](https://github.com/metamask/accounts/pull/323))
|
15
|
+
- This change was not properly reported as breaking on the `19.1.0`.
|
16
|
+
- The `KeyringAccountType` union now has a new member type `any:account`.
|
17
|
+
|
18
|
+
## [19.1.0]
|
19
|
+
|
20
|
+
### Added
|
21
|
+
|
22
|
+
- Add generic account type ([#318](https://github.com/metamask/accounts/pull/318))
|
23
|
+
- This account type can be used during the integration of new chains.
|
24
|
+
- It's allowed only in Flask builds of MetaMask clients.
|
25
|
+
|
10
26
|
## [19.0.0]
|
11
27
|
|
12
28
|
### Changed
|
@@ -590,7 +606,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
590
606
|
- SnapController keyring client. It is intended to be used by MetaMask to talk to the snap.
|
591
607
|
- Helper functions to create keyring handler in the snap.
|
592
608
|
|
593
|
-
[Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@
|
609
|
+
[Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@20.0.0...HEAD
|
610
|
+
[20.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@19.1.0...@metamask/keyring-api@20.0.0
|
611
|
+
[19.1.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@19.0.0...@metamask/keyring-api@19.1.0
|
594
612
|
[19.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@18.0.0...@metamask/keyring-api@19.0.0
|
595
613
|
[18.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@17.6.0...@metamask/keyring-api@18.0.0
|
596
614
|
[17.6.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@17.5.0...@metamask/keyring-api@17.6.0
|
package/dist/api/account.cjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.KeyringAccountStruct = exports.SolAccountType = exports.BtcAccountType = exports.EthAccountType = void 0;
|
3
|
+
exports.KeyringAccountStruct = exports.AnyAccountType = exports.SolAccountType = exports.BtcAccountType = exports.EthAccountType = void 0;
|
4
4
|
const keyring_utils_1 = require("@metamask/keyring-utils");
|
5
5
|
const superstruct_1 = require("@metamask/superstruct");
|
6
6
|
const account_options_1 = require("./account-options.cjs");
|
@@ -30,6 +30,14 @@ var SolAccountType;
|
|
30
30
|
(function (SolAccountType) {
|
31
31
|
SolAccountType["DataAccount"] = "solana:data-account";
|
32
32
|
})(SolAccountType || (exports.SolAccountType = SolAccountType = {}));
|
33
|
+
/**
|
34
|
+
* A generic account type. It can be used to represent any account type that is
|
35
|
+
* not covered by the other account types. It only applies to non-EVM chains.
|
36
|
+
*/
|
37
|
+
var AnyAccountType;
|
38
|
+
(function (AnyAccountType) {
|
39
|
+
AnyAccountType["Account"] = "any:account";
|
40
|
+
})(AnyAccountType || (exports.AnyAccountType = AnyAccountType = {}));
|
33
41
|
/**
|
34
42
|
* A struct which represents a Keyring account object. It is abstract enough to
|
35
43
|
* be used with any blockchain. Specific blockchain account types should extend
|
@@ -53,6 +61,7 @@ exports.KeyringAccountStruct = (0, keyring_utils_1.object)({
|
|
53
61
|
`${BtcAccountType.P2wpkh}`,
|
54
62
|
`${BtcAccountType.P2tr}`,
|
55
63
|
`${SolAccountType.DataAccount}`,
|
64
|
+
`${AnyAccountType.Account}`,
|
56
65
|
]),
|
57
66
|
/**
|
58
67
|
* Account main address.
|
package/dist/api/account.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"account.cjs","sourceRoot":"","sources":["../../src/api/account.ts"],"names":[],"mappings":";;;AAAA,2DAAkE;AAElE,uDAAuE;AAEvE,2DAAgE;AAChE,qCAA2C;AAE3C;;GAEG;AACH,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,oCAAkB,CAAA;IAClB,4CAA0B,CAAA;AAC5B,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAED;;GAEG;AACH,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,wCAAsB,CAAA;IACtB,sCAAoB,CAAA;IACpB,0CAAwB,CAAA;IACxB,sCAAoB,CAAA;AACtB,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB;AAED;;GAEG;AACH,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,qDAAmC,CAAA;AACrC,CAAC,EAFW,cAAc,8BAAd,cAAc,QAEzB;
|
1
|
+
{"version":3,"file":"account.cjs","sourceRoot":"","sources":["../../src/api/account.ts"],"names":[],"mappings":";;;AAAA,2DAAkE;AAElE,uDAAuE;AAEvE,2DAAgE;AAChE,qCAA2C;AAE3C;;GAEG;AACH,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,oCAAkB,CAAA;IAClB,4CAA0B,CAAA;AAC5B,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAED;;GAEG;AACH,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,wCAAsB,CAAA;IACtB,sCAAoB,CAAA;IACpB,0CAAwB,CAAA;IACxB,sCAAoB,CAAA;AACtB,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB;AAED;;GAEG;AACH,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,qDAAmC,CAAA;AACrC,CAAC,EAFW,cAAc,8BAAd,cAAc,QAEzB;AAED;;;GAGG;AACH,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,yCAAuB,CAAA;AACzB,CAAC,EAFW,cAAc,8BAAd,cAAc,QAEzB;AAeD;;;;;;GAMG;AACU,QAAA,oBAAoB,GAAG,IAAA,sBAAM,EAAC;IACzC;;OAEG;IACH,EAAE,EAAE,+BAAe;IAEnB;;OAEG;IACH,IAAI,EAAE,IAAA,mBAAK,EAAC;QACV,GAAG,cAAc,CAAC,GAAG,EAAE;QACvB,GAAG,cAAc,CAAC,OAAO,EAAE;QAC3B,GAAG,cAAc,CAAC,KAAK,EAAE;QACzB,GAAG,cAAc,CAAC,IAAI,EAAE;QACxB,GAAG,cAAc,CAAC,MAAM,EAAE;QAC1B,GAAG,cAAc,CAAC,IAAI,EAAE;QACxB,GAAG,cAAc,CAAC,WAAW,EAAE;QAC/B,GAAG,cAAc,CAAC,OAAO,EAAE;KAC5B,CAAC;IAEF;;OAEG;IACH,OAAO,EAAE,IAAA,oBAAM,GAAE;IAEjB;;OAEG;IACH,MAAM,EAAE,IAAA,sBAAQ,EAAC,IAAA,mBAAK,EAAC,wBAAiB,CAAC,CAAC;IAE1C;;OAEG;IACH,OAAO,EAAE,6CAA2B;IAEpC;;OAEG;IACH,OAAO,EAAE,IAAA,mBAAK,EAAC,IAAA,oBAAM,GAAE,CAAC;CACzB,CAAC,CAAC","sourcesContent":["import { AccountIdStruct, object } from '@metamask/keyring-utils';\nimport type { Infer } from '@metamask/superstruct';\nimport { nonempty, array, enums, string } from '@metamask/superstruct';\n\nimport { KeyringAccountOptionsStruct } from './account-options';\nimport { CaipChainIdStruct } from './caip';\n\n/**\n * Supported Ethereum account types.\n */\nexport enum EthAccountType {\n Eoa = 'eip155:eoa',\n Erc4337 = 'eip155:erc4337',\n}\n\n/**\n * Supported Bitcoin account types.\n */\nexport enum BtcAccountType {\n P2pkh = 'bip122:p2pkh',\n P2sh = 'bip122:p2sh',\n P2wpkh = 'bip122:p2wpkh',\n P2tr = 'bip122:p2tr',\n}\n\n/**\n * Supported Solana account types.\n */\nexport enum SolAccountType {\n DataAccount = 'solana:data-account',\n}\n\n/**\n * A generic account type. It can be used to represent any account type that is\n * not covered by the other account types. It only applies to non-EVM chains.\n */\nexport enum AnyAccountType {\n Account = 'any:account',\n}\n\n/**\n * Supported account types.\n */\nexport type KeyringAccountType =\n | `${EthAccountType.Eoa}`\n | `${EthAccountType.Erc4337}`\n | `${BtcAccountType.P2pkh}`\n | `${BtcAccountType.P2sh}`\n | `${BtcAccountType.P2wpkh}`\n | `${BtcAccountType.P2tr}`\n | `${SolAccountType.DataAccount}`\n | `${AnyAccountType.Account}`;\n\n/**\n * A struct which represents a Keyring account object. It is abstract enough to\n * be used with any blockchain. Specific blockchain account types should extend\n * this struct.\n *\n * See {@link KeyringAccount}.\n */\nexport const KeyringAccountStruct = object({\n /**\n * Account ID (UUIDv4).\n */\n id: AccountIdStruct,\n\n /**\n * Account type.\n */\n type: enums([\n `${EthAccountType.Eoa}`,\n `${EthAccountType.Erc4337}`,\n `${BtcAccountType.P2pkh}`,\n `${BtcAccountType.P2sh}`,\n `${BtcAccountType.P2wpkh}`,\n `${BtcAccountType.P2tr}`,\n `${SolAccountType.DataAccount}`,\n `${AnyAccountType.Account}`,\n ]),\n\n /**\n * Account main address.\n */\n address: string(),\n\n /**\n * Account supported scopes (CAIP-2 chain IDs).\n */\n scopes: nonempty(array(CaipChainIdStruct)),\n\n /**\n * Account options.\n */\n options: KeyringAccountOptionsStruct,\n\n /**\n * Account supported methods.\n */\n methods: array(string()),\n});\n\n/**\n * Keyring Account type represents an account and its properties from the\n * point of view of the keyring.\n */\nexport type KeyringAccount = Infer<typeof KeyringAccountStruct>;\n"]}
|
package/dist/api/account.d.cts
CHANGED
@@ -21,10 +21,17 @@ export declare enum BtcAccountType {
|
|
21
21
|
export declare enum SolAccountType {
|
22
22
|
DataAccount = "solana:data-account"
|
23
23
|
}
|
24
|
+
/**
|
25
|
+
* A generic account type. It can be used to represent any account type that is
|
26
|
+
* not covered by the other account types. It only applies to non-EVM chains.
|
27
|
+
*/
|
28
|
+
export declare enum AnyAccountType {
|
29
|
+
Account = "any:account"
|
30
|
+
}
|
24
31
|
/**
|
25
32
|
* Supported account types.
|
26
33
|
*/
|
27
|
-
export type KeyringAccountType = `${EthAccountType.Eoa}` | `${EthAccountType.Erc4337}` | `${BtcAccountType.P2pkh}` | `${BtcAccountType.P2sh}` | `${BtcAccountType.P2wpkh}` | `${BtcAccountType.P2tr}` | `${SolAccountType.DataAccount}`;
|
34
|
+
export type KeyringAccountType = `${EthAccountType.Eoa}` | `${EthAccountType.Erc4337}` | `${BtcAccountType.P2pkh}` | `${BtcAccountType.P2sh}` | `${BtcAccountType.P2wpkh}` | `${BtcAccountType.P2tr}` | `${SolAccountType.DataAccount}` | `${AnyAccountType.Account}`;
|
28
35
|
/**
|
29
36
|
* A struct which represents a Keyring account object. It is abstract enough to
|
30
37
|
* be used with any blockchain. Specific blockchain account types should extend
|
@@ -33,7 +40,7 @@ export type KeyringAccountType = `${EthAccountType.Eoa}` | `${EthAccountType.Erc
|
|
33
40
|
* See {@link KeyringAccount}.
|
34
41
|
*/
|
35
42
|
export declare const KeyringAccountStruct: import("@metamask/superstruct").Struct<{
|
36
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
43
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
37
44
|
id: string;
|
38
45
|
options: Record<string, import("@metamask/utils").Json> & {
|
39
46
|
entropy?: {
|
@@ -57,7 +64,7 @@ export declare const KeyringAccountStruct: import("@metamask/superstruct").Struc
|
|
57
64
|
/**
|
58
65
|
* Account type.
|
59
66
|
*/
|
60
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
67
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
61
68
|
"eip155:eoa": "eip155:eoa";
|
62
69
|
"eip155:erc4337": "eip155:erc4337";
|
63
70
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -65,6 +72,7 @@ export declare const KeyringAccountStruct: import("@metamask/superstruct").Struc
|
|
65
72
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
66
73
|
"bip122:p2tr": "bip122:p2tr";
|
67
74
|
"solana:data-account": "solana:data-account";
|
75
|
+
"any:account": "any:account";
|
68
76
|
}>;
|
69
77
|
/**
|
70
78
|
* Account main address.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"account.d.cts","sourceRoot":"","sources":["../../src/api/account.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAMnD;;GAEG;AACH,oBAAY,cAAc;IACxB,GAAG,eAAe;IAClB,OAAO,mBAAmB;CAC3B;AAED;;GAEG;AACH,oBAAY,cAAc;IACxB,KAAK,iBAAiB;IACtB,IAAI,gBAAgB;IACpB,MAAM,kBAAkB;IACxB,IAAI,gBAAgB;CACrB;AAED;;GAEG;AACH,oBAAY,cAAc;IACxB,WAAW,wBAAwB;CACpC;AAED;;GAEG;AACH,MAAM,MAAM,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GAGG;AACH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/dist/api/account.d.mts
CHANGED
@@ -21,10 +21,17 @@ export declare enum BtcAccountType {
|
|
21
21
|
export declare enum SolAccountType {
|
22
22
|
DataAccount = "solana:data-account"
|
23
23
|
}
|
24
|
+
/**
|
25
|
+
* A generic account type. It can be used to represent any account type that is
|
26
|
+
* not covered by the other account types. It only applies to non-EVM chains.
|
27
|
+
*/
|
28
|
+
export declare enum AnyAccountType {
|
29
|
+
Account = "any:account"
|
30
|
+
}
|
24
31
|
/**
|
25
32
|
* Supported account types.
|
26
33
|
*/
|
27
|
-
export type KeyringAccountType = `${EthAccountType.Eoa}` | `${EthAccountType.Erc4337}` | `${BtcAccountType.P2pkh}` | `${BtcAccountType.P2sh}` | `${BtcAccountType.P2wpkh}` | `${BtcAccountType.P2tr}` | `${SolAccountType.DataAccount}`;
|
34
|
+
export type KeyringAccountType = `${EthAccountType.Eoa}` | `${EthAccountType.Erc4337}` | `${BtcAccountType.P2pkh}` | `${BtcAccountType.P2sh}` | `${BtcAccountType.P2wpkh}` | `${BtcAccountType.P2tr}` | `${SolAccountType.DataAccount}` | `${AnyAccountType.Account}`;
|
28
35
|
/**
|
29
36
|
* A struct which represents a Keyring account object. It is abstract enough to
|
30
37
|
* be used with any blockchain. Specific blockchain account types should extend
|
@@ -33,7 +40,7 @@ export type KeyringAccountType = `${EthAccountType.Eoa}` | `${EthAccountType.Erc
|
|
33
40
|
* See {@link KeyringAccount}.
|
34
41
|
*/
|
35
42
|
export declare const KeyringAccountStruct: import("@metamask/superstruct").Struct<{
|
36
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
43
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
37
44
|
id: string;
|
38
45
|
options: Record<string, import("@metamask/utils").Json> & {
|
39
46
|
entropy?: {
|
@@ -57,7 +64,7 @@ export declare const KeyringAccountStruct: import("@metamask/superstruct").Struc
|
|
57
64
|
/**
|
58
65
|
* Account type.
|
59
66
|
*/
|
60
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
67
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
61
68
|
"eip155:eoa": "eip155:eoa";
|
62
69
|
"eip155:erc4337": "eip155:erc4337";
|
63
70
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -65,6 +72,7 @@ export declare const KeyringAccountStruct: import("@metamask/superstruct").Struc
|
|
65
72
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
66
73
|
"bip122:p2tr": "bip122:p2tr";
|
67
74
|
"solana:data-account": "solana:data-account";
|
75
|
+
"any:account": "any:account";
|
68
76
|
}>;
|
69
77
|
/**
|
70
78
|
* Account main address.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"account.d.mts","sourceRoot":"","sources":["../../src/api/account.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAMnD;;GAEG;AACH,oBAAY,cAAc;IACxB,GAAG,eAAe;IAClB,OAAO,mBAAmB;CAC3B;AAED;;GAEG;AACH,oBAAY,cAAc;IACxB,KAAK,iBAAiB;IACtB,IAAI,gBAAgB;IACpB,MAAM,kBAAkB;IACxB,IAAI,gBAAgB;CACrB;AAED;;GAEG;AACH,oBAAY,cAAc;IACxB,WAAW,wBAAwB;CACpC;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,GAAG,cAAc,CAAC,GAAG,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,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/dist/api/account.mjs
CHANGED
@@ -27,6 +27,14 @@ export var SolAccountType;
|
|
27
27
|
(function (SolAccountType) {
|
28
28
|
SolAccountType["DataAccount"] = "solana:data-account";
|
29
29
|
})(SolAccountType || (SolAccountType = {}));
|
30
|
+
/**
|
31
|
+
* A generic account type. It can be used to represent any account type that is
|
32
|
+
* not covered by the other account types. It only applies to non-EVM chains.
|
33
|
+
*/
|
34
|
+
export var AnyAccountType;
|
35
|
+
(function (AnyAccountType) {
|
36
|
+
AnyAccountType["Account"] = "any:account";
|
37
|
+
})(AnyAccountType || (AnyAccountType = {}));
|
30
38
|
/**
|
31
39
|
* A struct which represents a Keyring account object. It is abstract enough to
|
32
40
|
* be used with any blockchain. Specific blockchain account types should extend
|
@@ -50,6 +58,7 @@ export const KeyringAccountStruct = object({
|
|
50
58
|
`${BtcAccountType.P2wpkh}`,
|
51
59
|
`${BtcAccountType.P2tr}`,
|
52
60
|
`${SolAccountType.DataAccount}`,
|
61
|
+
`${AnyAccountType.Account}`,
|
53
62
|
]),
|
54
63
|
/**
|
55
64
|
* Account main address.
|
package/dist/api/account.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"account.mjs","sourceRoot":"","sources":["../../src/api/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,gCAAgC;AAElE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,8BAA8B;AAEvE,OAAO,EAAE,2BAA2B,EAAE,8BAA0B;AAChE,OAAO,EAAE,iBAAiB,EAAE,mBAAe;AAE3C;;GAEG;AACH,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,oCAAkB,CAAA;IAClB,4CAA0B,CAAA;AAC5B,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,cAKX;AALD,WAA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H,IAAI,EAAE,KAAK,CAAC;QACV,GAAG,cAAc,CAAC,GAAG,EAAE;QACvB,GAAG,cAAc,CAAC,OAAO,EAAE;QAC3B,GAAG,cAAc,CAAC,KAAK,EAAE;QACzB,GAAG,cAAc,CAAC,IAAI,EAAE;QACxB,GAAG,cAAc,CAAC,MAAM,EAAE;QAC1B,GAAG,cAAc,CAAC,IAAI,EAAE;QACxB,GAAG,cAAc,CAAC,WAAW,EAAE;QAC/B,GAAG,cAAc,CAAC,OAAO,EAAE;KAC5B,CAAC;IAEF;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE;IAEjB;;OAEG;IACH,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAE1C;;OAEG;IACH,OAAO,EAAE,2BAA2B;IAEpC;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC;CACzB,CAAC,CAAC","sourcesContent":["import { AccountIdStruct, object } from '@metamask/keyring-utils';\nimport type { Infer } from '@metamask/superstruct';\nimport { nonempty, array, enums, string } from '@metamask/superstruct';\n\nimport { KeyringAccountOptionsStruct } from './account-options';\nimport { CaipChainIdStruct } from './caip';\n\n/**\n * Supported Ethereum account types.\n */\nexport enum EthAccountType {\n Eoa = 'eip155:eoa',\n Erc4337 = 'eip155:erc4337',\n}\n\n/**\n * Supported Bitcoin account types.\n */\nexport enum BtcAccountType {\n P2pkh = 'bip122:p2pkh',\n P2sh = 'bip122:p2sh',\n P2wpkh = 'bip122:p2wpkh',\n P2tr = 'bip122:p2tr',\n}\n\n/**\n * Supported Solana account types.\n */\nexport enum SolAccountType {\n DataAccount = 'solana:data-account',\n}\n\n/**\n * A generic account type. It can be used to represent any account type that is\n * not covered by the other account types. It only applies to non-EVM chains.\n */\nexport enum AnyAccountType {\n Account = 'any:account',\n}\n\n/**\n * Supported account types.\n */\nexport type KeyringAccountType =\n | `${EthAccountType.Eoa}`\n | `${EthAccountType.Erc4337}`\n | `${BtcAccountType.P2pkh}`\n | `${BtcAccountType.P2sh}`\n | `${BtcAccountType.P2wpkh}`\n | `${BtcAccountType.P2tr}`\n | `${SolAccountType.DataAccount}`\n | `${AnyAccountType.Account}`;\n\n/**\n * A struct which represents a Keyring account object. It is abstract enough to\n * be used with any blockchain. Specific blockchain account types should extend\n * this struct.\n *\n * See {@link KeyringAccount}.\n */\nexport const KeyringAccountStruct = object({\n /**\n * Account ID (UUIDv4).\n */\n id: AccountIdStruct,\n\n /**\n * Account type.\n */\n type: enums([\n `${EthAccountType.Eoa}`,\n `${EthAccountType.Erc4337}`,\n `${BtcAccountType.P2pkh}`,\n `${BtcAccountType.P2sh}`,\n `${BtcAccountType.P2wpkh}`,\n `${BtcAccountType.P2tr}`,\n `${SolAccountType.DataAccount}`,\n `${AnyAccountType.Account}`,\n ]),\n\n /**\n * Account main address.\n */\n address: string(),\n\n /**\n * Account supported scopes (CAIP-2 chain IDs).\n */\n scopes: nonempty(array(CaipChainIdStruct)),\n\n /**\n * Account options.\n */\n options: KeyringAccountOptionsStruct,\n\n /**\n * Account supported methods.\n */\n methods: array(string()),\n});\n\n/**\n * Keyring Account type represents an account and its properties from the\n * point of view of the keyring.\n */\nexport type KeyringAccount = Infer<typeof KeyringAccountStruct>;\n"]}
|
package/dist/events.d.cts
CHANGED
@@ -16,7 +16,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
16
16
|
method: "notify:accountCreated";
|
17
17
|
params: {
|
18
18
|
account: {
|
19
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
19
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
20
20
|
id: string;
|
21
21
|
options: Record<string, import("@metamask/utils").Json> & {
|
22
22
|
entropy?: {
|
@@ -44,7 +44,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
44
44
|
method: import("@metamask/superstruct").Struct<"notify:accountCreated", "notify:accountCreated">;
|
45
45
|
params: import("@metamask/superstruct").Struct<{
|
46
46
|
account: {
|
47
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
47
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
48
48
|
id: string;
|
49
49
|
options: Record<string, import("@metamask/utils").Json> & {
|
50
50
|
entropy?: {
|
@@ -77,7 +77,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
77
77
|
* New account object.
|
78
78
|
*/
|
79
79
|
account: import("@metamask/superstruct").Struct<{
|
80
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
80
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
81
81
|
id: string;
|
82
82
|
options: Record<string, import("@metamask/utils").Json> & {
|
83
83
|
entropy?: {
|
@@ -95,7 +95,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
95
95
|
methods: string[];
|
96
96
|
}, {
|
97
97
|
id: import("@metamask/superstruct").Struct<string, null>;
|
98
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
98
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
99
99
|
"eip155:eoa": "eip155:eoa";
|
100
100
|
"eip155:erc4337": "eip155:erc4337";
|
101
101
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -103,6 +103,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
103
103
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
104
104
|
"bip122:p2tr": "bip122:p2tr";
|
105
105
|
"solana:data-account": "solana:data-account";
|
106
|
+
"any:account": "any:account";
|
106
107
|
}>;
|
107
108
|
address: import("@metamask/superstruct").Struct<string, null>;
|
108
109
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
@@ -150,7 +151,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
150
151
|
method: "notify:accountUpdated";
|
151
152
|
params: {
|
152
153
|
account: {
|
153
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
154
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
154
155
|
id: string;
|
155
156
|
options: Record<string, import("@metamask/utils").Json> & {
|
156
157
|
entropy?: {
|
@@ -172,7 +173,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
172
173
|
method: import("@metamask/superstruct").Struct<"notify:accountUpdated", "notify:accountUpdated">;
|
173
174
|
params: import("@metamask/superstruct").Struct<{
|
174
175
|
account: {
|
175
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
176
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
176
177
|
id: string;
|
177
178
|
options: Record<string, import("@metamask/utils").Json> & {
|
178
179
|
entropy?: {
|
@@ -194,7 +195,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
194
195
|
* Updated account object.
|
195
196
|
*/
|
196
197
|
account: import("@metamask/superstruct").Struct<{
|
197
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
198
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
198
199
|
id: string;
|
199
200
|
options: Record<string, import("@metamask/utils").Json> & {
|
200
201
|
entropy?: {
|
@@ -212,7 +213,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
212
213
|
methods: string[];
|
213
214
|
}, {
|
214
215
|
id: import("@metamask/superstruct").Struct<string, null>;
|
215
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
216
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
216
217
|
"eip155:eoa": "eip155:eoa";
|
217
218
|
"eip155:erc4337": "eip155:erc4337";
|
218
219
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -220,6 +221,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
220
221
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
221
222
|
"bip122:p2tr": "bip122:p2tr";
|
222
223
|
"solana:data-account": "solana:data-account";
|
224
|
+
"any:account": "any:account";
|
223
225
|
}>;
|
224
226
|
address: import("@metamask/superstruct").Struct<string, null>;
|
225
227
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
package/dist/events.d.cts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"events.d.cts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAenD;;GAEG;AACH,oBAAY,YAAY;IAEtB,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IAGxC,eAAe,2BAA2B;IAC1C,eAAe,2BAA2B;IAG1C,sBAAsB,kCAAkC;IACxD,uBAAuB,mCAAmC;IAC1D,0BAA0B,sCAAsC;CACjE;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAGlC;;WAEG
|
1
|
+
{"version":3,"file":"events.d.cts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAenD;;GAEG;AACH,oBAAY,YAAY;IAEtB,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IAGxC,eAAe,2BAA2B;IAC1C,eAAe,2BAA2B;IAG1C,sBAAsB,kCAAkC;IACxD,uBAAuB,mCAAmC;IAC1D,0BAA0B,sCAAsC;CACjE;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAGlC;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAGH;;;;;;WAMG;;QAGH;;;;WAIG;;QAGH;;;;;;;WAOG;;;EAQL,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC1E,MAAM,MAAM,0BAA0B,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAG9C;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaL,CAAC;AACH,MAAM,MAAM,+BAA+B,GAAG,KAAK,CACjD,OAAO,qCAAqC,CAC7C,CAAC;AACF,MAAM,MAAM,sCAAsC,GAChD,+BAA+B,CAAC,QAAQ,CAAC,CAAC;AAE5C;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;QAG3C;;WAEG;;;;;;EAuBL,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,KAAK,CAC9C,OAAO,kCAAkC,CAC1C,CAAC;AACF,MAAM,MAAM,mCAAmC,GAC7C,4BAA4B,CAAC,QAAQ,CAAC,CAAC;AAEzC;;GAEG;AAEH,KAAK,aAAa,GACd,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,4BAA4B,GAC5B,2BAA2B,GAC3B,+BAA+B,GAC/B,oBAAoB,GACpB,oBAAoB,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,mBAAmB,CAAC,KAAK,SAAS,YAAY,IAAI,OAAO,CACnE,aAAa,EAGb;IAAE,MAAM,EAAE,GAAG,KAAK,EAAE,CAAA;CAAE,CACvB,CAAC,QAAQ,CAAC,CAAC"}
|
package/dist/events.d.mts
CHANGED
@@ -16,7 +16,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
16
16
|
method: "notify:accountCreated";
|
17
17
|
params: {
|
18
18
|
account: {
|
19
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
19
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
20
20
|
id: string;
|
21
21
|
options: Record<string, import("@metamask/utils").Json> & {
|
22
22
|
entropy?: {
|
@@ -44,7 +44,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
44
44
|
method: import("@metamask/superstruct").Struct<"notify:accountCreated", "notify:accountCreated">;
|
45
45
|
params: import("@metamask/superstruct").Struct<{
|
46
46
|
account: {
|
47
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
47
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
48
48
|
id: string;
|
49
49
|
options: Record<string, import("@metamask/utils").Json> & {
|
50
50
|
entropy?: {
|
@@ -77,7 +77,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
77
77
|
* New account object.
|
78
78
|
*/
|
79
79
|
account: import("@metamask/superstruct").Struct<{
|
80
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
80
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
81
81
|
id: string;
|
82
82
|
options: Record<string, import("@metamask/utils").Json> & {
|
83
83
|
entropy?: {
|
@@ -95,7 +95,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
95
95
|
methods: string[];
|
96
96
|
}, {
|
97
97
|
id: import("@metamask/superstruct").Struct<string, null>;
|
98
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
98
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
99
99
|
"eip155:eoa": "eip155:eoa";
|
100
100
|
"eip155:erc4337": "eip155:erc4337";
|
101
101
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -103,6 +103,7 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
103
103
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
104
104
|
"bip122:p2tr": "bip122:p2tr";
|
105
105
|
"solana:data-account": "solana:data-account";
|
106
|
+
"any:account": "any:account";
|
106
107
|
}>;
|
107
108
|
address: import("@metamask/superstruct").Struct<string, null>;
|
108
109
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
@@ -150,7 +151,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
150
151
|
method: "notify:accountUpdated";
|
151
152
|
params: {
|
152
153
|
account: {
|
153
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
154
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
154
155
|
id: string;
|
155
156
|
options: Record<string, import("@metamask/utils").Json> & {
|
156
157
|
entropy?: {
|
@@ -172,7 +173,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
172
173
|
method: import("@metamask/superstruct").Struct<"notify:accountUpdated", "notify:accountUpdated">;
|
173
174
|
params: import("@metamask/superstruct").Struct<{
|
174
175
|
account: {
|
175
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
176
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
176
177
|
id: string;
|
177
178
|
options: Record<string, import("@metamask/utils").Json> & {
|
178
179
|
entropy?: {
|
@@ -194,7 +195,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
194
195
|
* Updated account object.
|
195
196
|
*/
|
196
197
|
account: import("@metamask/superstruct").Struct<{
|
197
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
198
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
198
199
|
id: string;
|
199
200
|
options: Record<string, import("@metamask/utils").Json> & {
|
200
201
|
entropy?: {
|
@@ -212,7 +213,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
212
213
|
methods: string[];
|
213
214
|
}, {
|
214
215
|
id: import("@metamask/superstruct").Struct<string, null>;
|
215
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
216
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
216
217
|
"eip155:eoa": "eip155:eoa";
|
217
218
|
"eip155:erc4337": "eip155:erc4337";
|
218
219
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -220,6 +221,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
220
221
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
221
222
|
"bip122:p2tr": "bip122:p2tr";
|
222
223
|
"solana:data-account": "solana:data-account";
|
224
|
+
"any:account": "any:account";
|
223
225
|
}>;
|
224
226
|
address: import("@metamask/superstruct").Struct<string, null>;
|
225
227
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
package/dist/events.d.mts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAenD;;GAEG;AACH,oBAAY,YAAY;IAEtB,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IAGxC,eAAe,2BAA2B;IAC1C,eAAe,2BAA2B;IAG1C,sBAAsB,kCAAkC;IACxD,uBAAuB,mCAAmC;IAC1D,0BAA0B,sCAAsC;CACjE;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAGlC;;WAEG
|
1
|
+
{"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAenD;;GAEG;AACH,oBAAY,YAAY;IAEtB,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;IAGxC,eAAe,2BAA2B;IAC1C,eAAe,2BAA2B;IAG1C,sBAAsB,kCAAkC;IACxD,uBAAuB,mCAAmC;IAC1D,0BAA0B,sCAAsC;CACjE;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAGlC;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAGH;;;;;;WAMG;;QAGH;;;;WAIG;;QAGH;;;;;;;WAOG;;;EAQL,CAAC;AACH,MAAM,MAAM,mBAAmB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,GAC5C,2BAA2B,CAAC,QAAQ,CAAC,CAAC;AAExC;;;;;;;GAOG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAG9C;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaL,CAAC;AACH,MAAM,MAAM,+BAA+B,GAAG,KAAK,CACjD,OAAO,qCAAqC,CAC7C,CAAC;AACF,MAAM,MAAM,sCAAsC,GAChD,+BAA+B,CAAC,QAAQ,CAAC,CAAC;AAE5C;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;QAG3C;;WAEG;;;;;;EAuBL,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,KAAK,CAC9C,OAAO,kCAAkC,CAC1C,CAAC;AACF,MAAM,MAAM,mCAAmC,GAC7C,4BAA4B,CAAC,QAAQ,CAAC,CAAC;AAEzC;;GAEG;AAEH,KAAK,aAAa,GACd,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,4BAA4B,GAC5B,2BAA2B,GAC3B,+BAA+B,GAC/B,oBAAoB,GACpB,oBAAoB,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,mBAAmB,CAAC,KAAK,SAAS,YAAY,IAAI,OAAO,CACnE,aAAa,EAGb;IAAE,MAAM,EAAE,GAAG,KAAK,EAAE,CAAA;CAAE,CACvB,CAAC,QAAQ,CAAC,CAAC"}
|
package/dist/rpc.d.cts
CHANGED
@@ -39,7 +39,7 @@ export declare const ListAccountsRequestStruct: import("@metamask/superstruct").
|
|
39
39
|
}>;
|
40
40
|
export type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;
|
41
41
|
export declare const ListAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
42
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
42
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
43
43
|
id: string;
|
44
44
|
options: Record<string, import("@metamask/utils").Json> & {
|
45
45
|
entropy?: {
|
@@ -56,7 +56,7 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
56
56
|
scopes: `${string}:${string}`[];
|
57
57
|
methods: string[];
|
58
58
|
}[], import("@metamask/superstruct").Struct<{
|
59
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
59
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
60
60
|
id: string;
|
61
61
|
options: Record<string, import("@metamask/utils").Json> & {
|
62
62
|
entropy?: {
|
@@ -74,7 +74,7 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
74
74
|
methods: string[];
|
75
75
|
}, {
|
76
76
|
id: import("@metamask/superstruct").Struct<string, null>;
|
77
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
77
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
78
78
|
"eip155:eoa": "eip155:eoa";
|
79
79
|
"eip155:erc4337": "eip155:erc4337";
|
80
80
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -82,6 +82,7 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
82
82
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
83
83
|
"bip122:p2tr": "bip122:p2tr";
|
84
84
|
"solana:data-account": "solana:data-account";
|
85
|
+
"any:account": "any:account";
|
85
86
|
}>;
|
86
87
|
address: import("@metamask/superstruct").Struct<string, null>;
|
87
88
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
@@ -118,7 +119,7 @@ export declare const GetAccountRequestStruct: import("@metamask/superstruct").St
|
|
118
119
|
}>;
|
119
120
|
export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
|
120
121
|
export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
121
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
122
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
122
123
|
id: string;
|
123
124
|
options: Record<string, import("@metamask/utils").Json> & {
|
124
125
|
entropy?: {
|
@@ -136,7 +137,7 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
136
137
|
methods: string[];
|
137
138
|
}, {
|
138
139
|
id: import("@metamask/superstruct").Struct<string, null>;
|
139
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
140
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
140
141
|
"eip155:eoa": "eip155:eoa";
|
141
142
|
"eip155:erc4337": "eip155:erc4337";
|
142
143
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -144,6 +145,7 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
144
145
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
145
146
|
"bip122:p2tr": "bip122:p2tr";
|
146
147
|
"solana:data-account": "solana:data-account";
|
148
|
+
"any:account": "any:account";
|
147
149
|
}>;
|
148
150
|
address: import("@metamask/superstruct").Struct<string, null>;
|
149
151
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
@@ -180,7 +182,7 @@ export declare const CreateAccountRequestStruct: import("@metamask/superstruct")
|
|
180
182
|
}>;
|
181
183
|
export type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
|
182
184
|
export declare const CreateAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
183
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
185
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
184
186
|
id: string;
|
185
187
|
options: Record<string, import("@metamask/utils").Json> & {
|
186
188
|
entropy?: {
|
@@ -198,7 +200,7 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
|
|
198
200
|
methods: string[];
|
199
201
|
}, {
|
200
202
|
id: import("@metamask/superstruct").Struct<string, null>;
|
201
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
203
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
202
204
|
"eip155:eoa": "eip155:eoa";
|
203
205
|
"eip155:erc4337": "eip155:erc4337";
|
204
206
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -206,6 +208,7 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
|
|
206
208
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
207
209
|
"bip122:p2tr": "bip122:p2tr";
|
208
210
|
"solana:data-account": "solana:data-account";
|
211
|
+
"any:account": "any:account";
|
209
212
|
}>;
|
210
213
|
address: import("@metamask/superstruct").Struct<string, null>;
|
211
214
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
@@ -704,7 +707,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
704
707
|
jsonrpc: "2.0";
|
705
708
|
params: {
|
706
709
|
account: {
|
707
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
710
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
708
711
|
id: string;
|
709
712
|
options: Record<string, import("@metamask/utils").Json> & {
|
710
713
|
entropy?: {
|
@@ -726,7 +729,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
726
729
|
method: import("@metamask/superstruct").Struct<"keyring_updateAccount", "keyring_updateAccount">;
|
727
730
|
params: import("@metamask/superstruct").Struct<{
|
728
731
|
account: {
|
729
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
732
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
730
733
|
id: string;
|
731
734
|
options: Record<string, import("@metamask/utils").Json> & {
|
732
735
|
entropy?: {
|
@@ -745,7 +748,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
745
748
|
};
|
746
749
|
}, {
|
747
750
|
account: import("@metamask/superstruct").Struct<{
|
748
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
751
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
749
752
|
id: string;
|
750
753
|
options: Record<string, import("@metamask/utils").Json> & {
|
751
754
|
entropy?: {
|
@@ -763,7 +766,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
763
766
|
methods: string[];
|
764
767
|
}, {
|
765
768
|
id: import("@metamask/superstruct").Struct<string, null>;
|
766
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
769
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
767
770
|
"eip155:eoa": "eip155:eoa";
|
768
771
|
"eip155:erc4337": "eip155:erc4337";
|
769
772
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -771,6 +774,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
771
774
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
772
775
|
"bip122:p2tr": "bip122:p2tr";
|
773
776
|
"solana:data-account": "solana:data-account";
|
777
|
+
"any:account": "any:account";
|
774
778
|
}>;
|
775
779
|
address: import("@metamask/superstruct").Struct<string, null>;
|
776
780
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
package/dist/rpc.d.cts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rpc.d.cts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AA2BnD;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,YAAY,yBAAyB;IACrC,UAAU,uBAAuB;IACjC,aAAa,0BAA0B;IACvC,gBAAgB,6BAA6B;IAC7C,iBAAiB,8BAA8B;IAC/C,uBAAuB,oCAAoC;IAC3D,kBAAkB,+BAA+B;IACjD,qBAAqB,kCAAkC;IACvD,mBAAmB,gCAAgC;IACnD,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,YAAY,yBAAyB;IACrC,UAAU,uBAAuB;IACjC,aAAa,0BAA0B;IACvC,cAAc,2BAA2B;IACzC,aAAa,0BAA0B;CACxC;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAE1D;AAYD,eAAO,MAAM,yBAAyB;;;;;;;;EAGpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE1E,eAAO,MAAM,0BAA0B
|
1
|
+
{"version":3,"file":"rpc.d.cts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AA2BnD;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,YAAY,yBAAyB;IACrC,UAAU,uBAAuB;IACjC,aAAa,0BAA0B;IACvC,gBAAgB,6BAA6B;IAC7C,iBAAiB,8BAA8B;IAC/C,uBAAuB,oCAAoC;IAC3D,kBAAkB,+BAA+B;IACjD,qBAAqB,kCAAkC;IACvD,mBAAmB,gCAAgC;IACnD,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,YAAY,yBAA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AK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B,oDAAgB,CAAC;AAEzD,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
package/dist/rpc.d.mts
CHANGED
@@ -39,7 +39,7 @@ export declare const ListAccountsRequestStruct: import("@metamask/superstruct").
|
|
39
39
|
}>;
|
40
40
|
export type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;
|
41
41
|
export declare const ListAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
42
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
42
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
43
43
|
id: string;
|
44
44
|
options: Record<string, import("@metamask/utils").Json> & {
|
45
45
|
entropy?: {
|
@@ -56,7 +56,7 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
56
56
|
scopes: `${string}:${string}`[];
|
57
57
|
methods: string[];
|
58
58
|
}[], import("@metamask/superstruct").Struct<{
|
59
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
59
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
60
60
|
id: string;
|
61
61
|
options: Record<string, import("@metamask/utils").Json> & {
|
62
62
|
entropy?: {
|
@@ -74,7 +74,7 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
74
74
|
methods: string[];
|
75
75
|
}, {
|
76
76
|
id: import("@metamask/superstruct").Struct<string, null>;
|
77
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
77
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
78
78
|
"eip155:eoa": "eip155:eoa";
|
79
79
|
"eip155:erc4337": "eip155:erc4337";
|
80
80
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -82,6 +82,7 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
82
82
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
83
83
|
"bip122:p2tr": "bip122:p2tr";
|
84
84
|
"solana:data-account": "solana:data-account";
|
85
|
+
"any:account": "any:account";
|
85
86
|
}>;
|
86
87
|
address: import("@metamask/superstruct").Struct<string, null>;
|
87
88
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
@@ -118,7 +119,7 @@ export declare const GetAccountRequestStruct: import("@metamask/superstruct").St
|
|
118
119
|
}>;
|
119
120
|
export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
|
120
121
|
export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
121
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
122
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
122
123
|
id: string;
|
123
124
|
options: Record<string, import("@metamask/utils").Json> & {
|
124
125
|
entropy?: {
|
@@ -136,7 +137,7 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
136
137
|
methods: string[];
|
137
138
|
}, {
|
138
139
|
id: import("@metamask/superstruct").Struct<string, null>;
|
139
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
140
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
140
141
|
"eip155:eoa": "eip155:eoa";
|
141
142
|
"eip155:erc4337": "eip155:erc4337";
|
142
143
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -144,6 +145,7 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
144
145
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
145
146
|
"bip122:p2tr": "bip122:p2tr";
|
146
147
|
"solana:data-account": "solana:data-account";
|
148
|
+
"any:account": "any:account";
|
147
149
|
}>;
|
148
150
|
address: import("@metamask/superstruct").Struct<string, null>;
|
149
151
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
@@ -180,7 +182,7 @@ export declare const CreateAccountRequestStruct: import("@metamask/superstruct")
|
|
180
182
|
}>;
|
181
183
|
export type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
|
182
184
|
export declare const CreateAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
183
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
185
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
184
186
|
id: string;
|
185
187
|
options: Record<string, import("@metamask/utils").Json> & {
|
186
188
|
entropy?: {
|
@@ -198,7 +200,7 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
|
|
198
200
|
methods: string[];
|
199
201
|
}, {
|
200
202
|
id: import("@metamask/superstruct").Struct<string, null>;
|
201
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
203
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
202
204
|
"eip155:eoa": "eip155:eoa";
|
203
205
|
"eip155:erc4337": "eip155:erc4337";
|
204
206
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -206,6 +208,7 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
|
|
206
208
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
207
209
|
"bip122:p2tr": "bip122:p2tr";
|
208
210
|
"solana:data-account": "solana:data-account";
|
211
|
+
"any:account": "any:account";
|
209
212
|
}>;
|
210
213
|
address: import("@metamask/superstruct").Struct<string, null>;
|
211
214
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
@@ -704,7 +707,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
704
707
|
jsonrpc: "2.0";
|
705
708
|
params: {
|
706
709
|
account: {
|
707
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
710
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
708
711
|
id: string;
|
709
712
|
options: Record<string, import("@metamask/utils").Json> & {
|
710
713
|
entropy?: {
|
@@ -726,7 +729,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
726
729
|
method: import("@metamask/superstruct").Struct<"keyring_updateAccount", "keyring_updateAccount">;
|
727
730
|
params: import("@metamask/superstruct").Struct<{
|
728
731
|
account: {
|
729
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
732
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
730
733
|
id: string;
|
731
734
|
options: Record<string, import("@metamask/utils").Json> & {
|
732
735
|
entropy?: {
|
@@ -745,7 +748,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
745
748
|
};
|
746
749
|
}, {
|
747
750
|
account: import("@metamask/superstruct").Struct<{
|
748
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
751
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
749
752
|
id: string;
|
750
753
|
options: Record<string, import("@metamask/utils").Json> & {
|
751
754
|
entropy?: {
|
@@ -763,7 +766,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
763
766
|
methods: string[];
|
764
767
|
}, {
|
765
768
|
id: import("@metamask/superstruct").Struct<string, null>;
|
766
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account", {
|
769
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
767
770
|
"eip155:eoa": "eip155:eoa";
|
768
771
|
"eip155:erc4337": "eip155:erc4337";
|
769
772
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -771,6 +774,7 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
771
774
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
772
775
|
"bip122:p2tr": "bip122:p2tr";
|
773
776
|
"solana:data-account": "solana:data-account";
|
777
|
+
"any:account": "any:account";
|
774
778
|
}>;
|
775
779
|
address: import("@metamask/superstruct").Struct<string, null>;
|
776
780
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
package/dist/rpc.d.mts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rpc.d.mts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AA2BnD;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,YAAY,yBAAyB;IACrC,UAAU,uBAAuB;IACjC,aAAa,0BAA0B;IACvC,gBAAgB,6BAA6B;IAC7C,iBAAiB,8BAA8B;IAC/C,uBAAuB,oCAAoC;IAC3D,kBAAkB,+BAA+B;IACjD,qBAAqB,kCAAkC;IACvD,mBAAmB,gCAAgC;IACnD,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,YAAY,yBAAyB;IACrC,UAAU,uBAAuB;IACjC,aAAa,0BAA0B;IACvC,cAAc,2BAA2B;IACzC,aAAa,0BAA0B;CACxC;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAE1D;AAYD,eAAO,MAAM,yBAAyB;;;;;;;;EAGpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE1E,eAAO,MAAM,0BAA0B
|
1
|
+
{"version":3,"file":"rpc.d.mts","sourceRoot":"","sources":["../src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