import { Initiable } from "../../sqliteDAL/Initiable"; import { DBWallet } from "../../../db/DBWallet"; export interface WalletDAO extends Initiable { /** * Trigger the initialization of the DAO. Called when the underlying DB is ready. */ triggerInit(): void; /** * Saves a wallet. * @param {DBWallet} wallet * @returns {Promise} */ saveWallet(wallet: DBWallet): Promise; /** * Find a wallet based on conditions. * @param {string} conditions * @returns {Promise} */ getWallet(conditions: string): Promise; /** * Make a batch insert. * @param records The records to insert as a batch. */ insertBatch(records: DBWallet[]): Promise; /** * Lists all the wallets. * @returns {Promise} */ listAll(): Promise; }