npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
npx hardhat help
REPORT_GAS=true npx hardhat test
npx hardhat coverage
npx hardhat run scripts/deploy.ts
TS_NODE_FILES=true npx ts-node scripts/deploy.ts
npx eslint '**/*.{js,ts}'
npx eslint '**/*.{js,ts}' --fix
npx prettier '**/*.{json,sol,md}' --check
npx prettier '**/*.{json,sol,md}' --write
npx solhint 'contracts/**/*.sol'
npx solhint 'contracts/**/*.sol' --fix
To deploy contracts, run:
NODE_ENV=main npx hardhat deployBnbXProxy <admin> --network <network>
NODE_ENV=main npx hardhat upgradeBnbXProxy <proxyAddress> --network <network>
NODE_ENV=main npx hardhat deployBnbXImpl --network <network>
NODE_ENV=main npx hardhat deployStakeManagerProxy <bnbX> <admin> <manager> <tokenHub> <bcDepositWallet> <bot> <feeBps> --network <network>
NODE_ENV=main npx hardhat upgradeStakeManagerProxy <proxyAddress> --network <network>
NODE_ENV=main npx hardhat deployStakeManagerImpl --network <network>
npx hardhat verify <address> <...args> --network <network>
Smart contract integration guide is at link