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.
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, typeExecTxResult(source), fill out the eveWe could have one event per action on the ExecTxResult for entry of type
tx.feesand it could have threeattributeswith the key values:Additionally these tx results could be utilized when calculating fee payments instead of recalculating all fees at final execution time.