-
Notifications
You must be signed in to change notification settings - Fork 128
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
sdk v50 proposal compatibility #840
Conversation
Ahhh we need to be backwards compatibility for SDK v47 (v7) ->v50 (v8) upgrades So multiple structs will be required. Suffix based off the IBC go version instead of SDK |
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.
Nice, looks good!
One nit. Approving to not block.
@@ -439,7 +444,9 @@ func (c *CosmosChain) SubmitProposal(ctx context.Context, keyName string, prop T | |||
} | |||
|
|||
// Build a gov v1 proposal type. | |||
func (c *CosmosChain) BuildProposal(messages []cosmosproto.Message, title, summary, metadata, depositStr string) (TxProposalv1, error) { | |||
// | |||
// The proposer field should only be set for IBC-Go v8 / SDK v50 chains. |
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.
We should also add some sort of note that the expedited
field is also not ingested for non-sdk50 chains.
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 not matter so long as proposer is blank. Will error out if they try anything for legacy chains
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.
Wait how does depositStr come into play here?
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.
oops! sorry I mis-copied proposer
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.
Copy that. It was more of a guidance thing for users. But yea, it's self explanatory, should be fine.
(used in x/POA module)
SDK v50 added more governance params in the proposal.json.
The new functions are suffixed with the IBC Go / interchaintest version (ex: BuildProposal and BuildProposalV8). Should we instead prefix with SDK versions?
after merge todo