@cranberry-money/shared-utils
Version:
Shared utility functions for Blueberry platform
11 lines • 465 B
TypeScript
import type { Wallet, WalletTotals } from '@cranberry-money/shared-types';
/**
* Calculate aggregated wallet totals by blockchain type.
* Sums native balances and market values for BTC and ETH wallets.
*/
export declare function calculateWalletTotals(wallets: Wallet[]): WalletTotals;
/**
* Filter wallets by blockchain type.
*/
export declare function filterWalletsByChain(wallets: Wallet[], blockchain: string): Wallet[];
//# sourceMappingURL=wallet.d.ts.map