Skip to content
View STLNFTART's full-sized avatar

Highlights

  • Pro

Block or report STLNFTART

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
STLNFTART/README.md

Primal RWA Vault 🏦

Production-grade Real World Asset (RWA) tokenization platform

Built by Donte Lightfoot | nbaybt.eth


🌐 Overview

The Primal RWA Vault is a revolutionary DeFi protocol that brings $300+ trillion of real-world assets on-chain. Tokenize physical gold, real estate, vehicles, collectibles, and more into tradeable, composable digital assets.

Key Features

βœ… Secure Asset Tokenization - Convert physical assets into synthetic PRIM (sPRIM) βœ… Fractional Ownership - Split expensive assets into affordable shares (ERC1155) βœ… Chainlink Oracle Integration - Real-time price feeds for accurate valuations βœ… Multi-Signature Governance - Decentralized role-based access control βœ… Collateral Locking - Assets locked until all tokens are redeemed βœ… Emergency Controls - Pausable for security incidents βœ… Full Redemption - Exchange sPRIM for physical assets anytime


πŸ“‹ Supported Asset Types

Category Examples Market Size
Precious Metals Gold, silver, platinum bars/coins $12T+
Real Estate Homes, commercial properties, land $280T+
Vehicles Luxury cars, jets, yachts $2T+
Commodities Oil, gas, mining rights $20T+
Financial Bonds, trusts, insurance policies $400T+
Collectibles Art, watches, wine, rare items $2T+

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚           Primal RWA Vault Ecosystem                β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                                                     β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”             β”‚
β”‚  β”‚  Real Assets │───▢│    Vault     β”‚             β”‚
β”‚  β”‚ (Gold, RE,   β”‚    β”‚  (Custodian) β”‚             β”‚
β”‚  β”‚  Cars, etc.) β”‚    β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜             β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜           β”‚                      β”‚
β”‚                             β–Ό                      β”‚
β”‚                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”              β”‚
β”‚                    β”‚  PrimalRWAVaultβ”‚              β”‚
β”‚                    β”‚   (Main Logic) β”‚              β”‚
β”‚                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜              β”‚
β”‚                             β”‚                      β”‚
β”‚           β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”‚
β”‚           β–Ό                 β–Ό                 β–Ό    β”‚
β”‚    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚    β”‚ SyntheticPRIMβ”‚ β”‚ Fractional β”‚   β”‚  Price   β”‚ β”‚
β”‚    β”‚   (sPRIM)   β”‚  β”‚   Shares   β”‚   β”‚  Oracle  β”‚ β”‚
β”‚    β”‚   ERC20     β”‚  β”‚   ERC1155  β”‚   β”‚Chainlink β”‚ β”‚
β”‚    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚                                                     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Smart Contracts

  1. PrimalRWAVault.sol - Main vault logic with role-based access
  2. SyntheticPRIM.sol - ERC20 token backed 1:1 by RWAs
  3. FractionalShares.sol - ERC1155 for fractional asset ownership
  4. PriceOracle.sol - Chainlink integration for asset pricing

πŸš€ Quick Start

Installation

# Clone repository
git clone https://github.com/yourusername/STLNFTART.git
cd STLNFTART

# Install dependencies
npm install

# Copy environment file
cp .env.example .env
# Edit .env with your RPC URLs and private key

# Compile contracts
npm run compile

Testing

# Run test suite
npx hardhat test

# Run with gas reporting
REPORT_GAS=true npx hardhat test

# Run coverage
npx hardhat coverage

Deployment

# Deploy to Sepolia testnet
npm run deploy:testnet

# Deploy to mainnet (after audit!)
npm run deploy:mainnet

# Verify on Etherscan
npx hardhat verify --network sepolia <CONTRACT_ADDRESS> <CONSTRUCTOR_ARGS>

πŸ’‘ Usage Examples

1. Tokenize a Gold Bar

// Deposit 1kg gold bar with custodian
await vault.depositAsset(
  0, // PRECIOUS_METALS
  "1kg Gold Bar",
  "LBMA certified gold bar, serial #12345",
  "Brinks Vault, New York",
  ethers.id("GOLD-12345"),
  custodianAddress,
  ethers.parseEther("60000") // $60,000 USD value
);

// Appraiser verifies
await vault.connect(appraiser).verifyAsset(
  1, // assetId
  ethers.parseEther("60000"),
  legalDocHash,
  "NY, USA"
);

// Tokenize to sPRIM (1:1 collateral)
await vault.tokenizeAsset(1, 100);
// User now has ~60,000 sPRIM tokens (minus 1% fee)

2. Fractionalize a $10M Property

// After depositing and verifying real estate
await vault.fractionalizeAsset(
  assetId,
  1000 // Create 1,000 shares
);
// Each share = $10,000 worth of property
// Shares are ERC1155 tokens, fully tradeable

3. Redeem Physical Asset

// Holder of all sPRIM can redeem
await vault.redeemAsset(assetId);
// sPRIM burned, physical asset released from custody

πŸ” Security

Security Features

  • βœ… OpenZeppelin Contracts - Battle-tested libraries
  • βœ… ReentrancyGuard - Prevents reentrancy attacks
  • βœ… Role-Based Access Control - Multi-sig governance
  • βœ… Pausable - Emergency stop mechanism
  • βœ… Collateral Locking - Assets can't be withdrawn while tokenized
  • βœ… Oracle Integration - Chainlink price validation

Roles

  • DEFAULT_ADMIN_ROLE - System administrator (multi-sig recommended)
  • GOVERNANCE_ROLE - Fee management, liquidations
  • APPRAISER_ROLE - Asset verification and reappraisal
  • CUSTODIAN_MANAGER_ROLE - Approve/revoke custodians
  • EMERGENCY_ROLE - Pause/unpause contract

Audits

⚠️ NOT YET AUDITED - This code is for development/testing only. DO NOT deploy to mainnet without a professional security audit.

Recommended auditors:


πŸ“Š Economics

Revenue Streams

Fee Type Rate Applied To
Tokenization 1% Asset value at tokenization
Custody (Annual) 0.5% Asset value (paid to custodians)
Transaction 0.1% sPRIM transfers
Redemption 2% Asset value at redemption
Liquidation 5% Sale proceeds

Market Opportunity

  • Total Addressable Market: $300+ trillion in real-world assets
  • Target Capture: 0.1% = $300 billion TVL
  • Annual Revenue (at 0.1% capture): $3+ billion

πŸ›£οΈ Roadmap

Phase 1: Foundation βœ…

  • Core smart contracts
  • ERC20 sPRIM implementation
  • ERC1155 fractionalization
  • Chainlink oracle integration
  • Test suite

Phase 2: Security πŸ”„

  • Professional security audit
  • Bug bounty program
  • Multi-sig setup for governance
  • Testnet deployment & testing

Phase 3: Launch πŸ“…

  • Mainnet deployment
  • First custodian partnerships
  • Certified appraiser onboarding
  • Gold-backed tokens launch

Phase 4: Expansion πŸ“…

  • Real estate tokenization
  • Insurance provider integrations
  • Secondary market (DEX integration)
  • Mobile app

πŸ‘€ Creator

Donte Lightfoot

πŸ”— ENS: nbaybt.eth πŸ“ Location: St. Louis, Missouri πŸ’Ό Focus: Smart Contracts & DeFi Protocols 🌐 Expertise: Blockchain, Web3, NFTs, RWA Tokenization

Current Projects:

  • Multi Heart Model
  • MotorHandPro
  • Quantro Heart Model
  • Primal Quant Ecosystem
  • RWA Vault (This Project)

Motto: "Recursive Iteration - There's Power in Posterity"

Technology Stack

  • Blockchain: Ethereum, Solidity, Hardhat, Ethers.js
  • Languages: JavaScript, TypeScript, Solidity, Python
  • Frameworks: React, Node.js, Next.js
  • Tools: Git, Docker, IPFS, The Graph, Chainlink

πŸ“„ License

MIT License - See LICENSE file for details.


🀝 Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

⚠️ Disclaimer

This software is provided "as is" without warranty. Real-world asset tokenization involves complex legal and regulatory considerations. Consult with legal professionals before deploying. The creators are not responsible for any financial losses.


πŸ“ž Contact & Support


Built with ❀️ by nbaybt.eth

Bridging Traditional Finance and DeFi

Popular repositories Loading

  1. hello-world. hello-world. Public

    1

  2. GitHub GitHub Public

    1

  3. Bible-kjv Bible-kjv Public

    Forked from aruljohn/Bible-kjv

    Bible chapters and verses in JSON format. Each of the 66 books is a separate JSON file.

    1

  4. RNN-stocks-prediction RNN-stocks-prediction Public

    Forked from SolbiatiAlessandro/RNN-stocks-prediction

    Another attempt to use Deep-Learning in the financial markets

    Jupyter Notebook 1

  5. tak-server tak-server Public

    Forked from Cloud-RF/tak-server

    TAK Server docker setup

    Shell 1

  6. FreeTAKHub-Installation1 FreeTAKHub-Installation1 Public

    Forked from FreeTAKTeam/FreeTAKHub-Installation

    this repository contains the Ansible code that is used by the ZeroTouch installer

    Jinja 1