HyperIndex v2.3.0

Released on 16 September 2024.

Wildcard Indexing ⁂

Index the whole chain by event signature without specifying exact contract addresses.

Here's an example of indexing all ERC20 Transfer events. No need to change the config file. Simply add the wildcard: true option to the second argument in your handler:

ERC20.Transfer.handler(
  async ({ event, context }) => {},
  {
    wildcard: true,
  }
)

Final touches implemented #171, #197

Event Filtering

Filter events by indexed parameters. Simplify your handler's logic or get new indexing possibilities when joined with the Wildcard Indexing feature:

UniswapV3Factory.PoolCreated.handler(async ({ event, context }) => {},
  {
    wildcard: true,
    eventFilters: [{ token0: DAI_ADDRESS }, { token1: DAI_ADDRESS }],
  },
);

Both Wildcard Indexing and Event Filters are currently only supported with HyperSync. We are working on adding support for RPC mode in the following versions.

Implemented

Fuel Merge

The fuel ecosystem indexer is integrated into the main repository code. This was a huge refactoring which came with a big list of benefits and a big list of opportunities.

If you use envio@x.x.x-fuel version, you can switch to envio@2.3.0 and get:

  • Now Fuel and Evm reuse the same code. This gives V2 API, much better test coverage, and many improvements/fixes compared to envio@x.x.x-fuel
  • Support for raw_events configuration
  • Support for Wildcard Indexing
  • Public repository
  • Active development and maintenance

Talking about opportunities, this unblocks:

  • Adding support for Mint/Burn/Call/TransferIn/TransferOut events
  • Indexer became more modular and library-like, simplifying the integration of new ecosystems in the future

Implemented #186, #190, #192, #193, #194, #196, #202

Other

  • Add validation for end block on finite chains #191
  • Upgrade Hasura to latest v2 release #169
  • Use the local envio package for testing instead of defaulting to latest #200
  • Fix panic on null exn passed to error handling #203
Contributors
JonoPrestDZakh
View on GitHub