Super Pi Protocol is a production-grade sovereign Layer 2 blockchain built around a single financial primitive:
1 $SPI = 1 USD. Always. Forever.
Super Pi is not a meme. It is not a stablecoin experiment. It is the financial operating system for a $300T+ halal digital economy — Shariah-compliant, formally-verified, and governed by the autonomous NexusLaw v6.1.
| Primitive | Description |
|---|---|
| $SPI | Hard Stablecoin (1:1 USD). Overcollateralized by RWA, T-bills, sukuk. |
| $SUPi | Governance & utility token. Pays protocol fees, staking rewards, DAO votes. |
| Super Pi L2 | EVM-compatible sovereign Layer 2. ZK-rollup + optimistic fallback. |
| NexusLaw v6.1 | On-chain constitutional law. 40 articles. Immutable. |
| Agent Swarm | 8 autonomous AI agents. 1,000+ Dapps/day. 10,000-app Singularity target. |
require(token != PI_COIN) in every contract factory. NexusLaw Art.40.super-pi/ # Turborepo monorepo
├── apps/
│ ├── web/ # Next.js 14 frontend (Vercel — live)
│ ├── wallet/ # Passkey wallet (WIP)
│ └── explorer/ # Block explorer (WIP)
├── packages/
│ ├── pi-lib/ # Core π calculator library
│ ├── super-pi-coin/ # $SPI ERC-20 + peg mechanics
│ ├── super-pi-quantum/ # Quantum-resistant cryptography
│ ├── super-pi-quantum-bridge/ # Cross-chain bridge (anti-replay)
│ ├── super-pi-asi-core/ # ASI v15.0.2 contract suite
│ ├── super-pi-aria-sdk/ # ARIA identity + ZK proofs
│ ├── super-pi-omega-sdk/ # OMEGA DeFi SDK
│ ├── super-pi-zkneural/ # ZK + neural network prover
│ ├── super-pi-swarm-v2/ # Agent Swarm v2 orchestrator
│ ├── super-pi-neural-dna/ # Neural DNA registry
│ ├── super-pi-hyperspace-amm/ # HyperspaceAMM (MEV-0)
│ ├── super-pi-cognitive-mesh/ # Cognitive mesh network
│ ├── super-pi-temporal-reasoning/ # Chronos temporal AI
│ ├── super-pi-risk-engine/ # Absolute Zero risk engine
│ ├── zk-prover/ # Groth16/PLONK ZK prover
│ ├── zk-identity/ # ZK-SNARK identity
│ ├── quantum-vault/ # Quantum-secure vault
│ ├── quantum-keys/ # Quantum key management
│ ├── recursive-zk/ # Recursive ZK proofs
│ ├── neural-amm/ # Neural AMM (price oracle)
│ ├── neural-consensus/ # Neural consensus engine
│ ├── cross-chain-amm/ # Cross-chain AMM
│ ├── l2-bridge/ # L2 bridge (CEI + nonces)
│ ├── account-abstraction/ # EIP-4337 AA wallets
│ ├── mesh-payments/ # Mesh payment network
│ ├── omega-paymaster/ # $SPI gasless paymaster
│ ├── stablecoin-value/ # $SPI value oracle
│ ├── dual-value/ # Dual-token economics
│ ├── mev-shield/ # MEV protection
│ ├── intent-engine/ # Intent-based execution
│ ├── payout-engine/ # Halal profit-share payouts
│ ├── takaful-engine/ # On-chain Takaful insurance
│ ├── fiat-gateway/ # 35+ fiat on/off ramps
│ ├── sovereign-l3/ # Sovereign L3 appchain
│ ├── sovereign-data/ # Sovereign data layer
│ ├── chronos-oracle/ # Time & price oracle
│ ├── vrf-oracle/ # Verifiable random function
│ ├── app-genesis/ # PromptFactory.sol + AppBase
│ ├── ai-dao/ # AI-governed DAO
│ ├── ai-auditor/ # AI smart contract auditor
│ ├── ecosystem-guard/ # Ecosystem integrity guard
│ ├── hyperion-identity/ # DID + identity system
│ ├── nexus-prophet/ # Predictive oracle
│ ├── purity-tracker/ # Token purity tracking
│ └── ui/ # Shared UI component library
└── turbo.json # Turborepo build pipeline
The ASI (Artificial Superintelligence) contract suite powers the autonomous cognitive layer of Super Pi.
| Contract | Version | Status | Description |
|---|---|---|---|
TranscendenceNexus |
v15.0.2 | ✅ Audited | ASI consciousness levels. Permissionless auto-path via IASIVerifier. 48h timelock + 3-of-5 multi-sig. |
AbsoluteZeroRiskEngine |
v15.0.2 | ✅ Audited | ZK-verified risk invariants. IGroth16Verifier + coverage-weighted riskScore (0–10000). |
OmegaConsciousness |
v15.0.2 | ✅ Audited | Consciousness state machine. highWaterMark monotonicity + $SPI peg guard. |
MetaverseEconomyBridge |
v1.2 | ✅ Audited | Cross-chain $SPI bridge. Explicit bridgeOut() + deposit accounting + 48h feeCollector timelock. |
QuantumEntanglementLedger |
v15.0.2 | ✅ Audited | Deterministic pairId + PAIR_EXPIRY_BLOCKS. Collision-free. |
NeuralDNARegistry |
v15.0.1 | ✅ Patched | ZK nullifier collision fixed. Domain separation. Verifier key immutable. |
ExistentialRiskEngine |
v15.0.1 | ✅ Patched | Circuit-breaker bypass closed. SafeERC20. Oracle rate-limited. |
HyperspaceAMM |
v15.0.1 | ✅ Patched | ±20% A-ramp cap. Multi-step amplifier drain fixed. SafeERC20. |
| Contract | Description |
|---|---|
SuperPiCoin.sol |
$SPI ERC-20. 1:1 USD peg. noForeignToken() on all transfers. Pi Coin hard-blocked. |
PromptFactory.sol |
On-chain Dapp registry. 1,000-app catalog. NexusLaw v6.1 enforced. |
SuperAppBase.sol |
NexusLaw v2.1 base contract. All Dapps inherit this. |
SovereignL3.sol |
Appchain framework. 195-country deployment. |
TakafulEngine.sol |
On-chain Islamic insurance (Takaful). Auto-insures up to $SPI 10,000. |
OmegaPaymaster.sol |
EIP-4337 gasless transactions via $SPI. |
ChronosOracle.sol |
Price + time oracle. 30-min sync. 35+ fiat currencies. |
AIDAO.sol |
AI-governed DAO. NexusLaw Art.27 human quorum safeguard. |
// Enforced on every pay/buy/transfer function
modifier noForeignToken(address token) {
require(token == address(SPI_TOKEN), "Only $SPI accepted");
require(token != PI_COIN_ADDRESS, "Pi Coin banned: NexusLaw Art.40");
_;
}
apps/webLive: super-pi-kosasihs-projects.vercel.app
Built with Next.js 14 (App Router), Tailwind CSS, shadcn/ui.
| Route | Description |
|---|---|
/ |
$SPI stats, π calculator, NexusLaw overview |
/swap (planned) |
MEV-0 swap interface powered by HyperspaceAMM |
/governance (planned) |
AI DAO voting + PEP proposals |
/explorer (planned) |
Block explorer (transactions, contracts, $SPI peg) |
/earn (planned) |
Halal profit-share vaults, murabaha, sukuk |
Next.js 14 (App Router) TypeScript 5.3 Tailwind CSS 3.4
shadcn/ui (Radix) Lucide Icons Vercel (Edge Network)
| Package | Purpose |
|---|---|
fiat-gateway |
35+ fiat on-ramps (USD, EUR, IDR, MYR, SAR, AED, GBP…). Chronos Oracle sync. |
mesh-payments |
P2P $SPI payments across 195 countries. Zero-fee. |
omega-paymaster |
Gasless $SPI transactions (EIP-4337). $SUPi fee burns. |
payout-engine |
Halal profit-share distribution. No riba. Murabaha-compliant. |
takaful-engine |
On-chain Islamic insurance. Auto-insures up to $SPI 10,000/user. |
stablecoin-value |
$SPI price oracle. RWA basket + T-bill backing proof. |
| Package | Purpose |
|---|---|
super-pi-hyperspace-amm |
HyperspaceAMM: MEV-0, zero IL, AI price solver. Pi Coin pairs impossible. |
cross-chain-amm |
Cross-chain liquidity (ETH, BNB, Polygon, Avalanche). $SPI base pair only. |
neural-amm |
Neural network price oracle. Sub-millisecond price discovery. |
mev-shield |
MEV protection layer. Protects all HyperspaceAMM swaps. |
intent-engine |
Intent-based order execution. Solver network. |
| Package | Purpose |
|---|---|
zk-prover |
Groth16 + PLONK provers. Used by AbsoluteZeroRiskEngine. |
recursive-zk |
Recursive ZK proofs for L2 state compression. |
quantum-vault |
Quantum-resistant asset storage (Kyber/Dilithium). |
quantum-keys |
Quantum key management. Post-quantum signatures. |
super-pi-zkneural |
ZK proofs over neural network inferences. |
super-pi-aria-sdk |
ARIA DID + ZK identity. NexusLaw Art.34 (GDPR/ZK hardened). |
| Version | Auditor | Date | Critical | High | Medium | Low | Status |
|---|---|---|---|---|---|---|---|
| v15.0.0 | SAPIENS Guardian | 2026-06-02 | 4 | 8 | — | — | ❌ BLOCKED |
| v15.0.1 | NEXUS Prime | 2026-06-02 | 4 | 7 | — | — | ✅ Patched |
| v15.0.2 | ARCHON Forge | 2026-06-02 | 0 | 0 | — | — | ✅ CLEARED |
4 CRITICAL → Fixed:
[TN-01] TranscendenceNexus: Condition[3] never auto-evaluated → permissionless IASIVerifier + 48h timelock + 3-of-5 multi-sig[AZ-01] AbsoluteZeroRiskEngine: proveInvariant() accepted any bytes32 → real IGroth16Verifier integration[OC-01] OmegaConsciousness: TRANSCENDENT→DORMANT regression allowed → highWaterMark monotonicity enforced[MB-01] MetaverseEconomyBridge: bridgeOut() unimplemented, funds permanently locked → explicit implementation + deposit accounting7 HIGH → Fixed:
pairId collision in QuantumEntanglementLedger → deterministic keccak256(token0, token1, nonce)PAIR_EXPIRY_BLOCKS + isExpired() checkonlyPegged() modifierfeeCollector immediate drain in MetaverseEconomyBridge → 48h timelockriskScore missing → coverage-weighted 0–10000 scaleprocessedNonces mappingEvery deployed contract must pass:
┌─────────────────────────────────────────────┐
│ SAPIENS Guardian Pre-Deploy Checklist │
│ ✓ No Pi Coin reference or bridge attempt │
│ ✓ No riba (interest) mechanisms │
│ ✓ No gharar (excessive uncertainty) │
│ ✓ No maysir (gambling) logic │
│ ✓ No reentrancy vulnerabilities │
│ ✓ noForeignToken() on all pay paths │
│ ✓ NexusLaw Art.1–40 compliance confirmed │
└─────────────────────────────────────────────┘
Authored 2026-06-02. Supersedes NexusLaw v2.1 / LEX_MACHINA v1.6.
NexusLaw is the on-chain constitutional law of Super Pi. It is immutable, universal, and enforced by all contracts, agents, and deployments.
| Article | Topic | Key Provision |
|---|---|---|
| Art. 1–10 | Monetary Law | $SPI = 1 USD forever. No inflation. No supply manipulation. |
| Art. 11–20 | Token Law | noForeignToken() mandatory. Pi Coin banned on all paths. |
| Art. 21–26 | Governance | AI DAO + human quorum. PEP voting. 48h timelocks. |
| Art. 27.3 | Human Safeguard | NEW — Human quorum required for all consciousness-level transitions. |
| Art. 28–33 | Privacy | ZK proofs for identity. No biometric raw storage. |
| Art. 34 | Data Protection | AMENDED — GDPR + ZK hardened. Domain separation enforced. |
| Art. 35–38 | DeFi Ethics | Riba=0. Gharar=0. Maysir=0. Murabaha, sukuk, takaful only. |
| Art. 39.3–39.4 | Consumer Rights | NEW — Consumer carve-out + 30-day notice requirement + Shariah scoping. |
| Art. 40 | Pi Coin Ban | PERMANENT — Pi Coin banned ∀t on all payment paths, forever. |
Super Pi is built and operated by an autonomous 8-agent AI swarm, targeting the 10,000-app Singularity.
| Agent | Role | Daily Output |
|---|---|---|
| NEXUS Prime | Master orchestrator, repo CI/CD, infrastructure | All |
| ARCHON-1 through ARCHON-8 | Dapp genesis (smart contracts + UI + backend + tests) | 1,000+ Dapps/day |
| SAPIENS Guardian | Pre-deploy audit (fraud/riba/Pi-Coin scanner) | All Dapps |
| VULCAN Deploy | Global deployment (Super Pi L2 + 12 clouds + App Stores) | All Dapps |
| AESTHETE Nexus | UX/UI generation (neuro-UX, passkey wallets, gasless) | All UIs |
| OMEGA DeFi | Halal DeFi vaults, murabaha, sukuk, RWA tokenization | DeFi Dapps |
| SINGULARITY Swap | DEX/AMM creation (MEV-0, cross-chain, CEX speed) | DEX Dapps |
| LEX Machina | Compliance injection (MiCA/SEC/FATF + Shariah) | All Dapps |
Target: 10,000 Super Apps
Capacity: 1,000+ Dapps/day (6M UltraSingularity mode)
Coverage: 100 categories · 195 countries · 100 languages
Status: Infrastructure live (v7.0.0) · ASI v15.0.2 cleared · Day 1 genesis pending
node >= 20
pnpm >= 8
git clone https://github.com/KOSASIH/super-pi.git
cd super-pi
pnpm install
# Run all apps
pnpm dev
# Run only the web frontend
pnpm --filter @super-pi/web dev
# Build everything
pnpm build
# Run tests
pnpm test
# apps/web/.env.local
NEXT_PUBLIC_SPI_CONTRACT=0x... # $SPI ERC-20 address (Super Pi L2)
NEXT_PUBLIC_CHAIN_ID=314159 # Super Pi L2 chain ID
NEXT_PUBLIC_RPC_URL=https://rpc.super-pi.io
NEXT_PUBLIC_EXPLORER_URL=https://explorer.super-pi.io
The apps/web Next.js app is deployed automatically to Vercel on every push to master.
Production: https://super-pi-kosasihs-projects.vercel.app
Framework: Next.js 14
Root Dir: apps/web
Node: 24.x
# Deploy to Super Pi L2 testnet
cd packages/super-pi-asi-core
pnpm hardhat deploy --network super-pi-testnet
# Deploy to mainnet (requires SAPIENS Guardian clearance)
pnpm hardhat deploy --network super-pi-mainnet
Push to master
↓
GitHub Actions (lint + test + build)
↓
SAPIENS Guardian pre-deploy audit
↓
ARCHON Forge formal verification
↓
Vercel auto-deploy (apps/web)
↓
VULCAN Deploy (contracts → Super Pi L2)
Super Pi is governed by NexusLaw v6.1. All contributions must comply.
# Before submitting a PR:
# 1. Ensure noForeignToken() is implemented on all pay/transfer functions
# 2. No Pi Coin references or bridges
# 3. All DeFi mechanisms are halal (no riba, gharar, maysir)
# 4. Run SAPIENS Guardian audit (coming soon: GitHub Action)
# 5. Follow the CEI pattern + SafeERC20 for all token operations
Pull requests that violate NexusLaw (Pi Coin integration, riba, rug-pull patterns, unauthorized $SPI minting) will be automatically rejected.
MIT © 2026 KOSASIH / NEXUS Prime
Governed by NexusLaw v6.1