ethers.js/packages/providers/lib/signer.d.ts
2022-04-19 04:50:19 -04:00

16 lines
997 B
TypeScript

import type { Addressable, NameResolver } from "@ethersproject/address";
import type { TypedDataDomain, TypedDataField } from "@ethersproject/hash";
import type { ContractRunner } from "./contracts.js";
import type { CallRequest, Provider, TransactionRequest, TransactionResponse } from "./provider.js";
export interface Signer extends Addressable, ContractRunner, NameResolver {
provider: null | Provider;
connect(provider: null | Provider): Signer;
estimateGas(tx: CallRequest): Promise<bigint>;
call(tx: CallRequest): Promise<string>;
resolveName(name: string | Addressable): Promise<null | string>;
signTransaction(tx: TransactionRequest): Promise<string>;
sendTransaction(tx: TransactionRequest): Promise<TransactionResponse>;
signMessage(message: string | Uint8Array): Promise<string>;
signTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, value: Record<string, any>): Promise<string>;
}
//# sourceMappingURL=signer.d.ts.map