Skip to content

polydeuces32/onchain-policy-infra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

On-Chain Policy Infrastructure

Composable, policy-gated smart contract infrastructure for secure escrow, institutional-grade approvals, and programmable release logic.

Key principle
Contracts enforce rules.
UI explains and reflects them — never overrides them.


Why this exists

Most escrow systems rely on:

  • Single arbiters
  • Off-chain trust
  • Opaque release logic
  • Admin keys or upgrade paths that bypass users

This project introduces on-chain policy consensus.

Funds move only when multiple independent policies approve. All enforcement is deterministic, auditable, and enforced by the EVM.

No silent overrides.
No off-chain enforcement.
No trusted UI assumptions.


Core Architecture

Execution and decision-making are deliberately separated.

Escrow

  • Holds ETH in a non-custodial contract
  • Enforces release and refund deadlines
  • Cannot release funds without gate approval
  • Always allows refunds after final deadline

MultiPolicyGate

  • Aggregates decisions from multiple policies
  • Enforces N-of-M approval thresholds
  • Provides a single approval surface for the escrow
  • Can be paused or upgraded by governance if desired

Policies

  • Independent, composable modules
  • Stateless or stateful
  • Examples:
    • Time-based constraints
    • Allowlists / deny lists
    • Velocity or amount limits
    • Governance approvals
    • Enterprise compliance rules

No single policy can unilaterally move funds.

About

On-chain policy infrastructure for secure escrow and multi-party approval workflows.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors