Proponent: Acala Foundation 12zgSMDwF5xpzcksvEdDzcSFouFNroXGRffgnhogSk1kR7iS
Requested: 100,000 DOT
Short description: This submission proposes a payment by Polkadot Treasury to cover maintenance, development, and hosting of open source projects (ORML, Chopsticks, and Subway) built by Acala team.
Scope: All the host cost and work done that was not covered by past treasury proposals till end of 2023 for those projects:
All the work covered by previous treasury proposals are considered out of scope in this proposal.
Acala team is always trying to improve the developer experience for the Polkadot ecosystem. From our development experience, we are identifying bottlenecks, and then creating open source solutions to solve the bottlenecks. As a result, we created the most used community pallet library: ORML, and an essential development tool for Polkadot developers: Chopsticks. Subway is the latest addition to our open source projects. It can significantly reduce the operation cost of running RPC nodes, improve security of RPC infrastructure, and provider better user experiences. Both ORML and Chopsticks are being used by many parachain teams, and there are many other teams are currently evaluating Subway.
This proposal is asking for 100,000 DOT to support Acala team to cover the development work and hosting cost (e.g CI machine and related devops work). This will help Acala team to continue development and support effort of those projects. We will also be able to prioritize the feature requests and support requests raised from the community.
https://github.com/open-web3-stack/open-runtime-module-library
ORML is the most commonly used community pallet library outside of polkadot-sdk. It offers many essential pallets including multi token support, NFT, XCM and many more. It is used by 20+ parachains and has been audited multiple times.
An incomplete list of work done since last treasury proposal:
https://github.com/AcalaNetwork/chopsticks
Chopsticks offers the ability to fork mainnet into a local devnet for testing and development purpose. It is used by many, if not all, parachains, multiple dapp teams, as well the Polkadot Core Fellowship members. It is a must-have tool for Polkadot developments.
An incomplete list of work done since last treasury proposal:
Polkadot Decoded 2023 talk about Chopsticks and Subway: https://www.youtube.com/watch?v=UowOAK9R6aQ
https://github.com/AcalaNetwork/subway
Subway is a JSON RPC Gateway built with Substrate and Ethereum RPC in mind. It is the only open source middleware tool available that supports Substrate JSON RPC. Subway offers rate limiting, cache, merge identical subscriptions, stale upstream rotation, APM integration and many more features. It is an essential tool to build and operate an RPC infrastructure.
Subway is currently used by all the public RPC endpoints hosted by Acala Foundation for Acala and Karura. It has been running smoothly for more than half a year and has significantly reduced the RPC cost as well as reduced latency and unplanned outages for users.
Compare to the numbers provided by Parity, with the help of Subway, Acala Foundation is able to operate the RPC nodes with ~1/5 of the hosting cost and serving ~1.7x amount of the requests.
An incomplete list of features implemented:
A breakdown is not included, but could be provided if requested. The main reason it is not created yet because it is very time-consuming to create such breakdown. Furthermore, we would like to emphasize that the proposed amount is not directly related to the cost and therefore a cost breakdown should not be necessary to evaluate this proposal. On top of that, ORML and Chopsticks are the most used community built open source project in the ecosystem and therefore the expectation is that the payout amount should be directly proportional to the impact been made to the whole ecosystem. While we would like to let the community decide the payout amount, the tipping system simply does not work (as we have never received any tip from Polkadot treasury). Therefore, we decided to make a request with a number just to initiate the process, and then making adjustments based on the feedbacks.
As community have requested for a breakdown, I am including a quick impact assessment breakdown to help people to estimate the impact of the work completed.
I am expect people to use this to help them to come up their own number of the fair value of this proposal, and then compare with the request amount, vote aye if request amount is lower, nye if request amount is higher. It will be helpful if people can post their idndepenlty accessed value as additional data point for collective value assessment. Note: this methodology should apply to all treasury spending proposals.
It is easier to evaluate the impact of the product as whole, rather the incremental updates, so I will focus on the whole product. Given that some of the work are already been paid by treasury, so the fair value for this proposal should be the difference between the whole product, subtract amount that have been paid, which are 14126 DOT ($69150) + 14038.3892 DOT ($74600) + 17051.9708 DOT ($113000).
Only provided estimations for each items. It should be possible to talk with every parachains to gather their usage to create an accurate assessment.
It will be fair to say without ORML, parachain teams will spend a lot of time building pallets doing similar things. One example we observed is the transaction-pause pallet that have at least 5 different implementations created by different team. ORML allow parachains to use high quality, audited, and well maintained solution. On top of that, dApp developers and wallet developers can access functionality with a same interface (e.g. XTokens) and that significantly reduces integration time.
Chopsticks significantly reduces the time required to setup testing environment. Without Chopsticks, it will take multiple hours to setup a multichain networks to perform XCM testing. It is also hard to maintain such networks (e.g. Rococo). And the outcome is still not great as the testing environment is significantly different than real environment.
Without Chopsticks, it takes non-trivial amount of work to replicate a testing environment to debug an issue. With Chopsticks, it takes less than 2 minutes.
Chopsticks is the only tool can be used to dry run governance proposals with XCM execution. It has been used by Polkadot Core Fellowship to verify proposals. It is the only tool can be used to perform full end-to-end XCM compatibility tests for new runtime releases.
It is easy to measure the impact of Subway. From real numbers compared between Parity and Acala, Subway can reduce the RPC node cost by ~8x. With 20 parachain and relaychain teams with on average of $10,000 per month RPC hosting cost per team (reference 1, 2), Subway is able to save ~$8000 per team per month, or $160,000 per month in total.
All of ORML, Chopsticks and Subway are using Github Action as CI tool with self-hosted runner. The CI infrastructure is shared with other projects and therefore only a fraction of the hours and hosting costs are included here.
Hours:
Cloud host:
Hours:
Hours:
Hours:
Total hours: 3200
Hourly cost: $100 to $300 depends on the position
Threshold