Skip to content

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

License

Notifications You must be signed in to change notification settings

libraries/capsule

 
 

Repository files navigation

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 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.

$ cargo install cross --git https://github.com/cross-rs/cross --rev=6982b6c

Note: All commands 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 --locked

Install the develop branch

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

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.
  • contracts - Contracts directory.
  • tests - Contracts tests.
  • build - Contracts binaries.

Documentation

Capsule Wiki on GitHub

Upgrading to Capsule 0.10

Upgrade an existing project to capsule 0.10

LICENSE

MIT

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 93.8%
  • C 3.5%
  • Makefile 1.1%
  • Starlark 0.9%
  • Shell 0.4%
  • Dockerfile 0.3%