ethers.js/lib.commonjs/providers/contracts.d.ts

9 lines
414 B
TypeScript
Raw Permalink Normal View History

2023-03-03 18:25:07 -07:00
import type { Provider, TransactionRequest, TransactionResponse } from "./provider.js";
export interface ContractRunner {
provider: null | Provider;
estimateGas?: (tx: TransactionRequest) => Promise<bigint>;
call?: (tx: TransactionRequest) => Promise<string>;
resolveName?: (name: string) => Promise<null | string>;
sendTransaction?: (tx: TransactionRequest) => Promise<TransactionResponse>;
}