babylonlabs-io / babylon-contract

CosmWasm smart contracts for Babylon integration
Other
10 stars 7 forks source link

F/btc delegations #39

Closed maurolacy closed 3 months ago

maurolacy commented 3 months ago

Use our own structs for handling btc-staking state. This is needed so that we can add fields to these underlying structs. This also removes the use of Binary from state structs (related to #17).

Now we have our own state::staking structs:

This PR also removes optional from btc_undelegation, for simplicity / clarity.

Take into account that these changes are API-breaking for the delegations queries. Likely the structs on the Go side will need to be adapted as well.