diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..daced9b --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,65 @@ +# CLAUDE.md + +Behavioral guidelines to reduce common LLM coding mistakes. Merge with project-specific instructions as needed. + +**Tradeoff:** These guidelines bias toward caution over speed. For trivial tasks, use judgment. + +## 1. Think Before Coding + +**Don't assume. Don't hide confusion. Surface tradeoffs.** + +Before implementing: +- State your assumptions explicitly. If uncertain, ask. +- If multiple interpretations exist, present them - don't pick silently. +- If a simpler approach exists, say so. Push back when warranted. +- If something is unclear, stop. Name what's confusing. Ask. + +## 2. Simplicity First + +**Minimum code that solves the problem. Nothing speculative.** + +- No features beyond what was asked. +- No abstractions for single-use code. +- No "flexibility" or "configurability" that wasn't requested. +- No error handling for impossible scenarios. +- If you write 200 lines and it could be 50, rewrite it. + +Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify. + +## 3. Surgical Changes + +**Touch only what you must. Clean up only your own mess.** + +When editing existing code: +- Don't "improve" adjacent code, comments, or formatting. +- Don't refactor things that aren't broken. +- Match existing style, even if you'd do it differently. +- If you notice unrelated dead code, mention it - don't delete it. + +When your changes create orphans: +- Remove imports/variables/functions that YOUR changes made unused. +- Don't remove pre-existing dead code unless asked. + +The test: Every changed line should trace directly to the user's request. + +## 4. Goal-Driven Execution + +**Define success criteria. Loop until verified.** + +Transform tasks into verifiable goals: +- "Add validation" → "Write tests for invalid inputs, then make them pass" +- "Fix the bug" → "Write a test that reproduces it, then make it pass" +- "Refactor X" → "Ensure tests pass before and after" + +For multi-step tasks, state a brief plan: +``` +1. [Step] → verify: [check] +2. [Step] → verify: [check] +3. [Step] → verify: [check] +``` + +Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification. + +--- + +**These guidelines are working if:** fewer unnecessary changes in diffs, fewer rewrites due to overcomplication, and clarifying questions come before implementation rather than after mistakes. diff --git a/CONTENT-REVIEW-PIVOT.md b/CONTENT-REVIEW-PIVOT.md new file mode 100644 index 0000000..a334167 --- /dev/null +++ b/CONTENT-REVIEW-PIVOT.md @@ -0,0 +1,106 @@ +# Content Review: Cambodia Pivot Alignment + +**Date:** 2026-04-17 +**Status:** Complete + +## Summary + +All content has been reviewed and aligned with Selendra's strategic pivot from "global public L1 blockchain" to "Cambodia-specific application infrastructure." + +## The Pivot + +**Key Changes:** +1. NO global ambitions — Cambodia only until domestic traction +2. Selendra is INVISIBLE to end users — "blockchain" in marketing = instant turnoff +3. KOOMPI owns the stack: StadiumX, Riverbase, Bitriel Bong, Baray, Selendra +4. NO stablecoin on Selendra — use existing USDC/USDT on Base/BSC +5. NO bridging — USDC stays on native chains +6. Internal bootstrapping — ship own products first + +## Files Changed + +### REWRITTEN + +| File | Changes | +|------|---------| +| `content/paper/whitepaper.md` | v6.0 → v7.0. Removed global expansion (Thailand, Vietnam), removed CEX/DEX plans, added KOOMPI product stack, clarified no stablecoin/bridge strategy | +| `content/docs/concepts/tokenomics.md` | Removed CEX listing, DEX launch, wSEL on Ethereum plans. Added internal bootstrapping focus, success metrics before exchange listings | +| `content/docs/concepts/economic-model.md` | Aligned with pivot. Added stablecoin strategy section (no native stablecoin, use existing) | +| `content/blog/selendra-2026-vision.md` | Removed regional expansion, CEX/DEX plans. Added Cambodia-first focus, KOOMPI product stack, no exchange plans until domestic traction | + +### ARCHIVED (moved to `content/archived/`) + +| File | Reason | +|------|--------| +| `content/biz/selendra-stablecoin-concept.md` | Contradicts pivot — NO stablecoin on Selendra. We use existing USDC/USDT on native chains | +| `content/biz/technical/evm-first-design.md` | Premature implementation detail. Technically valid but not currently prioritized | + +### KEPT (no changes needed) + +| File | Reason | +|------|--------| +| `content/docs/concepts/architecture.md` | Technical documentation, accurate | +| `content/docs/cambodia-opportunity.md` | Showcase page for why Selendra exists, already aligned | +| `content/blog/introducing-selendra.md` | General introduction, focuses on Cambodia/SEA | +| `content/blog/running-mainnet-lessons-learned.md` | Technical lessons, still accurate | +| `content/blog/performance-upgrade-block-time.md` | Pure technical content | +| `content/blog/wdk-integration.md` | Technical WDK integration, accurate | +| `content/blog/unified-accounts-architecture.md` | Technical architecture, accurate | +| `content/blog/dual-smart-contracts.md` | Technical content about EVM/WASM | +| `content/blog/2025-roadmap-validator-expansion.md` | Technical validator roadmap, still accurate | + +All developer documentation (SDK, smart contracts, tools, run nodes) kept intact as technically accurate. + +## Key Messaging Changes + +### Before +- "Global L1 blockchain for Southeast Asia" +- "Thailand, Vietnam expansion in 2027" +- "CEX listings (MEXC, Gate.io)" +- "DEX launch (SEL/USDT)" +- "wSEL on Ethereum (Uniswap)" +- "KHR-pegged stablecoin (sKHR)" + +### After +- "Cambodia-specific application infrastructure" +- "No regional expansion until domestic traction proven" +- "No exchange plans until Cambodia success metrics met" +- "No native stablecoin — use existing USDC/USDT" +- "No bridging — stablecoins stay on native chains" +- "Internal bootstrapping through KOOMPI products" + +## Success Metrics Before Expansion + +- 1,000+ active Riverbase merchants +- 100,000+ Bitriel Bong users +- 3+ government ministry partnerships +- Sustained daily transaction volume + +## KOOMPI Product Stack (Featured) + +1. **StadiumX** — Sports platform (tickets, loyalty, athlete tokens) +2. **Riverbase** — E-commerce for Cambodian SMEs (~100 merchants live) +3. **Bitriel Bong** — Tourist payment app (chain-agnostic, optional Selendra backend) +4. **Baray** — Banking API for financial services +5. **Selendra** — Ledger backend for all the above + +## Technical Accuracy Preserved + +All technical documentation remains accurate: +- EVM/WASM dual VM architecture +- Unified accounts (0x... addresses) +- Consensus (Aura + AlephBFT) +- Staking mechanics +- SDK, CLI, smart contract docs +- Security documentation + +Only strategic messaging changed. Technical details intact. + +## Next Steps + +1. ✅ All content aligned with pivot +2. ✅ Archived outdated concepts +3. ✅ Whitepaper updated to v7.0 +4. ✅ Tokenomics reflects actual strategy +5. → Commit changes with clear message +6. → Update website to reflect new messaging diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 988ab9c..ad98126 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -82,6 +82,91 @@ pnpm start ## How to Contribute +### Smart Contract Contributions + +Selendra smart contracts use Foundry for testing and deployment. + +**Setup** +```bash +# Install Foundry +curl -L https://foundry.paradigm.xyz | bash +foundryup + +# Navigate to contracts directory +cd contracts/ + +# Install dependencies +forge install +``` + +**Testing** +```bash +# Run all tests +forge test + +# Run tests with gas reporting +forge test --gas-report + +# Run specific test +forge test --match-test testWithdraw +``` + +**Requirements** +- All tests must pass before PR submission +- Gas optimizations must not break functionality +- Follow Solidity 0.8.x style guidelines +- Include NatSpec comments for all public functions + +**PR Process** +1. Create branch from `main` +2. Write tests for new functionality +3. Ensure `forge test` passes with 100% coverage for new code +4. Submit PR with description of changes +5. Address review feedback + +### Documentation Contributions + +We welcome documentation improvements! + +**Style Guide** +- Use clear, concise language +- Target technical audience (developers, node operators) +- Include code examples for all API references +- Test your changes locally before submitting + +**How to Contribute** +1. Small fixes: Use "Edit this page" link at bottom +2. Larger changes: Create issue first, then submit PR +3. New content: Discuss in GitHub issue before writing + +**Documentation Structure** +- `content/docs/` — Main documentation +- `content/paper/` — Whitepaper +- `content/blog/` — Blog posts + +### WDK Module Contributions + +The Tether WDK (Wallet Development Kit) integration uses a modular architecture. + +**Adding New Chain Modules** + +1. Create module in `contracts/wdk/modules/` +2. Implement required interfaces: + - `IWalletModule` + - `IGaslessModule` (if applicable) + - `ISwapModule` (if applicable) + - `IBridgeModule` (if applicable) + +3. Add module configuration in `contracts/wdk/config/` +4. Write tests for all module functions +5. Update documentation with chain-specific parameters + +**Module Requirements** +- Gasless transactions must use ERC-4337 +- Swap modules must support SEL/USDT pairs +- Bridge modules must verify on-chain finality +- All modules must pass Foundry tests + ### Reporting Issues 1. **Bug Reports**: If you find errors in the documentation, broken links, or incorrect information diff --git a/app/bitriel-bong/page.tsx b/app/bitriel-bong/page.tsx new file mode 100644 index 0000000..b7807fe --- /dev/null +++ b/app/bitriel-bong/page.tsx @@ -0,0 +1,447 @@ +import { Header } from "@/components/header" +import { Footer } from "@/components/footer" +import { SkipNav } from "@/components/skip-nav" +import { ButtonStark } from "@/components/ui/button-stark" +import { ScrollReveal } from "@/components/scroll-reveal" +import Link from "next/link" +import type { Metadata } from "next" + +export const metadata: Metadata = { + title: "Bitriel Bong | Tourist Payments for Cambodia", + description: "Pay any merchant in Cambodia with USDC. No bank account needed. Scan KHQR codes instantly.", +} + +const painPoints = [ + { + title: "International Cards Fail", + description: "Visa/Mastercard work at hotels and malls. Small merchants? Street food? Tuk-tuks? No chance.", + }, + { + title: "Cash is a Hassle", + description: "Find exchange office. Accept bad rates. Carry wads of USD. Hope you have exact change.", + }, + { + title: "Bakong Tourist = KYC", + description: "Full KYC verification. Bank-grade setup. Tourists just want to pay, not open a bank account.", + }, + { + title: "Apple Pay? Google Pay?", + description: "Not widely accepted in Cambodia. KHQR is the standard—but you need a Cambodian bank.", + }, +] + +const features = [ + { + title: "Zero Merchant Onboarding", + description: "KHQR codes are everywhere. Restaurants, tuk-tuks, markets, hotels. No new hardware. No new software.", + }, + { + title: "Zero Transaction Fees", + description: "Pay $1.50 for coffee without fees eating the transaction. No hidden costs.", + }, + { + title: "Gasless for Users", + description: "Tourists never pay gas fees. Users just scan and pay.", + }, + { + title: "Tiered KYC", + description: "Unverified: $100/day. Lite: $500/day. Verified: $5K/day. Start using immediately.", + }, + { + title: "Full-Reserve Backing", + description: "Every dollar backed 1:1. Transparent reserve backing. Auditable anytime.", + }, + { + title: "Multi-Chain Top-Up", + description: "Top up from Base, Solana, BSC, Polygon, or card. Use what you have.", + }, +] + +const forTourists = [ + "No Cambodian bank account needed", + "No KYC for basic use (up to $100/day)", + "Pay at restaurants, tuk-tuks, hotels, markets", + "See exchange rate before paying", + "Leftover balance: donate to Cambodia or cash out", +] + +const forMerchants = [ + "Zero changes needed (KHQR already printed)", + "Receive USD directly (no crypto exposure)", + "No new hardware or software", + "Settlement via existing bank relationship", +] + +const roadmap = [ + { + phase: "Q2 2026", + title: "Design + Security", + items: ["UX design finalization", "Security architecture review", "Payment integration testing"], + }, + { + phase: "Q3 2026", + title: "Beta Launch", + items: ["Phnom Penh pilot", "100 merchant onboarding", "iOS + Android release"], + }, + { + phase: "Q4 2026", + title: "Cambodia-Wide Rollout", + items: ["Siem Reap expansion", "Sihanoukville coastal launch", "Tourism partnerships"], + }, + { + phase: "2027", + title: "Regional Expansion", + items: ["Thailand market entry", "Vietnam market entry", "Cross-border KHQR payments"], + }, +] + +export default function BitrielBong() { + return ( +
+ +
+ +
+ {/* External Site Banner */} +
+
+
+ Our partner app for tourist payments + + Visit bitriel.com → + +
+
+
+ + {/* Hero Section */} +
+
+
+ PAYMENT APP FOR CAMBODIA +
+

+ Bitriel Bong +

+

+ Pay any merchant in Cambodia. No bank account needed. +

+

+ Top up with USDC, scan any KHQR, pay instantly. The simplest way for tourists to spend in Cambodia. +

+
+
+ + {/* How It Works */} +
+
+
+
How It Works
+

+ Three Steps. Done. +

+
+ +
+ +
+
+ STEP 01 +
+

Top Up

+

+ Add USDC from your crypto wallet or exchange. Your balance is ready instantly. +

+
+
+ + +
+
+ STEP 02 +
+

Scan & Pay

+

+ Point your camera at any KHQR code in Cambodia. Every merchant has one. +

+
+
+ + +
+
+ STEP 03 +
+

Done

+

+ Merchant receives USD directly. No fees for you. Payment complete. +

+
+
+
+
+
+ + {/* The Problem */} +
+
+
+
The Problem
+

+ Why Tourists Struggle in Cambodia +

+
+ +
+ {painPoints.map((point, index) => ( + +
+

{point.title}

+

+ {point.description} +

+
+
+ ))} +
+
+
+ + {/* The Technology */} +
+
+
+
The Technology
+

+ How It Works +

+
+ +
+
+
+
User
+
Taps "Pay"
+
+
+
+
Bitriel Bong App
+
Scans KHQR
+
+
+
+
Baray API
+
Routes payment
+
+
+
+
KHQR
+
Merchant receives USD
+
+
+
+
Merchant Bank
+
Settlement
+
+
+
+

+ "Top up from any chain. Pay in USD. Simple." +

+
+
+
+
+ + {/* Key Features */} +
+
+
+
Features
+

+ Built for Real-World Use +

+
+ +
+ {features.map((feature, index) => ( + +
+

{feature.title}

+

+ {feature.description} +

+
+
+ ))} +
+
+
+ + {/* For Tourists & Merchants */} +
+
+
+ {/* For Tourists */} +
+
+
For Tourists
+

+ Spend Freely +

+
+
    + {forTourists.map((item, index) => ( +
  • + + ✓ + + {item} +
  • + ))} +
+
+ + {/* For Merchants */} +
+
+
For Merchants
+

+ Zero Changes Needed +

+
+
    + {forMerchants.map((item, index) => ( +
  • + + ✓ + + {item} +
  • + ))} +
+
+
+
+
+ + {/* Safety & Security */} +
+
+
+
Safety
+

+ Your Funds Are Safe +

+
+ +
+
+

Full-Reserve Model

+

+ Your balance is always backed 1:1. Every dollar in user accounts is held in reserve. No fractional banking. +

+
+ +
+

Transparent Reserves

+

+ Reserve vault is auditable anytime. Anyone can verify that user balances match holdings. +

+
+ +
+

Enterprise-Grade Security

+

+ Multi-layer security architecture. Regular audits. Industry best practices for fund protection. +

+
+ +
+

No Volatility Exposure

+

+ Balances in USD-backed stablecoins only. No token price risk. What you top up is what you spend. +

+
+
+
+
+ + {/* Roadmap */} +
+
+
+
Roadmap
+

+ Coming Soon +

+
+ +
+ {roadmap.map((item, index) => ( + +
+
+ {item.phase} +
+

{item.title}

+
    + {item.items.map((subItem, subIndex) => ( +
  • + + {subItem} +
  • + ))} +
+
+
+ ))} +
+
+
+ + {/* CTA */} +
+
+
+
+ Coming Soon +
+

+ Be the First to Try Bitriel Bong +

+

+ Join the beta waitlist. Early access for tourists visiting Cambodia in 2026. +

+
+ + + Visit bitriel.com + + + + + Learn More → + + +
+

+ Visit bitriel.com for the full product experience. +

+

+ Read the technical deep-dive in our whitepaper section 14. +

+
+
+
+
+ +
+ ) +} diff --git a/app/brand-assets/page.tsx b/app/brand-assets/page.tsx new file mode 100644 index 0000000..f9156e6 --- /dev/null +++ b/app/brand-assets/page.tsx @@ -0,0 +1,273 @@ +"use client"; + +import { Header } from "@/components/header" +import { Footer } from "@/components/footer" +import { SkipNav } from "@/components/skip-nav" +import { ButtonStark } from "@/components/ui/button-stark" +import { Download, Copy } from "lucide-react" +import Image from "next/image" +import Link from "next/link" + +const logoAssets = [ + { + name: "Selendra Logo", + file: "/selendra-logo.png", + description: "Primary logo for all applications", + minSize: "32px", + }, + { + name: "Selendra Logo (Small)", + file: "/selendra-logo-small.png", + description: "Compact logo variant for tight spaces", + minSize: "24px", + }, +] + +const colors = { + primary: [ + { name: "Selendra 50", hex: "#e6faf8" }, + { name: "Selendra 100", hex: "#b3f0ea" }, + { name: "Selendra 200", hex: "#80e6dc" }, + { name: "Selendra 300", hex: "#4ddcce" }, + { name: "Selendra 400", hex: "#26d4c3" }, + { name: "Selendra 500", hex: "#0db0a4", label: "Primary" }, + { name: "Selendra 600", hex: "#0a9389" }, + { name: "Selendra 700", hex: "#087670" }, + { name: "Selendra 800", hex: "#065a56" }, + { name: "Selendra 900", hex: "#043d3b" }, + ], + neutrals: [ + { name: "White", hex: "#ffffff" }, + { name: "Black", hex: "#000000" }, + { name: "Gray 50", hex: "#fafafa" }, + { name: "Gray 100", hex: "#f5f5f5" }, + { name: "Gray 500", hex: "#737373" }, + { name: "Gray 800", hex: "#262626" }, + ], +} + +export default function BrandAssets() { + return ( +
+ +
+ +
+ {/* Hero Section */} +
+
+
Resources
+

+ Brand Assets +

+

+ Download official logos, colors, and assets for using Selendra branding. +

+
+
+ + {/* Logo Section */} +
+
+
+
Logos
+

+ Logo Assets +

+
+ +
+ {logoAssets.map((asset) => ( +
+
+ {asset.name} +
+
+

{asset.name}

+

{asset.description}

+
+ Min size: {asset.minSize} + + + Download + +
+
+
+ ))} +
+ + {/* Usage Guidelines */} +
+

Usage Guidelines

+
+
+

✓ Do

+
    +
  • • Use the logo on light or white backgrounds
  • +
  • • Maintain minimum clear space around the logo
  • +
  • • Link the logo to selendra.org when possible
  • +
+
+
+

✗ Don't

+
    +
  • • Stretch, rotate, or distort the logo
  • +
  • • Change the logo colors
  • +
  • • Add effects like shadows or gradients
  • +
+
+
+
+
+
+ + {/* Color Palette */} +
+
+
+
Colors
+

+ Color Palette +

+
+ + {/* Primary Colors */} +
+

Primary — Selendra Teal

+
+ {colors.primary.map((color) => ( +
+
+ + {color.label && ( + + {color.label} + + )} +
+
+
{color.hex}
+
{color.name}
+
+
+ ))} +
+
+ + {/* Neutral Colors */} +
+

Neutrals

+
+ {colors.neutrals.map((color) => ( +
+
+ +
+
+
{color.hex}
+
{color.name}
+
+
+ ))} +
+
+
+
+ + {/* Typography */} +
+
+
+
Typography
+

+ Typography +

+
+ +
+
+
Aa
+
Montserrat
+

Primary UI font

+
+
Bold 700 — Headlines
+
Semibold 600 — Subheads
+
Regular 400 — Body text
+
+
+ +
+
Aa
+
Roboto Mono
+

Code font

+
+
Regular 400 — Code blocks
+
0x1234...abcd — Addresses
+
+
+
+
+
+ + {/* Download CTA */} +
+
+
+
+
Brand Kit
+

+ Need more assets? +

+

+ Contact the Selendra team for additional brand assets, custom formats, or partnership inquiries. +

+
+
+ + + Contact Team + + +
+
+
+
+
+ +
+ ) +} diff --git a/app/changelog/page.tsx b/app/changelog/page.tsx new file mode 100644 index 0000000..8df6860 --- /dev/null +++ b/app/changelog/page.tsx @@ -0,0 +1,242 @@ +import { Header } from "@/components/header" +import { Footer } from "@/components/footer" +import { SkipNav } from "@/components/skip-nav" +import { ScrollReveal } from "@/components/scroll-reveal" +import { ArrowRight } from "lucide-react" +import Link from "next/link" +import type { Metadata } from "next" + +export const metadata: Metadata = { + title: "Changelog | Selendra", + description: "Runtime upgrades and network improvements history.", +} + +interface ChangelogEntry { + version: string + date: string + title: string + description: string + highlights: string[] + blogLink?: string +} + +const changelog: ChangelogEntry[] = [ + { + version: "v20016", + date: "2026", + title: "Current Runtime Version", + description: "Latest production runtime with full smart contract support and WDK integration ready.", + highlights: [ + "Current stable version", + "Smart contract deployment support", + "WDK module compatibility", + "ERC-4337 paymaster contracts deployed", + ], + }, + { + version: "v20010", + date: "July 2025", + title: "Performance Optimization", + description: "Database and consensus tuning for sustained 1-second block times as the network grows.", + highlights: [ + "RocksDbWeight recalibration for accurate storage costs", + "State cache pinning for frequently accessed keys", + "Aura consensus optimization with parallel signature verification", + "Column family configuration for optimal read/write patterns", + ], + blogLink: "/blog/performance-upgrade-block-time", + }, + { + version: "v20005", + date: "June 2024", + title: "Unified Accounts Architecture", + description: "EVM-first unified accounts implementation mapping H160 addresses to Substrate AccountId32.", + highlights: [ + "pallet-unified-accounts integration", + "Single private key for both EVM and Substrate interactions", + "MetaMask compatibility out of the box", + "Standard tooling support (Hardhat, Foundry)", + ], + blogLink: "/blog/unified-accounts-architecture", + }, + { + version: "v20000", + date: "February 2022", + title: "Mainnet Launch", + description: "Selendra mainnet genesis. First Cambodian blockchain goes live.", + highlights: [ + "Genesis block produced", + "Initial validator set", + "EVM pallet enabled", + "Native token (SEL) distribution", + ], + }, +] + +export default function Changelog() { + return ( +
+ +
+ +
+ {/* Hero Section */} +
+
+
History
+

+ Runtime Changelog +

+

+ Forkless runtime upgrades since 2022. 15+ successful upgrades with zero chain splits. +

+
+
+ + {/* Stats */} +
+
+
+
+
15+
+
Forkless Upgrades
+
+
+
2022
+
Mainnet Launch
+
+
+
v20016
+
Current Version
+
+
+
0
+
Chain Splits
+
+
+
+
+ + {/* Changelog Entries */} +
+
+
+
Timeline
+

+ Upgrade History +

+
+ +
+ {changelog.map((entry, index) => ( + +
+
+
+
+ {entry.version} + + {entry.version === 'v20016' ? 'Current' : 'Stable'} + +
+

{entry.title}

+

{entry.date}

+
+ {entry.blogLink && ( + + Read More + + + )} +
+ +

+ {entry.description} +

+ +
    + {entry.highlights.map((highlight, i) => ( +
  • + + {highlight} +
  • + ))} +
+
+
+ ))} +
+
+
+ + {/* About Forkless Upgrades */} +
+
+
+
Technical
+

+ What are Forkless Upgrades? +

+
+ +
+

+ Unlike traditional blockchains that require hard forks to upgrade, Selendra + uses Substrate's forkless runtime upgrade mechanism. This allows us to push + updates to the chain's logic without splitting the network or requiring + node operators to manually upgrade. +

+

+ When the runtime version changes, validators automatically adopt the new code + as part of the normal block production process. This means upgrades are + smooth, coordinated, and—crucially—don't create competing chain versions. +

+
+ + Read the Docs → + + + View Runtime Code → + +
+
+
+
+ + {/* CTA */} +
+
+
+

+ Stay updated +

+

+ Follow our blog for detailed announcements about upcoming runtime upgrades + and network improvements. +

+ + Read the Blog → + +
+
+
+
+ +
+ ) +} diff --git a/app/ecosystem/page.tsx b/app/ecosystem/page.tsx index 1297db5..1965f7e 100644 --- a/app/ecosystem/page.tsx +++ b/app/ecosystem/page.tsx @@ -7,28 +7,46 @@ import Link from "next/link" import type { Metadata } from "next" export const metadata: Metadata = { - title: "Ecosystem | Selendra", + title: "Community | Selendra", description: "Projects, developers, and validators building on Selendra.", } const projects = [ + { + category: "Partner Product", + title: "Bitriel Bong", + description: "Tourist payment app. Top up with USDC from any chain, pay any KHQR merchant in Cambodia. Chain-agnostic, uses Selendra for optional settlement.", + status: "In Development", + link: "https://bitriel.com", + linkText: "Visit bitriel.com", + }, + { + category: "Wallet Infrastructure", + title: "WDK Selendra Suite", + description: "4-module integration with Tether's Wallet Development Kit: wallet, ERC-4337 gasless, token swap, cross-chain bridge. First Cambodian blockchain in WDK.", + status: "Live", + link: "https://github.com/selendra/wdk", + linkText: "GitHub", + }, + { + category: "Smart Contracts", + title: "On-Chain Infrastructure", + description: "ERC-4337 VerifyingPaymaster, WrappedUSDT, and ReserveVault. 31/31 Foundry tests. Apache 2.0 licensed.", + status: "In Review", + link: "https://github.com/selendra/selendra/pull/114", + linkText: "View PR", + }, { category: "Sports & Entertainment", title: "StadiumX - CPL Play", - description: "Sports prediction market where football fans buy player cards and predict Cambodian Premier League match outcomes.", + description: "Sports prediction market for Cambodian Premier League. Buy player cards, predict match outcomes.", status: "Live", link: "https://t.me/cplkh_bot/home", }, - { - category: "Wallet & Loyalty", - title: "Bitriel", - description: "Non-custodial wallet launched. Building 'Spend Like Locals' tourist wallet using MPC technology to connect cards for local KHQR payments.", - status: "Live & In Development", - }, { category: "Coming Soon", title: "Your Project?", - description: "Build the next generation of applications on Selendra and become part of the ecosystem.", + description: "Build on Selendra. Sub-cent gas, EVM + WASM, 1s finality. Grants available.", link: "/docs", linkText: "Start Building", }, @@ -44,12 +62,12 @@ export default function Ecosystem() { {/* Hero Section - Clean & Left-aligned */}
-
Ecosystem
+
Community

- Built by builders, for builders. + Built for Cambodia.

- Join the growing Selendra ecosystem. + Real applications serving real users. Tourist payments, government services, merchant tools.

@@ -105,8 +123,43 @@ export default function Ecosystem() { + {/* Bitriel Bong Integration Note */} +
+
+
+
Ecosystem Integration
+

+ + Bitriel Bong + {" "} + + Selendra +

+

+ Bitriel Bong is our partner app making payments easy for everyone in Cambodia. It works standalone — Selendra adds optional features: +

+
    +
  • + + On-chain proof-of-reserves — Transparent solvency verification +
  • +
  • + + Loyalty token infrastructure — Merchant rewards programs +
  • +
  • + + Optional settlement layer — When on-chain verification is needed +
  • +
+

+ Bitriel Bong works without Selendra. The integration is optional for enhanced features. +

+
+
+
+ {/* Build on Selendra */} -
+
Features
@@ -143,6 +196,52 @@ export default function Ecosystem() {
+ {/* Built for Cambodia */} +
+
+
+
Focus
+

+ Built for Cambodia +

+
+ +
+
+
Market
+

17M People, $30B GDP

+

+ Dollarized economy. 80% unbanked. Growing digital adoption. No dominant blockchain player. +

+
+ +
+
Infrastructure
+

KHQR + Bakong Ready

+

+ National QR payment standard. 20+ banks supported. Integration pathway for merchant payments. +

+
+ +
+
Government
+

Digital Transformation

+

+ MoEYS, MPTC partnerships. Land registry, digital identity, academic credentials on blockchain. +

+
+ +
+
Economics
+

$0.00025 per Transaction

+

+ Sub-cent costs enable daily transactions. Tourist payments, remittance, SME tools. +

+
+
+
+
+ {/* Developer Resources */}
@@ -220,7 +319,7 @@ export default function Ecosystem() {

- Ready to join the ecosystem? + Ready to build with us?

Start building on Selendra today. diff --git a/app/faq/page.tsx b/app/faq/page.tsx new file mode 100644 index 0000000..66553bb --- /dev/null +++ b/app/faq/page.tsx @@ -0,0 +1,205 @@ +"use client" + +import { Header } from "@/components/header" +import { Footer } from "@/components/footer" +import { SkipNav } from "@/components/skip-nav" +import { ButtonStark } from "@/components/ui/button-stark" +import { ChevronDown } from "lucide-react" +import Link from "next/link" +import { useState } from "react" + +const faqs = [ + { + q: "What is Selendra?", + a: "Selendra is the first Cambodian blockchain, enabling sub-cent transactions with EVM+WASM dual VM support. Built on Substrate, it provides 1-second block times, low gas fees, and is designed for real-world adoption in Southeast Asia.", + }, + { + q: "How is Selendra different from Ethereum?", + a: "Selendra offers sub-cent gas fees compared to Ethereum's higher costs, 1-second block times versus Ethereum's ~12 seconds, dual VM support (both EVM and WASM smart contracts), and focuses on Cambodia and Southeast Asian markets. It uses Aura + AlephBFT consensus instead of Proof of Stake.", + }, + { + q: "What is the SEL token?", + a: "SEL is the native token of the Selendra blockchain, used for gas fees, staking, governance, and validator rewards. The target supply is 320 million tokens. It can be used to pay transaction fees, participate in on-chain governance, and secure the network as a validator or nominator.", + }, + { + q: "How do I get SEL tokens?", + a: "You can acquire SEL tokens through: 1) Bridging from Binance Smart Chain (BSC), 2) Staking on mainnet to earn rewards, 3) Participating in network bounties and programs, 4) Future CEX listings (coming soon). Visit our documentation for detailed instructions.", + }, + { + q: "How do I connect MetaMask to Selendra?", + a: "To connect MetaMask, add Selendra as a custom network: Chain ID: 1961, RPC URL: https://rpc.selendra.org, Currency Symbol: SEL, Block Explorer: https://explorer.selendra.org. Alternatively, use the auto-configuration feature in our docs.", + }, + { + q: "What is Bitriel Bong?", + a: "Bitriel Bong is a chain-agnostic tourist payment app for Cambodia. Visitors top up with USDC from Base, Solana, BSC, Polygon, or card—then scan any KHQR code to pay instantly. No Cambodian bank account needed. Bitriel Bong can optionally use Selendra for loyalty tokens, proof-of-reserves, and settlement.", + }, + { + q: "How do I become a validator?", + a: "To become a validator on Selendra, you need: Technical requirements—A reliable server with 8GB RAM, 4-core CPU, 100GB SSD; Economic requirements—Minimum stake amount (check docs for current minimum); Technical expertise—Running a Substrate node. Detailed guides are available in our documentation.", + }, + { + q: "Is Selendra audited?", + a: "Security audits are planned for Q3 2026. The audit will cover runtime code, smart contracts (paymaster, vault), and WDK integration. We follow responsible disclosure practices and will publish all audit reports publicly. Current status: In Review for smart contracts, Planned for runtime.", + }, + { + q: "What is the WDK integration?", + a: "WDK (Wallet Development Kit) is Tether's open-source wallet framework. Selendra is the first Cambodian blockchain integrated into WDK with 4 modules: wallet-selendra (core wallet), erc4337-selendra (gasless transactions), swap-selendra (token swaps), bridge-selendra (cross-chain transfers). This enables any WDK-compatible wallet to support Selendra.", + }, + { + q: "How can I build on Selendra?", + a: "Start building on Selendra by: 1) Reading our documentation at docs.selendra.org, 2) Setting up MetaMask or using our faucet for test tokens, 3) Deploying smart contracts using Solidity or ink!, 4) Applying for developer grants and hackathon opportunities. Join our developer Telegram for support.", + }, +] + +export default function FAQ() { + const [openIndex, setOpenIndex] = useState(null) + + const toggle = (index: number) => { + setOpenIndex(openIndex === index ? null : index) + } + + return ( +

+ +
+ +
+ {/* Hero Section */} +
+
+
Help
+

+ Frequently Asked Questions +

+

+ Everything you need to know about Selendra, from getting started to building on the network. +

+
+
+ + {/* FAQ Accordion */} +
+
+
+
Questions
+

+ Common Questions +

+
+ +
+ {faqs.map((faq, index) => ( +
+ +
+

+ {faq.a} +

+
+
+ ))} +
+
+
+ + {/* Quick Links */} +
+
+
+
Resources
+

+ More Resources +

+
+ +
+ +

Documentation

+

+ Complete guides and API references +

+ + + +

Blog

+

+ Technical updates and announcements +

+ + + +

Community

+

+ Join our Telegram for support +

+
+
+
+
+ + {/* Still Have Questions */} +
+
+
+

+ Still have questions? +

+

+ Can't find what you're looking for? Join our community or reach out directly. +

+
+ + + Join Telegram + + + + + Email Us + + +
+
+
+
+
+ +
+
+ ) +} diff --git a/app/layout.tsx b/app/layout.tsx index f402fe4..ef794ac 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -28,15 +28,16 @@ export const metadata: Metadata = { apple: "/selendra-logo.png", }, openGraph: { - title: "Selendra - Build on Testnet", - description: "Deploy smart contracts on Selendra testnet with free tokens. Dual VM support for EVM and WASM developers.", + title: "Selendra — Cambodia's Digital Platform", + description: "Cambodia's digital platform. Home of Bitriel Bong, StadiumX, Baray, and Riverbase.", type: "website", locale: "en_US", + images: [{ url: "/og-image.png", width: 1200, height: 630, alt: "Selendra — Cambodia's Digital Platform" }], }, twitter: { card: "summary_large_image", - title: "Selendra - Build on Testnet", - description: "Deploy smart contracts on Selendra testnet with free tokens", + title: "Selendra — Cambodia's Digital Platform", + description: "Cambodia's digital platform. Home of Bitriel Bong, StadiumX, Baray, and Riverbase.", }, alternates: { canonical: "https://selendra.org", @@ -56,6 +57,35 @@ export default function RootLayout({ +