import Service from '../module/database'; import Xpub, { XpubBalance } from '../models/xpub'; import PassEncrypt from '../../websql/dbs/passHash'; export default class XpubDB extends Service { constructor(userDataPath: string | undefined, enDb: PassEncrypt); getAll: (query?: { xpub?: string | undefined; zpub?: string | undefined; walletId?: string | undefined; coin?: boolean | undefined; } | undefined, sorting?: { sort: string; order?: "a" | "d" | undefined; } | undefined) => Promise; getByCoin: (coin: string) => Promise; getByWalletId(walletId: string): Promise; getByWalletIdandCoin(walletId: string, coin: string): Promise; insert(xpub: Xpub): Promise; delete(xpub: string, coin: string): Promise; deleteWallet(walletId: string): Promise; updateByXpub(xpub: string, coin: any, data: any): Promise; updateBalance(xpub: string, coin: string, balance: XpubBalance): Promise; updateZpubBalance(xpub: string, coin: string, balance: XpubBalance): Promise; updateTotalBalance(xpub: string, coin: string, balance: XpubBalance): Promise; }