-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add option to return raw txn effects on fullnode #15729
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Ignored Deployments
|
@@ -120,6 +122,7 @@ impl SuiTransactionBlockResponseOptions { | |||
show_events: true, | |||
show_object_changes: true, | |||
show_balance_changes: true, | |||
show_raw_effects: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will break existing clients that use full_content
, because they will get unexpected raw_effects
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you recommend then? To have show_raw_effects: false
here? Then it's not longer full content..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah this wasn't written in a way that is future proof unfortunately. But from (existing) users' perspective, if they don't expect this field, it's fine to mark it as false. We can add a special comment explaining it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in the latest commit.
a205f6f
to
7d7cf97
Compare
7d7cf97
to
234af0a
Compare
234af0a
to
5fb2c7e
Compare
## Description Add an option to return raw transaction effects via transaction execution api on fullnode so that graphql can use it. See discussion on the gql PR #15717. ## Test Plan Existing tests --- If your changes are not user-facing and do not break anything, you can skip the following section. Otherwise, please briefly describe what has changed under the Release Notes section. ### Type of Change (Check all that apply) - [ ] protocol change - [x] user-visible impact - [ ] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [ ] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [ ] necessitate either a data wipe or data migration ### Release notes Add an option to SuiTransactionBlockResponseOptions to return the raw transaction effects.
Description
Add an option to return raw transaction effects via transaction execution api on fullnode so that graphql can use it. See discussion on the gql PR #15717.
Test Plan
Existing tests
If your changes are not user-facing and do not break anything, you can skip the following section. Otherwise, please briefly describe what has changed under the Release Notes section.
Type of Change (Check all that apply)
Release notes
Adds an option to
SuiTransactionBlockResponseOptions
to return the raw transaction effects.