games_app/backend/dist/repositories/depositScannerRepository.d.ts
2026-06-29 15:01:23 +02:00

20 lines
832 B
TypeScript

/**
* Repository for deposit scanner checkpoint state.
* Tracks the last processed blockchain block per wallet type.
*/
/**
* Retrieves the last scanned block for a wallet type.
* @param walletTypeId - ID of the wallet type to query.
* @returns The last scanned block number as text, or null if no state exists.
*/
export declare function getState(walletTypeId: number): Promise<{
last_block: string;
} | null>;
/**
* Upserts the last scanned block for a wallet type.
* @param walletTypeId - ID of the wallet type to update.
* @param lastBlock - Latest block number that has been fully processed.
* @returns Resolves when the state row has been inserted or updated.
*/
export declare function updateState(walletTypeId: number, lastBlock: bigint): Promise<void>;
//# sourceMappingURL=depositScannerRepository.d.ts.map