11import { AccountIdStruct , object } from '@metamask/keyring-utils' ;
22import type { Infer } from '@metamask/superstruct' ;
3- import { nonempty , array , enums , record , string } from '@metamask/superstruct' ;
3+ import { array , enums , nonempty , record , string } from '@metamask/superstruct' ;
44import { JsonStruct } from '@metamask/utils' ;
55
66import { CaipChainIdStruct } from './caip' ;
@@ -30,6 +30,13 @@ export enum SolAccountType {
3030 DataAccount = 'solana:data-account' ,
3131}
3232
33+ /**
34+ * Supported TRON account types.
35+ */
36+ export enum TrxAccountType {
37+ Eoa = 'tron:eoa' ,
38+ }
39+
3340/**
3441 * Supported account types.
3542 */
@@ -40,7 +47,8 @@ export type KeyringAccountType =
4047 | `${BtcAccountType . P2sh } `
4148 | `${BtcAccountType . P2wpkh } `
4249 | `${BtcAccountType . P2tr } `
43- | `${SolAccountType . DataAccount } `;
50+ | `${SolAccountType . DataAccount } `
51+ | `${TrxAccountType . Eoa } `;
4452
4553/**
4654 * A struct which represents a Keyring account object. It is abstract enough to
@@ -66,6 +74,7 @@ export const KeyringAccountStruct = object({
6674 `${ BtcAccountType . P2wpkh } ` ,
6775 `${ BtcAccountType . P2tr } ` ,
6876 `${ SolAccountType . DataAccount } ` ,
77+ `${ TrxAccountType . Eoa } ` ,
6978 ] ) ,
7079
7180 /**
0 commit comments