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

add packet-forward-middleware #800

Conversation

DongLieu
Copy link
Contributor

@DongLieu DongLieu commented May 25, 2023

Brief Changelog

  • add packet-forward-middleware
  • write upgrade handler for packet-forward-middleware module
  • write unit test for upgrade handler

Author's Checklist

run all tests passed
golangci-lint run --fix

@DongLieu DongLieu marked this pull request as ready for review May 31, 2023 08:14
@sontrinh16 sontrinh16 requested review from asalzmann, sampocs and riley-stride and removed request for asalzmann and sampocs June 5, 2023 08:10
Copy link
Contributor

@asalzmann asalzmann left a comment

Choose a reason for hiding this comment

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

@DongLieu can you write some tests + fill out a PR description?

@@ -622,7 +644,13 @@ func NewStrideApp(
transferStack = ratelimitmodule.NewIBCMiddleware(app.RatelimitKeeper, transferStack)
transferStack = recordsmodule.NewIBCModule(app.RecordsKeeper, transferStack)
transferStack = autopilot.NewIBCModule(app.AutopilotKeeper, transferStack)

transferStack = router.NewIBCMiddleware(
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like this will be at the top of the middleware stack, can you confirm that and update the comment above?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, exactly that. I'm sorry

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please update the comment above

@DongLieu
Copy link
Contributor Author

@DongLieu can you write some tests + fill out a PR description?

I added some description

Where can I write tests, I didn't find a place to write tests for intechaintest

@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you!

@github-actions github-actions bot added the Stale label Jun 27, 2023
@asalzmann
Copy link
Contributor

This should remain open

@github-actions github-actions bot removed the Stale label Jun 28, 2023
@@ -17,13 +17,17 @@ require (
github.com/spf13/cast v1.5.0
github.com/spf13/cobra v1.6.1
github.com/spf13/pflag v1.0.5
github.com/strangelove-ventures/packet-forward-middleware/v7 v7.0.0-20230523193151-73dea436e53f
Copy link
Contributor

Choose a reason for hiding this comment

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

@DongLieu can you bump this to the correct version? Why is it on a specific commit hash?

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, i did not find the official one for sdk v0.47.2. If you want I can make a fork version.

@@ -104,6 +106,12 @@ func (app *StrideApp) setupUpgradeHandlers() {
v9.CreateUpgradeHandler(app.mm, app.configurator, app.ClaimKeeper),
)

// v10 upgrade handler
app.UpgradeKeeper.SetUpgradeHandler(
Copy link
Contributor

Choose a reason for hiding this comment

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

@DongLieu this will need to go in the v12 upgrade

@@ -622,7 +644,13 @@ func NewStrideApp(
transferStack = ratelimitmodule.NewIBCMiddleware(app.RatelimitKeeper, transferStack)
transferStack = recordsmodule.NewIBCModule(app.RecordsKeeper, transferStack)
transferStack = autopilot.NewIBCModule(app.AutopilotKeeper, transferStack)

transferStack = router.NewIBCMiddleware(
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please update the comment above

@DongLieu
Copy link
Contributor Author

ok, I will edit again

@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you!

@github-actions github-actions bot added the Stale label Jul 26, 2023
@github-actions github-actions bot closed this Aug 1, 2023
@asalzmann asalzmann reopened this Aug 9, 2023
@asalzmann asalzmann changed the base branch from sdk47 to pfm August 9, 2023 11:20
@asalzmann asalzmann changed the base branch from pfm to sdk47 August 9, 2023 11:21
@asalzmann asalzmann closed this Aug 9, 2023
@asalzmann asalzmann mentioned this pull request Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants