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

feat(x/photon): validate fee ante decorator #49

Open
wants to merge 44 commits into
base: main
Choose a base branch
from

Conversation

tbruyelle
Copy link
Collaborator

@tbruyelle tbruyelle commented Nov 18, 2024

Relates to #44

Warning: because the base branch doesn't exist in the origin repo, this PR couldn't used tbruyelle/feat/photon-module as the base branch. The real diff can be seen here : tbruyelle/atomone@tbruyelle:atomone:tbruyelle/feat/photon-module...tbruyelle/feat/photon-tx-fee-checker

This PR adds a sdk.AnteDecorator implementation in x/photon/ante and adds it to the list of the app ante decorators. This new ante decorator ensures that photon is the fee token or returns an error. Exceptions are possible like if the transaction's messages type URL are present in a new parameter of the photon module txFeeExceptions.

Some significant changes have been made to the e2e tests to make them compatible with this conditions.

uatone has also been put in a constant to avoid repetition (in app/params package)

@tbruyelle tbruyelle mentioned this pull request Nov 18, 2024
5 tasks
@tbruyelle tbruyelle changed the title feat(photon): ante handler feat(x/photon): ante handler Nov 18, 2024
app/params/config.go Dismissed Show dismissed Hide dismissed
app/params/config.go Dismissed Show dismissed Hide dismissed
app/params/config.go Dismissed Show dismissed Hide dismissed
app/params/config.go Dismissed Show dismissed Hide dismissed
app/params/config.go Dismissed Show dismissed Hide dismissed
app/params/config.go Dismissed Show dismissed Hide dismissed
cmd/atomoned/cmd/bech32_convert.go Dismissed Show dismissed Hide dismissed
cmd/atomoned/cmd/config.go Dismissed Show dismissed Hide dismissed
@tbruyelle tbruyelle marked this pull request as ready for review November 21, 2024 14:21
@tbruyelle tbruyelle changed the title feat(x/photon): ante handler feat(x/photon): ante decorator Nov 21, 2024
@tbruyelle tbruyelle changed the title feat(x/photon): ante decorator feat(x/photon): validate fee ante decorator Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant