- Install Dependencies
npm install- Setup Environment
The
.envkeys needs the following values ( Goerli can be ignored if not being used ):
ETHERSCAN_API_KEY="API_KEY_FROM_ETHERSCAN"
ALCHEMY_API_KEY="API_KEY_FROM_ALCHEMY"
ETHEREUM_PRIVATE_KEY="ETH_PK"
SEPOLIA_PRIVATE_KEY="SEP_PK"
REPORT_GAS=true- Run tests
npx hardhat test Gladiator Receiver ContractNote: The {yourNetwork} value should be replaced with sepolia or ethereum based on the deploy target network.
Test using Hardhat
npx hardhat test --grep GladiatorReceiverDeploy using Hardhat -- Will return newly created contract address
npx hardhat run --network {yourNetwork} scripts/deployGladiator.jsVerify using Hardhat -- Will take a minute or so and respond will Verification success
npx hardhat verify --network {yourNetwork} {contractAddress} --constructor-args {pathToArgumentsFile}