Wire up Redelegate Message for Cosmos #46
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.
Modeled off of this tx: https://www.mintscan.io/cosmos/txs/64E36A97CC7C8BCB85856FB38D6EE48E830EFFFD9C370015C147BBD060522C12
(hit the JSON button in the top right to see the raw JSON message)
This hooks up a new
CosmosRedelegateMessage
. This transaction has a few fields:from
- tx sendersrcValidator
- validator redelegating fromdestvalidator
- validator delegating toamount
- amount to redelegateThe Airgap communication format assumes there's only one
to
address. Rather than break the format or introduce a new one, we concatenate the addresses into theto
field, such that if