π Decentralized Real Estate Infrastructure | Rust-based smart contracts for blockchain-powered property transactions
PropChain Smart Contracts is a production-grade Rust-based smart contract system that enables the tokenization and trading of real estate assets through blockchain technology. Our contracts provide the core functionality needed to build decentralized real estate platforms, including property ownership, secure transfers, and escrow services.
Built with Rust and ink! for Substrate/Polkadot ecosystem, these smart contracts serve as the foundation for Web3 real estate applications, enabling developers to create platforms where physical properties can be represented as digital assets and traded seamlessly using cryptocurrency.
- π Asset Tokenization: Transform physical real estate properties into tradable NFTs with legal compliance
- π° Secure Transfers: Multi-signature property transfers with escrow protection
- π Property Registry: On-chain property ownership registry with metadata storage
- π Fractional Ownership: Enable partial ownership and investment pooling
- π Access Control: Role-based permissions for property owners, agents, and regulators
- πΎ On-chain Storage: Decentralized storage for property documents and metadata
- βοΈ Cross-Chain Compatibility: Designed for Substrate/Polkadot ecosystem with EVM compatibility
- π Property Valuation: On-chain valuation oracle integration for real-time pricing
- π Property Discovery: Efficient on-chain search and filtering capabilities
- π± Mobile Integration: Lightweight contract interfaces for mobile dApps
- π‘οΈ Security First: Formal verification and comprehensive audit coverage
This smart contract system is designed for:
- Real Estate Tech Companies building blockchain-based property platforms
- Property Investment Firms seeking fractional ownership solutions
- Blockchain Developers creating DeFi real estate applications on Substrate
- Real Estate Agencies modernizing their transaction infrastructure
- FinTech Startups integrating real estate into their crypto ecosystems
Ensure you have the following installed:
- Rust 1.70+ (stable toolchain)
- ink! CLI for smart contract development
- Substrate Node for local testing
- Git version control
# 1. Clone the repository
git clone https://github.com/MettaChain/PropChain-contract.git
cd PropChain-contract
# 2. Run automated setup
./scripts/setup.sh
# 3. Start local development environment
docker-compose up -d
# 4. Build the contracts
./scripts/build.sh --release
# 5. Run tests
./scripts/test.sh
# 6. Deploy locally (optional)
./scripts/deploy.sh --network localThe contracts will be compiled and ready for deployment to Substrate-based networks.
./scripts/build.sh # Build contracts in debug mode
./scripts/test.sh # Run unit tests
cargo test # Run all tests including integration./scripts/build.sh --release # Build optimized contracts
./scripts/deploy.sh --network westend # Deploy to testnet
./scripts/deploy.sh --network polkadot # Deploy to mainnet./scripts/test.sh # Run all tests
./scripts/test.sh --coverage # Run with coverage
./scripts/e2e-test.sh # Run E2E tests- Polkadot (Mainnet, Westend Testnet)
- Kusama (Mainnet)
- Substrate-based Parachains (Custom networks)
- Local Development (Substrate Node)
# Network
NETWORK=westend
NODE_URL=ws://localhost:9944
# Contract
CONTRACT_ACCOUNT=5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
SURI=//Alice
# Build
BUILD_MODE=debug
TARGET=wasm32-unknown-unknown- π Contract API - Complete contract interface documentation
- π Integration Guide - How to integrate with frontend applications
- π Deployment Guide - Contract deployment best practices
- ποΈ Architecture - Contract design and technical architecture
- π οΈ Development Setup - Complete development environment setup
- π Contributing Guide - How to contribute effectively
- π Tutorials - Step-by-step integration tutorials
PropChain-contract/
βββ π contracts/ # Main smart contract source code
β βββ π lib/ # Contract logic and implementations
β βββ π traits/ # Shared trait definitions
β βββ π tests/ # Contract unit tests
βββ π scripts/ # Deployment and utility scripts
βββ π tests/ # Integration and E2E tests
βββ π docs/ # Comprehensive documentation
βββ π .github/ # CI/CD workflows and issue templates
βββ π³ docker-compose.yml # Local development stack
βββ π¦ Cargo.toml # Rust project configuration
- π¦ Language: Rust - Memory safety and performance
- β‘ Framework: ink! - Substrate smart contract framework
- βοΈ Platform: Substrate/Polkadot - Enterprise blockchain framework
- π WASM: WebAssembly compilation for blockchain deployment
- π οΈ Build: Cargo - Rust package manager and build system
- π§ͺ Testing: Built-in Rust testing framework + ink! testing
- π Documentation: rustdoc - Auto-generated documentation
- π CI/CD: GitHub Actions - Automated testing and deployment
- βοΈ Networks: Polkadot, Kusama, Substrate parachains
- π Wallets: Polkadot.js, Substrate-native wallets
- π Oracles: Chainlink, Substrate price feeds
- π Explorers: Subscan, Polkadot.js explorer
- π‘οΈ Security: Formal verification with cargo-contract
- π Auditing: Comprehensive security audit process
- π Standards: ERC-721/1155 compatibility layers
- π§ͺ Testing: Property-based testing with proptest
- Property Registry Contract
- Escrow System
- Token Contract (ERC-721 compatible)
- Access Control System
- Development Environment
- CI/CD Pipeline
- Comprehensive Testing
- Documentation
- Oracle Integration
- Cross-chain Bridge
- Mobile SDK
- Advanced Analytics
- Governance System
- Insurance Integration
- Mortgage Lending Protocol
- Property Marketplace
We welcome contributions! Please read our Contributing Guide to get started.
Quick contribution steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Run tests (
./scripts/test.sh) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for complete details.
- π Report Issues: GitHub Issues
- π§ Email Support: contracts@propchain.io
- π Documentation: docs.propchain.io
- π¬ Discord: PropChain Community
- π Frontend Application - Client-side React/Next.js application
- π Security Audits - Third-party security audit reports
- π Performance Metrics - Benchmarks and optimization guides
β Star this repository if it helped you!
Made with β€οΈ by the PropChain Team