Daohub-io / cap9

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

Ewasm CLI - Basic Setup #189

Closed Latrasis closed 5 years ago

Latrasis commented 5 years ago

Based on #188, we need a basic CLI.

Basic Commands

For the Basic Setup we need commands implemented including:

Create new Project Folder:

This command should create:

  1. A folder with specified name
  2. A Deployment File (Json) with:
    • Account
    • TestNet Port
    • Entry Procedure - Defaults to "ACL"
    • Admin Procedure - Defaults to "Admin"

Deploy Initial Project

This command should:

  1. Reads Deployment File
  2. Deploy the entry procedure - use default acl procedure
  3. Deploy a kernel instance contract - pass entry procedure address
  4. Set Admin + Admin Procedure to entry acl procedure
  5. Create State File (Json) with:
    • Kernel Contract Address

Fetch State

Kernel State:

  1. List Procedures and their corresponding capabilities
  2. List Gas

    ACL State:

  3. List Administrators
  4. List Groups and corresponding Accounts

Documentation

JakeOShannessy commented 5 years ago

All but the website is addressed in #191.