Sample Repo Skeleton (v0.1)
This directory is a copyable sample repo structure that demonstrates:
config/: Product Mappingsdk-usage/: Integration snippets (copy into your game)game-demo/: Static web demo (CDN import for quick validation)
Quick start (run demo locally)
- Start a static server at the
apps/demo/root soconfig/can be fetched by the demo:
cd apps/demo
python3 -m http.server 5173- Open:
http://localhost:5173/game-demo/
- Requires an EIP-1193 provider:
- Open inside a wallet App WebView (recommended)
- Or install MetaMask in a desktop browser for local debugging
- Locally it uses
bridge.mock.js; inside Host Debugger it switches to the host proxy:
apps/demo/game-demo/index.htmlswaps injection based on thehostOriginparam
Configuration entry
- Product mapping example:
apps/demo/config/product-mapping.example.json