Skip to content

Conversation

@alex-mysten
Copy link
Contributor

@alex-mysten alex-mysten commented Nov 8, 2025

Description

When implementing light-client, I discovered small server-side issues to address:

  1. pagination fixed, we now return the next key to return if there are more rather than the last key
  2. get_obj_inclusion_proof now returns a distinct error code if the event_stream_head not included in a checkpoint
  3. more exhaustive testing around pagination and size limits

Test plan

E2e tests


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

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

@vercel
Copy link

vercel bot commented Nov 8, 2025

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

Project Deployment Preview Comments Updated (UTC)
sui-docs Ready Ready Preview Comment Nov 10, 2025 2:35am
2 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
multisig-toolkit Ignored Ignored Preview Nov 10, 2025 2:35am
sui-kiosk Ignored Ignored Preview Nov 10, 2025 2:35am

@alex-mysten alex-mysten temporarily deployed to sui-typescript-aws-kms-test-env November 8, 2025 15:01 — with GitHub Actions Inactive
@alex-mysten alex-mysten marked this pull request as ready for review November 8, 2025 15:05
@alex-mysten alex-mysten temporarily deployed to sui-typescript-aws-kms-test-env November 8, 2025 15:05 — with GitHub Actions Inactive
@alex-mysten alex-mysten temporarily deployed to sui-typescript-aws-kms-test-env November 8, 2025 15:05 — with GitHub Actions Inactive
req.stream_id = Some(stream_id.to_string());
req.start_checkpoint = Some(start_checkpoint);
req.page_size = page_size;
req.page_token = page_token.clone();
Copy link
Contributor

Choose a reason for hiding this comment

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

no need to fix in this PR but this is screaming out for a builder pattern

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is prost (protobuf) generated object. We use #[non_exhaustive] which means that we don't provide constructors in rust for these objects, because adding new fields would break callers. There isn't a directive that generates builders, and my aim is to be consistent with sui-rust-sdk.


assert!(
!response.events.is_empty(),
"should have at least one event"
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this be exactly 1?

Copy link
Contributor

@mystenmark mystenmark left a comment

Choose a reason for hiding this comment

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

approved with small comments

@alex-mysten alex-mysten force-pushed the steka-aes-event-indexing-fix branch 3 times, most recently from 9a15fa9 to 82f372c Compare November 12, 2025 18:56
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.

3 participants