starknet.js
starknet.js copied to clipboard
feat: add support for parsing emitted events
Motivation and Resolution
provider.getEvents
method returns list of EmittedEvents
which contains fields for block number, block hash and transaction hash. Parsing list of those events with parseEvents
would drop those fields. This PR adds them back to the returned array if they are available.
RPC version (if applicable)
...
Usage related changes
Users now use additional data from parsed events structure.
Development related changes
N/A
Checklist:
- [x] Performed a self-review of the code
- [x] Rebased to the last commit of the target branch (or merged it into my branch)
- [ ] Linked the issues which this PR resolves
- [ ] Documented the changes in code (API docs will be generated automatically)
- [x] Updated the tests
- [x] All tests are passing