@nomicfoundation/hardhat-verify
Version:
Hardhat plugin for verifying contracts
32 lines • 928 B
TypeScript
export declare enum ContractStatus {
PERFECT = "perfect",
PARTIAL = "partial",
NOT_FOUND = "false"
}
interface SourcifyIsVerifiedNotOkResponse {
address: string;
status: ContractStatus.NOT_FOUND;
}
interface SourcifyIsVerifiedOkResponse {
address: string;
chainIds: Array<{
chainId: string;
status: ContractStatus.PERFECT | ContractStatus.PARTIAL;
}>;
}
export type SourcifyIsVerifiedResponse = SourcifyIsVerifiedNotOkResponse | SourcifyIsVerifiedOkResponse;
interface SourcifyVerifyNotOkResponse {
error: string;
}
interface SourcifyVerifyOkResponse {
result: Array<{
address: string;
chainId: string;
status: string;
message?: string;
libraryMap?: Record<string, string>;
}>;
}
export type SourcifyVerifyResponse = SourcifyVerifyNotOkResponse | SourcifyVerifyOkResponse;
export {};
//# sourceMappingURL=sourcify.types.d.ts.map