Skip to content

Gudedi001/BidChain

Repository files navigation

BidChain Hardhat Project

Prerequisites

1. Install dependencies

before install dependencies, please make sure you have installed node and npm. and install hardhat by following hardhat official guide.

npm install

2. copy .env.example to .env

cp .env.example .env

3. modify .env

including following fields:

  • SEPOLIA_ALCHEMY_AK
  • SEPOLIA_PK_ONE
  • SEPOLIA_PK_TWO

How to run it

1. Compile

npx hardhat compile

2. Test

npx hardhat test

How to deploy

1. Deploy

deploy to sepolia testnet

npx hardhat run --network sepolia scripts/deploy.js

deploy test erc721

npx hardhat run --network sepolia scripts/deploy_721.js

Advanced

1. Get Contract Size

npx hardhat size-contracts

2. see storage layout of contract

slither-read-storage ./contracts/Auction.sol --contract-name Auction --solc-remaps @=node_modules/@ --json storage_layout.json

see more slither

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published