@edgex-web/components
Version:
EdgeX Universal UI Components Library - Reusable React components for deposit, withdraw and other common UI patterns
23 lines (22 loc) • 888 B
TypeScript
import { WalletType, Account } from '../types';
/**
* Normalize an incoming wallet type to the canonical constant (MPC or EVM).
* Case-insensitive by design: adjust the normalization to match constants' casing.
* If constants MPC/EVM are lowercase, prefer `wallet.toLowerCase()` here.
* @param wallet WalletType value to normalize
* @returns WalletType - canonical constant (MPC or EVM)
*/
export declare const getWalletType: (wallet: WalletType) => WalletType;
/**
* Convenience predicate: whether the given account is an MPC wallet
* @param account Account
* @returns boolean
*/
export declare const isMpcWalletType: (account: Account) => boolean;
/**
* Convenience predicate: whether the given account is an EVM wallet
* @param account Account
* @returns boolean
*/
export declare const isEvmWalletType: (account: Account) => boolean;
//# sourceMappingURL=index.d.ts.map