Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 833 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 833 Bytes

Civilization

  • Hardhat: compile and run the smart contracts on a local development network
  • TypeChain: generate TypeScript types for smart contracts
  • Ethers: renowned Ethereum library and wallet implementation

Usage

Pre Requisites

Before running any command, make sure to install dependencies:

yarn install

Compile

Compile the smart contracts with Hardhat:

yarn compile

Deploy contract to network (requires Mnemonic and Infura API key)

npx hardhat run --network goerli ./scripts/deploy.ts

Validate a contract with etherscan (requires API key)

npx hardhat verify --network <network> <DEPLOYED_CONTRACT_ADDRESS> "Constructor argument 1"