Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

integrations-Polygon/zkEVM-contract-verify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

151 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TEST VERIFY SMART CONTRACT ON ZKEVM TESTNET

This repository contains all the necessary steps to deploy and verify smart contracts on ZKEVM testnet by adding a custom chain in hardhat config etherscan obj and utilizing the blockscout block explorer API for contract verification.

GETTING STARTED

  • Clone this repository
git clone https://github.com/integrations-Polygon/zkEVM-contract-verify.git
  • Navigate to zkEVM-testnet-verify folder
cd zkEVM-testnet-verify
  • Install dependencies
yarn
  • Create .env file
cp .example.env .env
  • Configure environment variables in .env
PRIVATE_KEY = your_private_key
ZKEVM_RPC_URL = your_zkevm_rpc_url
  • Compile the smart contract and its types
npx hardhat compile
  • Deploy the smart contracts
npx hardhat run --network zkEVM scripts/ERC20Token_deploy.ts
npx hardhat run --network zkEVM scripts/ERC721Token_deploy.ts
npx hardhat run --network zkEVM scripts/ERC1155Token_deploy.ts
  • Verify the deployed smart contracts
npx hardhat verify --network zkEVM <DEPLOYED_SMART_CONTRACT_ADDRESS>

About

This repository contains all the necessary steps to deploy and verify smart contracts on ZKEVM testnet by adding a custom chain in hardhat config etherscan obj and utilizing the blockscout block explorer API for contract verification.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors