Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support scarb build generate json #1702

Closed
jujube opened this issue Apr 6, 2024 · 6 comments
Closed

Add support scarb build generate json #1702

jujube opened this issue Apr 6, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@jujube
Copy link

jujube commented Apr 6, 2024

A command similar to cairo-vm-cli
sarb build json:
for example: 1.hello_world.sierra.json the content inside {"version":1,"type_declarations":[{"id":{"id":0,"debug_name":"u64"},"long_id":{
2.my_contract_hello.contract_class.json the content inside {"sierra_program":["0x1","0x4","0x0" ... ...

@jujube jujube added the enhancement New feature or request label Apr 6, 2024
@fmoletta
Copy link
Contributor

fmoletta commented Apr 8, 2024

Hello! Could you expand a bit more on the functionality that you need?

@jujube
Copy link
Author

jujube commented Apr 8, 2024

scarb new cairo0408
cd cairo0408
tree
.
├── Scarb.toml
└── src
└── lib.cairo

scarb build
tree
├── Scarb.lock
├── Scarb.toml
├── src
│   └── lib.cairo
└── target
├── CACHEDIR.TAG
└── dev
└── cairo0408.sierra.json

above for example 1.
I need new_cmd
new_cmd cairo0408.sierra.json as cairo-vm-cli cairo_programs/abs_value_array_compiled.json

@fmoletta
Copy link
Contributor

fmoletta commented Apr 8, 2024

So I understand what you need instead is something to run a sierra file instead of a cairo file for cairo1-run?
There is a PR open that targets this issue #1544 would this solve your problem?

@jujube
Copy link
Author

jujube commented Apr 8, 2024

now cairo1-run can run single cairo file.
we now use scarb.
scarb is Cairo's package manage.

There is no merge. so I am not sure if this can solve this problem.

@juanbono
Copy link
Collaborator

This will be addressed in #1719

@fmoletta
Copy link
Contributor

Closed by #1719

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants