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

tests: add detailed and randomized cases for public plan proposals simulation #169

Merged
merged 8 commits into from
Oct 29, 2021

Conversation

jaybxyz
Copy link
Contributor

@jaybxyz jaybxyz commented Oct 14, 2021

Description

closes: #108

Tasks

  • Register the store decoders that are newly added for F1 rewards
  • Randomize cases for public plan proposals
  • Handle TODO comment in Harvest operation

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

@jaybxyz jaybxyz self-assigned this Oct 14, 2021
…108-improve-sim-tests

* commit 'f5ff949f16b4cc6f8a3061a0512faa3c9defb8eb':
  docs: apply proto-all, fix typo
  fix: refine sentinel errors (tendermint#167)
  chore: apply suggestions from code review
  chore: resolve tendermint#125 and fix proto lint issue
  docs: add swagger related files generate statik file
  feat: go get grpc-gateway v2
  chore: add detailed descriptions and responses for all queries and update Makefile
  feat: add  third party proto files
  chore: apply changes from code review
  docs: add swager spec for params
  chore: add comments for types
  chore: update comments for keeper
  docs: leave proper comments
  docs: update comments
  docs: add comments for flags
* master: (22 commits)
  fix: use farmingPoolAcc and terminationAcc for consistency
  docs: add missing comments
  fix: last add_request_proposals
  docs: update renamed variables and remove mvp_legacy.md
  feat: rename public plan proposal requests
  feat: rename NewPublicPlanProposal to NewPublicPlanProposalHandler
  docs: update README.md
  fix: workflow target branch and description for main branch
  doc: fix to be broken links by renaming branch name
  move codeowners from contributing file to the CODEOWNERS file
  create CODEOWNERS file
  feat: generate proto files
  edit farming.proto
  docs: add os checking for sed -i option (tendermint#184)
  docs: specify which module is used for module name
  feat: bump budget to v0.1.1 (tendermint#177)
  docs: improve documentation for audit release (tendermint#178)
  fix: withdraw rewards only when staked amount changes (tendermint#180)
  fix: emit rewards_withdrawn only when positive amount is withdrawn
  docs: add helpful docs for audit (tendermint#176)
  ...

# Conflicts:
#	x/farming/simulation/proposals.go
@jaybxyz jaybxyz marked this pull request as ready for review October 28, 2021 07:50
x/farming/simulation/operations_test.go Outdated Show resolved Hide resolved
x/farming/simulation/operations_test.go Outdated Show resolved Hide resolved
x/farming/simulation/proposals.go Outdated Show resolved Hide resolved
- fix equal check to true check
- update comments
- remove redundant assignments
@hallazzang
Copy link
Contributor

@kogisin Some tests are not passing. Could you check?

Copy link
Contributor

@hallazzang hallazzang left a comment

Choose a reason for hiding this comment

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

LGTM!

@jaybxyz jaybxyz merged commit debb2e6 into tendermint:main Oct 29, 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.

test: Improve public plan proposal simulations
2 participants