UNPKG

@metamask-previews/account-api

Version:
17 lines 556 B
export var AccountWalletCategory; (function (AccountWalletCategory) { AccountWalletCategory["Entropy"] = "entropy"; AccountWalletCategory["Keyring"] = "keyring"; AccountWalletCategory["Snap"] = "snap"; })(AccountWalletCategory || (AccountWalletCategory = {})); /** * Convert a unique ID to a wallet ID for a given category. * * @param category - A wallet category. * @param id - A unique ID. * @returns A wallet ID. */ export function toAccountWalletId(category, id) { return `${category}:${id}`; } //# sourceMappingURL=wallet.mjs.map