remix-project mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
remix-project/libs/remix-ui/editor/src/lib/hardhat-ethers-extension.ts

34 lines
1.3 KiB

export const hardhatEthersExtension =
`
interface Libraries {
[libraryName: string]: string;
}
interface FactoryOptions {
signer?: Signer;
libraries?: Libraries;
}
export declare function getContractFactory(name: string, signer?: Signer): Promise<ContractFactory>;
export declare function getContractFactory(name: string, factoryOptions: FactoryOptions): Promise<ContractFactory>;
export declare function getContractFactory(abi: any[], bytecode: utils.BytesLike, signer?: Signer): Promise<ContractFactory>;
export declare function getContractAt(name: string, address: string, signer?: Signer): Promise<Contract>;
export declare function getContractAt(abi: any[], address: string, signer?: Signer): Promise<Contract>;
export declare function getSigners() => Promise<Signer[]>;
export declare function getSigner(address: string) => Promise<Signer>;
export declare function getImpersonatedSigner(address: string) => Promise<Signer>;
export declare function getContractFactoryFromArtifact(artifact: Artifact, signer?: Signer): Promise<ContractFactory>;
export declare function getContractFactoryFromArtifact(artifact: Artifact, factoryOptions: FactoryOptions): Promise<ContractFactory>;
export declare function getContractAtFromArtifact(artifact: Artifact, address: string, signer?: Signer): Promise<Contract>;
`