Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ethanyuan/ckb-crowdfunding-script
https://github.com/ethanyuan/ckb-crowdfunding-script
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ethanyuan/ckb-crowdfunding-script
- Owner: EthanYuan
- Created: 2022-07-24T08:39:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-02T02:36:16.000Z (over 2 years ago)
- Last Synced: 2023-03-09T22:55:44.596Z (over 1 year ago)
- Language: Rust
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```