You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our use case, we need to use different modules to handle tx.Events and distribute code logic based on different events, like this:
// in module A
func (m *Module) HandleTx(tx *juno.Transaction) error {
for _, event := range tx.Events {
if event.Type != "tx_log" {
continue
}
// in module B
func (m *Module) HandleTx(tx *juno.Transaction) error {
for _, event := range tx.Events {
if event.Type != "evm_tx_log" {
continue
}
So I think there needs to be an event handler in the Module interface?
Feature description
In our use case, we need to use different modules to handle
tx.Events
and distribute code logic based on different events, like this:So I think there needs to be an event handler in the Module interface?
Implementation proposal
After handle tx: https://github.com/forbole/juno/blob/cosmos/v0.50.x/parser/worker.go#L342
Add a
handleEvents
method to allow the module to control the process based on events?The text was updated successfully, but these errors were encountered: