-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
rpc-alt: resolveNameServiceAddress #21161
base: amnn/rpc-test-refactor
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
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.
The last usage of internal_context
disappeared during the refactorings to have load_latest
return an Object
instead of StoredObject
-- we can add it back if we need it (with_internal_context
is still around).
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.
Nothing has changed in this file -- it's just been re-ordered (and combined with its unit tests).
6346807
to
7ba0aa9
Compare
1b0bcab
to
24120c7
Compare
24120c7
to
a2dcf95
Compare
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.
Looks great @amnn, thanks!
a2dcf95
to
a88ee51
Compare
## Description Don't exclude framework tables from `sui-indexer-alt-schema`, so that they can be used in the reader without the reader having to depend on the framework. ## Test plan These tables will be used in an upcoming change.
## Description Pull out `sui-name-service` from `sui-json-rpc`, because it is used in multiple other crates. This change also re-orders the contents of the `name_service` module and brings its tests into one file. ## Test plan CI
## Description Simplifying the helper function that finds the latest version of an object and returns it to return the serialized form, rather than the `StoredObject`. This is based on an observation that: - All the callers to this function eventually deserialize it. - The other fields on `StoredObject` (id and version) are available on the deserialized object as well. ## Test plan CI
## Description Adds support for SuiNS name resolution. ## Test plan New E2E tests, based on `FullCluster`: ``` sui$ cargo nextest run -p sui-indexer-alt-e2e-tests \ -- test_resolve name_service ```
a88ee51
to
4a958cb
Compare
Description
Adds an implementation for
suix_resolveNameServiceAddress
to rpc-alt. Also factors out thename_service
module fromsui-json-rpc
into its own crate.As part of this change, the
watermarks
andcp_sequence_numbers
tables introduced by the indexing framework are exposed throughsui-indexer-alt-schema
, so that readers can read from these tables without taking a dependency on the (writer) framework.Test plan
New E2E tests:
Stack
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.