Skip to content
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

Wire up Redelegate Message for Cosmos #46

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

keefertaylor
Copy link

@keefertaylor keefertaylor commented Nov 7, 2022

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 sender
  • srcValidator - validator redelegating from
  • destvalidator - validator delegating to
  • amount - amount to redelegate

The 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 the to field, such that if

to = `${srcValidator}${destValidator}`

@keefertaylor keefertaylor changed the title WIP: Wire up Redelegate Message for Cosmos Wire up Redelegate Message for Cosmos Nov 8, 2022
@sonarcloud
Copy link

sonarcloud bot commented Nov 10, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant