An aSVC based stateless protocol as L2 rollup on Nervos CKB.
- compile contract
capsule build --release
- Run mock of ckb dev chain
cargo run --bin mock-ckb --release
- Run layer2 node
cargo run --bin rollup --release
- Install test-tools
pip install httpie
- Deploy contract
http POST 127.0.0.1:8001/setup
- Register accounts
http POST 127.0.0.1:8001/register pubkey=00 psk=00
http POST 127.0.0.1:8001/register pubkey=01 psk=01
- Deposit
http POST 127.0.0.1:8001/deposit to=0 amount=1000 psk=00
- Transfer
http POST 127.0.0.1:8001/transfer from=0 to=1 amount=10 psk=00
- Withdraw
http POST 127.0.0.1:8001/withdraw from=0 amount=99 psk=00
This project is still under active development and is currently being used for research and experimental purposes only, please DO NOT USE IT IN PRODUCTION for now.
This project is licensed under MIT license (LICENSE or http://opensource.org/licenses/MIT)