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

[Migration Review - DO NOT MERGE] Service module #372

Closed
wants to merge 45 commits into from

Conversation

bryanchriswhite
Copy link
Contributor

@bryanchriswhite bryanchriswhite commented Feb 8, 2024

Summary

Human Summary

Review branch for the session module migration to rollkit/cosmos-sdk v0.50.x (see: migration notion doc).

Once this branch is approved:

  • Double-check that the corresponding merge branch is up to date: git diff origin/migration/service-module..origin/migration/review/service-module
  • Merge [Migration] Service module #365

NOTE:

  • ~8.5K additions are attributable to newly generated *.pulsar.go code.
  • Due to the review strategy particulars, some chain-level code which is common to all module migration branches is also included; review emphasis should be on module-specific changes (e.g. proto/service/..., x/service/...) and dependencies.

Issue

Type of change

Select one or more:

  • New feature, functionality or library
  • Bug fix
  • Code health or cleanup
  • Documentation
  • Other (specify): Module migration to rollkit/cosmos-sdk v0.50.x

Testing

  • Run all unit tests: make go_develop_and_test
  • Run E2E tests locally: make test_e2e
  • Run E2E tests on DevNet: Add the devnet-test-e2e label to the PR. This is VERY expensive, only do it after all the reviews are complete.

Sanity Checklist

  • I have tested my changes using the available tooling
  • I have performed a self-review of my own code
  • I have commented my code, updated documentation and left TODOs throughout the codebase

@bryanchriswhite bryanchriswhite self-assigned this Feb 8, 2024
@bryanchriswhite bryanchriswhite added the service Anything related to general-purpose RPC service support label Feb 8, 2024
x/service/types/message_add_service.go Outdated Show resolved Hide resolved
x/service/types/msg_update_params.go Outdated Show resolved Hide resolved
@bryanchriswhite bryanchriswhite added the code health Cleans up some code label Feb 8, 2024
@bryanchriswhite bryanchriswhite added this to the Shannon TestNet milestone Feb 8, 2024
@bryanchriswhite bryanchriswhite mentioned this pull request Feb 12, 2024
11 tasks
@bryanchriswhite bryanchriswhite marked this pull request as ready for review February 12, 2024 07:59
@Olshansk Olshansk self-requested a review February 12, 2024 21:37
x/service/types/key_service.go Show resolved Hide resolved
x/service/types/message_add_service.go Outdated Show resolved Hide resolved
x/service/types/message_add_service_test.go Outdated Show resolved Hide resolved
x/service/types/msg_update_params.go Outdated Show resolved Hide resolved
Makefile Show resolved Hide resolved
x/service/types/message_add_service.go Outdated Show resolved Hide resolved
x/service/types/params.go Outdated Show resolved Hide resolved
x/service/keeper/service.go Outdated Show resolved Hide resolved

// the address capable of executing a MsgUpdateParams message. Typically, this
// should be the x/gov module account.
authority string

bankKeeper types.BankKeeper
Copy link
Member

Choose a reason for hiding this comment

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

Can we use ModuleInputs for this instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure I follow the question. ModuleInputs is being used, just in a higher scope. It's used in the context of the ProvideModule method in module.go.


// DefaultApplicationModuleGenesisState generates a GenesisState object with a given number of applications.
// It returns the populated GenesisState object.
func DefaultApplicationModuleGenesisState(t *testing.T, n int) *apptypes.GenesisState {
Copy link
Member

Choose a reason for hiding this comment

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

Where did all the helpers go?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Helpers have been temporarily removed to mitigate build failure while the migration is in progress. This will be reconciled at the end of the migration/base branch and reviewed in main..migration/review/base.

(cherry picked from commit a35acb4)
// AutoCLIOptions implements the autocli.HasAutoCLIConfig interface.
func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
return &autocliv1.ModuleOptions{
// TODO_TECHDEBT(#370): Integrate with AutoCLI
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Commenting this out is not necessary and will confuse ignite upon future message scaffolding in this module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code health Cleans up some code service Anything related to general-purpose RPC service support
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants