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-hardhat
Then 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 install
Read 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 link
in root - cd into
test/project
, then runyarn link tt-hardhat
to link to local package - if package's code is changed, run
yarn build
to rebuild the package - do tests...
- after testing, run
yarn unlink tt-hardhat
in test/project, thenyarn unlink
in root.
Just run yarn build
️👷