jjyr / capsule

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Capsule

Github Actions Rust crate

Capsule is an out-of-box development framework for creating smart contract on Nervos' CKB.

Capsule consists of:

  • Capsule CLI - Scaffolding tool.
  • CKB-testtool - CKB scripts testing framework.

CKB supports several programming languages for writing scripts, and the language supporting libraries are maintained in the following repositories:

Capsule

Installation

Supported Environments

  • Linux
  • macOS
  • Windows (WSL2)

Prerequisites

The following must be installed and available to use Capsule.

Note: Docker and ckb-cli must be accessible in the PATH in order for them to be used by Capsule.

Note: The current user must have permission to manage Docker instances. How to manage Docker as a non-root user.

Install binary

Download the latest release

Cargo install

Install the latest version

cargo install ckb-capsule

Install the develop branch

cargo install ckb-capsule --git https://github.com/nervosnetwork/capsule.git --branch develop

Usage

capsule help

Quick Start

# check environment
capsule check

# create project
capsule new my-demo
cd my-demo
capsule build
capsule test

Project Layout

  • capsule.toml - Capsule manifest file.
  • deployment.toml - Deployment configuration.
  • contracts - Contracts directory.
  • tests - Contracts tests.
  • build - Contracts binaries.
  • migrations - Deployment histories.

Documentation

Capsule Wiki on GitHub

LICENSE

MIT

About

License:MIT License


Languages

Language:Rust 94.6%Language:C 3.0%Language:Makefile 1.0%Language:Starlark 0.8%Language:Shell 0.3%Language:Dockerfile 0.2%Language:Lua 0.0%