@nomicfoundation/hardhat-verify
Version:
Hardhat plugin for verifying contracts
28 lines (24 loc) • 777 B
text/typescript
import type { VerificationHelpers } from "../types.js";
import type { LazyEtherscan } from "./etherscan.types.js";
import type {
ChainDescriptorsConfig,
VerificationProvidersConfig,
} from "hardhat/types/config";
import type { EthereumProvider } from "hardhat/types/providers";
import { LazyEtherscanImpl } from "./etherscan.js";
export class Verification implements VerificationHelpers {
public readonly etherscan: LazyEtherscan;
constructor(
provider: EthereumProvider,
networkName: string,
chainDescriptors: ChainDescriptorsConfig,
verificationProvidersConfig: VerificationProvidersConfig,
) {
this.etherscan = new LazyEtherscanImpl(
provider,
networkName,
chainDescriptors,
verificationProvidersConfig,
);
}
}