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

Min Initial Deposit (Recreated using main as base branch) #138

Merged
merged 13 commits into from
Mar 16, 2023

Conversation

fragwuerdig
Copy link
Collaborator

Summary of changes

See #74 and #41.

Report of required housekeeping

  • Github issue OR spec proposal link
  • Wrote tests
  • Updated API documentation (client/lcd/swagger-ui/swagger.yaml)
  • Added a relevant changelog entry: clog add [section] [stanza] [message]

(FOR ADMIN) Before merging

  • Added appropriate labels to PR
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)
  • Confirm added tests are consistent with the intended behavior of changes
  • Ensure all tests pass

@fragwuerdig fragwuerdig added the in scope Work approved by the community label Feb 20, 2023
@fragwuerdig fragwuerdig added this to the Core - v2.0.0 milestone Feb 20, 2023
@fragwuerdig fragwuerdig self-assigned this Feb 20, 2023
@fragwuerdig fragwuerdig reopened this Feb 20, 2023
@fragwuerdig fragwuerdig marked this pull request as draft February 20, 2023 09:26
@fragwuerdig
Copy link
Collaborator Author

@nghuyenthevinh2000: I recreated this PR (now based non main). Can you test the upgrade handler/migration for this? I fear the automated upgrade test is really doing nothing... I would appreciate you manual test that you have been doing for #74.

@fragwuerdig fragwuerdig marked this pull request as ready for review February 20, 2023 11:56
@ZaradarBH ZaradarBH added the enhancement New feature or request label Feb 20, 2023
Copy link
Contributor

@ZaradarBH ZaradarBH left a comment

Choose a reason for hiding this comment

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

LGTM m8. Only have a few minor cosmetic suggestions :)

app/app.go Outdated Show resolved Hide resolved
custom/auth/ante/ante.go Outdated Show resolved Hide resolved
custom/auth/ante/min_initial_deposit.go Outdated Show resolved Hide resolved
Copy link
Contributor

@nghuyenthevinh2000 nghuyenthevinh2000 left a comment

Choose a reason for hiding this comment

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

Base logic looks fine

  1. a test should be needed
  2. func (AppModule) ConsensusVersion() uint64 { return 2 } in x/treasury/module.go should return 3
  3. you need to add an upgrade handler in app/upgrades as well since this is state migration in x/treasury. It is also prerequisite to run upgrade-test ci

@fragwuerdig fragwuerdig force-pushed the feat/min-initial-deposit-recreate branch from bf846fd to 8172168 Compare February 27, 2023 13:42
@fragwuerdig
Copy link
Collaborator Author

i wrecked this branch argh - that's because I do things in a hurry........

@ZaradarBH
Copy link
Contributor

i wrecked this branch argh - that's because I do things in a hurry........

image

@fragwuerdig
Copy link
Collaborator Author

fragwuerdig commented Feb 27, 2023

Ok. I saved the branch 🤣. Wrote another test for this (half-automated spinning single validator node doing the min initial deposit prop via CLI). Where do I put this script?

@nghuyenthevinh2000 : I also comply with your change requests. Can you resolve them?

@ZaradarBH
Copy link
Contributor

Ok. I saved the branch 🤣. Wrote another test for this (half-automated spinning single validator node doing the min initial deposit prop via CLI). Where do I put this script?

@nghuyenthevinh2000 : I also comply with your change requests. Can you resolve them?

Normally ad-hoc scripts would go into the "contrib" folder, but I recon we can drop it in the new "tests" folder we are setting up for the automated testing stuff :)

Copy link
Contributor

@nghuyenthevinh2000 nghuyenthevinh2000 left a comment

Choose a reason for hiding this comment

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

LGTM

@ZaradarBH ZaradarBH merged commit 58f2c52 into main Mar 16, 2023
@fragwuerdig fragwuerdig deleted the feat/min-initial-deposit-recreate branch May 25, 2023 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request in scope Work approved by the community
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants