Phat Contracts need to be scheduled to
This project:
- call the dAppStaking pallet to claim the dApp rewards
- call the phat contract to start the raffle
Last, under the project directory, run following command to install all the dependency.
npm install
Copy the configuration for the seed to use to claim the dAppStaking rewards or query the contracts.
cp src/seed_example.ts src/seed.ts
By default, we use the Alice
account.
To claim the dAppStaking rewards, you will have to update the mnemonic phrase because Alice
will not have enough token to pay the fee.
To check the configuration or run the raffle, you can let the Alice
account.
Last, under the project directory, run following command to install all the dependency.
npx tsx src/luckyCli.ts [Options]
Options:
--help Show help
--dc, --displayConfiguration Display the configuration
--di, --displayInformation Display information from indexer and smart contracts
--ch, --checks Check if the grants and the configuration in the smart contracts have been set
--cl, --claim Claim dappStaking developer rewards
-r, --raffle Start the raffle
--version Show version number
If you want to check the configuration.
npx tsx src/luckyCli.ts --network <network> --checks
If you want to claim the rewards from dapp staking for all missing era.
npx tsx src/luckyCli.ts --network <network> --claim
If you want to run the raffle for all missing era.
npx tsx src/luckyCli.ts --network <network> --raffle