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

Parse logs for spendies #328

Open
troggy opened this issue Aug 28, 2019 · 4 comments
Open

Parse logs for spendies #328

troggy opened this issue Aug 28, 2019 · 4 comments

Comments

@troggy
Copy link
Member

troggy commented Aug 28, 2019

As of now, logs are stored raw. ABI is needed to parse them maybe not

@troggy
Copy link
Member Author

troggy commented Aug 28, 2019

/cc @johannbarbie @pinkiebell

@troggy
Copy link
Member Author

troggy commented Aug 28, 2019

seems like rawDecode (https://github.com/ethereumjs/ethereumjs-abi#manual-encoding-and-decoding) should do the trick wrong

@troggy troggy removed the question label Aug 28, 2019
@troggy troggy changed the title How to parse logs for spendies? Parse logs for spendies Aug 28, 2019
@troggy
Copy link
Member Author

troggy commented Aug 28, 2019

talking to myself 🤪

@pinkiebell
Copy link
Contributor

You could parse them manually or use a helper from ethers.js.
Like:

const interface = new ethers.utils.Interface(ABI);
const decoded = interface.events.FooBar.decode('0x....');

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

No branches or pull requests

2 participants