$ nvm use
$ npm install
Create your smart contract in contracts/
folder
Set solidity version in hardhat.config.ts file, solidity -> compilers -> version, then run compilation
$ npx hardhat compile
Set blockchain node url or api provider url and account private key in hardhat.config.ts file, networks section. You can run hardhat local node for development and testing purposes with command:
$ npx hardhat node
Run deployment script with network parameter, chosen from networks section of hardhat.config.ts file
$ npx hardhat run scripts/${CONTRACT}.script.ts --network NETWORK
Create your tests in test folder Run tests with command:
$ npx hardhat test TEST_PATH
npx hardhat verify --contract CONTRACT_PATH:CONTRACT_NAME --network NETWORK CONTRACT_TO_VERIFY CONSTRUCTOR_PARAMS