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

Alias deployed contracts and declared hashes #2240

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

It would be easier to refer to contracts in a manner that we can distinguish between calls in a human-readable way.

i.e. sncast call --contract-alias my-swap-contract --function "swap" --calldata 123 123 123 or sncast declare --class-alias the-custom-account --constructor-calldata ....