foundry-rs / starknet-foundry

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

Save deployed and declared contracts in logfile #2239

Open Arcticae opened 3 months ago

Arcticae commented 3 months ago

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

sncast

Description

This is really something that should be kept in some kind of log file in the CWD perhaps

Rationale:

When you declare/deploy the contracts, close the console like a boss on successful deployment and go home, the next day you don't know where you deployed to, or which contract class was the correct one etc. (especially if the procedure is complex).

Bonus: If we have #2240 in place, we can propose to save it into an alias as well

PS: Yes, you can be smart and use account address + block explorer to track down those txns but that's a lot more work than cat deployment_log.txt