@metamask/keyring-api 19.1.0 → 20.1.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 -2
- package/dist/api/account.cjs +9 -1
- package/dist/api/account.cjs.map +1 -1
- package/dist/api/account.d.cts +10 -3
- package/dist/api/account.d.cts.map +1 -1
- package/dist/api/account.d.mts +10 -3
- package/dist/api/account.d.mts.map +1 -1
- package/dist/api/account.mjs +8 -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/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.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/dist/trx/constants.cjs +14 -0
- package/dist/trx/constants.cjs.map +1 -0
- package/dist/trx/constants.d.cts +9 -0
- package/dist/trx/constants.d.cts.map +1 -0
- package/dist/trx/constants.d.mts +9 -0
- package/dist/trx/constants.d.mts.map +1 -0
- package/dist/trx/constants.mjs +11 -0
- package/dist/trx/constants.mjs.map +1 -0
- package/dist/trx/index.cjs +19 -0
- package/dist/trx/index.cjs.map +1 -0
- package/dist/trx/index.d.cts +3 -0
- package/dist/trx/index.d.cts.map +1 -0
- package/dist/trx/index.d.mts +3 -0
- package/dist/trx/index.d.mts.map +1 -0
- package/dist/trx/index.mjs +3 -0
- package/dist/trx/index.mjs.map +1 -0
- package/dist/trx/types.cjs +40 -0
- package/dist/trx/types.cjs.map +1 -0
- package/dist/trx/types.d.cts +65 -0
- package/dist/trx/types.d.cts.map +1 -0
- package/dist/trx/types.d.mts +65 -0
- package/dist/trx/types.d.mts.map +1 -0
- package/dist/trx/types.mjs +37 -0
- package/dist/trx/types.mjs.map +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -7,13 +7,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [20.1.0]
|
11
|
+
|
12
|
+
### Added
|
13
|
+
|
14
|
+
- Add Tron support ([#349](https://github.com/MetaMask/accounts/pull/349))
|
15
|
+
|
16
|
+
## [20.0.0]
|
17
|
+
|
18
|
+
### Changed
|
19
|
+
|
20
|
+
- **BREAKING:** Add generic account type ([#323](https://github.com/metamask/accounts/pull/323))
|
21
|
+
- This change was not properly reported as breaking on the `19.1.0`.
|
22
|
+
- The `KeyringAccountType` union now has a new member type `any:account`.
|
23
|
+
|
10
24
|
## [19.1.0]
|
11
25
|
|
12
26
|
### Added
|
13
27
|
|
14
28
|
- Add generic account type ([#318](https://github.com/metamask/accounts/pull/318))
|
15
29
|
- This account type can be used during the integration of new chains.
|
16
|
-
- It's allowed only Flask builds of MetaMask clients.
|
30
|
+
- It's allowed only in Flask builds of MetaMask clients.
|
17
31
|
|
18
32
|
## [19.0.0]
|
19
33
|
|
@@ -598,7 +612,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
598
612
|
- SnapController keyring client. It is intended to be used by MetaMask to talk to the snap.
|
599
613
|
- Helper functions to create keyring handler in the snap.
|
600
614
|
|
601
|
-
[Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@
|
615
|
+
[Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@20.1.0...HEAD
|
616
|
+
[20.1.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@20.0.0...@metamask/keyring-api@20.1.0
|
617
|
+
[20.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@19.1.0...@metamask/keyring-api@20.0.0
|
602
618
|
[19.1.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@19.0.0...@metamask/keyring-api@19.1.0
|
603
619
|
[19.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@18.0.0...@metamask/keyring-api@19.0.0
|
604
620
|
[18.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@17.6.0...@metamask/keyring-api@18.0.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.AnyAccountType = exports.SolAccountType = exports.BtcAccountType = exports.EthAccountType = void 0;
|
3
|
+
exports.KeyringAccountStruct = exports.AnyAccountType = exports.TrxAccountType = 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,13 @@ var SolAccountType;
|
|
30
30
|
(function (SolAccountType) {
|
31
31
|
SolAccountType["DataAccount"] = "solana:data-account";
|
32
32
|
})(SolAccountType || (exports.SolAccountType = SolAccountType = {}));
|
33
|
+
/**
|
34
|
+
* Supported Tron account types.
|
35
|
+
*/
|
36
|
+
var TrxAccountType;
|
37
|
+
(function (TrxAccountType) {
|
38
|
+
TrxAccountType["Eoa"] = "tron:eoa";
|
39
|
+
})(TrxAccountType || (exports.TrxAccountType = TrxAccountType = {}));
|
33
40
|
/**
|
34
41
|
* A generic account type. It can be used to represent any account type that is
|
35
42
|
* not covered by the other account types. It only applies to non-EVM chains.
|
@@ -61,6 +68,7 @@ exports.KeyringAccountStruct = (0, keyring_utils_1.object)({
|
|
61
68
|
`${BtcAccountType.P2wpkh}`,
|
62
69
|
`${BtcAccountType.P2tr}`,
|
63
70
|
`${SolAccountType.DataAccount}`,
|
71
|
+
`${TrxAccountType.Eoa}`,
|
64
72
|
`${AnyAccountType.Account}`,
|
65
73
|
]),
|
66
74
|
/**
|
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;AAED;;;GAGG;AACH,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,yCAAuB,CAAA;AACzB,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;;GAEG;AACH,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,kCAAgB,CAAA;AAClB,CAAC,EAFW,cAAc,8BAAd,cAAc,QAEzB;AAED;;;GAGG;AACH,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,yCAAuB,CAAA;AACzB,CAAC,EAFW,cAAc,8BAAd,cAAc,QAEzB;AAgBD;;;;;;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,GAAG,EAAE;QACvB,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 * Supported Tron account types.\n */\nexport enum TrxAccountType {\n Eoa = 'tron:eoa',\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 | `${TrxAccountType.Eoa}`\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 `${TrxAccountType.Eoa}`,\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,6 +21,12 @@ export declare enum BtcAccountType {
|
|
21
21
|
export declare enum SolAccountType {
|
22
22
|
DataAccount = "solana:data-account"
|
23
23
|
}
|
24
|
+
/**
|
25
|
+
* Supported Tron account types.
|
26
|
+
*/
|
27
|
+
export declare enum TrxAccountType {
|
28
|
+
Eoa = "tron:eoa"
|
29
|
+
}
|
24
30
|
/**
|
25
31
|
* A generic account type. It can be used to represent any account type that is
|
26
32
|
* not covered by the other account types. It only applies to non-EVM chains.
|
@@ -31,7 +37,7 @@ export declare enum AnyAccountType {
|
|
31
37
|
/**
|
32
38
|
* Supported account types.
|
33
39
|
*/
|
34
|
-
export type KeyringAccountType = `${EthAccountType.Eoa}` | `${EthAccountType.Erc4337}` | `${BtcAccountType.P2pkh}` | `${BtcAccountType.P2sh}` | `${BtcAccountType.P2wpkh}` | `${BtcAccountType.P2tr}` | `${SolAccountType.DataAccount}` | `${AnyAccountType.Account}`;
|
40
|
+
export type KeyringAccountType = `${EthAccountType.Eoa}` | `${EthAccountType.Erc4337}` | `${BtcAccountType.P2pkh}` | `${BtcAccountType.P2sh}` | `${BtcAccountType.P2wpkh}` | `${BtcAccountType.P2tr}` | `${SolAccountType.DataAccount}` | `${TrxAccountType.Eoa}` | `${AnyAccountType.Account}`;
|
35
41
|
/**
|
36
42
|
* A struct which represents a Keyring account object. It is abstract enough to
|
37
43
|
* be used with any blockchain. Specific blockchain account types should extend
|
@@ -40,7 +46,7 @@ export type KeyringAccountType = `${EthAccountType.Eoa}` | `${EthAccountType.Erc
|
|
40
46
|
* See {@link KeyringAccount}.
|
41
47
|
*/
|
42
48
|
export declare const KeyringAccountStruct: import("@metamask/superstruct").Struct<{
|
43
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
49
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
44
50
|
id: string;
|
45
51
|
options: Record<string, import("@metamask/utils").Json> & {
|
46
52
|
entropy?: {
|
@@ -64,7 +70,7 @@ export declare const KeyringAccountStruct: import("@metamask/superstruct").Struc
|
|
64
70
|
/**
|
65
71
|
* Account type.
|
66
72
|
*/
|
67
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
73
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account", {
|
68
74
|
"eip155:eoa": "eip155:eoa";
|
69
75
|
"eip155:erc4337": "eip155:erc4337";
|
70
76
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -72,6 +78,7 @@ export declare const KeyringAccountStruct: import("@metamask/superstruct").Struc
|
|
72
78
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
73
79
|
"bip122:p2tr": "bip122:p2tr";
|
74
80
|
"solana:data-account": "solana:data-account";
|
81
|
+
"tron:eoa": "tron:eoa";
|
75
82
|
"any:account": "any:account";
|
76
83
|
}>;
|
77
84
|
/**
|
@@ -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;;;GAGG;AACH,oBAAY,cAAc;IACxB,OAAO,gBAAgB;CACxB;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,GAAG,cAAc,CAAC,GAAG,EAAE,GACvB,GAAG,cAAc,CAAC,OAAO,EAAE,GAC3B,GAAG,cAAc,CAAC,KAAK,EAAE,GACzB,GAAG,cAAc,CAAC,IAAI,EAAE,GACxB,GAAG,cAAc,CAAC,MAAM,EAAE,GAC1B,GAAG,cAAc,CAAC,IAAI,EAAE,GACxB,GAAG,cAAc,CAAC,WAAW,EAAE,GAC/B,GAAG,cAAc,CAAC,OAAO,EAAE,CAAC;AAEhC;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;IAC/B;;OAEG;;IAGH;;OAEG
|
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,oBAAY,cAAc;IACxB,GAAG,aAAa;CACjB;AAED;;;GAGG;AACH,oBAAY,cAAc;IACxB,OAAO,gBAAgB;CACxB;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,GAAG,cAAc,CAAC,GAAG,EAAE,GACvB,GAAG,cAAc,CAAC,OAAO,EAAE,GAC3B,GAAG,cAAc,CAAC,KAAK,EAAE,GACzB,GAAG,cAAc,CAAC,IAAI,EAAE,GACxB,GAAG,cAAc,CAAC,MAAM,EAAE,GAC1B,GAAG,cAAc,CAAC,IAAI,EAAE,GACxB,GAAG,cAAc,CAAC,WAAW,EAAE,GAC/B,GAAG,cAAc,CAAC,GAAG,EAAE,GACvB,GAAG,cAAc,CAAC,OAAO,EAAE,CAAC;AAEhC;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;IAC/B;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;IAaH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;IAGH;;OAEG;;EAEH,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/dist/api/account.d.mts
CHANGED
@@ -21,6 +21,12 @@ export declare enum BtcAccountType {
|
|
21
21
|
export declare enum SolAccountType {
|
22
22
|
DataAccount = "solana:data-account"
|
23
23
|
}
|
24
|
+
/**
|
25
|
+
* Supported Tron account types.
|
26
|
+
*/
|
27
|
+
export declare enum TrxAccountType {
|
28
|
+
Eoa = "tron:eoa"
|
29
|
+
}
|
24
30
|
/**
|
25
31
|
* A generic account type. It can be used to represent any account type that is
|
26
32
|
* not covered by the other account types. It only applies to non-EVM chains.
|
@@ -31,7 +37,7 @@ export declare enum AnyAccountType {
|
|
31
37
|
/**
|
32
38
|
* Supported account types.
|
33
39
|
*/
|
34
|
-
export type KeyringAccountType = `${EthAccountType.Eoa}` | `${EthAccountType.Erc4337}` | `${BtcAccountType.P2pkh}` | `${BtcAccountType.P2sh}` | `${BtcAccountType.P2wpkh}` | `${BtcAccountType.P2tr}` | `${SolAccountType.DataAccount}` | `${AnyAccountType.Account}`;
|
40
|
+
export type KeyringAccountType = `${EthAccountType.Eoa}` | `${EthAccountType.Erc4337}` | `${BtcAccountType.P2pkh}` | `${BtcAccountType.P2sh}` | `${BtcAccountType.P2wpkh}` | `${BtcAccountType.P2tr}` | `${SolAccountType.DataAccount}` | `${TrxAccountType.Eoa}` | `${AnyAccountType.Account}`;
|
35
41
|
/**
|
36
42
|
* A struct which represents a Keyring account object. It is abstract enough to
|
37
43
|
* be used with any blockchain. Specific blockchain account types should extend
|
@@ -40,7 +46,7 @@ export type KeyringAccountType = `${EthAccountType.Eoa}` | `${EthAccountType.Erc
|
|
40
46
|
* See {@link KeyringAccount}.
|
41
47
|
*/
|
42
48
|
export declare const KeyringAccountStruct: import("@metamask/superstruct").Struct<{
|
43
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
49
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
44
50
|
id: string;
|
45
51
|
options: Record<string, import("@metamask/utils").Json> & {
|
46
52
|
entropy?: {
|
@@ -64,7 +70,7 @@ export declare const KeyringAccountStruct: import("@metamask/superstruct").Struc
|
|
64
70
|
/**
|
65
71
|
* Account type.
|
66
72
|
*/
|
67
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
73
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account", {
|
68
74
|
"eip155:eoa": "eip155:eoa";
|
69
75
|
"eip155:erc4337": "eip155:erc4337";
|
70
76
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -72,6 +78,7 @@ export declare const KeyringAccountStruct: import("@metamask/superstruct").Struc
|
|
72
78
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
73
79
|
"bip122:p2tr": "bip122:p2tr";
|
74
80
|
"solana:data-account": "solana:data-account";
|
81
|
+
"tron:eoa": "tron:eoa";
|
75
82
|
"any:account": "any:account";
|
76
83
|
}>;
|
77
84
|
/**
|
@@ -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;;;GAGG;AACH,oBAAY,cAAc;IACxB,OAAO,gBAAgB;CACxB;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,GAAG,cAAc,CAAC,GAAG,EAAE,GACvB,GAAG,cAAc,CAAC,OAAO,EAAE,GAC3B,GAAG,cAAc,CAAC,KAAK,EAAE,GACzB,GAAG,cAAc,CAAC,IAAI,EAAE,GACxB,GAAG,cAAc,CAAC,MAAM,EAAE,GAC1B,GAAG,cAAc,CAAC,IAAI,EAAE,GACxB,GAAG,cAAc,CAAC,WAAW,EAAE,GAC/B,GAAG,cAAc,CAAC,OAAO,EAAE,CAAC;AAEhC;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;IAC/B;;OAEG;;IAGH;;OAEG
|
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,oBAAY,cAAc;IACxB,GAAG,aAAa;CACjB;AAED;;;GAGG;AACH,oBAAY,cAAc;IACxB,OAAO,gBAAgB;CACxB;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,GAAG,cAAc,CAAC,GAAG,EAAE,GACvB,GAAG,cAAc,CAAC,OAAO,EAAE,GAC3B,GAAG,cAAc,CAAC,KAAK,EAAE,GACzB,GAAG,cAAc,CAAC,IAAI,EAAE,GACxB,GAAG,cAAc,CAAC,MAAM,EAAE,GAC1B,GAAG,cAAc,CAAC,IAAI,EAAE,GACxB,GAAG,cAAc,CAAC,WAAW,EAAE,GAC/B,GAAG,cAAc,CAAC,GAAG,EAAE,GACvB,GAAG,cAAc,CAAC,OAAO,EAAE,CAAC;AAEhC;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;IAC/B;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;IAaH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;IAGH;;OAEG;;EAEH,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/dist/api/account.mjs
CHANGED
@@ -27,6 +27,13 @@ export var SolAccountType;
|
|
27
27
|
(function (SolAccountType) {
|
28
28
|
SolAccountType["DataAccount"] = "solana:data-account";
|
29
29
|
})(SolAccountType || (SolAccountType = {}));
|
30
|
+
/**
|
31
|
+
* Supported Tron account types.
|
32
|
+
*/
|
33
|
+
export var TrxAccountType;
|
34
|
+
(function (TrxAccountType) {
|
35
|
+
TrxAccountType["Eoa"] = "tron:eoa";
|
36
|
+
})(TrxAccountType || (TrxAccountType = {}));
|
30
37
|
/**
|
31
38
|
* A generic account type. It can be used to represent any account type that is
|
32
39
|
* not covered by the other account types. It only applies to non-EVM chains.
|
@@ -58,6 +65,7 @@ export const KeyringAccountStruct = object({
|
|
58
65
|
`${BtcAccountType.P2wpkh}`,
|
59
66
|
`${BtcAccountType.P2tr}`,
|
60
67
|
`${SolAccountType.DataAccount}`,
|
68
|
+
`${TrxAccountType.Eoa}`,
|
61
69
|
`${AnyAccountType.Account}`,
|
62
70
|
]),
|
63
71
|
/**
|
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,WAAY,cAAc;IACxB,wCAAsB,CAAA;IACtB,sCAAoB,CAAA;IACpB,0CAAwB,CAAA;IACxB,sCAAoB,CAAA;AACtB,CAAC,EALW,cAAc,KAAd,cAAc,QAKzB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,qDAAmC,CAAA;AACrC,CAAC,EAFW,cAAc,KAAd,cAAc,QAEzB;AAED;;;GAGG;AACH,MAAM,CAAN,IAAY,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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,GAAG,EAAE;QACvB,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 * Supported Tron account types.\n */\nexport enum TrxAccountType {\n Eoa = 'tron:eoa',\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 | `${TrxAccountType.Eoa}`\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 `${TrxAccountType.Eoa}`,\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" | "any:account";
|
19
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "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" | "any:account";
|
47
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "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" | "any:account";
|
80
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "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" | "any:account", {
|
98
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "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
|
+
"tron:eoa": "tron:eoa";
|
106
107
|
"any:account": "any:account";
|
107
108
|
}>;
|
108
109
|
address: import("@metamask/superstruct").Struct<string, null>;
|
@@ -151,7 +152,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
151
152
|
method: "notify:accountUpdated";
|
152
153
|
params: {
|
153
154
|
account: {
|
154
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
155
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
155
156
|
id: string;
|
156
157
|
options: Record<string, import("@metamask/utils").Json> & {
|
157
158
|
entropy?: {
|
@@ -173,7 +174,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
173
174
|
method: import("@metamask/superstruct").Struct<"notify:accountUpdated", "notify:accountUpdated">;
|
174
175
|
params: import("@metamask/superstruct").Struct<{
|
175
176
|
account: {
|
176
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
177
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
177
178
|
id: string;
|
178
179
|
options: Record<string, import("@metamask/utils").Json> & {
|
179
180
|
entropy?: {
|
@@ -195,7 +196,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
195
196
|
* Updated account object.
|
196
197
|
*/
|
197
198
|
account: import("@metamask/superstruct").Struct<{
|
198
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
199
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
199
200
|
id: string;
|
200
201
|
options: Record<string, import("@metamask/utils").Json> & {
|
201
202
|
entropy?: {
|
@@ -213,7 +214,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
213
214
|
methods: string[];
|
214
215
|
}, {
|
215
216
|
id: import("@metamask/superstruct").Struct<string, null>;
|
216
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
217
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account", {
|
217
218
|
"eip155:eoa": "eip155:eoa";
|
218
219
|
"eip155:erc4337": "eip155:erc4337";
|
219
220
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -221,6 +222,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
221
222
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
222
223
|
"bip122:p2tr": "bip122:p2tr";
|
223
224
|
"solana:data-account": "solana:data-account";
|
225
|
+
"tron:eoa": "tron:eoa";
|
224
226
|
"any:account": "any:account";
|
225
227
|
}>;
|
226
228
|
address: import("@metamask/superstruct").Struct<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,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,CAAC;AACF,MAAM,MAAM,kCAAkC,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/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" | "any:account";
|
19
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "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" | "any:account";
|
47
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "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" | "any:account";
|
80
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "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" | "any:account", {
|
98
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "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
|
+
"tron:eoa": "tron:eoa";
|
106
107
|
"any:account": "any:account";
|
107
108
|
}>;
|
108
109
|
address: import("@metamask/superstruct").Struct<string, null>;
|
@@ -151,7 +152,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
151
152
|
method: "notify:accountUpdated";
|
152
153
|
params: {
|
153
154
|
account: {
|
154
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
155
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
155
156
|
id: string;
|
156
157
|
options: Record<string, import("@metamask/utils").Json> & {
|
157
158
|
entropy?: {
|
@@ -173,7 +174,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
173
174
|
method: import("@metamask/superstruct").Struct<"notify:accountUpdated", "notify:accountUpdated">;
|
174
175
|
params: import("@metamask/superstruct").Struct<{
|
175
176
|
account: {
|
176
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
177
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
177
178
|
id: string;
|
178
179
|
options: Record<string, import("@metamask/utils").Json> & {
|
179
180
|
entropy?: {
|
@@ -195,7 +196,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
195
196
|
* Updated account object.
|
196
197
|
*/
|
197
198
|
account: import("@metamask/superstruct").Struct<{
|
198
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account";
|
199
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
199
200
|
id: string;
|
200
201
|
options: Record<string, import("@metamask/utils").Json> & {
|
201
202
|
entropy?: {
|
@@ -213,7 +214,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
213
214
|
methods: string[];
|
214
215
|
}, {
|
215
216
|
id: import("@metamask/superstruct").Struct<string, null>;
|
216
|
-
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "any:account", {
|
217
|
+
type: import("@metamask/superstruct").Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account", {
|
217
218
|
"eip155:eoa": "eip155:eoa";
|
218
219
|
"eip155:erc4337": "eip155:erc4337";
|
219
220
|
"bip122:p2pkh": "bip122:p2pkh";
|
@@ -221,6 +222,7 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
221
222
|
"bip122:p2wpkh": "bip122:p2wpkh";
|
222
223
|
"bip122:p2tr": "bip122:p2tr";
|
223
224
|
"solana:data-account": "solana:data-account";
|
225
|
+
"tron:eoa": "tron:eoa";
|
224
226
|
"any:account": "any:account";
|
225
227
|
}>;
|
226
228
|
address: import("@metamask/superstruct").Struct<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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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api/index.cjs"), exports);
|
|
18
18
|
__exportStar(require("./btc/index.cjs"), exports);
|
19
19
|
__exportStar(require("./sol/index.cjs"), exports);
|
20
20
|
__exportStar(require("./eth/index.cjs"), exports);
|
21
|
+
__exportStar(require("./trx/index.cjs"), exports);
|
21
22
|
__exportStar(require("./rpc.cjs"), exports);
|
22
23
|
__exportStar(require("./events.cjs"), exports);
|
23
24
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAsB;AACtB,kDAAsB;AACtB,kDAAsB;AACtB,kDAAsB;AAEtB,4CAAsB;AACtB,+CAAyB","sourcesContent":["export * from './api';\nexport * from './btc';\nexport * from './sol';\nexport * from './eth';\nexport type * from './contexts';\nexport * from './rpc';\nexport * from './events';\n"]}
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAsB;AACtB,kDAAsB;AACtB,kDAAsB;AACtB,kDAAsB;AACtB,kDAAsB;AAEtB,4CAAsB;AACtB,+CAAyB","sourcesContent":["export * from './api';\nexport * from './btc';\nexport * from './sol';\nexport * from './eth';\nexport * from './trx';\nexport type * from './contexts';\nexport * from './rpc';\nexport * from './events';\n"]}
|
package/dist/index.d.cts
CHANGED
@@ -2,6 +2,7 @@ export * from "./api/index.cjs";
|
|
2
2
|
export * from "./btc/index.cjs";
|
3
3
|
export * from "./sol/index.cjs";
|
4
4
|
export * from "./eth/index.cjs";
|
5
|
+
export * from "./trx/index.cjs";
|
5
6
|
export type * from "./contexts.cjs";
|
6
7
|
export * from "./rpc.cjs";
|
7
8
|
export * from "./events.cjs";
|
package/dist/index.d.cts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,oCAAgC;AAChC,0BAAsB;AACtB,6BAAyB"}
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,oCAAgC;AAChC,0BAAsB;AACtB,6BAAyB"}
|
package/dist/index.d.mts
CHANGED
@@ -2,6 +2,7 @@ export * from "./api/index.mjs";
|
|
2
2
|
export * from "./btc/index.mjs";
|
3
3
|
export * from "./sol/index.mjs";
|
4
4
|
export * from "./eth/index.mjs";
|
5
|
+
export * from "./trx/index.mjs";
|
5
6
|
export type * from "./contexts.mjs";
|
6
7
|
export * from "./rpc.mjs";
|
7
8
|
export * from "./events.mjs";
|
package/dist/index.d.mts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,oCAAgC;AAChC,0BAAsB;AACtB,6BAAyB"}
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,oCAAgC;AAChC,0BAAsB;AACtB,6BAAyB"}
|
package/dist/index.mjs
CHANGED
@@ -2,6 +2,7 @@ export * from "./api/index.mjs";
|
|
2
2
|
export * from "./btc/index.mjs";
|
3
3
|
export * from "./sol/index.mjs";
|
4
4
|
export * from "./eth/index.mjs";
|
5
|
+
export * from "./trx/index.mjs";
|
5
6
|
export * from "./rpc.mjs";
|
6
7
|
export * from "./events.mjs";
|
7
8
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AAEtB,0BAAsB;AACtB,6BAAyB","sourcesContent":["export * from './api';\nexport * from './btc';\nexport * from './sol';\nexport * from './eth';\nexport type * from './contexts';\nexport * from './rpc';\nexport * from './events';\n"]}
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AACtB,gCAAsB;AAEtB,0BAAsB;AACtB,6BAAyB","sourcesContent":["export * from './api';\nexport * from './btc';\nexport * from './sol';\nexport * from './eth';\nexport * from './trx';\nexport type * from './contexts';\nexport * from './rpc';\nexport * from './events';\n"]}
|