17 lines
975 B
TypeScript
17 lines
975 B
TypeScript
/**
|
|
* Per-network USDT deposit inventory (ops telemetry; not a withdrawal cap).
|
|
*/
|
|
import { PoolClient } from 'pg';
|
|
import type { CustodyNetwork } from '../utils/usdtUnits';
|
|
export declare function getAmount(userId: string, network: CustodyNetwork): Promise<bigint>;
|
|
export declare function getAllForUser(userId: string): Promise<{
|
|
TRON: bigint;
|
|
BSC: bigint;
|
|
}>;
|
|
/** Credit inventory inside an open DB transaction. */
|
|
export declare function creditUsingClient(client: PoolClient, userId: string, network: CustodyNetwork, amount: bigint): Promise<void>;
|
|
/** Debit inventory inside an open DB transaction; throws if insufficient. */
|
|
export declare function debitUsingClient(client: PoolClient, userId: string, network: CustodyNetwork, amount: bigint): Promise<void>;
|
|
/** Debit inventory (own connection). */
|
|
export declare function debit(userId: string, network: CustodyNetwork, amount: bigint): Promise<void>;
|
|
//# sourceMappingURL=networkInventoryRepository.d.ts.map
|