Per-chain entities PG optimization
Now, if you set disable_default_cross_chain: true, the per-chain entities will be split into PG partitions to optimize read and write performance when targeting a specific chain.
Per-chain entities with ClickHouse config
You can use the automatically added chainId column for the orderBy ClickHouse configuration.
Improved Schema.graphql validation errors
They provide an exact location, a concise description, and a suggested solution.
schema.graphql:7:13: Invalid `@index` on `Second`: `missing` is not a column of the entity.
Available columns: `id`, `value`.
Nullability with @derivedFrom
To better match SubGraph behavior, HyperIndex now supports any nullability combination for derived fields. Check out our Envio Subgraph solution if you want to run your Subgraph with HyperIndex under the hood with 0 code changes.
type Parent {
id: ID!
strict: [Child!]! @derivedFrom(field: "parent")
nullableList: [Child!] @derivedFrom(field: "parent")
nullableItems: [Child]! @derivedFrom(field: "parent")
nullableBoth: [Child] @derivedFrom(field: "parent")`,
}
type Child {
id: ID!
parent: Parent!
}
Support one address for multiple contracts
This is especially nice when you have factory contract addresses you don't control.
name: shared-address-routing
contracts:
- name: Token
events:
- event: Transfer(address indexed from, address indexed to, uint256 value)
- name: Vault
events:
- event: Transfer(address indexed from, address indexed to, uint256 value)
- event: Deposit(address indexed owner, uint256 amount)
chains:
- id: 1
contracts:
- name: Token
address: "${sharedAddress}"
- name: Vault
address:
- "${sharedAddress}" # An error before, now a legit case
- "${vaultOnlyAddress}"
SVM (experimental)
- The
instruction.argsis not optional anymore. The instructions that failed to decode are skipped #1583 - The
experimental.hypersync_configbecomes optional and automatically derived fromchain.id#1588 - Finalize SVM handler and data types #1590