0.1.6 • Published 1 month ago

tt-hardhat v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

ThunderCore Hardhat Plugin

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

NPM Package link

Usage

yarn add -D tt-hardhat

Then in hardhat.config

import "tt-hardhat";

Config

account: KEY=\$PRIVATE_KEY in your .env file

Features

Networks added

  1. thundercore-testnet (chain ID - 18)
  2. 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 });

Package development

To start working on your project, just run

yarn
or
npm install

Plugin development

Read Hardhat's Plugin Development Guide

Publish

yarn publish make sure to yarn login if you haven't

Testing

(From Hardhat) Running yarn run test will run every test located in the test/ folder.

Testing package on project

  1. run yarn link in root
  2. cd into test/project, then run yarn link tt-hardhat to link to local package
  3. if package's code is changed, run yarn build to rebuild the package
  4. do tests...
  5. after testing, run yarn unlink tt-hardhat in test/project, then yarn unlink in root.

Building the project

Just run yarn build ️👷

0.1.4

1 month ago

0.1.6

1 month ago

0.1.5

1 month ago

0.1.3

7 months ago

0.1.2

1 year ago

0.1.0

1 year ago

0.1.1

1 year ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.3

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.6

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago