forked from evmos/ethermint
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(evm, feemarket) - Migrate Event emitting to TypedEvent (evmos#1544
) * (refactor): Migrated to new Typed Events * (fix): fixed tests and initialized the logs array in the proto message * Added CHANGELOG entry * (refactor): Made migration to Typedevent to feemarket module * (fix): replace error returning with error logging. * fix: linter and formatter * fix: handle error by logging it * fix: ran formatter and linter * Apply suggestions from code review Co-authored-by: MalteHerrmann <[email protected]> * fix: increase sleep time to 5s initially * fix: comment out failing tests to investigate in a separate PR * fix: update timeout to 10 minutes * fix: added 15 min timeout Co-authored-by: MalteHerrmann <[email protected]> Co-authored-by: Federico Kunze Küllmer <[email protected]>
- Loading branch information
1 parent
5f0acd8
commit 8886ce3
Showing
13 changed files
with
2,010 additions
and
138 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
syntax = "proto3"; | ||
package ethermint.evm.v1; | ||
|
||
option go_package = "github.com/evmos/ethermint/x/evm/types"; | ||
|
||
// EventEthereumTx defines the event for an Ethereum transaction | ||
message EventEthereumTx { | ||
// amount | ||
string amount = 1; | ||
// eth_hash is the Ethereum hash of the transaction | ||
string eth_hash = 2; | ||
// index of the transaction in the block | ||
string index = 3; | ||
// gas_used is the amount of gas used by the transaction | ||
string gas_used = 4; | ||
// hash is the Tendermint hash of the transaction | ||
string hash = 5; | ||
// recipient of the transaction | ||
string recipient = 6; | ||
// eth_tx_failed contains a VM error should it occur | ||
string eth_tx_failed = 7; | ||
} | ||
|
||
// EventTxLog defines the event for an Ethereum transaction log | ||
message EventTxLog { | ||
// tx_logs is an array of transaction logs | ||
repeated string tx_logs = 1; | ||
} | ||
|
||
// EventMessage | ||
message EventMessage { | ||
// module which emits the event | ||
string module = 1; | ||
// sender of the message | ||
string sender = 2; | ||
// tx_type is the type of the message | ||
string tx_type = 3; | ||
} | ||
|
||
// EventBlockBloom defines an Ethereum block bloom filter event | ||
message EventBlockBloom { | ||
// bloom is the bloom filter of the block | ||
string bloom = 1; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
syntax = "proto3"; | ||
package ethermint.feemarket.v1; | ||
|
||
option go_package = "github.com/evmos/ethermint/x/feemarket/types"; | ||
|
||
// EventFeeMarket is the event type for the fee market module | ||
message EventFeeMarket { | ||
// base_fee for EIP-1559 blocks | ||
string base_fee = 1; | ||
} | ||
|
||
// EventBlockGas defines an Ethereum block gas event | ||
message EventBlockGas { | ||
// height of the block | ||
string height = 1; | ||
// amount of gas wanted by the block | ||
string amount = 2; | ||
} |
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
Oops, something went wrong.