-
Notifications
You must be signed in to change notification settings - Fork 12
Description
The creation of a coprocessor project has some aditional steps comparing to a rollups.
That being said, we may need tro have separate create commands like:
cartesi rollups createcartesi coprocessor create
Steps
- Deprecate the
cartesi createcommand - Move current
cartesi createtocartesi rollups create - Add
cartesi coprocessor create
Goal
The goal of cartesi coprocessor create involves:
- creating a smart contracts directory from forge template
- copy CoprocessorAdapter
- adding the smartcontract for a coprocesssor application
My suggestion is to put all of this inside cartesi/application-templates so that we can replicate the logic for currente cartei create where we just download the diretory from the application-template repository for a specific --template
We should discuss if we need to have a specific branch or reorganize cartesi/application-tempalte repository to acoomodate rollups and coprocessor templates in the same repository with a hierachy differente from what we have now.
Reference: https://github.com/Mugen-Builders/co-processor-cli/blob/main/src/commands/create.rs
/cc @tuler