Releases: enviodev/hyperindex
v2.11.6
v2.11.5
v2.11.3
v2.11.2
What's Changed
- Fix empty dynamic contract registrations bug @JonoPrest in #384
(Edge case that can presents as a range of missed events after a contractRegister function adds no new contract addresses) - Update chain tiers by @JonoPrest in #386
Full Changelog: v2.11.1...v2.11.2
v2.11.1
What's Changed
- Add prom gauge for partitions latest fetched block by @JonoPrest in #383
Full Changelog: v2.11.0...v2.11.1
v2.11.0
Field Selection per Event
You can specify field selection for individual events. This feature is useful for optimizing RPC and HyperSync calls by fetching only the data relevant to specific events, avoiding over-fetching.
Per-event field selection overrides any global field selection, ensuring precise data handling for each event.
events:
- event: "Transfer(address indexed from, address indexed to, uint256 value)"
field_selection:
transaction_fields:
- "to"
- "from"
By @DZakh in #373, #375, #376, #382
Full Changelog: v2.10.0...v2.11.0
v2.10.0
What's Changed
- Added support for the
from
,to
,gasPrice
,maxPriorityFeePerGas
,maxFeePerGas
,contractAddress
transaction fields with the RPC data-source by @DZakh in #371
Internal
- Allow to freely refactor the internal config type by @DZakh in #368
- Mark Tangle as Bronze HyperSync network by @DZakh in #374
Full Changelog: v2.9.1...v2.10.0
v2.9.1
What's Changed
- Fix init messages call by @DZakh in #367
- Fix blocked partition by @JonoPrest in #369
Full Changelog: v2.9.0...v2.9.1
v2.9.0
Environment Variables in the config file
The Envio config file can now use Environment Variables to offer more flexibility. If you want to switch between different configurations quickly, you don't need to edit the config file each time; you can just set Environment Variables at run time.
For the Hosted Service users, it's now possible to set custom Environment Variables 👀
Below is a simple example:
networks:
- id: ${ENVIO_CHAIN_ID:-137}
start_block: ${ENVIO_START_BLOCK:-45336336}
contracts:
- name: Greeter
address: ${ENVIO_GREETER_ADDRESSES}
Then you can run ENVIO_GREETER_ADDRESSES=0x9D02A17dE4E68545d3a58D3a20BbBE0399E05c9c pnpm dev
, or set the values via the .env
or the indexer settings page on the Hosted Service.
Interpolation syntax
For the interpolation to be applied, the Environment Variable name should be placed in braces after a dollar sign (${VAR}).
For braced expressions, the following formats are supported:
Direct substitution
${VAR}
-> value ofVAR
Default value
${VAR:-default}
-> value ofVAR
if set and non-empty, otherwisedefault
${VAR-default}
-> value ofVAR
if set, otherwisedefault
Other Improvements
- Fix to allow naming entities in schema.graphql as
Schema
,Belt
,EntityHistory
,InternalEntity
,Entity
,Utils
by @DZakh in #353 - Display HyperSync tiers for networks on init by @JonoPrest in #362
- Don't wait for the new block when there are partitions we still can query by @DZakh in #364
- Remove current height from the endBlock for HyperSync/HyperFuel queries to improve latency by @DZakh in #364
- Added deduplication for new block polling by @DZakh in #364
- Internal: Start working on the custom RPC client by @DZakh in #356
Full Changelog: v2.8.2...v2.9.0
v2.8.2
What's Changed
- Improve Entity History Cleanup Performance by @JonoPrest in #352
Full Changelog: v2.8.1...v2.8.2