1 | import type * as ethers from "ethers";
|
2 | import type { SignerWithAddress } from "../signers";
|
3 | import { Artifact } from "hardhat/types";
|
4 | export interface Libraries {
|
5 | [libraryName: string]: string;
|
6 | }
|
7 | export interface FactoryOptions {
|
8 | signer?: ethers.Signer;
|
9 | libraries?: Libraries;
|
10 | }
|
11 | export declare function getContractFactory(name: string, signerOrOptions?: ethers.Signer | FactoryOptions): Promise<ethers.ContractFactory>;
|
12 | export declare function getContractFactory(abi: any[], bytecode: ethers.utils.BytesLike, signer?: ethers.Signer): Promise<ethers.ContractFactory>;
|
13 | export declare function deployContract(name: string, signerOrOptions?: ethers.Signer | FactoryOptions): Promise<ethers.Contract>;
|
14 | export declare function deployContract(name: string, args: any[], signerOrOptions?: ethers.Signer | FactoryOptions): Promise<ethers.Contract>;
|
15 | export interface HardhatEthersHelpers {
|
16 | provider: ethers.providers.JsonRpcProvider;
|
17 | getContractFactory: typeof getContractFactory;
|
18 | getContractFactoryFromArtifact: (artifact: Artifact, signerOrOptions?: ethers.Signer | FactoryOptions) => Promise<ethers.ContractFactory>;
|
19 | getContractAt: (nameOrAbi: string | any[], address: string, signer?: ethers.Signer) => Promise<ethers.Contract>;
|
20 | getContractAtFromArtifact: (artifact: Artifact, address: string, signer?: ethers.Signer) => Promise<ethers.Contract>;
|
21 | getSigner: (address: string) => Promise<SignerWithAddress>;
|
22 | getSigners: () => Promise<SignerWithAddress[]>;
|
23 | getImpersonatedSigner: (address: string) => Promise<SignerWithAddress>;
|
24 | deployContract: typeof deployContract;
|
25 | }
|
26 |
|
\ | No newline at end of file |