hardhat
Version:
Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
26 lines • 1.13 kB
TypeScript
import type { ArtifactManager } from "../../../types/artifacts.js";
import type { BuildInfoAndOutput as EdrBuildInfoAndOutput, Artifact as EdrArtifact } from "@nomicfoundation/edr";
export interface BuildInfoAndOutput extends EdrBuildInfoAndOutput {
buildInfoId: string;
}
export interface EdrArtifactWithMetadata {
edrArtifact: EdrArtifact;
userSourceName: string;
buildInfoId: string;
}
export declare const BUILD_INFO_FORMAT: RegExp;
/**
* This function returns all the build infos and associated outputs.
*
* @param artifactManager The artifact manager.
* @returns The build infos in the Hardhat v3 format as expected by the EDR.
*/
export declare function getBuildInfosAndOutputs(artifactManager: ArtifactManager): Promise<BuildInfoAndOutput[]>;
/**
* This function returns the artifacts generated during the compilation.
*
* @param artifactManager The artifact manager.
* @returns The artifacts in the format expected by the EDR.
*/
export declare function buildEdrArtifactsWithMetadata(artifactManager: ArtifactManager): Promise<EdrArtifactWithMetadata[]>;
//# sourceMappingURL=edr-artifacts.d.ts.map