refactor(staking): use validator & address codecs in staking (backport #16958) (#17066)

Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
mergify[bot]
2023-07-19 16:02:28 +02:00
committed by GitHub
co-authored by Marko Julien Robert
parent 609a4e8c8b
commit 16ab635645
42 changed files with 307 additions and 172 deletions
+4 -4
View File
@@ -13395,9 +13395,9 @@ type Delegation struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// delegator_address is the bech32-encoded address of the delegator.
// delegator_address is the encoded address of the delegator.
DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
// validator_address is the bech32-encoded address of the validator.
// validator_address is the encoded address of the validator.
ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
// shares define the delegation shares received.
Shares string `protobuf:"bytes,3,opt,name=shares,proto3" json:"shares,omitempty"`
@@ -13451,9 +13451,9 @@ type UnbondingDelegation struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// delegator_address is the bech32-encoded address of the delegator.
// delegator_address is the encoded address of the delegator.
DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
// validator_address is the bech32-encoded address of the validator.
// validator_address is the encoded address of the validator.
ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
// entries are the unbonding delegation entries.
Entries []*UnbondingDelegationEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries,omitempty"` // unbonding delegation entries