20 lines
832 B
TypeScript
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
|