shazow / whatsabi

Extract the ABI (and resolve proxies, and get other metadata) from Ethereum bytecode, even without source code.
https://shazow.github.io/whatsabi/
MIT License
1.06k stars 74 forks source link

package: Add autoload demo entrypoint #110

Open shazow opened 3 months ago

shazow commented 3 months ago

So people can do things like npx whatsabi --address 0xasdfasdf --rpc-url https://infura.alchemy

Most of the code already exists in examples/autoload.ts, just need to tweak the input and output handling.

(via @roninjin10)

roninjin10 commented 3 months ago

2 brainstormy ideas

Record a gif automatically

When you make this you can automate making a gif of the cli pretty trivially using charmbracelet/vhs

Output ./examples/demo.gif
Type "npx whatsabi --address 0xasdfasdf --rpc-url"
# Pause for dramatic effect...
Sleep 50ms
Enter
Sleep 100ms

compose with cast

A use case people might like is using this whatsabi cli to pipe a result into a cast command?

shazow commented 3 months ago

Good ideas!