import Service from '../module/database'; import ERC20 from '../models/erc20token'; import ERC20Token from '../models/erc20token'; export default class Erc20DB extends Service { constructor(userDataPath?: string); getAll(query?: { walletId?: string; coin?: string; ethCoin?: string; balance?: string; }, sorting?: { sort: string; order?: 'a' | 'd'; }): Promise; getByToken: (token: string) => Promise; getByWalletId(walletId: string, ethCoin: string): Promise; getByWalletIdandToken(walletId: string, coin: string): Promise; getOne(query?: { walletId?: string; coin?: string; ethCoin?: string; balance?: string; }): Promise; insert(token: ERC20Token): Promise; deleteWallet(walletId: string): Promise; deleteAll(query?: { walletId?: string; coin?: string; ethCoin?: string; balance?: string; }): Promise; updateBalance(coin: string, walletId: string, balance: string): Promise; }