Skip to content

sui-analytics-indexer: implement accepts_chain_id - #26171

Merged
evan-wall-mysten merged 1 commit into
mainfrom
accepts_chain_id_analytics
Apr 14, 2026
Merged

sui-analytics-indexer: implement accepts_chain_id#26171
evan-wall-mysten merged 1 commit into
mainfrom
accepts_chain_id_analytics

Conversation

@evan-wall-mysten

@evan-wall-mysten evan-wall-mysten commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator

Description

Replaced the accepts_chain_id stub with an impl that stores the 32-byte chain_id at _metadata/chain_id/{pipeline_task}. Uses PutMode::Create to claim the file on first call; on AlreadyExists, reads it back and returns whether it matches.

Test plan

Added new unit 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:
  • Indexing Framework: Implement accepts_chain_id in analytics indexer.

@vercel

vercel Bot commented Apr 9, 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, Comment Apr 10, 2026 7:08pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
multisig-toolkit Ignored Ignored Preview Apr 10, 2026 7:08pm
sui-kiosk Ignored Ignored Preview Apr 10, 2026 7:08pm

Request Review

@evan-wall-mysten
evan-wall-mysten temporarily deployed to sui-typescript-aws-kms-test-env April 9, 2026 12:30 — with GitHub Actions Inactive

@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.

Change looks reasonable to me, but @nickvikeras is the expert here.

Comment thread crates/sui-analytics-indexer/src/store/mod.rs Outdated
Comment thread crates/sui-analytics-indexer/src/store/live.rs
@evan-wall-mysten
evan-wall-mysten merged commit 2b92b89 into main Apr 14, 2026
63 checks passed
@evan-wall-mysten
evan-wall-mysten deleted the accepts_chain_id_analytics branch April 14, 2026 23:59
evan-wall-mysten added a commit that referenced this pull request Apr 15, 2026
## Description 

Moves the `sui-analytics-indexer`'s `accepts_chain_id` impl (added in
#26171) into `sui-indexer-alt-object-store` so it can be used in both
locations.

## Test plan 

Added new unit 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:
- [x] Indexing Framework: Implement `accepts_chain_id` in object store
jordanjennings-mysten pushed a commit that referenced this pull request Apr 16, 2026
## Description 

Replaced the `accepts_chain_id` stub with an impl that stores the
32-byte `chain_id` at `_metadata/chain_id/{pipeline_task}`. Uses
`PutMode::Create` to claim the file on first call; on `AlreadyExists`,
reads it back and returns whether it matches.

## Test plan 

Added new unit 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:
- [x] Indexing Framework: Implement `accepts_chain_id` in analytics
indexer.
jordanjennings-mysten pushed a commit that referenced this pull request Apr 16, 2026
## Description 

Moves the `sui-analytics-indexer`'s `accepts_chain_id` impl (added in
#26171) into `sui-indexer-alt-object-store` so it can be used in both
locations.

## Test plan 

Added new unit 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:
- [x] Indexing Framework: Implement `accepts_chain_id` in object store
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