Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
masterchef + e-staking module implementation (#435)
* scaffold masterchef module * scaffold estaking module * bootstrap required proto/msgs/queries * hook functions for masterchef * ClaimRewards, token transfer on AddExternalIncentive, PendingRewards query * masterchef reward distribution update * external reward distribution * Integrate distribution module on app.go and add TODOs for estaking * Add whitelist feature for external incentive tokens & minimum amount configuration per external incentive & Add more query functions for frontend (e.g. queries on incentives - APR) * update on commitment hook management for Eden and EdenB * add update on wasmbinding and cli commands * add GetTokenPrice * update reward claim process for eden and edenB * add unit test for user reward info and abci todo * Resolve chain start issue on estaking module * cleanup eden validator pubkey variables * add update on external incentive APR, unit tests * update on masterchef unit test * implement estaking msgserver, queries, disable reward distribution in incentive module * implement missing hooks for estaking * add further test and fixes on masterchef * reward distribution logic on estaking * add TODO unit tesT * Refactor queries to fit into new estaking + masterchef data structure * fix issues after testing through cli command * removal of duplications in incentive and masterchef * add update for edenB rewards * Resolve single node start issue * update for EdenBoostApr field * Implement query for AllProgramRewards on incentive module & disable invariant * update on estaking+masterchef+commitment * add missing wasmbinding on estaking * add basic upgrade handler for commitment, incentive, masterchef, distribution * resolve issues in single node start * Resolve stablestake reward claim issue on masterchef * add incentive refactoring upgrade test script * add missing wasmbindings for estaking+masterchef * add unit test for estaking msgServer * update unit test for UpdateStakersRewards * Add unit test for estaking QueryRewards * prevent panics on hooks * Add unit test for Estaking ExtendedFunctions * Add unit test for masterchef abci * Move elys staked snapshot related codebase from incentive to estaking & resolve tests * fix hooks execution on incentive v11 migration * fix issue in v11 migration script * add query command for all rewards for a delegator * resolve unit tests * ci: software upgrade test fix * ci: fix upgrade-assure * ci: increase timeout to 10min * test: improve test scripts * ci: add flags to avoid port conflicts between nodes * fix cli command example text * remove max_eden_per_allocation on masterchef incentive info --------- Co-authored-by: Cosmic Vagabond <121588426+cosmic-vagabond@users.noreply.github.com>
- Loading branch information