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

[ENG-190] fees param: MinGasPrice #610

Merged

Conversation

loredanacirstea
Copy link
Contributor

Description

Create a minimum gas price param in the x/fees module that rejects transactions with gas prices lower than the minimum.


All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

PR review checkboxes:

I have...

  • added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • included the correct type prefix in the PR title
  • targeted the correct branch (see PR Targeting)
  • provided a link in the PR description to the relevant issue or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all required CI checks have passed

Code maintenance:

I have...

  • written unit and integration tests
  • added relevant godoc and code comments.
  • updated relevant documentation (docs/) or specification (x/<module>/spec/)

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed all author checklist items have been addressed
  • confirmed that this PR does not change production code

* main:
  Correct inflation.proto typo (evmos#608)
  change algolia search key (evmos#607)
  Changing erroneous epoch skips to daily instead of weekly (evmos#554)
  fix: remove dup set claims record + CLI update (evmos#605)
  build(deps): bump github.com/spf13/cast from 1.4.1 to 1.5.0 (evmos#604)
  imp: fees test coverage (evmos#586)
  fees: limit address derivation to 20 iterations at registration (evmos#603)
@codecov
Copy link

codecov bot commented May 16, 2022

Codecov Report

Merging #610 (7fd0cf1) into main (d29dd33) will decrease coverage by 3.03%.
The diff coverage is 87.75%.

❗ Current head 7fd0cf1 differs from pull request most recent head 93f2d93. Consider uploading reports for the commit 93f2d93 to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #610      +/-   ##
==========================================
- Coverage   85.71%   82.67%   -3.04%     
==========================================
  Files         117      122       +5     
  Lines        6390     6731     +341     
==========================================
+ Hits         5477     5565      +88     
- Misses        784     1027     +243     
- Partials      129      139      +10     
Impacted Files Coverage Δ
app/ante/handler_options.go 2.50% <0.00%> (ø)
x/fees/types/params.go 89.28% <82.35%> (-1.90%) ⬇️
app/ante/fees.go 95.58% <95.58%> (ø)
app/app.go 84.81% <100.00%> (+0.11%) ⬆️
app/ante/comission.go 0.00% <0.00%> (ø)
app/ante/vesting.go 0.00% <0.00%> (ø)
app/ante/ante.go 9.67% <0.00%> (ø)

@loredanacirstea loredanacirstea marked this pull request as ready for review May 16, 2022 20:33
x/fees/ante/eth.go Outdated Show resolved Hide resolved
@loredanacirstea
Copy link
Contributor Author

Notes:
This PR:

Copy link
Contributor

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

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

Thanks @loredanacirstea. Additional comments and spec updates are needed in order to document the cases that involve the base fee / fee market.

x/fees/ante/eth.go Outdated Show resolved Hide resolved
x/fees/types/params.go Outdated Show resolved Hide resolved
x/fees/types/params.go Outdated Show resolved Hide resolved
x/fees/types/params.go Outdated Show resolved Hide resolved
x/fees/keeper/integration_test.go Outdated Show resolved Hide resolved
x/fees/ante/eth.go Outdated Show resolved Hide resolved
loredanacirstea and others added 2 commits May 17, 2022 21:36
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
@loredanacirstea loredanacirstea marked this pull request as draft May 18, 2022 08:55
Copy link
Contributor

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

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

Thanks! Changes LGTM. We need to update the specification in order to reflect the new changes 👍

x/fees/ante/eth.go Outdated Show resolved Hide resolved
loredanacirstea and others added 2 commits May 18, 2022 16:20
Otherwise we get a
`ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"`
error when trying to get fees & evm parameters from the stores in AnteHandle,
when the gentx transactions are ran
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Copy link
Contributor

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

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

LGTM, can you add a state machine breaking change?

app/ante/fees.go Outdated Show resolved Hide resolved
app/ante/fees.go Outdated Show resolved Hide resolved
app/ante/fees.go Show resolved Hide resolved
app/ante/fees.go Outdated Show resolved Hide resolved
app/ante/fees_test.go Outdated Show resolved Hide resolved
x/fees/spec/01_concepts.md Outdated Show resolved Hide resolved
x/fees/spec/03_state_transitions.md Outdated Show resolved Hide resolved
@loredanacirstea
Copy link
Contributor Author

I tested on a local chain started with a min gas price of 2000000000aevmos - equivalent to 2 GWEI. And it worked as intended.

cat $HOME/.evmosd/config/genesis.json | jq '.app_state["fees"]["params"]["min_gas_price"]="2000000000"' > $HOME/.evmosd/config/tmp_genesis.json && mv $HOME/.evmosd/config/tmp_genesis.json $HOME/.evmosd/config/genesis.json

@fedekunze fedekunze requested a review from danburck May 20, 2022 14:21
@fedekunze fedekunze enabled auto-merge (squash) May 25, 2022 06:18
@fedekunze fedekunze merged commit 19df3bb into evmos:main May 25, 2022
@fedekunze fedekunze mentioned this pull request Jun 3, 2022
12 tasks
SuperVenus0725 added a commit to loveFeynman/cascadia_evm_chain that referenced this pull request Jan 9, 2023
* fees: add minGasPrice module param

* enforce fees param for min gas prices

* fees - min gas prices ante handler

* fix fees ante handler, add tests

* Change DefaultMinGasPrice to 0

* fees - refactor integration test descriptions for clarity

* fees: introduce EthMinPriceFeeDecorator and tests

* fees - fix param test

* fees - compare MinGasPrice with EffectivePrice for dynamic tx

* test remove test

* Reintroduce removed test with proper price values

* Add comment

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Fix inaccurate test comments, update evm AnteHandle explanation

* Reorder genesis initialization

Otherwise we get a
`ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"`
error when trying to get fees & evm parameters from the stores in AnteHandle,
when the gentx transactions are ran

* Update x/fees/ante/eth.go error

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* fees: fix error message in cosmos antehandle & tests

* fees: be more specific with the init genesis ordering

* Move MinPriceFeeDecorator to app/ante/fees.go (PR review)

evmos/evmos#610 (comment)

* Add unit tests for MinPriceFeeDecorators, remove redundant evm denom

evmos/evmos#610 (comment)

* Small fixes (PR review)

* fees - update spec for MinGasPrice

* s/MinPriceFeeDecorator/MinGasPriceDecorator

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* add change log

* fees - handle error in EthMinGasPriceDecorator (PR review)

evmos/evmos#610 (comment)
evmos/evmos#610 (comment)

* Test only DeliverTx app context

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
SuperVenus0725 pushed a commit to loveFeynman/cascadia_evm_chain that referenced this pull request Jan 9, 2023
* fees: add minGasPrice module param

* enforce fees param for min gas prices

* fees - min gas prices ante handler

* fix fees ante handler, add tests

* Change DefaultMinGasPrice to 0

* fees - refactor integration test descriptions for clarity

* fees: introduce EthMinPriceFeeDecorator and tests

* fees - fix param test

* fees - compare MinGasPrice with EffectivePrice for dynamic tx

* test remove test

* Reintroduce removed test with proper price values

* Add comment

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Fix inaccurate test comments, update evm AnteHandle explanation

* Reorder genesis initialization

Otherwise we get a
`ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"`
error when trying to get fees & evm parameters from the stores in AnteHandle,
when the gentx transactions are ran

* Update x/fees/ante/eth.go error

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* fees: fix error message in cosmos antehandle & tests

* fees: be more specific with the init genesis ordering

* Move MinPriceFeeDecorator to app/ante/fees.go (PR review)

evmos/evmos#610 (comment)

* Add unit tests for MinPriceFeeDecorators, remove redundant evm denom

evmos/evmos#610 (comment)

* Small fixes (PR review)

* fees - update spec for MinGasPrice

* s/MinPriceFeeDecorator/MinGasPriceDecorator

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* add change log

* fees - handle error in EthMinGasPriceDecorator (PR review)

evmos/evmos#610 (comment)
evmos/evmos#610 (comment)

* Test only DeliverTx app context

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
SuperVenus0725 pushed a commit to SuperVenus0725/evm_chain that referenced this pull request Jan 9, 2023
* fees: add minGasPrice module param

* enforce fees param for min gas prices

* fees - min gas prices ante handler

* fix fees ante handler, add tests

* Change DefaultMinGasPrice to 0

* fees - refactor integration test descriptions for clarity

* fees: introduce EthMinPriceFeeDecorator and tests

* fees - fix param test

* fees - compare MinGasPrice with EffectivePrice for dynamic tx

* test remove test

* Reintroduce removed test with proper price values

* Add comment

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Fix inaccurate test comments, update evm AnteHandle explanation

* Reorder genesis initialization

Otherwise we get a
`ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"`
error when trying to get fees & evm parameters from the stores in AnteHandle,
when the gentx transactions are ran

* Update x/fees/ante/eth.go error

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* fees: fix error message in cosmos antehandle & tests

* fees: be more specific with the init genesis ordering

* Move MinPriceFeeDecorator to app/ante/fees.go (PR review)

evmos/evmos#610 (comment)

* Add unit tests for MinPriceFeeDecorators, remove redundant evm denom

evmos/evmos#610 (comment)

* Small fixes (PR review)

* fees - update spec for MinGasPrice

* s/MinPriceFeeDecorator/MinGasPriceDecorator

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* add change log

* fees - handle error in EthMinGasPriceDecorator (PR review)

evmos/evmos#610 (comment)
evmos/evmos#610 (comment)

* Test only DeliverTx app context

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
T0psecurity added a commit to T0psecurity/cascadia-chain that referenced this pull request May 10, 2023
* fees: add minGasPrice module param

* enforce fees param for min gas prices

* fees - min gas prices ante handler

* fix fees ante handler, add tests

* Change DefaultMinGasPrice to 0

* fees - refactor integration test descriptions for clarity

* fees: introduce EthMinPriceFeeDecorator and tests

* fees - fix param test

* fees - compare MinGasPrice with EffectivePrice for dynamic tx

* test remove test

* Reintroduce removed test with proper price values

* Add comment

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Fix inaccurate test comments, update evm AnteHandle explanation

* Reorder genesis initialization

Otherwise we get a
`ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"`
error when trying to get fees & evm parameters from the stores in AnteHandle,
when the gentx transactions are ran

* Update x/fees/ante/eth.go error

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* fees: fix error message in cosmos antehandle & tests

* fees: be more specific with the init genesis ordering

* Move MinPriceFeeDecorator to app/ante/fees.go (PR review)

evmos/evmos#610 (comment)

* Add unit tests for MinPriceFeeDecorators, remove redundant evm denom

evmos/evmos#610 (comment)

* Small fixes (PR review)

* fees - update spec for MinGasPrice

* s/MinPriceFeeDecorator/MinGasPriceDecorator

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* add change log

* fees - handle error in EthMinGasPriceDecorator (PR review)

evmos/evmos#610 (comment)
evmos/evmos#610 (comment)

* Test only DeliverTx app context

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
supersenior017 added a commit to supersenior017/evm_chain that referenced this pull request Aug 16, 2023
* fees: add minGasPrice module param

* enforce fees param for min gas prices

* fees - min gas prices ante handler

* fix fees ante handler, add tests

* Change DefaultMinGasPrice to 0

* fees - refactor integration test descriptions for clarity

* fees: introduce EthMinPriceFeeDecorator and tests

* fees - fix param test

* fees - compare MinGasPrice with EffectivePrice for dynamic tx

* test remove test

* Reintroduce removed test with proper price values

* Add comment

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Fix inaccurate test comments, update evm AnteHandle explanation

* Reorder genesis initialization

Otherwise we get a
`ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"`
error when trying to get fees & evm parameters from the stores in AnteHandle,
when the gentx transactions are ran

* Update x/fees/ante/eth.go error

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* fees: fix error message in cosmos antehandle & tests

* fees: be more specific with the init genesis ordering

* Move MinPriceFeeDecorator to app/ante/fees.go (PR review)

evmos/evmos#610 (comment)

* Add unit tests for MinPriceFeeDecorators, remove redundant evm denom

evmos/evmos#610 (comment)

* Small fixes (PR review)

* fees - update spec for MinGasPrice

* s/MinPriceFeeDecorator/MinGasPriceDecorator

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* add change log

* fees - handle error in EthMinGasPriceDecorator (PR review)

evmos/evmos#610 (comment)
evmos/evmos#610 (comment)

* Test only DeliverTx app context

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
niceDeve added a commit to niceDeve/cascadia_evm_chain that referenced this pull request Sep 1, 2023
* fees: add minGasPrice module param

* enforce fees param for min gas prices

* fees - min gas prices ante handler

* fix fees ante handler, add tests

* Change DefaultMinGasPrice to 0

* fees - refactor integration test descriptions for clarity

* fees: introduce EthMinPriceFeeDecorator and tests

* fees - fix param test

* fees - compare MinGasPrice with EffectivePrice for dynamic tx

* test remove test

* Reintroduce removed test with proper price values

* Add comment

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Fix inaccurate test comments, update evm AnteHandle explanation

* Reorder genesis initialization

Otherwise we get a
`ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"`
error when trying to get fees & evm parameters from the stores in AnteHandle,
when the gentx transactions are ran

* Update x/fees/ante/eth.go error

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* fees: fix error message in cosmos antehandle & tests

* fees: be more specific with the init genesis ordering

* Move MinPriceFeeDecorator to app/ante/fees.go (PR review)

evmos/evmos#610 (comment)

* Add unit tests for MinPriceFeeDecorators, remove redundant evm denom

evmos/evmos#610 (comment)

* Small fixes (PR review)

* fees - update spec for MinGasPrice

* s/MinPriceFeeDecorator/MinGasPriceDecorator

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* add change log

* fees - handle error in EthMinGasPriceDecorator (PR review)

evmos/evmos#610 (comment)
evmos/evmos#610 (comment)

* Test only DeliverTx app context

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
niceDeve added a commit to niceDeve/cascadia-chain that referenced this pull request Sep 2, 2023
* fees: add minGasPrice module param

* enforce fees param for min gas prices

* fees - min gas prices ante handler

* fix fees ante handler, add tests

* Change DefaultMinGasPrice to 0

* fees - refactor integration test descriptions for clarity

* fees: introduce EthMinPriceFeeDecorator and tests

* fees - fix param test

* fees - compare MinGasPrice with EffectivePrice for dynamic tx

* test remove test

* Reintroduce removed test with proper price values

* Add comment

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Fix inaccurate test comments, update evm AnteHandle explanation

* Reorder genesis initialization

Otherwise we get a
`ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"`
error when trying to get fees & evm parameters from the stores in AnteHandle,
when the gentx transactions are ran

* Update x/fees/ante/eth.go error

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* fees: fix error message in cosmos antehandle & tests

* fees: be more specific with the init genesis ordering

* Move MinPriceFeeDecorator to app/ante/fees.go (PR review)

evmos/evmos#610 (comment)

* Add unit tests for MinPriceFeeDecorators, remove redundant evm denom

evmos/evmos#610 (comment)

* Small fixes (PR review)

* fees - update spec for MinGasPrice

* s/MinPriceFeeDecorator/MinGasPriceDecorator

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* add change log

* fees - handle error in EthMinGasPriceDecorator (PR review)

evmos/evmos#610 (comment)
evmos/evmos#610 (comment)

* Test only DeliverTx app context

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
jacksonmori755 added a commit to jacksonmori755/cascadia-chain that referenced this pull request Sep 13, 2023
* fees: add minGasPrice module param

* enforce fees param for min gas prices

* fees - min gas prices ante handler

* fix fees ante handler, add tests

* Change DefaultMinGasPrice to 0

* fees - refactor integration test descriptions for clarity

* fees: introduce EthMinPriceFeeDecorator and tests

* fees - fix param test

* fees - compare MinGasPrice with EffectivePrice for dynamic tx

* test remove test

* Reintroduce removed test with proper price values

* Add comment

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Fix inaccurate test comments, update evm AnteHandle explanation

* Reorder genesis initialization

Otherwise we get a
`ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"`
error when trying to get fees & evm parameters from the stores in AnteHandle,
when the gentx transactions are ran

* Update x/fees/ante/eth.go error

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* fees: fix error message in cosmos antehandle & tests

* fees: be more specific with the init genesis ordering

* Move MinPriceFeeDecorator to app/ante/fees.go (PR review)

evmos/evmos#610 (comment)

* Add unit tests for MinPriceFeeDecorators, remove redundant evm denom

evmos/evmos#610 (comment)

* Small fixes (PR review)

* fees - update spec for MinGasPrice

* s/MinPriceFeeDecorator/MinGasPriceDecorator

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* add change log

* fees - handle error in EthMinGasPriceDecorator (PR review)

evmos/evmos#610 (comment)
evmos/evmos#610 (comment)

* Test only DeliverTx app context

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
kingpig-dev added a commit to kingpig-dev/cascadia-chain that referenced this pull request Feb 19, 2024
* fees: add minGasPrice module param

* enforce fees param for min gas prices

* fees - min gas prices ante handler

* fix fees ante handler, add tests

* Change DefaultMinGasPrice to 0

* fees - refactor integration test descriptions for clarity

* fees: introduce EthMinPriceFeeDecorator and tests

* fees - fix param test

* fees - compare MinGasPrice with EffectivePrice for dynamic tx

* test remove test

* Reintroduce removed test with proper price values

* Add comment

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Fix inaccurate test comments, update evm AnteHandle explanation

* Reorder genesis initialization

Otherwise we get a
`ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"`
error when trying to get fees & evm parameters from the stores in AnteHandle,
when the gentx transactions are ran

* Update x/fees/ante/eth.go error

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* fees: fix error message in cosmos antehandle & tests

* fees: be more specific with the init genesis ordering

* Move MinPriceFeeDecorator to app/ante/fees.go (PR review)

evmos/evmos#610 (comment)

* Add unit tests for MinPriceFeeDecorators, remove redundant evm denom

evmos/evmos#610 (comment)

* Small fixes (PR review)

* fees - update spec for MinGasPrice

* s/MinPriceFeeDecorator/MinGasPriceDecorator

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* add change log

* fees - handle error in EthMinGasPriceDecorator (PR review)

evmos/evmos#610 (comment)
evmos/evmos#610 (comment)

* Test only DeliverTx app context

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
slickcharmer added a commit to slickcharmer/evmos that referenced this pull request Mar 20, 2024
* fees: add minGasPrice module param

* enforce fees param for min gas prices

* fees - min gas prices ante handler

* fix fees ante handler, add tests

* Change DefaultMinGasPrice to 0

* fees - refactor integration test descriptions for clarity

* fees: introduce EthMinPriceFeeDecorator and tests

* fees - fix param test

* fees - compare MinGasPrice with EffectivePrice for dynamic tx

* test remove test

* Reintroduce removed test with proper price values

* Add comment

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Fix inaccurate test comments, update evm AnteHandle explanation

* Reorder genesis initialization

Otherwise we get a
`ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"`
error when trying to get fees & evm parameters from the stores in AnteHandle,
when the gentx transactions are ran

* Update x/fees/ante/eth.go error

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* fees: fix error message in cosmos antehandle & tests

* fees: be more specific with the init genesis ordering

* Move MinPriceFeeDecorator to app/ante/fees.go (PR review)

evmos/evmos#610 (comment)

* Add unit tests for MinPriceFeeDecorators, remove redundant evm denom

evmos/evmos#610 (comment)

* Small fixes (PR review)

* fees - update spec for MinGasPrice

* s/MinPriceFeeDecorator/MinGasPriceDecorator

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* add change log

* fees - handle error in EthMinGasPriceDecorator (PR review)

evmos/evmos#610 (comment)
evmos/evmos#610 (comment)

* Test only DeliverTx app context

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
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.

None yet

3 participants