forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GraphQL/MoveType] Represent using TypeTag (MystenLabs#15044)
## Description Previously `MoveType` was represented using its string representation. This meant that everywhere we needed to create a `MoveType`, we had to be careful to ensure we canonicalised the string representation first. This PR flips things around so that the native representation relies on `TypeTag` and we derive the canonical form of it when requested (by the accessing the `repr` field). This makes it harder (or impossible) to accidentally return a non-canonical type in a query response. ## Test Plan ``` sui-graphql-rpc$ cargo nextest run sui-graphql-e2e-tests$ cargo nextest run -j 1 --features pg_integration ``` ## Stack - MystenLabs#14929 - MystenLabs#14930 - MystenLabs#14934 - MystenLabs#14935 - MystenLabs#14961 - MystenLabs#14974 - MystenLabs#15013 - MystenLabs#15014 - MystenLabs#15015 - MystenLabs#15016 - MystenLabs#15018 - MystenLabs#15020 - MystenLabs#15021 - MystenLabs#15036 - MystenLabs#15037 - MystenLabs#15038 - MystenLabs#15039 - MystenLabs#15040 - MystenLabs#15041 - MystenLabs#15042 - MystenLabs#15043
- Loading branch information
Showing
6 changed files
with
78 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters