@nomicfoundation/hardhat-verify
Version:
Hardhat plugin for verifying contracts
50 lines • 1.29 kB
TypeScript
export type BlockscoutGetSourceCodeResponse = BlockscoutNotOkResponse | BlockscoutGetSourceCodeOkResponse;
interface BlockscoutGetSourceCodeOkResponse {
status: "1";
message: "OK";
result: BlockscoutContract[];
}
interface BlockscoutContract {
SourceCode: string;
ABI: string;
ContractName: string;
CompilerVersion: string;
OptimizationUsed: string;
Runs: string;
ConstructorArguments: string;
EVMVersion: string;
Library: string;
LicenseType: string;
Proxy: string;
Implementation: string;
SwarmSource: string;
SimilarMatch: string;
}
export type BlockscoutResponse = BlockscoutNotOkResponse | BlockscoutOkResponse;
interface BlockscoutNotOkResponse {
status: "0";
message: "NOTOK";
result: string;
}
interface BlockscoutOkResponse {
status: "1";
message: "OK";
result: string;
}
export type BlockscoutChainListResponse = Record<string, {
name: string;
description: string;
logo: string;
ecosystem: string | string[];
isTestnet: boolean;
layer: number;
rollupType: string | null;
native_currency: string;
website: string;
explorers: Array<{
url: string;
hostedBy: string;
}>;
}>;
export {};
//# sourceMappingURL=blockscout.types.d.ts.map