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.
| Tier | Zichtbaarheid | Standaard filter | Geavanceerd zoeken |
Tier-0 | Altijd zichtbaar | Inclusief | Niet van toepassing (systeem-apps) |
Tier-1 | Verified badge | Inclusief | Toegankelijk |
Tier-2 | Staged/untrusted | Uitgesloten | Alleen 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
- Trefwoord: Zoek op naam, beschrijving, auteur.
- Categorie: Filter op categorie (Finance, NFT, Tools, Gaming, Social, System).
- Tier: Filter op tier (0/1/2).
- Sortering: Relevantie, populariteit (downloads), datum (nieuwste), beoordeling.
3.2 Categorien
| Categorie | Beschrijving | Voorbeelden |
| Finance | DeFi, exchanges, portfolio trackers | DEX, lending, staking |
| NFT | NFT-markten, galleries, minters | Marketplace, mint-tool |
| Tools | Utilities, development, analytics | Block explorer, gas tracker |
| Gaming | Web3 games, play-to-earn | RPG, strategy, collectibles |
| Social | Social platforms, messaging | Decentralized social, chat |
| System | Tier-0 kerncomponenten | Wallet, 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
| Instelling | Opties | Standaard |
autoUpdate | on / off / wifi-only | wifi-only |
notifyOnUpdate | true / false | true |
updateChannel | stable / beta | stable |
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
- Store-DApp draait direct in shell, niet in iframe.
- Tier-filtering: alleen verified/internal DApps standaard zichtbaar.
- Search werkt op naam, beschrijving, auteur + categorie + tier.
- Installatie-flow: download, verify, mount, status-bijwerking.
- Auto-update: check, notify, apply met configurabele instellingen.
- In-app purchase via wallet-DApp payment rail.
- Audit logging bij installatie, update, verwijdering.
8. Risico's en aanbevelingen
| Risico | Impact | Mitigatie |
| Malware DApps | Hoog | Tier-filtering + auto-scan + signature-check |
| Update confilcten | Gemiddeld | Container hermount + VFS migratie + rollback |
| Payment misbruik | Hoog | Wallet-queue + approval + gas/daglimiet |
| Opslag overschrijding | Gemiddeld | Pre-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.