-
Couldn't load subscription status.
- Fork 145
feat: horizon support #1117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
tmigone
wants to merge
57
commits into
main
Choose a base branch
from
horizon
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat: horizon support #1117
Conversation
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
…acts Signed-off-by: Tomás Migone <[email protected]>
Co-authored-by: Maikol <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Maikol
reviewed
Jun 19, 2025
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
…rameter Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
…der certain conditions Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
dwerner
approved these changes
Sep 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💪 based
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Maikol
approved these changes
Oct 7, 2025
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
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.
This PR introduces support for Graph Horizon, the evolution of The Graph protocol. Here are the key changes:
Changelog
1. Graph Horizon support
indexer-agentis capable of detecting Horizon readiness, switching from "legacy" operation mode to "horizon".indexer-agentandindexer-clisupport operating with both legacy and horizon set of protocol contracts.2. Subgraph Service operation
indexer-agentwill perform the following operations when starting up:INDEXER_AGENT_MAX_PROVISION_INITIAL_SIZEto the desired initial amount for the provision.indexer-agentequivalent options also available):INDEXER_AGENT_INDEXER_GEO_COORDINATESINDEXER_AGENT_PUBLIC_INDEXER_URLINDEXER_AGENT_PAYMENTS_DESTINATION3. Provision management
indexer-agentstartup4. Allocation management
indexer-agentautomatically handles legacy vs horizon allocation management.indexer-agentmanages this automatically except for manually closing allocations.5. Rules and Actions
6. GraphTally support (TAPv2)
indexer-agentwill use GraphTally for horizon allocation query fee collection7. Other enhancements
indexer-clicommands now support setting a maximum column width for output tables. This can be useful when displaying allocation or rules in the terminal on screens that are not wide enough. To use it:-w, --wrap [N] Wrap the output to a specific width (default: 0, no wrapping)indexer-agentis now able to process action batches where some of the actions fail. This feature is already present in latest agent version pre-horizon but was re-implemented in this PR. The main motivation for the refactor is that we are now dealing with transaction batches that can be made to two different contracts (HorizonStaking and SubgraphService).8. Dependencies & Tooling
@graphprotocol/common-tswith the new packages:@graphprotocol/address-bookfor obtaining protocol contract address books@graphprotocol/toolshedfor typescript common utilities@graphprotocol/common-tspackage in favor of@graphprotocol/toolshed.9. Full list of
indexer-agentoption changes--max-provision-initialINDEXER_AGENT_MAX_PROVISION_INITIAL_SIZE--horizon-address-bookINDEXER_AGENT_HORIZON_ADDRESS_BOOK--subgraph-service-address-bookINDEXER_AGENT_SUBGRAPH_SERVICE_ADDRESS_BOOK--address-bookINDEXER_AGENT_ADDRESS_BOOK--payments-destinationINDEXER_AGENT_PAYMENTS_DESTINATION--confirmation-blocksINDEXER_AGENT_CONFIRMATION_BLOCKSAdditional resources: