-
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
Add public and private plan creation #11
Conversation
* master: update querier and msg server logic fix query service to reflect updated spec; WIP
- update proposal proto messages
* master: Fix core logic (tendermint#15) refactoring for RemoveStakingCoinDenomIndex fix name to workflows apply suggested issues from code review Add kv indexing and iterator functions # Conflicts: # x/farming/keeper/msg_server.go # x/farming/keeper/plan.go # x/farming/types/farming.pb.go # x/farming/types/plan.go
* master: Add farming fee collector (tendermint#22) Update CLI tx commands and fix bugs (tendermint#23) # Conflicts: # x/farming/types/farming.pb.go
Codecov Report
@@ Coverage Diff @@
## master #11 +/- ##
==========================================
- Coverage 36.87% 30.48% -6.39%
==========================================
Files 23 26 +3
Lines 1413 1801 +388
==========================================
+ Hits 521 549 +28
- Misses 846 1190 +344
- Partials 46 62 +16
Continue to review full report at Codecov.
|
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.
Could you add validation functions for PublicPlans with AddRequestProposal
, AddRequestProposal
, DeleteRequestProposal
and test codes for HandlePublicPlanProposal
, AddPublicPlanProposal
,
UpdatePublicPlanProposal
,
DeletePublicPlanProposal
If the PR is likely to be too long, we can just do structural modifications and continue the rest from other PRs.
…creating more than one plan type
…roposal, DeleteRequestProposal
…estProposal, DeleteRequestProposal
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.
…th the same account
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.
Could you merge the latest master branch to solve the conflict? #25 was merged and there are some conflicts
* master: bump sdk version to v0.43.0-rc2 Implement reward distribution (tendermint#25) Add issue, pr templates # Conflicts: # x/farming/keeper/msg_server.go # x/farming/keeper/plan.go # x/farming/keeper/plan_test.go # x/farming/keeper/proposal_handler.go # x/farming/types/errors.go # x/farming/types/plan.go
…add-public-plan * commit '639a96bb38ab9bda41ab15cc74534f520bf4302b': Add pre-commit hook and corresponding doc (tendermint#37)
- add validation logic for ratio plans - add test codes for the validation - clean up error messages
Description
This PR adds a functionality to create public and private farming plans.
How to test this functionality
In order to test this functionality, I created a gist that contains sample json structure for different types of plans and useful CLI commands and REST APIs in here.
closes: #1