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
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!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: