47 lines
1.5 KiB
TypeScript
47 lines
1.5 KiB
TypeScript
export type DepositSweepRow = {
|
|
id: string;
|
|
user_id: string;
|
|
wallet_type_id: number;
|
|
from_address: string;
|
|
to_cold_address: string;
|
|
amount: string;
|
|
blockchain_tx_id: string | null;
|
|
status: string;
|
|
deposit_transaction_id: string | null;
|
|
batch_id: string | null;
|
|
error_message_encrypted: string | null;
|
|
created_at: Date;
|
|
updated_at: Date;
|
|
};
|
|
export declare function findByDepositTransactionId(depositTransactionId: string): Promise<DepositSweepRow | null>;
|
|
export declare function createSweep(input: {
|
|
userId: string;
|
|
walletTypeId: number;
|
|
fromAddress: string;
|
|
toColdAddress: string;
|
|
amount: bigint;
|
|
depositTransactionId?: string;
|
|
batchId?: string;
|
|
}): Promise<DepositSweepRow>;
|
|
export declare function listSweeps(opts: {
|
|
status?: string;
|
|
limit?: number;
|
|
offset?: number;
|
|
}): Promise<{
|
|
items: DepositSweepRow[];
|
|
total: number;
|
|
}>;
|
|
export declare function listPendingSweeps(limit?: number, opts?: {
|
|
unbatchedOnly?: boolean;
|
|
batchId?: string;
|
|
}): Promise<DepositSweepRow[]>;
|
|
export declare function assignSweepToBatch(sweepId: string, batchId: string): Promise<void>;
|
|
export declare function summarizeInProgressSweeps(): Promise<{
|
|
count: number;
|
|
totalAmountRaw: string;
|
|
}>;
|
|
export declare function updateSweepStatus(id: string, status: string, opts?: {
|
|
blockchainTxId?: string;
|
|
errorMessage?: string;
|
|
}): Promise<void>;
|
|
//# sourceMappingURL=depositSweepRepository.d.ts.map
|