Skip to content
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: Implement CLI query endpoints and add AdvanceEpoch msg #115

Merged
merged 7 commits into from
Sep 16, 2021

Conversation

hallazzang
Copy link
Contributor

@hallazzang hallazzang commented Sep 15, 2021

Description

This adds CLI query endpoints and AdvanceEpoch functionality.

Tasks

  • Query endpoints
  • AdvanceEpoch msg and handler

References

See local-testing branch for the detail about AdvanceEpoch.


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.

  • Appropriate labels applied
  • Targeted PR against correct branch
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

also rename some fields and methods
it's useful to have AdvanceEpoch when testing,
but it should be removed for real-world application.
so only using special build flags can enable this feature.
@hallazzang hallazzang added this to the Farming F1 MVP milestone Sep 15, 2021
@hallazzang hallazzang self-assigned this Sep 15, 2021
@codecov
Copy link

codecov bot commented Sep 15, 2021

Codecov Report

Merging #115 (76487ee) into master (600c2cc) will increase coverage by 0.11%.
The diff coverage is 71.29%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #115      +/-   ##
==========================================
+ Coverage   65.39%   65.50%   +0.11%     
==========================================
  Files          24       24              
  Lines        2040     2128      +88     
==========================================
+ Hits         1334     1394      +60     
- Misses        575      597      +22     
- Partials      131      137       +6     
Impacted Files Coverage Δ
x/farming/types/keys.go 0.00% <0.00%> (ø)
x/farming/types/msgs.go 68.42% <0.00%> (-7.07%) ⬇️
x/farming/keeper/keeper.go 75.00% <60.00%> (-2.78%) ⬇️
x/farming/keeper/reward.go 87.57% <66.66%> (ø)
x/farming/keeper/grpc_query.go 86.86% <85.50%> (-1.72%) ⬇️
x/farming/keeper/staking.go 90.47% <92.85%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 600c2cc...76487ee. Read the comment docs.

@hallazzang hallazzang marked this pull request as ready for review September 16, 2021 05:07
Copy link
Contributor

@dongsam dongsam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for adding the flag for testing

The test task has not been completed yet, but it has become R4R for Demo and #116 first.
If you set the epic issue to closes: in PR, all the tasks of the epic are not finished yet and may be closed. Therefore, could you remove the closes: and create an issue for CLI Tests and replace the Tests checkbox on this PR description?

@dongsam dongsam merged commit 97c9b1e into tendermint:master Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants