Skip to content

Allow a way to parse get_logs the same way the Contract.get_filter_changes works #90

@grahac

Description

@grahac

Right now get_filter_changes can return a feed of logs parsed to the contract's events. Would be great to open up the capability to do this for get_logs so you can use the same parsing for both current and historical blocks. Easiest way may be to open up two methods. 1 that would take an ABI, convert it and return the event_attributes and then either open up format_log_data or refactor the format logs code in the Genserver call for :get_filter_changes and make that public. get_logs probably should not be a genserver call as someone may make tons of calls going through 10k's of blocks historically.

Happy to submit this or open to another alternatives!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions