Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

lottopgf/lootery-v1-contracts-old

Repository files navigation

Lootery

Testing

  1. Install deps with yarn
  2. Run tests with yarn test

Deploying

  1. Export the desired deployer private key to environment variable MAINNET_PK
  2. To deploy to a new network, ensure there exists a separate hardhat config file hardhat.config.${network}.ts.
    1. Ensure that the network and etherscan configurations are populated as needed.
    2. For existing configurations, ensure that you have the necessary environment variables set (RPC URLs, Etherscan API keys, etc)
  3. Deploy with yarn hardhat --config hardhat.config.${network}.ts --network ${network} run scripts/deploy.ts