2022-04-11 17:14:19 -04:00
|
|
|
import { Interface } from "@ethersproject/abi";
|
|
|
|
import { BaseContract } from "./contract.js";
|
|
|
|
import type { InterfaceAbi } from "@ethersproject/abi";
|
|
|
|
import type { BytesLike } from "@ethersproject/logger";
|
2022-04-19 04:50:19 -04:00
|
|
|
import type { ContractRunner } from "@ethersproject/providers";
|
|
|
|
import type { ContractInterface, ContractMethodArgs, ContractDeployTransaction } from "./types.js";
|
2022-04-11 17:14:19 -04:00
|
|
|
import type { ContractTransactionResponse } from "./wrappers.js";
|
|
|
|
export declare class ContractFactory<A extends Array<any> = Array<any>, I = BaseContract> {
|
|
|
|
readonly interface: Interface;
|
|
|
|
readonly bytecode: string;
|
|
|
|
readonly runner: null | ContractRunner;
|
|
|
|
constructor(abi: Interface | InterfaceAbi, bytecode: BytesLike | {
|
|
|
|
object: string;
|
2022-04-19 04:50:19 -04:00
|
|
|
}, runner?: null | ContractRunner);
|
2022-04-11 17:14:19 -04:00
|
|
|
getDeployTransaction(...args: ContractMethodArgs<A>): Promise<ContractDeployTransaction>;
|
|
|
|
deploy(...args: ContractMethodArgs<A>): Promise<BaseContract & {
|
|
|
|
deploymentTransaction(): ContractTransactionResponse;
|
|
|
|
} & Omit<I, keyof BaseContract>>;
|
2022-04-19 04:50:19 -04:00
|
|
|
connect(runner: null | ContractRunner): ContractFactory<A, I>;
|
2022-04-11 17:14:19 -04:00
|
|
|
static fromSolidity<A extends Array<any> = Array<any>, I = ContractInterface>(output: any, runner?: ContractRunner): ContractFactory<A, I>;
|
|
|
|
}
|
|
|
|
//# sourceMappingURL=factory.d.ts.map
|