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.
Description
Implement showDisplay for Object responses in rpc-alt. This is based on a new implementation of
sui-display
which is:annotated_extractor
to perform nested field access on a Move Object without fully deserializing it. This means that Display will work on an object that is otherwise too large for the service to deserialize.Test plan
New tests:
Cross-check the responses against the existing implementation by running the new E2E tests on the local network. The two implementations are matched on outputs in the happy path but differ on the error paths (intentionally, to improve clarity).
Check how the new parser behaves on existing Display strings, by fetching them as follows:
Then running the following test code:
On mainnet as of this commit, there are 142 parsing failures out of 81890 Display formats, all of them legitimate.
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.