Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ethanyuan/ckb-crowdfunding-script


https://github.com/ethanyuan/ckb-crowdfunding-script

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# ckb-crowdfunding-script

### Pre-requirement

- [capsule](https://github.com/nervosnetwork/capsule) >= 0.4.3
- [ckb-cli](https://github.com/nervosnetwork/ckb-cli) >= 0.35.0

> Note: Capsule uses docker to build contracts and run tests. https://docs.docker.com/get-docker/
> and docker and ckb-cli must be accessible in the PATH in order for them to be used by Capsule.

### Getting Started

- Init submodules:

```
git submodule init && git submodule update -r --init
```

- Generator static linking for secp256k1:

```
cd contracts/ckb-cheque-script/ckb-lib-secp256k1/ckb-production-scripts
git submodule init && git submodule update
cd .. && make all-via-docker
```

- Build contracts:

``` sh
# back to repo root directory
cd ../../..
capsule build
```

- Run tests:

``` sh
capsule test
```