games_app/backend/dist-test-faq/services/sweepService.d.ts

22 lines
963 B
TypeScript

/**
* Sweeps on-chain deposits from user HD addresses to cold storage.
*/
export declare function enqueueSweepAfterDeposit(userId: string, walletTypeId: number, amount: bigint, depositTransactionId: string): Promise<void>;
export declare function enqueueSweepsForCreditedHdBalances(): Promise<{
sweepEnabled: boolean;
enqueued: number;
alreadyQueued: number;
}>;
export declare function processPendingSweeps(opts?: {
unbatchedOnly?: boolean;
batchId?: string;
limit?: number;
}): Promise<number>;
/**
* Auto path: execute pending sweeps that pass SWEEP_AUTO_EXECUTE + optional max amount,
* without going through Approvals. Large sweeps (over max) stay queued for manual approval.
*/
export declare function processAutoEligibleSweeps(): Promise<number>;
export declare function executeApprovedBatch(batchId: string): Promise<number>;
export declare function getSweepPollIntervalMs(): number;
//# sourceMappingURL=sweepService.d.ts.map