Skip to content

report paid fees from sequencer #1293

@joroshiba

Description

@joroshiba

Currently we don't have any method by which we report fees. We don't fill out the gas wanted or used since we don't have a true concept of gas, it doesn't change in price and we can accept fees in different currencies.

I believe we need to have some reporting on the fees paid for block explorers though, otherwise they need to replicate our logic around fee calculation for actions. In order to support this we can utilize custom events for on the tx_results object of FinalizeBlock (see response type here, type ExecTxResult (source), fill out the eve

We could have one event per action on the ExecTxResult for entry of type tx.fees and it could have three attributes with the key values:

  • key: asset
  • key: value
  • key: actionType

Additionally these tx results could be utilized when calculating fee payments instead of recalculating all fees at final execution time.

Metadata

Metadata

Assignees

Labels

sequencerpertaining to the astria-sequencer crate

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions