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

Closed
wants to merge 10 commits into from
Closed

Conversation

red-0ne
Copy link
Contributor

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

Summary

Human Summary

Gateway module migration based off of migration/base.

Issue

Type of change

Select one or more:

  • New feature, functionality or library
  • Bug fix
  • Code health or cleanup
  • Documentation
  • Other (specify)

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 self-assigned this Feb 8, 2024
@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 requested review from Olshansk and bryanchriswhite and removed request for Olshansk and bryanchriswhite February 8, 2024 21:36
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/gateway-module branch 2 times, most recently from 3b2c749 to 0807acd Compare February 10, 2024 02:16
Address: simAccount.Address.String(),
}

// TODO: Handling the UnstakeGateway simulation
Copy link
Contributor

Choose a reason for hiding this comment

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

(same as #371 (comment))

@@ -0,0 +1 @@
package types
Copy link
Contributor

Choose a reason for hiding this comment

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

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

// ValidateBasic does a sanity check on the provided data.
func (m *MsgUpdateParams) ValidateBasic() error {
if _, err := sdk.AccAddressFromBech32(m.Authority); err != nil {
return errorsmod.Wrap(err, "invalid authority address")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should probably be a new gateway error type.

Copy link
Contributor

@bryanchriswhite bryanchriswhite left a comment

Choose a reason for hiding this comment

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

Looking good!

@bryanchriswhite bryanchriswhite mentioned this pull request Feb 19, 2024
11 tasks
@bryanchriswhite bryanchriswhite mentioned this pull request Feb 19, 2024
11 tasks
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.

2 participants