before install dependencies, please make sure you have installed node and npm. and install hardhat by following hardhat official guide.
npm install
cp .env.example .env
including following fields:
- SEPOLIA_ALCHEMY_AK
- SEPOLIA_PK_ONE
- SEPOLIA_PK_TWO
npx hardhat compile
npx hardhat test
deploy to sepolia testnet
npx hardhat run --network sepolia scripts/deploy.js
deploy test erc721
npx hardhat run --network sepolia scripts/deploy_721.js
npx hardhat size-contracts
slither-read-storage ./contracts/Auction.sol --contract-name Auction --solc-remaps @=node_modules/@ --json storage_layout.json
see more slither