2018-09-24 16:07:14 -04:00
|
|
|
import { Provider } from './providers/abstract-provider';
|
|
|
|
import { Arrayish } from './utils/bytes';
|
|
|
|
import { TransactionRequest, TransactionResponse } from './providers/abstract-provider';
|
2018-07-30 18:59:52 -04:00
|
|
|
export declare abstract class Signer {
|
2018-09-06 16:41:02 -04:00
|
|
|
readonly provider?: Provider;
|
2018-07-30 18:59:52 -04:00
|
|
|
abstract getAddress(): Promise<string>;
|
|
|
|
abstract signMessage(message: Arrayish | string): Promise<string>;
|
|
|
|
abstract sendTransaction(transaction: TransactionRequest): Promise<TransactionResponse>;
|
|
|
|
constructor();
|
|
|
|
static isSigner(value: any): value is Signer;
|
|
|
|
}
|