airgap-it / airgap-coin-lib

A library that offers a unified API to prepare, sign and broadcast multiple cryptocurrencies.
https://airgap-it.github.io/airgap-coin-lib/
MIT License
143 stars 38 forks source link

Wire up Redelegate Message for Cosmos #46

Open keefertaylor opened 1 year ago

keefertaylor commented 1 year ago

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:

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}`
sonarcloud[bot] commented 1 year ago

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