Referenda

Open and closed proposals

Polkadot
#1689ExecutedMedium SpenderInfrastructure

Quadrivium Polkadot-SDK improvements proposal 1

Proposer
Requested
288.0k USDC
Ended
25 Aug 2025
Comments
12
Beneficiaryqdrvm

AI Digest

Category Infrastructure
  • Quadrivium seeks funding to improve Polkadot-SDK storage capacity, parachain liveness, testing infrastructure, and data availability.
  • The request is for 288,000 USDC, paid to the specified beneficiary for implementing the listed Polkadot-SDK improvements.
  • Deliverables include state-sync fixes, compact archive-node research, multi-slot collation, discrete-event simulation, and faster erasure coding.
  • Parity and Web3 Foundation will provide implementation guidance and conduct final deliverable reviews, with Parity contributing to the scope.

Description

Written by the proposer, as published on Subsquare · last edited 30 Jul 2025, 10:02 UTC

Proposal summary

This proposal seeks funding for the work focusing on:

  1. Preparing Polkadot storage infrastructure to handle thousands of transactions per second (TPS)
  2. Ensuring parachain liveness with a single honest collator assumption
  3. Enhancing testing infrastructure by simplifying the bug reproduction process


This will be achieved by implementing the following features into Polkadot-SDK:

  1. State sync fixes and improvements: ensuring we can handle large state synchronization
  2. Compact archive node research and development: ensuring large state parachains have relatively compact archive storages, required for historical data analytics
  3. Multi-slot collation: ensuring we can guarantee liveness of parachains with a single honest collator assumption
  4. Polkadot discrete event simulation research: ensuring we can reproduce any of 1000s test runs that ended up with a failure
  5. Faster erasure coding (RFC-0139): ensuring data availability will not be a bottleneck


The proposal scope will be implemented by the Quadrivium team. We are the original developers of the KAGOME client, which is fully protocol-compatible with Polkadot-SDK, has successfully passed a rigorous security audit, and launched on the mainnet earlier this year.

Parity and Web3 Foundation will provide implementation guidance and conduct final review of proposal deliverables. The Parity team also contributed to defining the proposal's scope.

Read the full proposal for further details about features description, development approach, concrete deliverables, and price breakdown.

Requested funding

288,000 USDC


Context of previous proposal

Quadrivium is best known in the Polkadot ecosystem for implementation of alternative Polkadot Host implementation KAGOME, which went live on Polkadot mainnet in April this year (link) turning Polkadot into one of few blockchains having live multiple client implementations.

Unfortunately, in spite of the great progress with KAGOME, and support from W3F Decentralized Nodes program with increasing fraction of validators using KAGOME, the treasury proposal #1549 to support further development and maintenance of KAGOME got rejected. 

We respect voters opinion and therefore we put KAGOME development on pause.

Nonetheless, our team has a very unique understanding of the Polkadot protocol, which we believe the Polkadot ecosystem may get advantage from. Therefore, we will be refocusing our efforts towards improving Polkadot-SDK and Polkadot Protocol.


About Quadrivium

Quadrivium (https://www.qdrvm.io ) is a blockchain infrastructure development company founded in 2023.

The company specializes in the development of blockchain clients, peer-to-peer networking tools, and zk-cryptography. Quadrivium developed KAGOME Polkadot Host implementation, in partnership with the Web3 Foundation. The company also maintains the C++ libp2p library.

Discussion

12 comments from OpenShore and Subsquare; spam hidden

Markdown
Signed with your wallet. No fee, nothing on-chain.
SIM-DOT490d 16h ago

Hello,

Could you please share some estimated metrics related to the improvements that the implementation of this proposal will represent for the infrastructure?

kml490d 15h ago

@SIM-DOT

All of these will need to be tested on a real data. However, rough estimates could be:

  1. Size of archive storage ~-50% (removing Merkle trie for the old states + shrinking or even removing block bodies)
  2. Historical state queries should be much faster (important for indexers such as SubQuery). Instead of going through Merkle trie (log(N) reads, where N – size of a state), there will be a constant number of reads (ideally just one)
  3. New erasure coding performance estimates could be found here . However, we will introduce some more low level optimizations (reducing number of redundant memory allocations) to bring these numbers even lower. In the past our Erasure coding implementation was the fastest in Polkadot (link)
  4. State sync improvements are actually fixing some existing issues like OOM crash for large state syncs, which will become a more important problem as we have larger Parachain states. We will be also introducing a new state sync, which should have less duplicate information sent over the network and should theoretically be faster, but not clear yet how much. I would say something around 20% maybe. With large storage states this however may be a significant gain in terms of user experience
  5. For Multi-slot collation it is hard to define particular metric, however, what we will get is that malicious collators won't be able to censor blocks they don't want. With minimal relay and moving a lot of Polkadot Relay Chain logic to Parachains this will become more important
  6. For Discrete Event Simulator research it is also hard to define a metric. What we will get is reproducible tests. Which could be useful for thorough bug reproduction and debugging. E.g. if we had 1000 test runs, and only one failed, we will be easily reproduce this particular test run.
polkaworld486d 19h ago

PolkaWorld votes NAY

1.	Work-hour structure is unreasonable: Project management + Shadow research + state archiving together account for nearly 1,100 hours, which is almost 46% of total hours — a very unusual allocation. The parts that actually deliver visible SDK-level functionality (like erasure coding, state sync, multi-slot collation) total only about 1,200 hours, roughly 50% of the total. For a 4-month technical proposal aimed at core SDK implementation, this ratio is disproportionately high.
2.	Some costs are opaque: Items like compliance expenses and tooling fees aren’t clearly detailed in the budget, making it hard to assess their validity.
3.	PolkaWorld rejects any proposal with an hourly rate above $100 — this proposal’s rate is $120/hour.

We recommend the team break down tasks more clearly and focus resources on the truly critical feature implementations to improve funding efficiency.

kml486d 16h ago

@polkaworld

1

Some of this functionality might not be visible to end users, however it contributes to the overall robustness of the system and improves development experience:

  • Shadow research: this research would be useful for creating a more robust testing framework. In simple words, current zombienet tests (which is the framework used for testing different edge case scenarios) have the following limitations:
    • Each test scenario depends on many random factors, which makes it hard to reproduce the same test scenario. E.g. if only one test out of 1000 runs fails, it is impossible to reproduce the exact scenario that caused the failure.
    • It is impossible to test behavior of the network in the presence of nodes with bad networking connectivity With Shadow integration, it would be possible to have deterministic test scenarios, which would allow to reproduce the same test scenario and debug it. It would also allow to test behavior of the network in the presence of nodes with bad networking connectivity. Parity devs got very excited, when we explained them what we can do with Shadow integration: potentially we would be able to run scenarios that were previously impossible to test, and potentially this could help prevent issues that network experienced in the past
  • State archiving: with async backing and elastic scaling transactions throughput and load on the Polkadot will be increased significantly, which would in turn increase the size of the state and make it harder to maintain, leading to higher costs for archive node RPC validators (who would then in turn come to treasury for more compensation). For example today wallet developers already cannot afford to run their own archive nodes, relying on third parties, which introduces a single point of failure and more trust assumptions. We need cheaper archive nodes and this requires some deep engineering work:
    • Getting rid of the Merkle trie for the obsolete states that currently might consume up to 50% of the state size
    • Implementing a new state format that would allow to store the state in a more compact way (proposal has more details on that)
    • Compressing or getting rid of block bodies that consume ~17% of the state size in some of our nodes
    • Cool side effect of these improvements is that querying historical data becomes multiple times faster, which is important for indexing tools such as Subquery that wallets heavily rely on
  • Project management: I am as project manager constantly monitoring progress of all the tasks, testing them, in many cases contributing to the codebase, keeping track of the latest developments in the ecosystem, coordinating with Parity and W3F. That's a lot of work that is done in addition to CEO responsibilities, and engineering tasks. So I believe dedicating 100 hours a month for that is a fair (optimistic) estimate

2

  • Compliance expenses: we have to pay for the legal services to ensure that we are compliant with the local laws and regulations. We have entities in Singapore and Kazakhstan, and we have to ensure that we are compliant with the local laws in both countries.
  • Tooling fees: we use various tools such as Google Cloud Platform (most of the costs), Netcup, Notion, Cursor, Zoom, and others to ensure that we can work efficiently. Running Polkadot nodes that consume a lot of traffic and maintaining development infrastructure such as CI/CD pipelines, logging systems, monitoring systems is expensive

3

RefRate ($/h)Team
161290Subsquare
126695Apillon
1340100PVM debugger
1680100Subwallet
1305105Mimir
1573120Polkadot APP
1232125Talisman
1223125ink! alliance
1391130Nova wallet
1103150PAPI
  • We kept our hourly rate at $100/hour for 3 years (starting from this old proposal).
  • We have 1 Engineering manager ($10k/month), 4 Protocol engineers ($4-9k/month), 1 DevOps ($8k/month), 1 Administrator ($4k/month). Salaries are more than fair according to https://web3.career/web3-salaries
  • We choose quality over quantity. We could hire more people at a lower rate, but we would not be able to deliver the same quality of work. The people that work in our team are working in the ecosystem for many years (between 3 to 8 years) and capable of delivering high quality work

Happy to elaborate more if needed

kml475d 2h ago

@polkaworld

Hello, again! On the last AAG call, we discussed the importance of all features. Here are the slides and recording. Please review them to understand deeper the importance of the problems we solving as well as implementation approach that we are taking.

Regarding the $120/h rate, a key factor to consider is the amount of preliminary work our team has already put in. We collaborated with Parity throughout July, testing different ideas and refining the proposal's scope (some ideas were considered interesting and important, but were reprioritized for future work). Some work was even submitted before the starting date of this proposal (August 1st), like this PR submitted in July. Other teams, like Gossamer, have included this kind of pre-proposal work in their billing (based on the fact that they are charging starting from beginning of July, while proposal was submitted at the end of July), which in retrospect seems fair since we've also been dedicating significant time to this scope before the official start of the work.

The $120/h rate is designed to reflect such risks we take on as a company. It ensures we have the capacity to be flexible, have enough time for research and negotiations with partners (which trust me takes a lot of time and efforts, i.e. as we need to justify our vision to Parity engineers first, before publishing it to community).

Actually if we were to include July into the scope of the proposal, the hourly rate would drop to $90/h as $288000 would be split into 3200 hours instead of 2400 hours as put in current proposal, considering that our 5 engineers were working all 160 additional hours in July.

Hope, this will make you to reconsider your vote.

Best, Kamil

polkaworld472d 20h ago

Thank you for your detailed reply! After our second round of discussions, PolkaWorld has cast its second vote as AYE.

1.	Parity’s comments confirmed both the importance of this proposal and the credibility of the team.
2.	In addition, the team provided clarification on the compensation, reducing the hourly rate to below $100. We believe it is reasonable to support the team in continuing their development work.
Josep484d 9h ago

I’m struggling to understand the rationale behind this proposal.

The Polkadot-SDK repository is owned by Parity, which itself is founded by the Web3 Foundation. Part of that funding is explicitly meant to cover the maintenance of this repository.

If Parity wishes to delegate certain areas of the maintenance to an external team, the logical and accountable approach would be for Parity to hire that team directly and establish a formal agreement (e.g., an SLA) to ensure these responsibilities are properly fulfilled. This would provide clear oversight and maintain alignment with Parity’s ownership of the repo.

If Parity believes its current funding from the Web3 Foundation is insufficient, then it should be Parity submitting an OpenGov proposal to request additional resources. However, that seems inconsistent with reality, as Parity is actively hiring, an indication that they have sufficient funds.

What doesn’t make sense, in my view, is for an external team to approach the treasury “on behalf of” Parity to secure a substantial sum for maintaining a repository that Parity owns and is ultimately responsible for. This approach bypasses accountability and creates an unnecessary layer of indirection between the treasury and the actual owner of the repo.

kml484d 3h ago

@Josep

I think that question is mostly for Parity. So, I am not able to comment much on what should be the best approach from their side. They endorsed us to submit a treasury proposal, so we did it.

From our side, we would not consider to be hired by Parity. We are independent team that has projects outside Polkadot Ecosystem, which actually allows us to have a unique perspective and expertise when working on Polkadot protocol. So we would prefer to keep it that way.

We are not acting on behalf of Parity. They are, however, heavily involved. Parity endorsed the scope of proposal and will review our work before it is merged to Polkadot-SDK repo.

Truth DAO473d ago

TruthDAO voted NAY

The hourly rate exceeds $100/hr, which we consider overly expensive.

In this proposal, project management + shadow research + state archiving together account for nearly 1,100 hours — close to 46% of the total hours and the portion dedicated to actually delivering visible SDK-level features (such as erasure coding, state sync, and multi-slot packaging) totals only about 1,200 hours, roughly 50% which is a highly unusual structure.For a 4-month technical proposal aimed at core SDK implementation, this management and research ratio is clearly too high.

See the full feedback here.

📖Truth DAO Governance Statement

💭 Email: open@truthdao.cn, Telegram

🗳️ Delegate

kml471d 20h ago

@Truth DAO

Thanks for the review of our proposal!

I can see that your comment is very similar to the comment from the Polkaworld. Since then, they have changed their vote to AYE after receiving our explanation. Please see read our response to Polkaworld:

https://polkadot.polkassembly.io/referenda/1689#comment-689eda3284ff4c78bee120d4

Dear Proposer,

Thank you for your proposal. Our first vote on this proposal is NAY.

The Medium Spender track requires 50% quorum (at least 5 aye votes) and simple majority of non-abstain votes according to our voting policy v0.2, and any referendum in which the majority of members vote abstain receives an abstain vote. This proposal has received three aye and two nay votes from ten available members, with four members abstaining. Below is a summary of our members' comments:

The comments reflected mixed feelings about the proposal for SDK improvements. Some expressed support for the shift toward enhancing Polkadot-SDK. Others appreciated the team's previous contributions but warned that moving treasury funding for SDK development was premature without further community review. Several voters expressed a neutral stance, preferring to await the Fellowship’s technical appraisal of the proposal’s impact and necessity before firmly deciding. In the end, concerns over technical readiness and broader consensus influenced the overall negative outcome in the voting process.

The full discussion can be found in our internal voting.

Please feel free to contact us through the links below for further discussion.

Kind regards,
Permanence DAO
Decentralized Voices Cohort IV Delegate

📅 Book Office Hours
💬 Public Telegram
🌐️ Web
🐦 Twitter
🗳️ Delegate

kml472d ago

@PERMANENCE DAO/GOV-PROXY

Thanks for the careful review of our proposal.

moving treasury funding for SDK development was premature without further community review

This voting is in itself is community review of this idea. I would note that for the token holders it does not matter much whether we are funded through the W3F or through the OpenGOV, as in any case the same amount of DOTs would be used to fund our work. I believe W3F or Parity have their reasons not to pay us directly. However, being endorsed by Parity, while requesting funding through the treasury allows us to both maintain transparency before community, while ensuring that the features we are working on are indeed fit into the broader vision of improving Polkadot-SDK to make Polkadot protocol attractive for the new customers that Parity is currently working with.

Several voters expressed a neutral stance, preferring to await the Fellowship’s technical appraisal of the proposal’s impact and necessity before firmly deciding.

I request those who expressed these concerns to check the comment from Robert K. (Fellowship member, Rank IV) and Pierre (Parity's VPe)

Best, Kamil