-
Install dependencies:
yarn install
-
Create
.env
file:cp .env.example .env
-
Replace example environment variables to your values in
.env
file
$ npx hardhat test
$ npx hardhat test test/promoStaking.test.ts --show-stack-traces
$ npx hardhat node
$ npx hardhat run scripts/deploy.ts --network local
$ ethernal listen
$ npx hardhat run scripts/deploy.ts --network <network_name>
npx hardhat verify --network ethereum <contract_address> <staking_initializer_address>
This task will initialize PromoStaking:
npx hardhat initialize --network <network_name> --contract <promo_staking_contract> --token <token_address> --start <staking_start_block> --duration <staking_duration_in_blocks>
$ npm run eslint
$ npm run prettier
$ npx prettier --write 'contracts/**/*.sol'
- Visual Studio Code ESLint extension: https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint