Skip to content

sui-indexer-alt-reader: merge AlphaLedgerGrpcReader into LedgerGrpcReader - #27723

Open
evan-wall-mysten wants to merge 1 commit into
evan-wall-mysten/kv-rpc-remove-list-apis-flagfrom
evan-wall-mysten/merge-alpha-ledger-grpc-reader
Open

sui-indexer-alt-reader: merge AlphaLedgerGrpcReader into LedgerGrpcReader#27723
evan-wall-mysten wants to merge 1 commit into
evan-wall-mysten/kv-rpc-remove-list-apis-flagfrom
evan-wall-mysten/merge-alpha-ledger-grpc-reader

Conversation

@evan-wall-mysten

@evan-wall-mysten evan-wall-mysten commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Description

Stacked on #27712.

The gRPC List APIs (ListTransactions/ListEvents) are no longer alpha as of #27666 — they're the only path now, with AlphaLedgerGrpcReader opened as a second, separate gRPC connection to the same ledger_grpc_url alongside LedgerGrpcReader's point-lookup connection. This folds list_transactions/list_events (and StreamPage/PageItem) directly into LedgerGrpcReader, deletes AlphaLedgerGrpcReader, and updates the GraphQL server to construct and register a single reader instead of two.

Side effect: the separate graphql_alpha_ledger_grpc metrics prefix is gone — List/Stream calls now report under the same graphql_ledger_grpc prefix as point lookups. Checked dashboards/ for references to the old prefix; found none.

Test plan

cargo check/clippy clean on sui-indexer-alt-reader, sui-indexer-alt-graphql, sui-indexer-alt-jsonrpc, sui-indexer-alt-e2e-tests. All 27 sui-indexer-alt-reader lib tests pass (including the moved ledger_grpc_reader::tests::* stream-draining tests). cargo fmt clean.

Release notes

  • Protocol:
  • Nodes (Validators and Full nodes):
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • Indexing Framework:

@evan-wall-mysten
evan-wall-mysten requested a review from a team as a code owner August 17, 2026 17:18
@evan-wall-mysten
evan-wall-mysten deployed to sui-typescript-aws-kms-test-env August 17, 2026 17:18 — with GitHub Actions Active
@vercel

vercel Bot commented Aug 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sui-docs Ready Ready Preview Aug 18, 2026 6:29pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
multisig-toolkit Ignored Ignored Preview Aug 18, 2026 6:29pm
sui-kiosk Ignored Ignored Preview Aug 18, 2026 6:29pm

Request Review

@evan-wall-mysten
evan-wall-mysten force-pushed the evan-wall-mysten/merge-alpha-ledger-grpc-reader branch from 9305fed to 0434d34 Compare August 17, 2026 18:27
@evan-wall-mysten
evan-wall-mysten changed the base branch from evan-wall-mysten/remove-list-apis-postgres-fallback to evan-wall-mysten/kv-rpc-remove-list-apis-flag August 17, 2026 18:27
@evan-wall-mysten
evan-wall-mysten deployed to sui-typescript-aws-kms-test-env August 17, 2026 18:27 — with GitHub Actions Active
@evan-wall-mysten
evan-wall-mysten force-pushed the evan-wall-mysten/merge-alpha-ledger-grpc-reader branch from 0434d34 to e917e38 Compare August 17, 2026 18:47
@evan-wall-mysten
evan-wall-mysten deployed to sui-typescript-aws-kms-test-env August 17, 2026 18:47 — with GitHub Actions Active
@evan-wall-mysten
evan-wall-mysten deployed to sui-typescript-aws-kms-test-env August 17, 2026 18:47 — with GitHub Actions Active

@amnn amnn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

/// A frame with none of the known fields set (unknown/future frame kind).
Unknown,
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: the constants are conventionally put before the types.

…ader

The List APIs are no longer alpha as of this PR, so fold list_transactions/list_events (and StreamPage/PageItem) into LedgerGrpcReader instead of maintaining a second gRPC connection and reader type for them.
@evan-wall-mysten
evan-wall-mysten force-pushed the evan-wall-mysten/merge-alpha-ledger-grpc-reader branch from e917e38 to f5cc924 Compare August 18, 2026 17:51
@evan-wall-mysten
evan-wall-mysten deployed to sui-typescript-aws-kms-test-env August 18, 2026 17:52 — with GitHub Actions Active
@evan-wall-mysten
evan-wall-mysten deployed to sui-typescript-aws-kms-test-env August 18, 2026 17:52 — with GitHub Actions Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants