foundry-rs / starknet-foundry

Blazing fast toolkit for developing Starknet contracts.
https://foundry-rs.github.io/starknet-foundry/
MIT License
279 stars 138 forks source link

Fetch an ABI and interactively read it in console (or save it) #2241

Open Arcticae opened 1 week ago

Arcticae commented 1 week ago

Which components does the task require to be changed? (think hard pls)

sncast

Description

Sometimes it would be nice to read through the possible entry points, to assess what i want to call and with what parameters. Otherwise i am forced to look at block explorer or into the code, instead of just typing in the terminal.

This could be nice as an interactive tool in order to make it easier to use, but a raw ABI could also be fetched with --raw, so that you could export it. Or we could do it the other way around, but i would prefer the "easy" interactive mode as the more accessible one.