-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sequencer, core): Add fee reporting (#1305)
## Summary Added event recording for fees on `Transfer` and `Sequence` actions. ## Background Fees were previously not reported, and since Astria doesn't fill out gas wanted/used on `ExecTxResult`, there was no outside way of viewing a block or transaction's associated fees. ## Changes - Added `get_action_type()` methods to `TransferAction` and `SequencerAction` to facilitate passing the kind of action to `get_and_increase_block_fees()`. - Added construction and recording of ABCI events having kind `tx.fees` and attributes `asset`, `feeAmount`, and `actionType`. ## Testing Added unit test to ensure `tx.fees` event is recorded correctly in the transaction state events. ## Related Issues closes #1293 --------- Co-authored-by: Fraser Hutchison <[email protected]>
- Loading branch information
1 parent
aed95e0
commit 7953133
Showing
8 changed files
with
119 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters