@nexex/cli
Version:
19 lines (18 loc) • 725 B
TypeScript
import { Dex } from '@nexex/api';
import { Wallet } from 'ethers';
import Base from './Base';
export default abstract class WalletBase extends Base {
static flags: {
help: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
endpoint: import("@oclif/command/lib/flags").IOptionFlag<string>;
showAddr: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
};
protected dex: Dex;
protected readPassphrase(): Promise<string>;
protected walletPath(): string;
protected readWalletAddr(): any;
protected checkWallet(): void;
protected readWallet(): Promise<Wallet>;
protected initApi(): Promise<Dex>;
protected tokenToAddr(tokens: string[]): Promise<string[]>;
}