Skip to content

Implement cartesi coprocessor create #227

@endersonmaia

Description

@endersonmaia

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 create
  • cartesi coprocessor create

Steps

  • Deprecate the cartesi create command
  • Move current cartesi create to cartesi 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions