exthereum / abi

The Ethereum ABI Interface
MIT License
20 stars 22 forks source link

Check Event Signature #44

Closed hayesgm closed 8 months ago

hayesgm commented 8 months ago

This patch upgrades (breaking change) ABI to check event signature when decoding events. It also changes the function signature to return {:ok, "topic", params}, instead of raising on errors. Finally, you can return to older behavior via check_event_signature: false. We also rename event_topic to event_signature to be more accurate. And we add a function ABI.Event.canonical that returns the canonical event, with or without "indexed" keywords based on an indexed: true/false option.

Bump to 1.0.0-alpha8