Daohub-io / cap9

Capability-based security protocol for smart contracts
Apache License 2.0
22 stars 10 forks source link

"Getting Started" documentation and CLI #188

Closed Latrasis closed 5 years ago

Latrasis commented 5 years ago

Following #123, we need begin working out how to provide an initial onboarding experience on setting up a cap9 contract.

This involves specific steps (in relative order) including:

Basic Setup:

State Fetching

Development Workflow

Proc Upgrade Workflow

Code Change:

Capability-List Change:

Test Workflow

Documentation

JakeOShannessy commented 5 years ago

Add additional Capability to hello_world Procedure - via CLI/ Config

This might not be currently achievable because we went with static caps. We'll have to make it clear we replacing the previous procedure with a new one (possibly with the same contract).

JakeOShannessy commented 5 years ago

Further to that point, in general upgrading procedures is not possible without the delete procedure capability (this is demonstrated in test deploy_proc_twice). This means that procedure upgrades will need to include a "delete" step.

JakeOShannessy commented 5 years ago

Delete Procedure is now implemented, so all the items under "Proc Upgrade Workflow" can be performed, although we should probably document and/or add shortcuts for those items before we consider them complete.