Skip to content

Conversation

@DaughterOfMars
Copy link
Contributor

@DaughterOfMars DaughterOfMars commented Jul 30, 2025

Description

Some types can still be Records, but they have to be redefined in the bindings crates. I added From impls to convert between them (with the added benefit of verifying them at compile time).

In one case, GasCostSummary, there are only fields that are basic uniffi compatable types so it could be implemented with the remote attribute.

Overall this method provides a clean API for users in the case where we do not need associated methods, which is true for many of our structs.

Closes #58 #61 #62

This was linked to issues Jul 30, 2025
@DaughterOfMars DaughterOfMars merged commit 313b9f1 into feat/more-bindings Jul 31, 2025
0 of 4 checks passed
@DaughterOfMars DaughterOfMars deleted the feat/some-records branch July 31, 2025 08:24
thibault-martinez added a commit that referenced this pull request Aug 7, 2025
* Add bindings crate

* fix test

* tweaks

* remove gate

* missing impl and remove another gate

* cleanup

* clippy

* re-add sub feature

* feat(bindings): Remove uniffi impls from core crates and use object wrappers (#47)

* wrap address

* Add more impls

* even more

* more!!!

* fix name value impl

* MOREEEE

* revert error changes

* cleanup

* Remove uniffi features

* update python bindings

* nit

* add object IDs to schema

* add gas implt

* record impl

* feat(bindings): Convert some types to remote records and add docs (#63)

* feat(bindings): Convert some types to remote records and add docs

* update lib

* add missing tags

* clippy

* fix doc

* harmony

* remove unnecessary flags (again)

* nits

* more nits

* nitttt

* refactor typetag methods and add into_opt

* rename err

* remove derive from

* Update crates/iota-sdk-types/Makefile

Co-authored-by: Thibault Martinez <[email protected]>

* add ci concurrency

* remove rest of the derives

---------

Co-authored-by: Thoralf Müller <[email protected]>
Co-authored-by: Thibault Martinez <[email protected]>
This was unlinked from issues Aug 13, 2025
howjmay pushed a commit to howjmay/iota-rust-sdk that referenced this pull request Oct 7, 2025
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