Skip to content

Repository files navigation

dappos_staking

Hardhat 2 + TypeScript staking contract project scaffold.

Commands

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>

Environment configuration

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_key

Ignition parameters

Deployment 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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages