- Install Dependencies
npm install
- Setup Environment
The
.env
keys 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 Contract
Note: The {yourNetwork}
value should be replaced with sepolia
or ethereum
based on the deploy target network.
Test using Hardhat
npx hardhat test --grep GladiatorReceiver
Deploy using Hardhat -- Will return newly created contract address
npx hardhat run --network {yourNetwork} scripts/deployGladiator.js
Verify using Hardhat -- Will take a minute or so and respond will Verification success
npx hardhat verify --network {yourNetwork} {contractAddress} --constructor-args {pathToArgumentsFile}