Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 1.27 KB

README.md

File metadata and controls

57 lines (44 loc) · 1.27 KB

GladiatorReceiver Contract

Getting started

  1. Install Dependencies
npm install
  1. 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
  1. Run tests
npx hardhat test

Expected Test Output

  Gladiator Receiver Contract

Gas Analysis

Deploying

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}