Hardhat 2 + TypeScript staking contract project scaffold.
npm install
npm run compile
npm run test
npm run clean
npm run deploy:mocktoken:base
npm run deploy:staking:base
npm run deploy:staking:eth
npx hardhat verify --network base <contract_address> <constructor_args>
npx hardhat verify --network eth <contract_address> <constructor_args>Create .env and configure the required variables:
PRIVATE_KEY=your_private_key
ETH_RPC_URL=your_eth_rpc_url
BSC_RPC_URL=your_bsc_rpc_url
BASE_RPC_URL=your_base_rpc_url
BASESCAN_API_KEY=your_basescan_api_keyDeployment parameters are in:
ignition/parameters/base.json
ignition/parameters/eth.json
stakingToken is the fixed token address used by Staking.
{
"StakingModule": {
"stakingToken": "0xYourTokenAddress"
}
}ABI files are exported to ./abi automatically after compile.