Skip to content

Repository files navigation

SolaryRWA — Tokenized T-Bills on Solana

Production-grade Real-World Asset (RWA) smart contracts for tokenized US Treasury Bills on Solana, built with Anchor 0.32.1, Solana 2.3, and Token-2022 v8.

Deposit USDC → receive yield-bearing tRWA tokens backed by T-Bills, with on-chain compliance, proof-of-reserves, and T+1 redemption.

Telegram Twitter Gmail

Architecture

Five modular on-chain programs:

Program Role
compliance-registry KYC/AML identity, jurisdiction rules, transfer policy
transfer-hook Token-2022 hook — enforces compliance on every transfer
token-controller Token-2022 mint (InterestBearing, TransferHook, PermanentDelegate)
subscription-vault USDC ↔ tRWA subscribe / redeem with NAV pricing
treasury-manager Proof-of-Reserves attestations, AUM tracking, fees

See docs/ARCHITECTURE.md for the full system design.

Quick Start

Prerequisites

Install on Linux/macOS or WSL2 (recommended on Windows):

# Rust (1.89+ required by Anchor 0.32 IDL build)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup install 1.89.0 && rustup default 1.89.0

# Solana CLI (2.3.0 recommended)
sh -c "$(curl -sSfL https://release.anza.xyz/v2.3.0/install)"

# Anchor (AVM)
cargo install --git https://github.com/solana-foundation/anchor avm --locked
avm install 0.32.1 && avm use 0.32.1

# Node deps
npm install

Build & Test

anchor build
anchor keys sync    # writes unique program IDs
anchor test         # spins up local validator + runs tests

Deploy (localnet)

solana-test-validator   # separate terminal
anchor deploy
npx ts-node scripts/seed-compliance.ts

Project Structure

programs/
  compliance-registry/   # KYC + jurisdiction
  transfer-hook/           # Token-2022 transfer enforcement
  token-controller/        # Mint authority + extensions
  subscription-vault/      # Subscribe / redeem
  treasury-manager/        # PoR + AUM
tests/                     # Integration tests
sdk/                       # TypeScript client helpers
scripts/                   # Deploy + seed utilities
docs/                      # Architecture & compliance docs

Key Features

  • Token-2022 InterestBearing — native on-chain yield accrual (~5% APY from T-Bills)
  • Transfer Hook compliance — every transfer checks KYC + jurisdiction
  • NAV-based pricing — subscribe/redeem at fair value
  • T+1 redemption queue — realistic settlement for T-Bill liquidity
  • Proof of Reserves — on-chain attestations with collateralization floor
  • PermanentDelegate clawback — regulatory recovery (governance-gated)

Documentation

About

Production-grade tokenized US Treasury Bills on Solana. RWA protocol built with Anchor 0.32, Token-2022 extensions, on-chain compliance, and proof-of-reserves.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages