Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.57 KB

README.md

File metadata and controls

45 lines (33 loc) · 1.57 KB


Perun

Perun CKB Contracts

License: Apache 2.0 CI status

Perun CKB contracts

This repository contains the scripts used to realize Perun channels on CKB. There are three scripts available:

perun-channel-lockscript

This script is used to handle access-rights to the live Perun channel cell. It ensures that only participants of the Perun channel in question are able to consume the live channel cell.

perun-channel-typescript

This script is used to handle a Perun channel's state progression on-chain. Basically a NFT script with extra functionality.

perun-funds-lockscript

This script handle access rights to all funds belonging to a Perun channel. It ensures that only channel participants are able to consume said funds.

Build contracts:

capsule build

Run tests:

capsule test

perun-common

Additionally to the available contracts we extracted common functionality into its own perun-common crate which gives some additional helpers and convenience functions when interacting with types used in Perun contracts.