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] Application module #381

Closed
wants to merge 14 commits into from

Conversation

red-0ne
Copy link
Contributor

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

Summary

Human Summary

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

Once this branch is approved, review and merge #378

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

ignite scaffold module application --dep bank,account,gateway --params max-delegated-gateways:uint
ignite scaffold map application stake:coin service-configs:array.string delegatee-gateway-addresses:array.string --no-message --module application --index address --signer address
ignite scaffold message stake-application stake:coin services:array.string --signer address --module application
ignite scaffold message unstake-application --signer address --module application
ignite scaffold message delegate-to-gateway gateway-address:string --signer app-address --module application
ignite scaffold message undelegate-from-gateway gateway-address:string --signer app-address --module application
@red-0ne red-0ne added application Changes related to the Application actor code health Cleans up some code labels Feb 12, 2024
@red-0ne red-0ne added this to the Shannon TestNet milestone Feb 12, 2024
@red-0ne red-0ne self-assigned this Feb 12, 2024
@red-0ne red-0ne mentioned this pull request Feb 12, 2024
11 tasks
x/application/types/params.go Show resolved Hide resolved
x/application/types/msg_update_params.go Outdated Show resolved Hide resolved
proto/poktroll/application/genesis.proto Show resolved Hide resolved
proto/poktroll/application/application.proto Outdated Show resolved Hide resolved
proto/poktroll/application/tx.proto Outdated Show resolved Hide resolved
x/application/simulation/stake_application.go Outdated Show resolved Hide resolved
x/application/simulation/undelegate_from_gateway.go Outdated Show resolved Hide resolved
x/application/module/tx_unstake_application.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.

This whole file is a scaffold by ignite scaffold module application --dep bank,account,gateway. We didn't altere it and should be kept that way IMO.

Also ModuleInputs has public properties, while the Keeper struct has them private.

x/application/module/tx_delegate_to_gateway.go Outdated Show resolved Hide resolved
@red-0ne red-0ne requested a review from Olshansk February 14, 2024 03:15
@bryanchriswhite
Copy link
Contributor

@red-0ne please add x/application/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
application Changes related to the Application actor code health Cleans up some code
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants