-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
[Ts sdk] getNormalizedMoveModulesByPackage
doesn't support enums
#19538
Comments
Thanks for the report @Sceat -- I've added @tzakian as our enums expert to take a look. I would also offer a general caution about using the We're still productionising our GraphQL API, so use at your own risk, but it has a much richer set of APIs for querying information about types, and they are both upgrade- and enum-aware. you can get the full type layout of a fully-instantiated type: sui/crates/sui-graphql-rpc/schema.graphql Lines 3284 to 3288 in 63fa5c0
sui/crates/sui-graphql-rpc/schema.graphql Lines 2487 to 2533 in 63fa5c0
and you can get information about a specific datatype (struct or enum), going down into its fields etc. sui/crates/sui-graphql-rpc/schema.graphql Lines 1967 to 1970 in 63fa5c0
sui/crates/sui-graphql-rpc/schema.graphql Lines 1849 to 1855 in 63fa5c0
sui/crates/sui-graphql-rpc/schema.graphql Lines 2424 to 2451 in 63fa5c0
sui/crates/sui-graphql-rpc/schema.graphql Lines 1779 to 1806 in 63fa5c0
sui/crates/sui-graphql-rpc/schema.graphql Lines 1837 to 1847 in 63fa5c0
sui/crates/sui-graphql-rpc/schema.graphql Lines 2921 to 2959 in 63fa5c0
|
In order to generate bcs types from packages (https://github.com/Sceat/sui-bcs) I'm using
getNormalizedMoveModulesByPackage
which output any enum as atype.Struct
and that fails when usinggetNormalizedMoveStruct
Originally posted by @Sceat in #19512 (comment)
Reproduce
The text was updated successfully, but these errors were encountered: