Skip to content

Latest commit

 

History

History
 
 

contracts

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Smart Contracts

This project demonstrates how to add smart contracts to your project using Hardhat. It provides a sample Message contract, a test and deployment scripts.

Try running some of the following tasks:

yarn build
yarn deploy
yarn test
yarn coverage

Deploy

Once you're ready to deploy your contracts, setup a deployer account using DEPLOYER_KEY and try to run e.g.

yarn deploy --network sepolia

Note that you need testnet Ethers for that. More info and faucet links can be found on Sepolia Dev. You can set up different networks using Hardhat's network configuration.

Verify

Contracts are automatically verified on Etherscan if you've set up the ETHERSCAN_API_KEY environment variable. You can also verify contracts manually using

yarn verify

Wagmi CLI

The front-end uses the Wagmi CLI to automatically generate types and default hooks for your contracts. You can find the generated files in src/abi.test.

yarn wagmi