Skip to content

Instantly share code, notes, and snippets.

@lukeledet
Created September 16, 2022 01:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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