PoCS - Proof of Contract Stake (v0.1 Experimental)

March 18, 2025 ยท View on GitHub

License License: MIT Substrate version Node BuildContract Build

Documents

DocumentDescriptionLink
LitepaperConceptual overview of the PoCS protocolpocs-litepaper.pdf
Research ModelIn-depth technical design and theoretical modelpocs-research.pdf
SpecificationDetailed system architecture and implementationpocs-spec.pdf

PoCS-Substrate Node

Prerequisites

Ensure your system meets the following requirements:

  • Linux, macOS, or Windows (with winget or choco package managers).
  • Bash shell environment.
  • curl, cargo, and rustup installed.
  • Sufficient disk space for Substrate and Ink! builds.

Initial Setup

Before using the script, ensure it has execution permissions:

chmod +x pocs.sh

Usage

Build

To build the Ink! contracts or the PoCS Substrate node:

./pocs.sh --build --contracts
./pocs.sh --build --node

Test

To run tests for Ink! contracts or the PoCS Substrate node:

./pocs.sh --test --contracts
./pocs.sh --test --node

Run

To start the PoCS Substrate node:

./pocs.sh --run

Clean

To clean the build artifacts and environment:

./pocs.sh --clean --contracts
./pocs.sh --clean --node

Actions and Targets

ActionTargetDescription
--build--contractsBuild all Ink! contracts and bundle them.
--nodeBuild the PoCS Substrate node.
--test--contractsRun all Ink! contract tests and E2E tests.
--nodeRun tests for the PoCS Substrate node.
--runStart the PoCS Substrate node.
--clean--contractsClean all Ink! contract artifacts.
--nodeClean Substrate node build and targets

Acknowledgment

Sincere Thanks to the Web3 Foundation for their vital grant support, enabling the progress of PoCS Substrate Implementation project. For project application details, visit the PoCS W3F Grant Application