A secure, milestone-based escrow program for Grid P2P Marketplace built with native Rust for Solana.
- ⚡ Initialize Escrow: Buyer deposits funds into a PDA-based escrow account
- 💸 Release Funds: Buyer can release funds to seller upon completion
- 🔄 Cancel Escrow: Buyer can cancel and get refunded before releasing
- 🔒 Secure PDAs: Uses program-derived addresses for secure fund storage
- 📦 Native Rust: Built without Anchor framework for maximum control
Creates a new escrow and deposits funds from buyer.
Accounts:
[signer, writable]Buyer account[writable]Escrow PDA account[]Seller account[]System program
Releases escrowed funds to the seller.
Accounts:
[signer, writable]Buyer account[writable]Escrow PDA account[writable]Seller account
Cancels escrow and refunds the buyer.
Accounts:
[signer, writable]Buyer account[writable]Escrow PDA account
cargo build-sbfcargo test-sbfsolana program deploy target/deploy/escrow_native.so