starknet.py icon indicating copy to clipboard operation
starknet.py copied to clipboard

Simplify event parsing

Open cptartur opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe.

Currently parsing of events is possible through data transformer. It in cases where we already have abi available (e.g. when using Contract api), it'd be nice to be parse more events easily than constructing data transformer and parsing it yourself.

Describe the solution you'd like

Simply parsing events. Some considered solutions:

  • add .parse() method to events data class that somehow returns parsed event
  • add a method to Contract interface for parsing events
  • add a separate parser class

These are just some ideas, resolving this issue will require some reasearch.

Describe alternatives you've considered

n/a

Additional context

n/a

cptartur avatar Sep 14 '22 11:09 cptartur