8000 GitHub - zapproject/hardhat-bsc: Zap Hardhat - Binance Smart Chain
[go: up one dir, main page]

Skip to content

zapproject/hardhat-bsc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zap Hardhat Development Enviroment

Installation

npm install

npm run build

Build Contracts and Generate Typechain Typings

npm run compile

Run Hardhat Node & Run Tasks

In order to run tasks, complete the following steps:

  1. ./start.sh This will run the localhost hardhat node and deploy your contracts to it.
  2. Open a new terminal, npx hardhat --network localhost [your-task-here]

Run Contract Tests & Get Callstacks

npx hardhat node

npm run test

Run Contract Tests and Generate Gas Usage Report

In one terminal run npm

Then in another run npm run test -- --network localhost

Notes:

  • When running with this localhost option, you get a gas report but may not get good callstacks
  • See here for how to configure the gas usage report.

Run Coverage Report for Tests

npm run coverage

Notes:

  • running a coverage report currently deletes artifacts, so after each coverage run you will then need to run npx hardhat clean followed by npm run build before re-running tests

Deploy to Ethereum

Create/modify network config in hardhat.config.ts and add API key and private key, then run:

npx hardhat run --network rinkeby scripts/deploy.ts

-or- Just use Docker NOTE PLEASE BUILD CONTAINERS BEFORE MAKING PULL REQUESTS

Right click on the dockerfile and click "build image", tag the image (ex) - "zaphardhatdevelop:latest" Run docker run -td zaphardhatdevelop, the command npx hardhat node will run automatically To Deploy to localhost, Run docker build -t zaphardhat:branchname . -Open Docker Desktop, click the cli button marked with ">-" Run npx hardhat run --network localhost scripts/deploy.ts


NFT Contract Documentation

Table of Contents

  1. ZapVault
  2. ZapMarket
  3. ZapMedia
  4. AuctionHouse

About

Zap Hardhat - Binance Smart Chain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0