Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 760 Bytes

development.md

File metadata and controls

54 lines (35 loc) · 760 Bytes

Development

Prerequisites

Install dependencies

yarn

Generating ABI

npx hardhat compile
yarn run hardhat export-abi

Abis will be

Deploying on local chain

In one shell

npx hardhat node

In another shell:

npx hardhat run scripts/deploy.js

Deploying on a public chain

node scripts/deployProd.js <private key> <provider url> <network id>

The provider url is the ws or wss url of the Ethereum node you are connecting to.

Network id:

  • mainnet: 1
  • goerli-testnet: 5
  • sepolia-testnet: 11155111

Testing

npx hardhat test