Hardhat Example
Overview
Contract
Description
Basic Setup
Initialize a New Project
# Create a new directory
mkdir my-litho-contracts
cd my-litho-contracts
# Initialize npm
npm init -y
# Install Hardhat
npm install --save-dev hardhat
# Initialize Hardhat project
npx hardhat initInstall Dependencies
Hardhat Configuration
Compiling Contracts
Running Tests
Deploying Contracts
Deploy to Local Hardhat Network
Deploy to Lithosphere Testnet
Deploy to Lithosphere Mainnet
Gas Reporting
Security Analysis
Further Reading
Last updated