This repo contains configs and features that aims to standardize and jumpstart your smart contract dev experience on ThunderCore:
- ThunderCore network configurations
- Contract deployment logging
yarn add -D tt-hardhatThen in hardhat.config
import "tt-hardhat";account: KEY=$PRIVATE_KEY in your .env file
Networks added
- thundercore-testnet (chain ID - 18)
- thundercore-mainnet (chain ID - 108)
Use deploy account for the above networks: simply add a KEY environment variable
Log contracts deployed
// in your deployment file:
import { ethers, network, upgrades, logDeployContracts } from "hardhat";
logDeployContracts(chainId, { [contractName: string]: Contract });To start working on your project, just run
yarn
or
npm installRead Hardhat's Plugin Development Guide
yarn publish make sure to yarn login if you haven't
(From Hardhat) Running yarn run test will run every test located in the test/ folder.
- run
yarn linkin root - cd into
test/project, then runyarn link tt-hardhatto link to local package - if package's code is changed, run
yarn buildto rebuild the package - do tests...
- after testing, run
yarn unlink tt-hardhatin test/project, thenyarn unlinkin root.
Just run yarn build ️👷