/// import { ZkopruNode, CoordinatorManager } from '@zkopru/core'; import { ZkAccount } from '@zkopru/account'; import { DB, Withdrawal as WithdrawalSql, TransactionDB } from '@zkopru/database'; import { Address, Uint256 } from 'soltypes'; import { UtxoStatus, Sum, Utxo, ZkAddress, WithdrawalStatus, RawTx, ZkTx } from '@zkopru/transaction'; import { F } from '@zkopru/babyjubjub'; import { TransactionObject, Tx } from '@zkopru/contracts'; import { Response } from 'node-fetch'; import { TransactionReceipt, Account } from 'web3-core'; import { ZkWizard } from './zk-wizard'; export interface Balance { eth: string; erc20: { [addr: string]: string; }; erc721: { [addr: string]: string; }; } export interface ZkWalletAccountConfig { privateKey?: Buffer | string; account?: ZkAccount; accounts?: ZkAccount[]; node: ZkopruNode; erc20: Address[]; erc721: Address[]; snarkKeyPath?: string; snarkKeyCid?: string; } export declare class ZkWalletAccount { db: DB; node: ZkopruNode; coordinatorManager: CoordinatorManager; account?: ZkAccount; erc20: Address[]; erc721: Address[]; wizard: ZkWizard; constructor(obj: ZkWalletAccountConfig); addERC20(...addresses: string[]): void; removeERC20(address: string): void; addERC721(...addresses: string[]): void; removeERC721(address: string): void; getSpendableAmount(account?: ZkAccount): Promise; getLockedAmount(account?: ZkAccount): Promise; getSpendables(account?: ZkAccount): Promise; getWithdrawables(account?: ZkAccount, status?: WithdrawalStatus): Promise; getUtxos(account?: ZkAccount, status?: UtxoStatus | UtxoStatus[]): Promise; fetchLayer1Assets(account?: ZkAccount): Promise; listLayer1Nfts(erc721Addr: string, balance: number, account?: ZkAccount): Promise; depositEther(eth: F, fee: F, to?: ZkAddress, salt?: F): Promise; depositEtherTx(eth: F, fee: F, to?: ZkAddress): { to: string; data: any; value: string; onComplete: () => Promise; }; depositERC20(eth: F, addr: string, amount: F, fee: F, to?: ZkAddress): Promise; depositERC20Tx(eth: F, addr: string, amount: F, fee: F, to?: ZkAddress): { to: string; data: any; value: string; onComplete: () => Promise; }; depositERC721(eth: F, addr: string, nft: F, fee: F, to?: ZkAddress): Promise; withdraw(withdrawal: WithdrawalSql): Promise; instantWithdrawal(prePayer: Address, prepayFeeInEth: Uint256, prepayFeeInToken: Uint256, withdrawal: WithdrawalSql, expiration: number): Promise; fetchPrice(): Promise; sendLayer1Tx({ contract, tx, signer, option, }: { contract: Address | string; tx: TransactionObject; signer?: Account; option?: Tx; }): Promise; lockUtxos(utxos: Utxo[], db?: TransactionDB): Promise; unlockUtxos(utxos: Utxo[]): Promise; shieldTx({ tx, from, encryptTo, prepayInfo, }: { tx: RawTx; from?: ZkAccount; encryptTo?: ZkAddress; prepayInfo?: any; }): Promise; storePendingTx(tx: RawTx, zkTx: ZkTx, from: ZkAccount, db?: TransactionDB): Promise; storePendingWithdrawal(tx: RawTx, db?: TransactionDB): Promise; sendLayer2Tx(zkTx: ZkTx | ZkTx[]): Promise; sendTx({ tx, from, encryptTo, }: { tx: RawTx; from?: ZkAccount; encryptTo?: ZkAddress; }): Promise; private deposit; private depositTx; private saveOutflow; } //# sourceMappingURL=zk-wallet-account.d.ts.map