Skip to content

Conversation

@Alex6323
Copy link
Contributor

@Alex6323 Alex6323 commented Oct 21, 2025

Closes #259

Also adds remaining constructors. I prepended the constructors with new_, so it becomes easier to distinguish them from the getters.

@Alex6323 Alex6323 linked an issue Oct 21, 2025 that may be closed by this pull request
@Alex6323 Alex6323 changed the title chore(*): add remaining StructTag ctors chore(*): add remaining StructTag getters and ctors Oct 21, 2025
@Alex6323 Alex6323 marked this pull request as ready for review October 21, 2025 14:30
Copy link
Member

@Thoralf-M Thoralf-M left a comment

Choose a reason for hiding this comment

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

Need to rebuild bindings

@thibault-martinez
Copy link
Member

I will review this quickly before it's merged please

add_struct_tag_ctor_from_type_tag!(FRAMEWORK, "balance", "Balance");
add_struct_tag_ctor_from_type_tag!(FRAMEWORK, "timelock", "TimeLock");
add_struct_tag_ctor_from_type_tag!(FRAMEWORK, "config", "Setting", "with-module");
add_struct_tag_ctor_from_type_tag!(FRAMEWORK, "dynamic_object_field", "Wrapper", "with-module");
Copy link
Member

Choose a reason for hiding this comment

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

I still don't like the string differencier but that's fine

Copy link
Contributor Author

Choose a reason for hiding this comment

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

at least we can change that part later without a breaking change.

@thibault-martinez thibault-martinez merged commit af68d36 into sdk-bindings Oct 30, 2025
14 checks passed
@thibault-martinez thibault-martinez deleted the chore/missing-struct-tag-ctors branch October 30, 2025 13:42
Alex6323 added a commit that referenced this pull request Nov 3, 2025
* add ctors

* add getters

* update libs

* add ctors to bindings

* Apply suggestion from @thibault-martinez

* make 3

* add remaining 5

* new_iota_coin_name

* some ux improvements and additional struct tags

* iota coin TYPE

---------

Co-authored-by: Thibault Martinez <[email protected]>
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.

FFI: add missing StructTag getters

5 participants