Skip to content

Instantly share code, notes, and snippets.

@lukeledet
Created September 16, 2022 01:43
Show Gist options
  • Save lukeledet/64e99b182379c42f4cdae79654fc277f to your computer and use it in GitHub Desktop.
Save lukeledet/64e99b182379c42f4cdae79654fc277f to your computer and use it in GitHub Desktop.
keccak all events from abis
fd json abi | xargs -n1 jq '.[] | select(.type=="event") | select( any(.inputs[]; .name == "tokenId")) | .name+"("+(.inputs|map(.type)|join(","))+")"' | sort | uniq | parallel 'echo {}; echo -n {} | keccak-256sum'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment