Referenda

Open and closed proposals

Polkadot
#1625ExecutedMedium SpenderProducts & Tooling

Continue funding for ReactiveDOT & related developments

Proposer
Requested
89.0k USDC
Ended
18 Jul 2025
Comments
18
Beneficiarytien/ Stash

AI Digest

Category Products & Tooling
  • ReactiveDOT, DOTConsole, and DOTConnect continuation is proposed by the beneficiary account, building on referenda #812, #948, #1334, and #1477.
  • The request is for 89,000 USDC to fund 89 workdays, or 712 hours, at 125 USDC per hour.
  • Planned work includes Solidity contract support, granular cache controls, contract-query auto-refresh, and possible single-query incremental loading.
  • Further improvements to DOTConnect and DOTConsole will follow community feedback or requirements from ReactiveDOT testing and development.
  • The funding period runs from July 2025 through October 2025, lasting four months.

Description

Written by the proposer, as published on Subsquare · last edited 22 Jun 2025, 05:50 UTC

Building upon #812, #948, #1334, and #1477, this proposal requests funding for the continuation of ReactiveDOT, along with its related projects: DOTConsole and DOTConnect.

Project goals

ReactiveDOT is a library designed to:

  • Simplify development: Provide a set of intuitive front-end functions and utilities to facilitate Substrate chain interactions, making development accessible for developers of all skill levels.
  • Enhance developer experience: Reduce boilerplate code and complexity involved in integrating DApps with Substrate chains, allowing developers to focus on building robust applications.
  • Promote adoption: Lower the entry barrier for developers through improved tooling and familiar patterns, encouraging the adoption of Polkadot.

Previously completed goals

Ink! contract support

As of now, ReactiveDOT provides what is arguably the best-in-class front-end API for smart contracts in any ecosystem.

Incremental loading

Improves perceived latency for large multi-queries by enabling partial results to stream in incrementally.

≥ 90% test coverage

Maintained high test coverage across the codebase.

Miscellaneous contributions

Beyond my own projects, I contribute to various efforts in the Polkadot ecosystem whenever possible. You can see my recent activity here:
https://github.com/tien?tab=overview

In-progress

Query composition

Most of the current research has focused on enabling stable cached Promises within render logic to leverage native React 19 support for use.

The goal is to allow developers to compose logic on top of these cached Promises.

Research findings so far:

  • Creating stable Promises outside the React render cycle is too memory-expensive, as a new cache entry is required for every permutation of hook arguments.
  • Creating stable cache entries within the render cycle is potentially feasible, but very complex. The cache must remain stable across multiple suspense cycles while also being weakly held (not strongly referenced), allowing it to be garbage collected.

Further research will be conducted to determine whether this direction remains viable or if a different approach should be pursued.

Planned works

Solidity-based contract support

In anticipation of the upcoming Polkadot Hub launch with PalletRevive, similar support for Ink! contracts will be extended to Solidity contracts that expose ABIs. The goal is to maintain a unified developer experience and API regardless of contract implementation.

Granular cache manipulation

As usage around smart contract grows, many interactions will become pull-based (as opposed to reactive storage push-based). As such, manual cache control becomes essential.

Proposed API:

const loader = useQueryLoader();

// Eagerly load queries into cache
loader.loadQuery((query) => query.runtimeApi(/* ... */));

// Refresh active queries
loader.refresh((query) => query.runtimeApi(/* ... */));

/**
 * Mark queries as invalid:
 * - New data will be fetched on the next render
 * - If there's no active query, the cache will be removed
 */
loader.invalidate((query) => query.runtimeApi(/* ... */));

Additional filtering-based lookup will also be supported:

const queryLoader = useQueryLoader();

// Invalidate all queries, akin to a garbage collection cycle
loader.invalidate.all();

// Invalidate all balance-related caches
loader.refresh.all((entry) => entry.pallet === "Balances");

// Especially useful for smart contracts
loader.refresh.all(
  (entry) =>
    entry.instruction === "contract-read" &&
    entry.address === SOME_CONTRACT_ADDRESS,
);

Auto-refresh/refetch for contract queries

Since all interactions are cached and serialized, ReactiveDOT can track all contract reads and provide configurable auto-refresh behavior:

import { contracts } from "@polkadot-api/descriptors";

const psp22 = defineContract({
  descriptor: contracts.psp22,
  // Refresh strategy can be:
  autoRefresh: {
    // After each mutation
    postMutation: true,
    // After every `x` blocks
    everyBlockCount: 5,
    // Potentially more advance strategies
    inResponseToEvent: (event) => {
      /* TBD */
    },
  },
});

Incremental loading for single query

Much like incremental loading for multi-queries, an escape hatch could be provided for single-query scenarios. While ReactiveDOT remains committed to a suspense-first design, careful consideration will be given as to whether and how this feature should be implemented.

Continued improvements to DOTConnect & DOTConsole

Further enhancements will be guided by community feedback or requirements identified to support the ongoing testing and development of ReactiveDOT.

Funding request

  • Period: July 2025 – October 2025
  • Duration: 4 months (89 workdays / 712 hours)
  • Hourly rate: 125 USDC
  • Total requested: 89,000 USDC

Discussion

18 comments from OpenShore and Subsquare; spam hidden

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

Progress seems solid. Could you please mention some of the challenges you may have encountered during implementation and how you were able to resolve them?

tien526d 20h ago

This is a rather broad question. If I have to pick, the hardest was to come up with an optimal DevEx and somehow adhere to it given the complexity of Substrate. No particular way to resolve them other than banging your head against the wall enough times until it stops being a problem :))

polkaworld521d 15h ago

PolkaWorld votes NAY

Until a clear compensation framework is established for the Treasury, PolkaWorld will reject any proposal with an hourly rate exceeding $100.

Additionally, this proposal lacks budget transparency and provides insufficient information about the team behind it.

Read all feedback here.

tien521d 13h ago

Hey @polkaworld, thanks for clarifying your position on waiting for a compensation framework 🙏

Regarding the other two points:

  • Budget transparency: The funding covers a single contributor (myself) and is scoped to include all development, testing, documentation, communication, and support. With everything being open source.
  • Team info: Apologies for not expanding further here. This proposal references my previous work, with the first (#812) briefly outlining my background and contributions.
polkaworld518d 15h ago

@tien Thank you for the clarification! However, we still believe that a rate of 125 USDC per hour is quite high, as we’ve emphasized in our recent public statement. Thank you for your understanding!

tien518d 4h ago

Thank you for acknowledging that 🙏. Regarding the capped rate policy you’ve implemented, I can assure you that no engineer operating at this level would commit to 3–4 monthly interval contracts with zero guarantees for renewal, while also having to handle funding, communication, and coordination for sub-$100 an hour.

AzzMog520d 13h ago

✅ Why Vote YES • High Developer Impact: ReactiveDOT simplifies dApp development on Substrate chains using modern React APIs. Ink! smart contract support is already live; Solidity support is coming. • Modern Frontend Design: Features include incremental loading, cache-aware queries, suspense-first architecture, and auto-refreshable contract reads. • Trusted Contributor: Tien is an established builder with deep contributions to the Polkadot ecosystem and >90% test coverage across the codebase. • Low Overhead: Solo developer requesting 125 USDC/hour for full-time work over 4 months (712 hours total). Efficient, clear scope. • Supports Upcoming Polkadot Hub: New Solidity compatibility (via PalletRevive) is being integrated—ensuring unified UX for both Ink! and Solidity contracts.

⸻

❌ Why Vote NO • Solo Development Risk: Project continuity, responsiveness, and scalability may be at risk due to single-developer dependence. • Limited User Adoption Metrics: While technically impressive, there is little data shared on actual dApp adoption or user metrics. • PolkadotJS/SDK Already Exists: Some may argue ReactiveDOT overlaps with existing dev tooling like polkadot.js or useInk, raising questions of differentiation. • Highly Technical Scope: Features like granular cache invalidation or React Suspense hooks may benefit advanced devs more than casual builders.

⸻

📌 Conclusion ReactiveDOT aims to make Polkadot dApp development easier, faster, and more scalable—especially ahead of the Polkadot Hub era. If adopted, this funding will maintain momentum on one of the most advanced frontend SDKs in the ecosystem.

Dear Proposer,

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

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 six aye and two nay votes from ten available members. Below is a summary of our members' comments:

In the referendum, a majority expressed support for the initiative, highlighting its potential to advance developer resources and improve experiences in building decentralized applications. Some voters acknowledged the project's merits but raised concerns about its cost, questioning the justification for the significant funding request. While there was enthusiasm for the initiative's progress and the emergence of alternative solutions, a few voters remained skeptical about the clarity of its benefits and the necessity of the proposed budget, suggesting a need for further review.

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

tien519d 9h ago

Thanks for your vote of confidence, guys. 🙏

Josep519d 11h ago

This proposal deserves unequivocal support.

@tien has consistently delivered high-quality tools that are both practical and increasingly more appreciated across the ecosystem. Beyond the technical contributions, Tien actively engages with the community and provides insightful feedback upstream: improving not just their own work, but the broader developer experience as well.

Having such a talented builder in the Polkadot ecosystem is a huge asset. Supporting this proposal is a clear win for everyone involved.

tien519d 9h ago

Thanks for the words of support @Josep!

OG Tracker518d 20h ago

OG Tracker Rating 2/3

Clear display of deliverables✅

  • Solidity-based contract support
  • Granular cache manipulation
  • Auto-refresh/refetch for contract queries
  • Incremental loading for single query
  • Continued improvements to DOTConnect & DOTConsole

Clear display of a valid direct point of contact ❌

  • Not provided.
  • @tien Could you share a valid point of contact in case someone needs to reach out?

Clear display of proposal’s duration✅

  • The duration of this proposal is 4 months.

OGT Rating aims to help voters make better informed decisions and direct proposers towards certain common-good practices. We are providing feedback based on 3 simple yet crucial criteria which we believe should be included in every OpenGov referenda.

Truth DAO515d 1h ago

TruthDAO votes NAY.

In accordance with the TruthDAO Manifesto, we reject any proposal requesting over $100 without a detailed budget breakdown.

You can view our full feedback here.

📖Truth DAO Governance Statement

💭 Contact: Email, Telegram

🗳️ Delegate

1ThiBx…Dvvjg514d 9h ago

@Truth DAO

This makes 0 sense. You want to pay, and pay well devs that do a great job. Tien is one of them. Such pointless rules just scare away good devs. You remain with grifters, that pretend to be cheap, but never deliver.

1ThiBx…Dvvjg514d 9h ago

This proposal is a clear AYE for me. Tien is an asset to the Polkadot eco at many levels. I've been a user of the dot-connect library for years now, it's unmatched, it's always kept up to date and enhanced, and if you ever have a question or an issue, you get an answer in no time. Similarly, the reactive-do project and dot-console interface has been pushing boundaries and proven very useful.

tien514d 8h ago

Thanks for the kind words @Thibaut!

15ft9F…ZX4jS500d 1h ago

LOL, this is hilarious. The cost is absurdly high, and literally no one is using it. Even the trend is going down, just look at this: https://npmtrends.com/@reactive-dot/core-vs-polkadot-api

15ft9F…ZX4jS500d 1h ago

For comparison, Paraspell's trend is going up, and it does a better job. On top of that, its cost is significantly lower compared to this proposal. LOL: https://npmtrends.com/@paraspell/sdk-vs-@paraspell/sdk-pjs-vs-@reactive-dot/core