@matterlabs/hardhat-zksync-verify
Version:
Hardhat plugin to verify smart contracts for the ZKsync network
28 lines (25 loc) • 735 B
text/typescript
import { CompilerInput } from 'hardhat/types';
export interface ZkSyncExplorerVerifyRequest {
contractAddress: string;
contractName: string;
sourceCode: CompilerInput;
codeFormat: string;
compilerSolcVersion: string;
compilerZksolcVersion: string;
optimizationUsed: boolean;
constructorArguments: string;
}
export interface ZkSyncEtherscanExplorerVerifyRequest {
action: 'verifysourcecode';
module: 'contract';
apikey: string;
compilermode: 'zksync';
zksolcVersion: string;
contractaddress: string;
contractname: string;
sourceCode: CompilerInput;
codeformat: string;
compilerversion: string;
optimizationUsed?: string;
constructorArguements: string;
}