Skip to content

Conversation

@thibault-martinez
Copy link
Member

No description provided.

@thibault-martinez thibault-martinez marked this pull request as draft October 15, 2025 15:00
@@ -56,6 +56,7 @@ pub struct EventFilter {
pub struct Event {
pub sending_module: Option<MoveModuleQuery>,
pub sender: Option<GQLAddress>,
// TODO thibault
pub type_: MoveType,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did this one not need a #[cynic(rename = "type")]?

Copy link
Contributor

@Alex6323 Alex6323 Oct 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually verified, that trailing underscores do not prevent the match against the schema. You can add as many as you want and it still works. Mapping fails however at compile-time if you prepend it or change the field name in any other way. Not sure this is documented well. We probably should still cynic-rename it just in case that doesn't work anymore at some point.

@@ -134,7 +134,7 @@ pub struct MoveEnumVariant {
pub struct MoveField {
pub name: String,
#[cynic(rename = "type")]
pub type_: Option<OpenMoveType>,
pub type_tag: Option<OpenMoveType>,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pub type_tag: Option<OpenMoveType>,
pub open_move_type: Option<OpenMoveType>,

?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move_type is probably also fine. Looking at the other fields they are named very chill as well, so not sure it's necessary to be super correct here.

@thibault-martinez thibault-martinez marked this pull request as ready for review October 15, 2025 15:14
pub struct Event {
pub sending_module: Option<MoveModuleQuery>,
pub sender: Option<GQLAddress>,
// TODO thibault
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO

@thibault-martinez thibault-martinez marked this pull request as draft October 30, 2025 08:14
@thibault-martinez thibault-martinez changed the base branch from sdk-bindings to develop November 4, 2025 12:13
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.

4 participants