Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
DZakh
commented
Apr 2, 2025
|
|
||
| ### Field Selection | ||
|
|
||
| You can optimize data retrieval by specifying exactly which fields to fetch (this is used to enhance performance, see [Interactive Schema Explorer](#interactive-schema-explorer) section): |
Member
Author
There was a problem hiding this comment.
Clarified the wording and made Field Selection per event the default one.
DZakh
commented
Apr 2, 2025
Comment on lines
+62
to
+65
| ```typescript | ||
| import { Greeter, User } from "generated"; | ||
|
|
||
| // Handler for the NewGreeting event |
Member
Author
There was a problem hiding this comment.
Moved example higher on the page
DZakh
commented
Apr 2, 2025
Comment on lines
+158
to
+168
| HyperIndex provides many features to help you build more powerful and efficient indexers. Read more about these on separate pages: | ||
|
|
||
| - Handle Factory Contracts with [Dynamic Contract Registration](/docs/HyperIndex/dynamic-contracts) (with nested factories support) | ||
| - Index all ERC20 token transfers with [Wildcard Indexing](/docs/HyperIndex/wildcard-indexing) | ||
| - Use [Topic Filtering](/docs/HyperIndex/wildcard-indexing) to ignore irrelevant events | ||
| - With [multiple filters for single event](/docs/HyperIndex/wildcard-indexing#multiple-filters-example) | ||
| - With [different filters per network](/docs/HyperIndex/wildcard-indexing#different-filters-per-network) | ||
| - With [filter by dynamicly registered contract addresses](/docs/HyperIndex/wildcard-indexing#index-all-erc20-transfers-to-your-contract) (eg Index all ERC20 transfers to/from your Contract) | ||
| - [Access Contract State](/docs/HyperIndex/contract-state) directly from handlers | ||
| - Perform external calls from handlers by following the [IPFS Integration guide](/docs/HyperIndex/ipfs) | ||
| - Optimise database access with [Loaders](/docs/HyperIndex/loaders) |
DZakh
commented
Apr 2, 2025
Comment on lines
+198
to
+203
| - `event.block` – Block fields (By default: `number`, `timestamp`, `hash`). | ||
| - `event.transaction` – Transaction fields (eg `hash`, `gasUsed`, etc. Empty by default). | ||
|
|
||
| :::note | ||
| Configure block and transaction fields with [`field_selection`](/docs/HyperIndex/configuration-file#field-selection) in your `config.yaml` file. | ||
| ::: |
DZakh
commented
Apr 2, 2025
Comment on lines
+257
to
260
| <TabItem value="typescript" label="TypeScript"> | ||
|
|
||
| ```javascript | ||
| ```typescript | ||
| const pool = await context.Pool.get(poolId); |
Member
Author
There was a problem hiding this comment.
Made TypeScript the default
DZakh
commented
Apr 2, 2025
Comment on lines
-225
to
+300
| import { Greeter, User } from "generated"; | ||
| The context object also provides a logger that you can use to log messages to the console. Compared to `console.log` calls, these logs will be displayed on our [Hosted Service](/docs/HyperIndex/hosted-service) runtime logs page. |
DZakh
commented
Apr 2, 2025
Comment on lines
+30
to
+34
| - **[Node.js](https://nodejs.org/en/download/current)** _(v18 or newer recommended)_ | ||
| - **[pnpm](https://pnpm.io/installation)** _(v8 or newer)_ | ||
| - **[Docker Desktop](https://www.docker.com/products/docker-desktop/)** _(required to run the Envio indexer locally)_ | ||
|
|
||
| You'll also need to install the Envio CLI: | ||
|
|
||
| ```bash | ||
| npm i -g envio | ||
| ``` | ||
| > **Note:** Docker is specifically required to run your indexer locally. You can skip Docker installation if you plan only to use Envio's hosted service. |
moose-code
reviewed
Apr 2, 2025
| - parentHash | ||
| ``` | ||
|
|
||
| Try to use this option sparingly as it can cause redundant Data Source calls and increased credits usage. |
moose-code
approved these changes
Apr 2, 2025
Member
moose-code
left a comment
There was a problem hiding this comment.
Awesome!!! Lots of really good changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.