cosmos / relayer

An IBC relayer for ibc-go
Apache License 2.0
390 stars 1.71k forks source link

feat: implement support for Osmosis EIP-1559 #1412

Closed jtieri closed 8 months ago

jtieri commented 9 months ago

This PR adds support for querying the dynamic gas price base fee on Osmosis.

A new config value, dynamic-gas-price, is added to the CosmosProviderConfig, if this value is true then an ABCI query will be made to fetch the dynamic gas price base fee which is used in place of the configured gas-prices value. If the query fails for some reason the relayer will fall back to using the configured gas-prices value.

This feature is currently limited to working on Osmosis due to hardcoded values necessary to make it work, but once Skip's Fee Market module is live we can refactor this code to be generic enough to work against any chain for various fee market models.

Closes #1368