System-apps store

Store-DApp (Tier-0) • direct in shell • DApp discovery + installatie • auto-update beheer • tier-filtering • in-app purchase • status: ontwerp, nog geen code

Kerndefinitie: De Store-DApp is een Tier-0 systeemapplicatie die direct in de shell draait. Het is het centrale platform voor het ontdekken, installeren en beheren van DApps. Alleen verified en internal DApps worden getoond via tier-filtering.

1. Architectuur

┌─────────────────────────────────────────────────┐
│               Shell (Tier-0)                     │
│  ┌─────────────────────────────────────────┐     │
│  │           Store-DApp (direct)            │     │
│  │  ┌─────────────────────────────────┐    │     │
│  │  │ DApp Discovery                  │    │     │
│  │  │ (search, categories, featured)  │    │     │
│  │  └─────────────────────────────────┘    │     │
│  │  ┌─────────────────────────────────┐    │     │
│  │  │ Install / Uninstall             │    │     │
│  │  │ (download, verify, mount)       │    │     │
│  │  └─────────────────────────────────┘    │     │
│  │  ┌─────────────────────────────────┐    │     │
│  │  │ Auto-Update Beheer              │    │     │
│  │  │ (check, notify, apply)          │    │     │
│  │  └─────────────────────────────────┘    │     │
│  │  ┌─────────────────────────────────┐    │     │
│  │  │ In-App Purchase                 │    │     │
│  │  │ (via wallet-DApp payment rail)  │    │     │
│  │  └─────────────────────────────────┘    │     │
│  └─────────────────────┬───────────────────┘     │
│                        │ VAPI                     │
│  ┌─────────────────────┴───────────────────┐     │
│  │           Store Backend                  │     │
│  │  ┌─────────────────────────────────┐    │     │
│  │  │ Catalog + Search + Filter       │    │     │
│  │  └─────────────────────────────────┘    │     │
│  │  ┌─────────────────────────────────┐    │     │
│  │  │ Version + Update Management     │    │     │
│  │  └─────────────────────────────────┘    │     │
│  └─────────────────────┬───────────────────┘     │
│                        │                         │
│  ┌─────────────────────┴───────────────────┐     │
│  │           IPFS + Container              │     │
│  │  (download, pin, mount)                 │     │
│  └─────────────────────────────────────────┘     │
└─────────────────────────────────────────────────┘

2. Tier-filtering

BESLIST: De Store-DApp toont alleen verified en internal DApps. Untrusted DApps worden niet getoond in de catalogus, ook niet met waarschuwing. Gebruikers moeten expliciet zoeken naar untrusted DApps via geavanceerd zoeken.
TierZichtbaarheidStandaard filterGeavanceerd zoeken
Tier-0Altijd zichtbaarInclusiefNiet van toepassing (systeem-apps)
Tier-1Verified badgeInclusiefToegankelijk
Tier-2Staged/untrustedUitgeslotenAlleen op verzoek
Standaard weergave:
    ┌─────────────────────────────────────┐
    │ Store-DApp                           │
    │ ┌─────────────────────────────────┐ │
    │ │ Tier-0: Wallet, Settings, etc.  │ │
    │ │ Tier-1: Verified DApps          │ │
    │ │ (met verified badge)            │ │
    │ └─────────────────────────────────┘ │
    │                                     │
    │ Geavanceerd zoeken:                 │
    │ ☐ Toon untrusted DApps              │
    └─────────────────────────────────────┘

3. DApp discovery

3.1 Zoekmethoden

3.2 Categorien

CategorieBeschrijvingVoorbeelden
FinanceDeFi, exchanges, portfolio trackersDEX, lending, staking
NFTNFT-markten, galleries, mintersMarketplace, mint-tool
ToolsUtilities, development, analyticsBlock explorer, gas tracker
GamingWeb3 games, play-to-earnRPG, strategy, collectibles
SocialSocial platforms, messagingDecentralized social, chat
SystemTier-0 kerncomponentenWallet, settings, permissions

4. Installatie-flow

Gebruiker klikt "Installeren" op DApp
    │
    ├── 1. Pre-install check
    │       ├── Tier-check: is DApp verified/internal?
    │       ├── Space-check: voldoende opslag in VFS?
    │       └── Conflict-check: bestaat DApp al?
    │
    ├── 2. Download via IPFS
    │       ├── CID-resolutie via Helia/gateway
    │       ├── Download + hash-verificatie
    │       └── Pin in lokale cache
    │
    ├── 3. Verify
    │       ├── Manifest-check (versie, capabilities)
    │       ├── Auto-scan (eval, innerHTML, remote fetch)
    │       └── Signature-check (indien beschikbaar)
    │
    ├── 4. Mount
    │       ├── VFS allocatie (vfs://app/dappId/)
    │       ├── Container mount via <maos-app>
    │       └── Permission request (indien nodig)
    │
    └── 5. Status bijwerken
            ├── Store: "Geïnstalleerd" badge
            ├── Launcher: DApp toegevoegd
            └── Audit log: installatie gelogd

5. Auto-update beheer

InstellingOptiesStandaard
autoUpdateon / off / wifi-onlywifi-only
notifyOnUpdatetrue / falsetrue
updateChannelstable / betastable
Auto-update flow (periodiek, bv. elke 24 uur):
    │
    ├── 1. Check voor updates
    │       ├── Vergelijk geïnstalleerde versie met catalogus
    │       └── Filter op updateChannel (stable/beta)
    │
    ├── 2. Update beschikbaar?
    │       │
    │       ├── Nee → niks doen
    │       │
    │       └── Ja → actie afhankelijk van instelling
    │               │
    │               ├── autoUpdate = on → direct downloaden + updaten
    │               │
    │               ├── autoUpdate = wifi-only → wacht op wifi
    │               │
    │               └── autoUpdate = off → notify, wacht op gebruiker
    │
    ├── 3. Download update
    │       ├── Nieuwe CID ophalen
    │       ├── Download + hash-verificatie
    │       └── Pin in cache
    │
    ├── 4. Toepassen
    │       ├── Container hermounten met nieuwe code
    │       ├── VFS migratie (indien nodig)
    │       └── Status bijwerken
    │
    └── 5. Audit log: update gelogd

6. In-app purchase

BESLIST: Betaalde DApps gebruiken de wallet-DApp als enige payment-rail. Geen eigen Stripe-integratie per DApp. Funds top-up (storten) via wallet-DApp (Stripe SEPA/iDEAL), daarna alles on-chain via intent-queue.
Gebruiker koopt iets in DApp
    │
    ├── 1. DApp stuurt VAPI-payment intent
    │       │
    │       └── Wallet-DApp toont: bedrag, contract, chain
    │
    ├── 2. Gebruiker approve in wallet-DApp
    │       │
    │       ├── Wallet heeft saldo? → on-chain betaling
    │       │
    │       └── Onvoldoende saldo? → redirect naar top-up
    │               │
    │               ├── Top-up via Stripe SEPA/iDEAL
    │               │
    │               └── Na storting → on-chain betaling
    │
    └── 3. Receipt → DApp toegang geven

7. Acceptatiecriteria

8. Risico's en aanbevelingen

RisicoImpactMitigatie
Malware DAppsHoogTier-filtering + auto-scan + signature-check
Update confilctenGemiddeldContainer hermount + VFS migratie + rollback
Payment misbruikHoogWallet-queue + approval + gas/daglimiet
Opslag overschrijdingGemiddeldPre-install space-check + cleanup suggestions

9. Verwijzingen naar verwante specs

Volgende stap Na akkoord: Store-DApp UI + tier-filtering implementatie + installatie-flow + auto-update engine + in-app purchase integratie.