22 lines
662 B
TypeScript
22 lines
662 B
TypeScript
/**
|
|
* Wallet domain models for supported assets and per-user deposit addresses.
|
|
* Maps to the `wallet_types` and `user_wallets` tables.
|
|
*/
|
|
/** Row shape for the `wallet_types` table (TRX, USDT, USDC, etc.). */
|
|
export interface WalletType {
|
|
id: number;
|
|
code: string;
|
|
name: string;
|
|
network: string;
|
|
decimals: number;
|
|
contract_address: string | null;
|
|
}
|
|
/** Row shape for the `user_wallets` table (HD-derived deposit address per user and asset). */
|
|
export interface UserWallet {
|
|
id: string;
|
|
user_id: string;
|
|
wallet_type_id: number;
|
|
address: string;
|
|
derivation_index: number;
|
|
}
|
|
//# sourceMappingURL=wallet.model.d.ts.map
|