-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[OTE-163] Fix query: add amino.oneof
option to clob oneof metadata
#1077
Conversation
WalkthroughThe update primarily focuses on enhancing the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
amino.oneof
option to clob oneof metadataamino.oneof
option to clob oneof metadata
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files ignored due to path filters (1)
protocol/x/clob/types/clob_pair.pb.go
is excluded by:!**/*.pb.go
Files selected for processing (1)
- proto/dydxprotocol/clob/clob_pair.proto (2 hunks)
Additional comments: 2
proto/dydxprotocol/clob/clob_pair.proto (2)
- 4-4: Ensure the
amino/amino.proto
file exists and is accessible from this path. If it's a third-party dependency, verify that it's included in the project dependencies.- 34-35: The addition of
amino.oneof_name
annotations forPerpetualClobMetadata
andSpotClobMetadata
within themetadata
field is correct and aligns with the PR objectives to fix the marshaling issue. Ensure that all downstream systems that consume this protobuf definition are compatible with these changes.
c360543
to
2545733
Compare
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files ignored due to path filters (1)
protocol/x/clob/types/clob_pair.pb.go
is excluded by:!**/*.pb.go
Files selected for processing (1)
- proto/dydxprotocol/clob/clob_pair.proto (2 hunks)
Files skipped from review as they are similar to previous changes (1)
- proto/dydxprotocol/clob/clob_pair.proto
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- proto/dydxprotocol/clob/clob_pair.proto (2 hunks)
Files skipped from review as they are similar to previous changes (1)
- proto/dydxprotocol/clob/clob_pair.proto
Changelist
The
v4.x
binary is getting acannot marshal response proposal
when used to query a governance proposal that includes theClob
object.For instance, I submitted a proposal with a single message
MsgUpdateClobPair
to the local testnet, and:However, querying with
v3.x
against the same testnet works fine.By adding a bunch of logs, I discovered that a silent err seen but not logged out here:
It seems like
autocli
introduced in Cosmosv0.50
uses theaminojson
package to marshal messages, which results in a regression.Hence in this PR we fix by adding required options on the
ClobPair
proto. This is backwards compatible and the easiest fixTest Plan
Successfully queried for proposal including
ClobPair
on a local testnet running onv4.x
.Author/Reviewer Checklist
state-breaking
label.indexer-postgres-breaking
label.PrepareProposal
orProcessProposal
, manually add the labelproposal-breaking
.feature:[feature-name]
.backport/[branch-name]
.refactor
,chore
,bug
.