feat: TransactionKind improvements#1130
Merged
Merged
Conversation
917944d to
563bf68
Compare
* derive Hash * add Display * expose Hash and Display * add ctors * update bindings * move 2 more methods * one more method * serde rename * remove leftover * fix docs * hopefully fix Go CI
563bf68 to
7f105fc
Compare
Thoralf-M
reviewed
May 8, 2026
Thoralf-M
approved these changes
May 8, 2026
thibault-martinez
requested changes
May 8, 2026
thibault-martinez
approved these changes
May 8, 2026
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.
Summary
Updates
TransactionKindto align with the monorepo replacement, adding ergonomic APIs and trait derives without changing the wire format.ProgrammableTransactionvariant toProgrammable. The serialized name is preserved viaserde(rename = "TransactionKind")and the existingProgrammableTransactiontag, so BCS and JSON output are unchanged.Hashand adds aDisplayimpl on bothTransactionKindandProgrammableTransaction; FFI exposesHashandDisplayviauniffi::export.new_programmable,new_genesis,new_consensus_commit_prologue_v1,new_end_of_epoch,new_randomness_state_update) and convenience methods (is_system,num_commands,num_transactions).crates/iota-sdk/examples/package_inspect.rsto use the renamed accessoras_programmable_opt.