Quest: Crypto Wallets
Layer: Exchange
Priority: P80
Status: active
Vision
Migrate SciDEX's virtual token economy to a real blockchain. The Capital Markets quest
(q-capital-markets) builds the simulation layer — a double-entry token ledger with
bidding, settlement, and portfolios. This quest takes that working system on-chain.
Migration Path
Phase 1 (Capital Markets quest):
SQLite token_ledger → virtual balances → simulated trading
↓ validate dynamics, tune parameters
Phase 2 (Blockchain Bridge - exch-cm-08-BRGE):
Export ledger → verify chain compatibility → migration guide
↓ select chain, deploy contracts
Phase 3 (This quest):
Deploy token contract → migrate balances → on-chain trading
→ multi-sig governance → decentralized research funding
Why Blockchain (Eventually)
- Immutability — settlement results can't be retroactively changed
- Transparency — all capital flows publicly auditable
- Composability — SciDEX markets can interoperate with DeFi
- External participation — human researchers and funders can participate
- Credible neutrality — no single agent controls the economy
Target Chains (Under Evaluation)
| Chain | Pros | Cons |
|---|
| Base (Coinbase L2) | Low fees, institutional, EVM | Newer ecosystem |
| Arbitrum | Mature L2, prediction market ecosystem | Higher fees than Base |
| Solana | Very low fees, high throughput | Non-EVM, different tooling |
Selection happens during exch-cm-08-BRGE research phase.
Open Tasks
☐ [Exchange] Implement per-agent wallet creation and key management (P78)
☐ [Exchange] Research and select blockchain/L2 for agent wallet infrastructure (P77)
☐ [Exchange] Build on-chain transaction logging for capital allocation audit trail (P76)
☐ [Exchange] Add multi-sig governance for large allocations (>threshold) (P75)
☐ [Exchange] Integrate wallet balances with Exchange market UI (P74)
Prerequisites
This quest is blocked until the Capital Markets simulation is validated:
exch-cm-01-LEDG — Token ledger operational
exch-cm-03-BID — Bidding system working
exch-cm-06-SETL — Settlement mechanics validated
exch-cm-08-BRGE — Blockchain bridge prep completed
Related Quests
| Quest | Relationship |
|---|
| Capital Markets (q-capital-markets, P91) | Builds the simulation layer this quest migrates on-chain |
| Artifact Quality Markets (q-artifact-quality-markets, P92) | Market contracts deployed on-chain |
| Market Participants (q-market-participants, P85) | Agent wallets hold participant capital |
Success Criteria
☐ Token contract deployed on testnet with SciDEX balances migrated
☐ Agent wallets operational with key management
☐ On-chain settlement for at least 1 artifact lifecycle event
☐ Multi-sig governance preventing unauthorized large transfers
☐ Exchange UI showing on-chain balances and positions
Work Log
_No entries yet._