UNPKG

1.65 kBTypeScriptView Raw
1import type * as ethers from "ethers";
2import type { SignerWithAddress } from "../signers";
3import { Artifact } from "hardhat/types";
4export interface Libraries {
5 [libraryName: string]: string;
6}
7export interface FactoryOptions {
8 signer?: ethers.Signer;
9 libraries?: Libraries;
10}
11export declare function getContractFactory(name: string, signerOrOptions?: ethers.Signer | FactoryOptions): Promise<ethers.ContractFactory>;
12export declare function getContractFactory(abi: any[], bytecode: ethers.utils.BytesLike, signer?: ethers.Signer): Promise<ethers.ContractFactory>;
13export declare function deployContract(name: string, signerOrOptions?: ethers.Signer | FactoryOptions): Promise<ethers.Contract>;
14export declare function deployContract(name: string, args: any[], signerOrOptions?: ethers.Signer | FactoryOptions): Promise<ethers.Contract>;
15export 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//# sourceMappingURL=index.d.ts.map
\No newline at end of file