UNPKG

@metamask/account-api

Version:
25 lines 813 B
/** * Wallet type. * * Each wallet types groups accounts using different criterias. */ export var AccountWalletType; (function (AccountWalletType) { /** Wallet grouping accounts based on their entropy source. */ AccountWalletType["Entropy"] = "entropy"; /** Wallet grouping accounts based on their keyring's type. */ AccountWalletType["Keyring"] = "keyring"; /** Wallet grouping accounts associated with an account management Snap. */ AccountWalletType["Snap"] = "snap"; })(AccountWalletType || (AccountWalletType = {})); /** * Convert a unique ID to a wallet ID for a given type. * * @param type - A wallet type. * @param id - A unique ID. * @returns A wallet ID. */ export function toAccountWalletId(type, id) { return `${type}:${id}`; } //# sourceMappingURL=wallet.mjs.map