Scaffold-Stark / scaffold-stark-2

Open source forkable Starknet dev stack
https://www.scaffoldstark.com
66 stars 88 forks source link

Improve `starknet-foundry` version for a future complete migration #241

Open jrcarlos2000 opened 3 months ago

jrcarlos2000 commented 3 months ago

Issue Overview

Currently this branch supports deployment scripts fully written in cairo. It uses Starknet foundry

Some pending TODOs are ( in order of priority ):

oceanlvr commented 2 months ago

for issue 1:

In deploy script, skip contract declaration if it exists, this is a pending fix from snfoundry.

it's seems that [Starknet foundry](https://github.com/foundry-rs/starknet-foundry) we use is version 0.27.0

and the latest version is 0.30.0, we could use api like this to skip declare if it have been declared. it's seems that we could not now what if the contract have been declared in 0.27.0.could i upgrade this package? so that i could use this api

image image image

https://foundry-rs.github.io/starknet-foundry/appendix/snforge-library/declare.html#declare