v2.3.0
What's Changed
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 by @JonoPrest in #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 by @JonoPrest
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 [email protected]
version, you can switch to [email protected]
and get:
- Now Fuel and Evm reuse the same code. This gives V2 API, much better test coverage, and many improvements/fixes compared to
[email protected]
- 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 by @DZakh in #186, #190, #192, #193, #194, #196, #202
Other 🏗️
- Add validation for end block on finite chains by @JonoPrest in #191
- Upgrade Hasura to latest v2 release by @JonoPrest in #169
- Use the local envio package for testing instead of defaulting to latest by @DZakh in #200
- Fix panic on null exn passed to error handling by @DZakh in #203
Full Changelog: v2.2.3...v2.3.0