Skip to main content

Envio Bounty Graduate: ERC4626 Indexer for Tokenized Vault Contracts

· 5 min read
Cover Image for Envio Bounty Graduate: ERC4626 Tokenized Vault Indexer

We’re excited to announce another significant milestone in Phase 1 of the Envio Bounty Program. We take huge pride in highlighting the latest achievement in our bounty program, where our very talented graduate “en0c” successfully tackled a significant challenge.

In this blog article, we’ll explore their recent accomplishment in building an Envio indexer for OpenZeppelin’s ERC4626 tokenized vault contracts, showcasing the true power of Envio's hyper-indexing capabilities. ⚡⚡⚡

User Story

This bounty aimed to tackle the challenges that blockchain developers face when wanting to query and/or present tokenized vault events in their applications. The goal was to enable developers to easily query and/or present tokenized vault events in their applications with custom GraphQL APIs.

Bounty Overview

For blockchain developers seeking an easy and efficient way to access information for tokenized vault contracts in their applications can be quite a cumbersome task. Our recent bounty introduced an indexer template tailored for OpenZeppelin’s ERC4626 tokenized vault contract standard. This template aims to bootstrap development time by indexing token vault events without the need to write the indexing logic by providing a pre-built solution for indexing OpenZeppelins’s token vault events.

The ERC4626 tokenized vault standard extends the functionality of the ERC20 standard by allowing fractionalized token supply through deposits and withdrawals to token vaults. The bounty included the development of a GraphQL schema, an Envio configuration file, and indexing logic in JavaScript. In addition, Envio indexer supports indexing logic in TypeScript or Rescript.

The schema includes three main types: TokenVault, Deposit, and Withdrawal. The TokenVault entity stores information about the tokenized vault, such as assets, shares, proportions, and exchange rates. Deposit and Withdrawal entities capture details about corresponding events, including sender, owner, assets, shares, and the associated vault.

From Development to Deployment

Our accomplished bounty graduate, "en0c," seamlessly deployed their ERC4626 indexer onto Envio's hosted service by effortlessly pushing the latest version of their indexer project to GitHub.

You can now explore the full functionalities of the ERC4626 token vault indexer, accessible in Envio's Explorer.

Screenshot of Example Query

In addition, our graduate demonstrated what a few GraphQL API queries would look like below:

Query Example: Get Vault State

Screenshot of Example Query

Query Example: Get the latest deposits

Screenshot of Example Query

Query Example: Get the latest withdrawals

Screenshot of Example Query

Envio stands out by providing a hassle-free solution for deploying and hosting your indexer. We take care of the entire infrastructure, eliminating the complexities associated with setup and management. This user-centric approach allows developers to channel their focus into refining their application's core functionality, ensuring an unparalleled user experience. For a comprehensive guide on deploying your indexer to Envio's hosted service, explore our documentation.

Bounty Reward

Acknowledging the task of the given bounty overview, Envio presented an enticing incentive of $100 in USDC for accomplishing the bounty successfully. This gesture not only functions as a gesture of gratitude for the effort and commitment invested in the development but also as a motivator for contributors to remain engaged in upcoming bounties, accessible through Envio's Discord or Envio’s Dework profile.

How to Get Involved?

Envio's bounty program welcomes blockchain developers of all skill levels, offering diverse challenges. Whether you're a seasoned developer seeking intricate tasks or a novice looking to embark on your developer journey, our program provides opportunities tailored to your capabilities.

Envio operates on a first-come, first-served basis, ensuring a fair and transparent allocation of bounties. To stay in the loop and get notified promptly, we encourage developers to hop into our vibrant Discord community, head over to our bounties💰channel, or follow us on Dework to stay in the loop on all bounty announcements.

For more information on how to claim a bounty click here.

About OpenZepplin

OpenZeppelin is a leading force in blockchain and smart contract development, offering a robust framework for secure and scalable dApps within the Ethereum ecosystem. Renowned for battle-tested smart contract libraries, OpenZeppelin provides developers with secure patterns and auditing services, ensuring the integrity of blockchain applications. With a commitment to security best practices, OpenZeppelin fosters a collaborative community and provides open-source resources for developers, making it a go-to platform for reliable blockchain development.

About Envio

Envio is a dev-friendly, speed-optimized, modern blockchain indexing solution that addresses the limitations of traditional blockchain indexing approaches and gives developers peace of mind. By harnessing the power of Envio, developers can overcome the challenges posed by latency, reliability, and costs across various sources. Envio is the front door for any application’s need to access, transform, and save real-time or historical data, from any EVM-compatible smart contracts. If you're a blockchain developer looking to enhance your development process and unlock the true potential of Web3 infrastructure, look no further.

Follow Envio on X (Formerly Twitter) and/or Hey (Formerly Lenster) for updates on new features, or jump into our Discord for any questions.