diff --git a/proto/elys/commitment/types_cw.proto b/proto/elys/commitment/types_cw.proto index 8b8136e89..56632cb40 100644 --- a/proto/elys/commitment/types_cw.proto +++ b/proto/elys/commitment/types_cw.proto @@ -157,6 +157,10 @@ message ValidatorDetail { // Only available if there's some and if address. // is sent in request object. BalanceAvailable staked = 6 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + //Is jailed + string jailed = 7; + //The validator status + string inactive = 8; } message StakingValidator { diff --git a/x/commitment/client/wasm/query_all_validators.go b/x/commitment/client/wasm/query_all_validators.go index 66d0a31be..adcfaf716 100644 --- a/x/commitment/client/wasm/query_all_validators.go +++ b/x/commitment/client/wasm/query_all_validators.go @@ -3,6 +3,7 @@ package wasm import ( "encoding/json" "math" + "strconv" errorsmod "cosmossdk.io/errors" cosmos_sdk_math "cosmossdk.io/math" @@ -54,7 +55,8 @@ func (oq *Querier) BuildAllValidatorsResponseCW(ctx sdk.Context, allValidators [ UsdAmount: sdk.ZeroDec(), } validatorCW.Commission = validator.GetCommission() - + validatorCW.Jailed = strconv.FormatBool(validator.Jailed) + validatorCW.Inactive = strconv.FormatBool(!validator.IsBonded()) // if there is delegation, if isDelegated { valAddress, err := sdk.ValAddressFromBech32(validator.OperatorAddress) diff --git a/x/commitment/types/types_cw.pb.go b/x/commitment/types/types_cw.pb.go index 4fc9136f6..bac5dba74 100644 --- a/x/commitment/types/types_cw.pb.go +++ b/x/commitment/types/types_cw.pb.go @@ -699,6 +699,10 @@ type ValidatorDetail struct { // Only available if there's some and if address. // is sent in request object. Staked BalanceAvailable `protobuf:"bytes,6,opt,name=staked,proto3" json:"staked"` + // Is jailed + Jailed string `protobuf:"bytes,7,opt,name=jailed,proto3" json:"jailed,omitempty"` + // The validator status + Inactive string `protobuf:"bytes,8,opt,name=inactive,proto3" json:"inactive,omitempty"` } func (m *ValidatorDetail) Reset() { *m = ValidatorDetail{} } @@ -762,6 +766,20 @@ func (m *ValidatorDetail) GetStaked() BalanceAvailable { return BalanceAvailable{} } +func (m *ValidatorDetail) GetJailed() string { + if m != nil { + return m.Jailed + } + return "" +} + +func (m *ValidatorDetail) GetInactive() string { + if m != nil { + return m.Inactive + } + return "" +} + type StakingValidator struct { // Validator Identity Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` @@ -1256,82 +1274,84 @@ func init() { func init() { proto.RegisterFile("elys/commitment/types_cw.proto", fileDescriptor_f36c2a6a76250be7) } var fileDescriptor_f36c2a6a76250be7 = []byte{ - // 1197 bytes of a gzipped FileDescriptorProto + // 1227 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x58, 0x4d, 0x6f, 0x1b, 0xc5, - 0x1b, 0xcf, 0xda, 0x69, 0xfc, 0xcf, 0xe3, 0xc4, 0x76, 0x26, 0xd1, 0xbf, 0x6e, 0x0b, 0x4e, 0xb2, - 0xbc, 0x25, 0x95, 0x62, 0xab, 0xe9, 0x81, 0x0b, 0x42, 0x8a, 0x49, 0xa3, 0x1a, 0x50, 0x95, 0x6e, - 0xda, 0x4a, 0xbc, 0x48, 0xcb, 0xd8, 0x3b, 0x75, 0x46, 0xd9, 0xdd, 0x31, 0x3b, 0x63, 0x87, 0xf0, - 0x01, 0x38, 0x02, 0x1f, 0x80, 0x0f, 0xc0, 0x11, 0xa1, 0x0a, 0x3e, 0x01, 0x52, 0x4f, 0xa8, 0xaa, - 0x38, 0x20, 0x0e, 0x05, 0x25, 0x07, 0xae, 0x48, 0x9c, 0x91, 0xd0, 0xcc, 0xce, 0xbe, 0x78, 0x9d, - 0x84, 0x34, 0xb5, 0x10, 0x88, 0x4b, 0xb2, 0x3b, 0xcf, 0x3c, 0xbf, 0x79, 0x9e, 0xdf, 0xf3, 0x36, - 0x6b, 0xa8, 0x11, 0xf7, 0x80, 0x37, 0x3a, 0xcc, 0xf3, 0xa8, 0xf0, 0x88, 0x2f, 0x1a, 0xe2, 0xa0, - 0x47, 0xb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c, 0xc7, 0x43, + 0xad, 0x8c, 0x2c, 0x28, 0xeb, 0x47, 0xdb, 0x51, 0xf4, 0x04, 0xfd, 0x34, 0x48, 0x96, 0xda, 0xf0, + 0x8d, 0x28, 0xcd, 0xe2, 0x40, 0x15, 0xf6, 0xd3, 0x12, 0xd1, 0xdc, 0x7a, 0x74, 0x58, 0x33, 0x1e, + 0x1f, 0xd6, 0x8c, 0x9f, 0x0f, 0x6b, 0xc6, 0xe7, 0x47, 0xb5, 0xb1, 0xc7, 0x47, 0xb5, 0xb1, 0x1f, + 0x8e, 0x6a, 0x63, 0x6f, 0x37, 0x52, 0xad, 0x30, 0x80, 0x5f, 0x65, 0x44, 0xee, 0x73, 0x7f, 0x4f, + 0xbd, 0x34, 0x3e, 0x1c, 0xfa, 0x45, 0xa4, 0x35, 0xa1, 0x7e, 0x59, 0xb8, 0xf1, 0x47, 0x00, 0x00, + 0x00, 0xff, 0xff, 0xbf, 0xa8, 0x3a, 0x46, 0x31, 0x11, 0x00, 0x00, } func (m *QueryBorrowAmountRequest) Marshal() (dAtA []byte, err error) { @@ -1884,6 +1904,20 @@ func (m *ValidatorDetail) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.Inactive) > 0 { + i -= len(m.Inactive) + copy(dAtA[i:], m.Inactive) + i = encodeVarintTypesCw(dAtA, i, uint64(len(m.Inactive))) + i-- + dAtA[i] = 0x42 + } + if len(m.Jailed) > 0 { + i -= len(m.Jailed) + copy(dAtA[i:], m.Jailed) + i = encodeVarintTypesCw(dAtA, i, uint64(len(m.Jailed))) + i-- + dAtA[i] = 0x3a + } { size, err := m.Staked.MarshalToSizedBuffer(dAtA[:i]) if err != nil { @@ -2564,6 +2598,14 @@ func (m *ValidatorDetail) Size() (n int) { n += 1 + l + sovTypesCw(uint64(l)) l = m.Staked.Size() n += 1 + l + sovTypesCw(uint64(l)) + l = len(m.Jailed) + if l > 0 { + n += 1 + l + sovTypesCw(uint64(l)) + } + l = len(m.Inactive) + if l > 0 { + n += 1 + l + sovTypesCw(uint64(l)) + } return n } @@ -4380,6 +4422,70 @@ func (m *ValidatorDetail) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Jailed", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypesCw + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTypesCw + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypesCw + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Jailed = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Inactive", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypesCw + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTypesCw + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypesCw + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Inactive = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTypesCw(dAtA[iNdEx:])