Skip to content

Daniel202251/Grant-Stream-Contracts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

531 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grant Stream Contracts

Smart contracts for managing grant streams with milestone completion proof hashing and integrated dispute resolution system.

Overview

This repository contains multiple implementations for grant management:

  1. Soroban (Stellar) Implementation: High-precision per-second streaming with legal anchoring and cross-chain interoperability.
  2. Solidity (Ethereum/L2) Implementation: Milestone-based releasing with integrated dispute resolution and ZK proofs.

Soroban Implementation (Stellar)

Located in contracts/grant_stream/.

Key Features

  • Per-Second Accrual: High-precision streaming logic using scaling factors.
  • Legal Anchoring: Prevent fund streaming until legal documents are cryptographically signed on-chain.
  • Cross-Chain Interoperability: Compact byte-array status emission for bridge monitoring.
  • Wrapped Asset Security: Emergency halts and security buffers for non-native assets.
  • Yield Treasury: Integration with external yield aggregators for capital efficiency.

Development (Soroban)

# Build
stellar contract build

# Test
cargo test

Solidity Implementation

Located in foundry/.

Key Features

  • Arbitration Escrow: Secure fund holding during disputes with third-party arbitrators.
  • ZK Proof Verification: Anonymous verification of grant conditions.
  • Milestone Hashing: SHA-256 proof submission for deliverables.

Development (Solidity)

# Build
forge build

# Test
forge test

Contributing

Please follow the contribution guidelines and ensure all tests pass before submitting pull requests.

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Rust 57.4%
  • Makefile 38.7%
  • Solidity 1.8%
  • Shell 0.7%
  • PowerShell 0.6%
  • JavaScript 0.6%
  • Other 0.2%