laconicd-deprecated/x/feemarket/spec
Loredana Cirstea 046cd00174
feemarket: global MinGasPrice parameter (#1104)
* Add min_gas_price to feemarket params

* Add MinGasPriceDecorators

* feemarket integration tests for MinGasPrice

* Restructure integration tests

* Simplify integration tests context

We use DeliverTx context to set up the app, otherwise not all settings are initialized.
We test CheckTx with `s.app.BaseApp.CheckTx(req)`, which uses the `CheckTx` mode and context.

* Update MinGasPrice spec in feemarket module

* reorder ethermint module order for initializing genesis

* feemarket migrations for adding MinGasPrice param

* update changelog

* Additional unit tests for MinGasPrice = 0, tx gas price > 0 (PR review)

https://github.com/tharsis/ethermint/pull/1104#discussion_r884991661

* Use 0 MinGasPrice for transaction simulations

* Fix duplicate registration of feemarket GenesisState and Params (PR review)

https://github.com/tharsis/ethermint/pull/1104#issuecomment-1141893712
2022-05-31 18:28:46 +02:00
..
01_concepts.md feemarket: global MinGasPrice parameter (#1104) 2022-05-31 18:28:46 +02:00
02_state.md docs: add spec for feemarket module (#889) 2022-02-25 12:49:18 +00:00
03_begin_block.md docs: add spec for feemarket module (#889) 2022-02-25 12:49:18 +00:00
04_end_block.md docs: add spec for feemarket module (#889) 2022-02-25 12:49:18 +00:00
05_keeper.md docs: add spec for feemarket module (#889) 2022-02-25 12:49:18 +00:00
06_events.md docs: add spec for feemarket module (#889) 2022-02-25 12:49:18 +00:00
07_params.md feemarket: global MinGasPrice parameter (#1104) 2022-05-31 18:28:46 +02:00
08_client.md docs: add spec for feemarket module (#889) 2022-02-25 12:49:18 +00:00
09_antehandlers.md feemarket: global MinGasPrice parameter (#1104) 2022-05-31 18:28:46 +02:00
10_future_improvements.md feemarket: global MinGasPrice parameter (#1104) 2022-05-31 18:28:46 +02:00
README.md docs: add spec for feemarket module (#889) 2022-02-25 12:49:18 +00:00

Feemarket

Abstract

This document specifies the feemarket module which allows to define a global transaction fee for the network.

This module has been designed to support EIP1559 in cosmos-sdk.

The MempoolFeeDecorator in x/auth module needs to be overrided to check the baseFee along with the minimal-gas-prices allowing to implement a global fee mechanism which vary depending on the network activity.

For more reference to EIP1559:

https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1559.md

Contents

  1. Concepts
  2. State
  3. Begin Block
  4. End Block
  5. Keeper
  6. Events
  7. Params
  8. Client
  9. Future Improvements