UNPKG

@metamask-previews/account-api

Version:
21 lines 738 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AccountWalletCategory = void 0; exports.toAccountWalletId = toAccountWalletId; var AccountWalletCategory; (function (AccountWalletCategory) { AccountWalletCategory["Entropy"] = "entropy"; AccountWalletCategory["Keyring"] = "keyring"; AccountWalletCategory["Snap"] = "snap"; })(AccountWalletCategory || (exports.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. */ function toAccountWalletId(category, id) { return `${category}:${id}`; } //# sourceMappingURL=wallet.cjs.map