-
Notifications
You must be signed in to change notification settings - Fork 617
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
Integrate Packet Forward Middleware #3911
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
89b8b23
added initial packet forward middleware integration
nicolaslara 0820107
gofumpt
nicolaslara b987095
Merge branch 'main' into nicolas/packet-forward-middleware
nicolaslara aa7dd10
updated go.mod
nicolaslara f084a4b
correct value
nicolaslara b2654a1
Merge branch 'main' into nicolas/packet-forward-middleware
nicolaslara 9d87a60
updating to match upstream
nicolaslara 58859b4
added params
nicolaslara 85a936f
gofumpt
nicolaslara bf161a3
Merge branch 'main' into nicolas/packet-forward-middleware
nicolaslara 0b6df24
added PFM to upgrades
nicolaslara 0e67297
go imports
nicolaslara 19f81c4
added e2e test for PFM+wasm hoks
nicolaslara dd322be
refactor
nicolaslara a4f7082
refactored for reusability and added comments
nicolaslara 03b1d09
Merge branch 'main' into nicolas/packet-forward-middleware
nicolaslara 293a16c
updated to latest version that allows native json
nicolaslara fea6d54
removed unnecessary param
nicolaslara 9168bb8
Merge branch 'main' into nicolas/packet-forward-middleware
nicolaslara 6542dc3
Merge branch 'main' into nicolas/packet-forward-middleware
nicolaslara a014a31
reordering imports after merge
nicolaslara 8208bfc
added denom check
nicolaslara 66c2ccc
added changelog
nicolaslara 9dbf94d
Update tests/e2e/e2e_test.go
nicolaslara ef52182
requiring the txs to succeed
nicolaslara 080b7e6
fixed e2e tests
nicolaslara 8b308ac
Merge branch 'main' into nicolas/packet-forward-middleware
nicolaslara File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uhh, why does it need this? Community pool?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, the fee can be configured via a param as a percentage of the send and it funds the community pool.
Ideally this should go to stakers IMO, but the fee defaults to 0, so we can change that later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RIP, this is bad module design imo, should be a middleware responsibility. (Fee at the base transport layer bad design)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please expand on this @ValarDragon ? Would love to understand your perspective so we can improve it. I'm not sure what you mean, as this is the keeper for the IBC middleware.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see why your transport layer for packet sending should have bips of fee bundled in at default. This is equivalent in design practice to saying our API for bank sends should take in a fee parameter as well, and have bips of all sends be captured.
You could in principle want this, but this can be pushed to wrappers of the main object, rather than being the main thing you import. (I'd prefer no capability of this in what we import, than having such a parameter forced)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(NOTE: This is very minor on the overall work going into this. Awesome job on the module! And I think my first comment "bad module design imo" was too harsh for the severity of opinion actually held)