UNPKG

1.79 kBTypeScriptView Raw
1import type { ethers } from "ethers";
2import type { SignerWithAddress } from "../signers";
3import type { FactoryOptions } from "../types";
4import { Artifact, HardhatRuntimeEnvironment } from "hardhat/types";
5export declare function getSigners(hre: HardhatRuntimeEnvironment): Promise<SignerWithAddress[]>;
6export declare function getSigner(hre: HardhatRuntimeEnvironment, address: string): Promise<SignerWithAddress>;
7export declare function getImpersonatedSigner(hre: HardhatRuntimeEnvironment, address: string): Promise<SignerWithAddress>;
8export declare function getContractFactory(hre: HardhatRuntimeEnvironment, name: string, signerOrOptions?: ethers.Signer | FactoryOptions): Promise<ethers.ContractFactory>;
9export declare function getContractFactory(hre: HardhatRuntimeEnvironment, abi: any[], bytecode: ethers.utils.BytesLike, signer?: ethers.Signer): Promise<ethers.ContractFactory>;
10export declare function getContractFactoryFromArtifact(hre: HardhatRuntimeEnvironment, artifact: Artifact, signerOrOptions?: ethers.Signer | FactoryOptions): Promise<ethers.ContractFactory>;
11export declare function getContractAt(hre: HardhatRuntimeEnvironment, nameOrAbi: string | any[], address: string, signer?: ethers.Signer): Promise<ethers.Contract>;
12export declare function deployContract(hre: HardhatRuntimeEnvironment, name: string, args?: any[], signerOrOptions?: ethers.Signer | FactoryOptions): Promise<ethers.Contract>;
13export declare function deployContract(hre: HardhatRuntimeEnvironment, name: string, signerOrOptions?: ethers.Signer | FactoryOptions): Promise<ethers.Contract>;
14export declare function getContractAtFromArtifact(hre: HardhatRuntimeEnvironment, artifact: Artifact, address: string, signer?: ethers.Signer): Promise<ethers.Contract>;
15//# sourceMappingURL=helpers.d.ts.map
\No newline at end of file