import { GenericDAO } from "./GenericDAO"; import { TransactionDTO } from "../../../dto/TransactionDTO"; import { SandBox } from "../../sqliteDAL/SandBox"; import { DBTx } from "../../../db/DBTx"; export interface TxsDAO extends GenericDAO { trimExpiredNonWrittenTxs(limitTime: number): Promise; getAllPending(versionMin: number): Promise; getTX(hash: string): Promise; addLinked(tx: TransactionDTO, block_number: number, time: number): Promise; addPending(dbTx: DBTx): Promise; getLinkedWithIssuer(pubkey: string): Promise; getLinkedWithRecipient(pubkey: string): Promise; getPendingWithIssuer(pubkey: string): Promise; getPendingWithRecipient(pubkey: string): Promise; removeTX(hash: string): Promise; removeAll(): Promise; sandbox: SandBox<{ issuers: string[]; output_base: number; output_amount: number; }>; getSandboxRoom(): Promise; setSandboxSize(size: number): void; }