feat: replace MoveObject with SDK version#11431
Merged
thibault-martinez merged 6 commits intodevelopfrom May 7, 2026
Merged
Conversation
4f22aa1 to
b186db4
Compare
d464de1 to
2a4f488
Compare
piotrm50
approved these changes
May 6, 2026
semenov-vladyslav
approved these changes
May 6, 2026
kodemartin
approved these changes
May 6, 2026
valeriyr
approved these changes
May 6, 2026
jkrvivian
approved these changes
May 6, 2026
b186db4 to
eaffd8e
Compare
6013d02 to
ea4d0f9
Compare
ea4d0f9 to
8d485e4
Compare
Thoralf-M
approved these changes
May 6, 2026
Alex6323
approved these changes
May 6, 2026
DaughterOfMars
approved these changes
May 6, 2026
Replace MoveObject with SDK version --------- Co-authored-by: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com>
3967d64 to
50a41a3
Compare
Co-authored-by: Roman Overko <63564739+roman1e2f5p8s@users.noreply.github.com>
roman1e2f5p8s
approved these changes
May 6, 2026
Co-authored-by: Roman Overko <63564739+roman1e2f5p8s@users.noreply.github.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of change
This PR is part of the ongoing effort to consolidate blockchain types in the
canonical
iota-rust-sdk. Types that are needed by both clients/SDK consumersand the node should live in
iota-rust-sdkand be imported from there, insteadof being defined twice (once in
iota-types, once in the SDK).This PR replaces
MoveObject(previously defined iniota-types) with theSDK version from
iota-sdk-types. To keep the diff small and avoid touchingevery call site, the SDK type is re-exported from
iota-typesunder theoriginal name
MoveObject, so most existing imports continue to workunchanged.
Notes
MoveStruct. It is re-exported aspub use iota_sdk_types::MoveStruct as MoveObject;fromiota-types::object.implblocks on foreign types, the inherentmethods previously defined on
MoveObject(e.g.new_from_execution,new_gas_coin,new_coin,update_contents,get_layout,to_move_struct,get_total_iota,get_coin_balances, etc.) have beenmoved to a sealed extension trait
MoveObjectExt. Call sites that use thesemethods now import
MoveObjectExtalongsideMoveObject.type_is renamed toobject_typeto match the SDKdefinition; accessors and direct field uses are updated accordingly.
move_object_to_sdk/sdk_object_to_moveconversions iniota_sdk_types_conversions.rsare removed sinceMoveObjectand the SDK'sMoveStructare now the same type.