#write #contract #module #syscalls #help #ckb #serveral

nightly ckb-contract-std

This library contains serveral modules that could help you write CKB contract with Rust

7 releases

0.1.5 Mar 16, 2020
0.1.5-pre Jan 15, 2020
0.1.4 Mar 16, 2020

#101 in #ckb

MIT license

16KB
472 lines

ckb-contract-std

Crates.io

This library contains serveral modules that could help you write CKB contract with Rust.

  • syscall module: defines CKB syscalls functions
  • debug macro: a println! like macro helps debugging
  • setup macro: defines contract entry point

Check examples, docs and this tutorial to learn how to use.

See also ckb-contract-tool which helps you write tests.

Dependencies

~37KB