Skip to content

auguth/pocs

Repository files navigation

Proof of Contract Stake (W3F Grant Project)

License Substrate version Cargo doc Build & Test

Abstract

Proof of Contract Stake (PoCS) is a staking system utilizing contract gas history introducing code-mining by incentivizing developers to secure the network. Contracts’ stake scores depend on age, reputation, and gas use, deterring collusion attacks. Further information on PoCS Protocol Design are detailed in the PoCS Research Page

Substrate Implementation

This Substrate Node is an adaptation of the substrate-stencil to integrate PoCS protocol, which includes modified pallet_contracts and pallet_staking that supports Contract Staking Feature interoperable with current Substrate NPoS-BABE-GRANDPA public node infrastructure.

Build & Run PoCS Node

  1. Clone the repository from GitHub:

    git clone https://github.com/auguth/pocs
  2. Run the Rust Setup Script

    chmod +x setup.sh && ./setup.sh
  3. Build the project in release mode:

    cargo build --release
  4. Run the executable with the specified configuration:

    ./target/release/pocs --dev
  5. Use Polkadot-JS-App and Contracts UI to interact with the Node. Refer to Testing Guide.md for extended information.

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

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages