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] Gateway module #374

Closed
wants to merge 11 commits into from

Conversation

red-0ne
Copy link
Contributor

@red-0ne red-0ne commented Feb 8, 2024

Summary

Human Summary

Review branch for the gateway 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/gateway-module..origin/migration/review/gateway-module
  • Merge [Migration] Gateway module #371

NOTE:

*.pulsar.go code is auto-generated and can be ignored

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

@red-0ne red-0ne added gateway Changes related to the Gateway actor code health Cleans up some code labels Feb 8, 2024
@red-0ne red-0ne added this to the Shannon TestNet milestone Feb 8, 2024
@red-0ne red-0ne self-assigned this Feb 8, 2024
x/gateway/types/message_unstake_gateway.go Outdated Show resolved Hide resolved
x/gateway/types/message_stake_gateway.go Outdated Show resolved Hide resolved
x/gateway/types/msg_update_params.go Outdated Show resolved Hide resolved
@red-0ne red-0ne force-pushed the migration/review/gateway-module branch 3 times, most recently from fd262a0 to 3407ea5 Compare February 10, 2024 02:19
okdas and others added 9 commits February 10, 2024 03:37
ignite scaffold module gateway --dep bank
ignite scaffold map gateway stake:coin --module gateway --no-message --index address --signer address
ignite scaffold message stake_gateway stake:coin --signer address --module gateway
ignite scaffold message unstake_gateway --signer address --module gateway
@red-0ne red-0ne force-pushed the migration/review/gateway-module branch from 3407ea5 to e248711 Compare February 10, 2024 02:37
@bryanchriswhite bryanchriswhite mentioned this pull request Feb 12, 2024
11 tasks
@bryanchriswhite bryanchriswhite marked this pull request as ready for review February 12, 2024 08:04
Makefile Outdated Show resolved Hide resolved
Makefile Show resolved Hide resolved
proto/poktroll/gateway/genesis.proto Outdated Show resolved Hide resolved
x/gateway/types/msg_update_params.go Outdated Show resolved Hide resolved
x/gateway/types/errors.go Outdated Show resolved Hide resolved
x/gateway/module/query_gateway.go Show resolved Hide resolved
)

// AutoCLIOptions implements the autocli.HasAutoCLIConfig interface.
func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
Copy link
Member

Choose a reason for hiding this comment

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

How does autocli play with the other endpoints initiated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently autocli is not used to generate or to handle CLI commands. As of my understanding, we will wire it to our commands when it'll be possible to handle configuration files.

cc @bryanchriswhite

x/gateway/module/query_params.go Show resolved Hide resolved
x/gateway/module/tx_stake_gateway.go Outdated Show resolved Hide resolved
x/gateway/keeper/keeper.go Show resolved Hide resolved
@red-0ne
Copy link
Contributor Author

red-0ne commented Feb 13, 2024

@Olshansk, I addressed most of the change requests and left a couple of them with comments. PTAL.

Copy link
Member

@Olshansk Olshansk left a comment

Choose a reason for hiding this comment

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

Reviewed the changes and LGTM.

APproving for reference but DO NOT MERGE

@bryanchriswhite
Copy link
Contributor

@red-0ne please add x/gateway/types.go:

package types

// This file is in place to declare the package for dynamically generated protobufs

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 gateway Changes related to the Gateway actor
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

4 participants