Treasury Proposal: QMDB Core Integration for Substrate Storage
Enhancement Proponent: 12K97oseeBxoWnyYRU3DJkxKTiDGFBh1pK4jLyuUJzYHkqdD
Date: [29.01.2025]
Requested DOT: 5 000
Short description: Initial integration of QMDB (https://github.com/LayerZero-Labs/qmdb) core functionality into Substrate (https://github.com/paritytech/polkadot-sdk). Project Category/Type: Storage and Performance Optimization
Previous Treasury Proposals:
Context of the Proposal
This proposal focuses on the first phase of QMDB integration, specifically implementing core storage functionality without iterators and prefixes with limited support or non-optimal support. This foundational work will enable future enhancements while maintaining compatibility with existing Substrate systems.
Technology stack:
Documentation:
Research and PoC:
What this project will not provide:
Previous Polkadot grants:
Problem Statement
Current Substrate storage implementation faces several fundamental challenges that this initial integration phase aims to address: Current crate ‘sp-trie’ implementation requires optimisation Inefficient key-based operations affecting basic transaction processing Suboptimal transaction verification process
Key Limitations of QMDB
Proposal Objectives & Solutions Objectives
Milestones, Timelines, and Budgets Milestone
1. Implement QMDB storage traits Working prototype integrated with Substrate
3 weeks
2 000 DOT
2. Develop a storage indexing mechanism In-memory B-Tree or sorted sparse list
2 weeks
1 500 DOT
3. Conduct full system testing All Substrate tests pass
1 week
750 DOT
4. Deploy, benchmark and optimise Live on DevNet with monitoring
1 week
750 DOT
Risks and Mitigation Risk Mitigation Strategy
Resources Required
Success Criteria
Payment Conditions
Payments will be made in instalments based on milestone completion. Each instalment will be subject to the successful delivery of agreed milestones. A detailed progress report will be submitted on Polkassembly/Subsquare.
Why Polkadot Network?
Polkadot’s focus on modular and scalable blockchain infrastructure makes it an ideal candidate for advanced storage optimisations like QMDB integration. By enhancing storage efficiency, this proposal aligns with Polkadot’s long-term vision of high-performance, decentralized systems.
Additional References
QMDB Technical Paper
QMDB GitHub Repository
Threshold
No Polkadot project is developing anything with LayerZero. Can you provide any link to any project or projects that request this functionality?
Could you please add contextual information?