Substrate Monthly Ecosystem Technical Newsletter — June Issue

OneBlock+
OneBlock Community
Published in
12 min readJun 28, 2024

Substrate Monthly — Ecosystem Technical Newsletter, produced by OneBlock+, summarizes the technical progress of the top projects in various areas in the Polkadot ecosystem each month to get the community updated on the status of the ecosystem. Areas include DeFi, infrastructure, smart contracts, privacy, GameFi, etc. Items include critical technical submissions, modifications and releases, technical discussions, and references.

The following is the June issue. Enjoy~

DeFi

01.Acala Network

Acala is building the liquidity layer for web3 finance that is captive and sustainable. It aims to provide infrastructures for HyFi (DeFi+CeFi) solutions with crypto and real-world assets. Acala offers a Universal Asset Hub that hosts multichain liquid staking token (LST) protocols (such as liquid DOT — LDOT), an AMM decentralized exchange, and an app platform that is EVM-compatible and highly customizable (based on Substrate). Acala is secured by Polkadot, and is the liquidity gateway of Polkadot parachains and L1/L2 blockchains.

Important Technological Improvement and Advances

ChatGPT

Concept Proof Completion for XCQ

https://github.com/open-web3-stack/XCQ/pull/28

Chopsticks Version 0.12.2

https://github.com/AcalaNetwork/chopsticks/releases/tag/0.12.2

Technical Solution Discussion

Discussion on How Chopsticks Can Support Polkadot <> Kusama Bridge

https://github.com/AcalaNetwork/chopsticks/issues/741

Enhancing Chopsticks Functionality Using New Runtime API

https://github.com/AcalaNetwork/chopsticks/issues/765

Technical Documentation Reference

02.Bifrost

Bifrost is the Polkadot Ecological DeFi basic protocol. It is committed to becoming an infrastructure for staked assets to provide liquidity. Bifrost launched derivatives vToken for Staking and Polkadot Parachain Slot (Crowdloan). It has obtained $2.15M in fund-raising from NGC, SNZ, DFG, CMS and other institutions and Web3 Foundation Grant. It is also a member of Substrate Builders Program and Web3 Bootcamp.

vToken can optimize transactions in multiple scenarios such as DeFi, DApp, DEX, CEX, and realize the transfer channel of stake rights such as staking and Crowdloan through vToken, realize the risk hedging of stake assets, and expand scenarios such as vToken as collateral for lending, its staking reward part of the interest can be offset to achieve low-interest loans.

Important Technological Improvement and Advances

Runtime v0.10.0

  • Launched BNC 2.0 related pallets
  • Upgraded Polkadot dependency to version 1.6
  • Upgraded XCM derivative address rules
  • Removed the bounty & tips pallet

Runtime v0.11.0

  • Added methods to modify currencyMetadatas
  • Added RPC to directly query vToken exchange rates
  • Introduced BNC buyback functionality
  • Adjusted Zenlink fee receiving address to be customizable
  • Adapted SLPx pallet to the new Commission channel
  • Upgraded to Polkadot SDK 1.7.0
  • Removed SLP refund logic
  • Fixed the issue of abnormal user locked amounts in vtokenVoting after calling unlock()

Dapp

  • Added display of user address redemption quantity limits & public queue display on the vToken unstake page
  • Introduced a vToken calculator where users can manually input their investment amount and holding period to quickly see related returns
  • Optimized the vToken Governance card, allowing users to see more information about referenda and their own votes more intuitively
  • Enhanced the liquidity interface by adding features of Stable swap to avoid user confusion
  • Improved the check of user address fees before cross-chain asset transfers to Assethub
  • Optimized the display of Collator redemption status, making successful redemptions more noticeable
  • Improved explanations in Loopstake
  • Added a feature to hide pools with smaller liquidity in the Swap pool

Technical Documentation Reference

Smart Contract

03.Moonbeam Network

Moonbeam is a developer-oriented blockchain that strives to provide compatibility with the existing Ethereum developer toolchain and network. It does this by providing a full EVM implementation, a Web3-compatible API, and bridges that connect Moonbeam to existing Ethereum networks. This allows developers to deploy existing Solidity smart contracts and DApp frontends to Moonbeam with minimal changes.

Important Technological Improvement and Advances

Client upgrade v0.38.0

  • [Moonbeam] Enable support for async-backing (#2805)
  • [Moonriver] Enable support for async-backing (#2804)
  • Fixes 🔨 trace_filter RPC call by filtering out unknown ethereum transactions (#2800)
  • Add debug_traceCall RPC method (#2796)
  • Set the default client authoring duration to 2s (#2814)
  • Add Onfinality bootnodes (#2771)
  • MoonbeamFinalityApi to fully async/await (#2784)
  • Update Rust version to 1.77.0 (#2817)

Runtime upgrade 3000&3001

[Moonbeam]

  • Block time halved to 6s (enable async-backing) (#2805)
  • Decrease the target block fullness to 35% (#2816)
  • Add migration to ComputeTheoreticalFirstSlot (#2845) — Runtime 3001

[Moonriver]

  • Block time halved to 6s (enable async-backing) (#2804) (#2776)
  • Block gas limit doubled to 30mln (#2818)
  • Decrease the target block fullness to 35% (#2816)

[Moonbase Alpha]

  • Decrease the target block fullness to 35% (#2816)

Add Cancun compatibility (#2795)

  • Add support for Solidity v0.8.25

[Moonbase Alpha] Enable pallet-xcm precompile (#2803)

Update pallet weights (#2802)

Remove localAssets lazy migration (#2797)

Remove moonbase migration (#2807)

Remove old runtime migrations (#2813)

Update rust version to 1.77.0 (#2817)o

Update weights (#2820)

Technical Solution Discussion

PureStake Docker Hub retirement — migrate to Moonbeam Foundation Docker Hub

Technical Documentation Reference

Storage

04.CESS

CESS (Cumulus Encrypted Storage System) is a blockchain powered decentralized storage and content delivery network (CDN) infrastructure for Web3. Users and creators alike use the platform for on-chain data sharing, whilst builders can develop and deploy DApps.

Offering the most optimal Web3 solution for storing and retrieving high-frequency dynamic data, CESS reshapes the value distribution and circulation of data assets whilst ensuring data sovereignty and user privacy. By utilizing a decentralized physical infrastructure network (DePIN) model, CESS drives mass deployment of network nodes globally through incentives.

CESS network consists of four layers: Blockchain Layer, Distributed Storage Resource Layer , Distributed Content Delivery Layer, and Application Layer. CESS’s R²S consensus mechanism coordinates the network resources and network load, guarantees data security and integrity through proprietary technologies with data ownership protection, technologies such as Proof of Data Reduplication and Recovery (PoDR²), Multi-format Data Rights Confirmation (MDRC), and decentralized proxy re-encryption. CESS aims to be the first decentralized storage network that supports large-scale commercial applications.

CESS is also compatible with EVM and WASM, and the underlying development framework Substrate is also friendly to cross-chain applications. Its technology stack can support most Web3 applications and the development needs of enterprise-level applications.

Important Technological Improvement and Advances

Consensus Nodes [v0.7.6]

  • Added a territory module to CESS Node, allowing users to purchase space (territory) by blocks and mint or resell NFTs for the territory.
  • Completed the writing and testing of benchmarks for new CESS Node features.
  • Fixed issues with storage node rewards due to insufficient treasury funds.
  • Fixed issues and warnings after upgrading the Substrate framework.
  • Adjusted system parameters such as token decimal places after upgrading the Substrate framework.
  • Completed documentation for TEE Worker and Intel SGX.
  • Fixed benchmark test cases that failed after Substrate upgrade.
  • Deployed and tested cross-chain contracts between the CESS chain and Ethereum.
  • Upgraded the Dockerfile for CESS Node and fixed deployment issues.
  • Optimized the TEE Worker codebase by removing outdated test units.
  • Upgraded the intel-sgx-env image to the latest version, adapting to the latest TEE Worker codebase.

Storage Nodes [v0.7.10]

  • Developed a monitoring program supporting remote management of multiple storage nodes on different machines.
  • Implemented visual interactive features for the monitoring program, enabling web-based node monitoring and operation.
  • Fixed issues with the multi-container deployment script program not installing Docker and Docker-Compose correctly.
  • Added command completion functionality to the multi-container deployment script program for easier node management.
  • Upgraded the storage space management module in the multi-container deployment script program, allowing users to only reduce unverified idle space.
  • Fixed an issue with the idle space proof module due to incorrect on-chain parameters.

CESS is a blockchain powered decentralized storage and CD²N (content decentralized delivery network) infrastructure for Web3. By utilizing a DePIN (decentralized physical infrastructure network) model, CESS drives mass deployment of network nodes globally through incentives. The first of its kind, DeOSS (decentralized object storage services) by CESShas significantly contributed to the gradual enrichment and flourishing of the product ecosystem within the CESS network, DeShare (online file sharing tool), and public chain snapshot storage services have been incubated. The developments for this month are as follows:

Decentralized Object Storage Service (DeOSS)

  • Enhanced file breakpoint resume functionality, adding boundary checks like filename character length limits.
  • Improved file breakpoint resume functionality to support concurrent and out-of-order file chunk uploads.
  • Introduced the “CANS Protocol,” allowing users to package and store small files together, saving storage resources.
  • Enhanced data download functionality by reducing unnecessary HTTP headers, facilitating online file preview via DeOSS.
  • Refactored the file upload and download service modules, separating different business logic for easier maintenance and upgrades.
  • Improved user file cache management, limiting the number and cache usage of files a single user can upload simultaneously to reduce load.
  • Added support in the js-sdk for file chunking and breakpoint resume functionalities.
  • Improved the go-sdk developer guide with usage manuals for each module and indexed the directory.
  • Added a query function for consensus node staking information in the go-sdk.
  • Updated system properties, configuration parameters, and code examples in the go-sdk to be compatible with the latest CESS chain version.
  • Adapted the latest version of the go-sdk.
  • Optimized the data query permission management logic and cache refresh strategy for lightweight cache nodes, mitigating flood attacks.
  • Updated the go-sdk developer guide, adding explanations and code examples for methods in the codebase.

Blockchain Explorer (Substats)

  • Fixed issues with transaction data chart displays in the new blockchain browser.
  • Fixed errors in the active account statistics for storage nodes in the new blockchain browser.
  • Resolved issues with the backend of the new blockchain browser parsing storage node mining reward release events.
  • Corrected inaccurate display of node numbers and storage capacity in the new blockchain browser.
  • Fixed synchronization issues with the latest CESS chain blocks in the new blockchain browser.

Online File Sharing Tool (DeShare)

  • Fixed issues with large file uploads failing due to data transmission limits.

CESS Website (cess.cloud)

  • Updated the homepage directory index and key reference links in the official documentation.

Technical Documentation Reference

Infrastructure

05.Deeper Network

Deeper Network is committed to building a truly decentralized Internet and security gateway. It aims to bring a better Internet experience for every family and become the gateway for users to Web 3.0 applications. Deeper’s vision is to combine network security, network sharing, and blockchain technology to create a safer, freer, and faster decentralized network.

Important Technological Improvement and Advances

GUI-Frontend:

  • Added a temporary borePassword mock function.
  • Added functionality to open browser URLs in TransactionDetail.
  • Added fixed width and center content horizontally.
  • Added support for Bitcoin chain and wallets.
  • Added getBalanceOrErc20Balance function for querying token balances.
  • Added selected BTC wallet option in the SendToken component.
  • Added baseUrls for different blockchain chains.
  • Updated editing status based on the selected token.
  • Added keyStore backup method in the BackUpAccount component.
  • Added API endpoint to export the keystore file.
  • Added endpoint to import keystore and a drawer for options.
  • Added functionality to import keystore files.
  • Added function to clear the keystore file and import keystore.
  • Removed setMnemonic function from the DeeperWallet component.
  • Refactored wallet component function to improve readability.

GUI-Backend:

  • Enhanced wallet management and backup functionality with new interfaces for scanning wallet keystores, checking backup requirements, and marking backups as complete.
  • Expanded asset query and transaction interfaces: Added primary coin balance query and ERC20/SPL token balance query functions, as well as ETH and smart contract token transfer capabilities, enhancing asset management and operational flexibility.
  • Added address and transaction history management features: New interfaces for fetching address lists, adding and updating addresses, and querying transaction history, enhancing the management and querying options for account and transaction data.
  • Enhanced security and performance: Improved system stability through error handling and logging, added functionality for periodic transaction record cleaning to optimize database performance.
  • Updated library dependencies and environment configurations: Introduced new library dependencies to support the Solana ecosystem, expanded database configurations to accommodate the functional expansion and data management needs of Deeper Wallet.
  • Unified ETH and Solana interfaces: Provided more consistent front-end API interfaces, improving user experience and system usability.
  • Removed case sensitivity: Unified case handling in database fields and SQL statements, enhancing data processing consistency and accuracy.
  • Enhanced transaction functionality flexibility: Added support for v2 transaction sending interfaces and SN retrieval, enhancing the system’s support for advanced transaction operations.
  • Optimized token list management: Added interfaces for fetching default and existing token lists, along with database table modifications, enhancing the flexibility and efficiency of token list management.
  • Unified handling of Solana fees: Enhanced the accuracy of cost calculations, optimizing fee handling for the Solana network.
  • Fixed wallet address derivation issues: Addressed problems with address derivation after wallet creation, ensuring the correctness and reliability of generated addresses.

Proxy-Wallet:

  • Added functionality for handling Solana program transactions.
  • Added endpoints for sending multiple Solana program transactions.
  • Added new endpoints for batch transaction handling.
  • Added new Solana API functions for sending transactions.
  • Added database integration and new API endpoints.
  • Refactored database insert methods in API functions.
  • Added functions to query the latest data for ImOnline, credit, and ShareProof.
  • Updated newCreditScore validation and insertion in the ProxyHandler_updateCredit function.
  • Added endpoints and functions for handling credit.
  • Updated the endpoint for adding credit by traffic handling.
  • Added functionality for recording user information.
  • Updated user_address in the dpr_sol_func.md output JSON.
  • Added new addresses to the send_multiple_spl_program function.
  • Renamed function to addCreditByTraffic for clarity.
  • Added checks for daily credit update limits.
  • Added restriction for decrementing credit only once every three days.
  • Added ProxyHandlerDeleteRecord function to handle deletion requests.
  • Updated database connection initialization with environmental variables.
  • Added scripts to create tables in the PostgreSQL database.
  • Added execute_sql script for running multiple SQL files.
  • Updated table creation to include IF NOT EXISTS clause.
  • Added API for deleting a record.
  • Updated API endpoints to use the proxy-wallet domain.
  • Added handler function for getting table information.
  • Added functions for handling Solana transactions and account information.
  • Added function to send credit scores to the Solana contract.
  • Added functions to query the history of ImOnline, Credit, ShareProof.

HD-Wallet:

  • Added support for base, linear.
  • Added support for generating taproot addresses.

Tax-Server:

  • Prohibited querying on-chain staking addresses.
  • Updated the CI/CD configuration to use deeper.yml and removed Jenkinsfile.

Technical Solution Discussion

Proxy-Wallet Middleware Data Caching Scheme:

  • Partial Transaction Data Historical Storage: Implemented functionality for segmenting key transaction data storage to optimize data access speed and reduce storage costs. Through a data tiering storage strategy triggered by smart contracts, high availability and security of data are ensured.
  • Merging On-Chain Transaction Histories: Developed a new method for merging on-chain transaction histories that allows the system to manage and retrieve transaction records more effectively. Through this method, transaction histories dispersed across different nodes can be consolidated, enhancing query efficiency and reducing redundant data.

Technical Documentation Reference

06.Ava Protocol

Ava Protocol is an intent-based Eigenlayer AVS that seamlessly enables private autonomous transactions for numerous use cases, such as DeFi, NFTs, and games. We’re enhancing decentralized applications with scheduled and recurring payments, stop-loss orders, streaming rewards, and more. Ava Protocol’s event-driven execution model triggers cross-chain transactions based on signals such as time, price changes, and smart contract updates. Developers can easily schedule and automate functions across different blockchains, including Ethereum, ensuring efficient and reliable execution without compromising privacy.

Important Technological Improvement and Advances

Upgrading Blockchain Codebase: We are upgrading to polkadot-sdk v1.1.0, enhancing the stability and performance of our blockchain infrastructure. See Pull Requests.

New Community Developer Grant: We received a grant from C3 Labs to develop cross-chain Limit Orders in collaboration with Moonriver and Solarbeam, advancing our cross-chain capabilities. Seel Pull Request.

Automation Hub Improvements: We’ve implemented fixes to address end user feedback and troubleshoot user issues, ensuring a smoother experience for our users.

Technical Documentation Reference

07.Darwinia Network

Darwinia is the community-run technology and service powering the cross-chain capabilities of decentralized applications.

Important Technological Improvement and Advances

  • Deprecated the BLS12381 precompile. link
  • The Darwinia assethub bridge app is now upgraded and rebranded as Darwinia Paralink! link
  • $RING cross-chain transfers between Darwinia and Hydration are now supported! link
  • Community RPC URL change. link
  • Darwinia partner Envio supports devs and data analysts building on the Darwinia with cutting-edge data indexing infrastructure and tools. link
  • Crab chain’s new explorer is ready for use. link
  • 400 Million $RING Burn! link
  • RING is tradeable on Hydration. link
  • The new testnet, Darwinia Koi, will replace Pangolin as the new testnet. link
  • Darwinia is one of the exhibitors ahead of Polkadot Decoded 2024 showcasing cutting-edge cross-chain technology.
  • Darwinia governance platform on Subsquare has changed. link

Technical Documentation Reference

Wallet

08.SubWallet

SubWallet is the comprehensive non-custodial wallet solution for Polkadot, Substrate & Ethereum ecosystems. With the mission of bringing users closer to Web3, we envision a Web3 multiverse gateway through which users can enjoy multichain services with utmost ease and absolute security. Connecting and using blockchain-based applications is smoother than ever with SubWallet Browser Extension & SubWallet Mobile App.

Important Technological Improvement and Advances

  • SubWallet released Extension v1.2.5 and Mobile v1.1.65 on June 17:

Extension v1.2.5: supported 9 currencies, extended support for Curio Network, Hyperbridge, CESS Testnet, BOB Network, Kusama People, Kreivo Network, Line, BSquared Network, Bitlayer, and BounceBit, added 42 new tokens, and integrated new XCM channels between Pendulum and Polkadot & Polkadot Asset Hub.

Mobile v1.1.65: supported new dApps — Common, Flappy Wud & Taniko, integrated Hydration in-app swap on iOS, and added new export multiple accounts features.

  • SubWallet is the first wallet to integrate the Polkadot ↔ Kusama bridge, enabling users to send DOT & KSM between Polkadot Asset Hub and Kusama Asset Hub.
  • SubWallet has successfully added support for Polkadot ↔ Ethereum bridge by Snowbridge. users can now transfer WETH and WBTC cross-chain between Ethereum and Polkadot Asset Hub smoothly.
  • SubWallet had already supported Asset Hub in-app swap.

Technical Documentation Reference

About OneBlock+

OneBlock+ is the first and the largest blockchain developer community in China. At OneBlock+, we provide full support for developers with their substrate studies and further set off their career paths. We host Polkadot Hackathons every season to attract top-notch developers to build and innovate for the prosperity of the ecosystem. As a greater China technology resource integrator, OneBlock+ also partners with developers, communities, business elites, and key media who have business insights and experiences in the blockchain industry to provide educational events, such as technical courses, webinars, AMAs, and offline events for the industry. Want to shape the crypto world together? Come and join us today!

Twitter / Telegram / Discord / YouTube

--

--

OneBlock+
OneBlock Community

Cultivate substrate developer community and redefine the future of open web ecosystem together.