-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: fix epoch params #103
feat: fix epoch params #103
Conversation
Codecov Report
@@ Coverage Diff @@
## master #103 +/- ##
==========================================
+ Coverage 66.36% 69.60% +3.23%
==========================================
Files 24 25 +1
Lines 2224 2260 +36
==========================================
+ Hits 1476 1573 +97
+ Misses 608 534 -74
- Partials 140 153 +13
Continue to review full report at Codecov.
|
#98 just merged, so It would be better to merge master first |
…96-fix-epoch-params
…96-fix-epoch-params * commit '600c2cc0597050f283a10a0128d9d56c9f7bb671': fix: add exception logic to unpack for unregistered case fix: remove deprecated PlansByFarmer index
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it seems like it's going to end soon, I think it'd be nice to add query and cli for Current EpochDays
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work. Some changes requested
…96-fix-epoch-params # Conflicts: # proto/tendermint/farming/v1beta1/query.proto # x/farming/keeper/grpc_query.go # x/farming/types/farming.pb.go # x/farming/types/query.pb.go # x/farming/types/query.pb.gw.go
…96-fix-epoch-params # Conflicts: # proto/tendermint/farming/v1beta1/genesis.proto # x/farming/client/cli/query.go # x/farming/keeper/epoch_test.go # x/farming/keeper/genesis.go # x/farming/keeper/keeper_test.go # x/farming/types/farming.pb.go # x/farming/types/genesis.go # x/farming/types/genesis.pb.go
* master: feat: add budget module on simapp (tendermint#118) feat: fix epoch params (tendermint#103) chore: fix typo test: add TestOutstandingRewards style: sort imports feat: add AdvanceEpoch message and tx cli endpoint feat: add cli query commands test: write test for Rewards query endpoint test: write test for TotalStaking query endpoint test: write test for Staking query endpoint feat: implement new query endpoints docs: update spec document fix: include OutstandingRewards in genesis fix: fix epoch advancing criteria fix: use sdk.DecCoins for rewards fix: set total staking on InitGenesis and use helper methods feat: add OutstandingRewards chore: remove unnecessary validation from InitGenesis fix: fix InitGenesis
Description
This PR is implemented by following the approach 1 (See the issue #96).
It adds
CurrentEpochDays
global parameter for key store prefix and use it inEndBlocker
to handle reward distribution.closes: #96
Tasks
EpochDays
toNextEpochDays
in params and fix logics related to itAdditional works
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes