Shared domain types and pure utilities for the Lumio
cooperative-finance platform. Consumed by @lumio/sdk,
@lumio/ui, and every lumio-app package.
pnpm add @lumio/sharedimport { truncateAddress, formatAmount, parseAmount } from "@lumio/shared";
truncateAddress("GABCDEFG...WXYZ"); // "GABC…WXYZ"
formatAmount(12_500_000n); // "1.25" (7-decimal Stellar amounts)
parseAmount("1.25"); // 12500000nAlso exports the core domain types — Member, Contribution, Proposal, Vote, Dividend,
Address, Amount, ContractName, NetworkConfig — plus the STELLAR_DECIMALS constant.
Apache-2.0. Part of the lumio-sdk monorepo.