Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add event parsing #11

Merged
merged 3 commits into from
Nov 17, 2018
Merged

Add event parsing #11

merged 3 commits into from
Nov 17, 2018

Conversation

zachdaniel
Copy link
Contributor

Parts of this have to be sort of weaved in with the function parsing since events and functions are all present in the ABI and it wouldn't make sense to require them to parse it twice for each. Additionally, my usage of this shows that its a bit difficult to support providing parameter information in the form of multiple attributes that contain lists with positional data. For instance: types: [:bool, :string], input_names: ["foo", "bar"] but thats what I ended up going with when adding things so as to avoid unnecessary code changes. If more information is needed out of the function selectors, it might be a good idea to consider structuring the %FunctionSelector{} struct to more closely match the ABI itself.

The return value from decoding is a little esoteric, but all of that info is required to get anything informative out of the values given from decoding an event, since they are structured as topics + data and you have to know if they were indexed or not.

@ayrat555 ayrat555 merged commit 054d433 into poanetwork:master Nov 17, 2018
@ayrat555
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants