Documentation ¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetMissedBlocks() []*ValidatorMissedBlocks
- func (x *GenesisState) GetParams() *Params
- func (x *GenesisState) GetSigningInfos() []*SigningInfo
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type MissedBlock
- type MsgClient
- type MsgServer
- type MsgUnjail
- type MsgUnjailResponse
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateParams) GetAuthority() string
- func (x *MsgUpdateParams) GetParams() *Params
- func (*MsgUpdateParams) ProtoMessage()
- func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateParams) Reset()
- func (x *MsgUpdateParams) String() string
- type MsgUpdateParamsResponse
- type Params
- func (*Params) Descriptor() ([]byte, []int)deprecated
- func (x *Params) GetDowntimeJailDuration() *durationpb.Duration
- func (x *Params) GetMinSignedPerWindow() []byte
- func (x *Params) GetSignedBlocksWindow() int64
- func (x *Params) GetSlashFractionDoubleSign() []byte
- func (x *Params) GetSlashFractionDowntime() []byte
- func (*Params) ProtoMessage()
- func (x *Params) ProtoReflect() protoreflect.Message
- func (x *Params) Reset()
- func (x *Params) String() string
- type QueryClient
- type QueryParamsRequest
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryParamsResponse) GetParams() *Params
- func (*QueryParamsResponse) ProtoMessage()
- func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryParamsResponse) Reset()
- func (x *QueryParamsResponse) String() string
- type QueryServer
- type QuerySigningInfoRequest
- func (*QuerySigningInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySigningInfoRequest) GetConsAddress() string
- func (*QuerySigningInfoRequest) ProtoMessage()
- func (x *QuerySigningInfoRequest) ProtoReflect() protoreflect.Message
- func (x *QuerySigningInfoRequest) Reset()
- func (x *QuerySigningInfoRequest) String() string
- type QuerySigningInfoResponse
- func (*QuerySigningInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySigningInfoResponse) GetValSigningInfo() *ValidatorSigningInfo
- func (*QuerySigningInfoResponse) ProtoMessage()
- func (x *QuerySigningInfoResponse) ProtoReflect() protoreflect.Message
- func (x *QuerySigningInfoResponse) Reset()
- func (x *QuerySigningInfoResponse) String() string
- type QuerySigningInfosRequest
- func (*QuerySigningInfosRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySigningInfosRequest) GetPagination() *v1beta1.PageRequest
- func (*QuerySigningInfosRequest) ProtoMessage()
- func (x *QuerySigningInfosRequest) ProtoReflect() protoreflect.Message
- func (x *QuerySigningInfosRequest) Reset()
- func (x *QuerySigningInfosRequest) String() string
- type QuerySigningInfosResponse
- func (*QuerySigningInfosResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySigningInfosResponse) GetInfo() []*ValidatorSigningInfo
- func (x *QuerySigningInfosResponse) GetPagination() *v1beta1.PageResponse
- func (*QuerySigningInfosResponse) ProtoMessage()
- func (x *QuerySigningInfosResponse) ProtoReflect() protoreflect.Message
- func (x *QuerySigningInfosResponse) Reset()
- func (x *QuerySigningInfosResponse) String() string
- type SigningInfo
- func (*SigningInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SigningInfo) GetAddress() string
- func (x *SigningInfo) GetValidatorSigningInfo() *ValidatorSigningInfo
- func (*SigningInfo) ProtoMessage()
- func (x *SigningInfo) ProtoReflect() protoreflect.Message
- func (x *SigningInfo) Reset()
- func (x *SigningInfo) String() string
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
- func (UnimplementedQueryServer) SigningInfo(context.Context, *QuerySigningInfoRequest) (*QuerySigningInfoResponse, error)
- func (UnimplementedQueryServer) SigningInfos(context.Context, *QuerySigningInfosRequest) (*QuerySigningInfosResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
- type ValidatorMissedBlocks
- func (*ValidatorMissedBlocks) Descriptor() ([]byte, []int)deprecated
- func (x *ValidatorMissedBlocks) GetAddress() string
- func (x *ValidatorMissedBlocks) GetMissedBlocks() []*MissedBlock
- func (*ValidatorMissedBlocks) ProtoMessage()
- func (x *ValidatorMissedBlocks) ProtoReflect() protoreflect.Message
- func (x *ValidatorMissedBlocks) Reset()
- func (x *ValidatorMissedBlocks) String() string
- type ValidatorSigningInfo
- func (*ValidatorSigningInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ValidatorSigningInfo) GetAddress() string
- func (x *ValidatorSigningInfo) GetIndexOffset() int64
- func (x *ValidatorSigningInfo) GetJailedUntil() *timestamppb.Timestamp
- func (x *ValidatorSigningInfo) GetMissedBlocksCounter() int64
- func (x *ValidatorSigningInfo) GetStartHeight() int64
- func (x *ValidatorSigningInfo) GetTombstoned() bool
- func (*ValidatorSigningInfo) ProtoMessage()
- func (x *ValidatorSigningInfo) ProtoReflect() protoreflect.Message
- func (x *ValidatorSigningInfo) Reset()
- func (x *ValidatorSigningInfo) String() string
Constants ¶
This section is empty.
Variables ¶
var File_cosmos_slashing_v1beta1_genesis_proto protoreflect.FileDescriptor
var File_cosmos_slashing_v1beta1_query_proto protoreflect.FileDescriptor
var File_cosmos_slashing_v1beta1_slashing_proto protoreflect.FileDescriptor
var File_cosmos_slashing_v1beta1_tx_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cosmos.slashing.v1beta1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Unjail", Handler: _Msg_Unjail_Handler, }, { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cosmos/slashing/v1beta1/tx.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cosmos.slashing.v1beta1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Params", Handler: _Query_Params_Handler, }, { MethodName: "SigningInfo", Handler: _Query_SigningInfo_Handler, }, { MethodName: "SigningInfos", Handler: _Query_SigningInfos_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cosmos/slashing/v1beta1/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServer ¶
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
type GenesisState ¶
type GenesisState struct { // params defines all the parameters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // signing_infos represents a map between validator addresses and their // signing infos. SigningInfos []*SigningInfo `protobuf:"bytes,2,rep,name=signing_infos,json=signingInfos,proto3" json:"signing_infos,omitempty"` // missed_blocks represents a map between validator addresses and their // missed blocks. MissedBlocks []*ValidatorMissedBlocks `protobuf:"bytes,3,rep,name=missed_blocks,json=missedBlocks,proto3" json:"missed_blocks,omitempty"` // contains filtered or unexported fields }
GenesisState defines the slashing module's genesis state.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetMissedBlocks ¶
func (x *GenesisState) GetMissedBlocks() []*ValidatorMissedBlocks
func (*GenesisState) GetParams ¶
func (x *GenesisState) GetParams() *Params
func (*GenesisState) GetSigningInfos ¶
func (x *GenesisState) GetSigningInfos() []*SigningInfo
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) ProtoReflect ¶
func (x *GenesisState) ProtoReflect() protoreflect.Message
func (*GenesisState) Reset ¶
func (x *GenesisState) Reset()
func (*GenesisState) String ¶
func (x *GenesisState) String() string
type MissedBlock ¶
type MissedBlock struct { // index is the height at which the block was missed. Index int64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // missed is the missed status. Missed bool `protobuf:"varint,2,opt,name=missed,proto3" json:"missed,omitempty"` // contains filtered or unexported fields }
MissedBlock contains height and missed status as boolean.
func (*MissedBlock) Descriptor
deprecated
func (*MissedBlock) Descriptor() ([]byte, []int)
Deprecated: Use MissedBlock.ProtoReflect.Descriptor instead.
func (*MissedBlock) GetIndex ¶
func (x *MissedBlock) GetIndex() int64
func (*MissedBlock) GetMissed ¶
func (x *MissedBlock) GetMissed() bool
func (*MissedBlock) ProtoMessage ¶
func (*MissedBlock) ProtoMessage()
func (*MissedBlock) ProtoReflect ¶
func (x *MissedBlock) ProtoReflect() protoreflect.Message
func (*MissedBlock) Reset ¶
func (x *MissedBlock) Reset()
func (*MissedBlock) String ¶
func (x *MissedBlock) String() string
type MsgClient ¶
type MsgClient interface { // Unjail defines a method for unjailing a jailed validator, thus returning // them into the bonded validator set, so they can begin receiving provisions // and rewards again. Unjail(ctx context.Context, in *MsgUnjail, opts ...grpc.CallOption) (*MsgUnjailResponse, error) // UpdateParams defines a governance operation for updating the x/slashing module // parameters. The authority is hard-coded to the x/gov module account. // // Since: cosmos-sdk 0.47 UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgServer ¶
type MsgServer interface { // Unjail defines a method for unjailing a jailed validator, thus returning // them into the bonded validator set, so they can begin receiving provisions // and rewards again. Unjail(context.Context, *MsgUnjail) (*MsgUnjailResponse, error) // UpdateParams defines a governance operation for updating the x/slashing module // parameters. The authority is hard-coded to the x/gov module account. // // Since: cosmos-sdk 0.47 UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
type MsgUnjail ¶
type MsgUnjail struct { ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"` // contains filtered or unexported fields }
MsgUnjail defines the Msg/Unjail request type
func (*MsgUnjail) ProtoReflect ¶
func (x *MsgUnjail) ProtoReflect() protoreflect.Message
type MsgUnjailResponse ¶
type MsgUnjailResponse struct {
// contains filtered or unexported fields
}
MsgUnjailResponse defines the Msg/Unjail response type
func (*MsgUnjailResponse) Descriptor
deprecated
func (*MsgUnjailResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUnjailResponse.ProtoReflect.Descriptor instead.
func (*MsgUnjailResponse) ProtoMessage ¶
func (*MsgUnjailResponse) ProtoMessage()
func (*MsgUnjailResponse) ProtoReflect ¶
func (x *MsgUnjailResponse) ProtoReflect() protoreflect.Message
func (*MsgUnjailResponse) Reset ¶
func (x *MsgUnjailResponse) Reset()
func (*MsgUnjailResponse) String ¶
func (x *MsgUnjailResponse) String() string
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/slashing parameters to update. // // NOTE: All parameters must be supplied. Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
MsgUpdateParams is the Msg/UpdateParams request type.
Since: cosmos-sdk 0.47
func (*MsgUpdateParams) Descriptor
deprecated
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) GetAuthority ¶
func (x *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (x *MsgUpdateParams) GetParams() *Params
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) ProtoReflect ¶
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
func (*MsgUpdateParams) Reset ¶
func (x *MsgUpdateParams) Reset()
func (*MsgUpdateParams) String ¶
func (x *MsgUpdateParams) String() string
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct {
// contains filtered or unexported fields
}
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
Since: cosmos-sdk 0.47
func (*MsgUpdateParamsResponse) Descriptor
deprecated
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) ProtoReflect ¶
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateParamsResponse) Reset ¶
func (x *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) String ¶
func (x *MsgUpdateParamsResponse) String() string
type Params ¶
type Params struct { SignedBlocksWindow int64 `protobuf:"varint,1,opt,name=signed_blocks_window,json=signedBlocksWindow,proto3" json:"signed_blocks_window,omitempty"` MinSignedPerWindow []byte `protobuf:"bytes,2,opt,name=min_signed_per_window,json=minSignedPerWindow,proto3" json:"min_signed_per_window,omitempty"` DowntimeJailDuration *durationpb.Duration `protobuf:"bytes,3,opt,name=downtime_jail_duration,json=downtimeJailDuration,proto3" json:"downtime_jail_duration,omitempty"` SlashFractionDoubleSign []byte `` /* 134-byte string literal not displayed */ SlashFractionDowntime []byte `` /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
Params represents the parameters used for by the slashing module.
func (*Params) GetDowntimeJailDuration ¶
func (x *Params) GetDowntimeJailDuration() *durationpb.Duration
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type QueryClient ¶
type QueryClient interface { // Params queries the parameters of slashing module Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // SigningInfo queries the signing info of given cons address SigningInfo(ctx context.Context, in *QuerySigningInfoRequest, opts ...grpc.CallOption) (*QuerySigningInfoResponse, error) // SigningInfos queries signing info of all validators SigningInfos(ctx context.Context, in *QuerySigningInfosRequest, opts ...grpc.CallOption) (*QuerySigningInfosResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryParamsRequest ¶
type QueryParamsRequest struct {
// contains filtered or unexported fields
}
QueryParamsRequest is the request type for the Query/Params RPC method
func (*QueryParamsRequest) Descriptor
deprecated
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) ProtoReflect ¶
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message
func (*QueryParamsRequest) Reset ¶
func (x *QueryParamsRequest) Reset()
func (*QueryParamsRequest) String ¶
func (x *QueryParamsRequest) String() string
type QueryParamsResponse ¶
type QueryParamsResponse struct { Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
QueryParamsResponse is the response type for the Query/Params RPC method
func (*QueryParamsResponse) Descriptor
deprecated
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) GetParams ¶
func (x *QueryParamsResponse) GetParams() *Params
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) ProtoReflect ¶
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
func (*QueryParamsResponse) Reset ¶
func (x *QueryParamsResponse) Reset()
func (*QueryParamsResponse) String ¶
func (x *QueryParamsResponse) String() string
type QueryServer ¶
type QueryServer interface { // Params queries the parameters of slashing module Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // SigningInfo queries the signing info of given cons address SigningInfo(context.Context, *QuerySigningInfoRequest) (*QuerySigningInfoResponse, error) // SigningInfos queries signing info of all validators SigningInfos(context.Context, *QuerySigningInfosRequest) (*QuerySigningInfosResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type QuerySigningInfoRequest ¶
type QuerySigningInfoRequest struct { // cons_address is the address to query signing info of ConsAddress string `protobuf:"bytes,1,opt,name=cons_address,json=consAddress,proto3" json:"cons_address,omitempty"` // contains filtered or unexported fields }
QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC method
func (*QuerySigningInfoRequest) Descriptor
deprecated
func (*QuerySigningInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use QuerySigningInfoRequest.ProtoReflect.Descriptor instead.
func (*QuerySigningInfoRequest) GetConsAddress ¶
func (x *QuerySigningInfoRequest) GetConsAddress() string
func (*QuerySigningInfoRequest) ProtoMessage ¶
func (*QuerySigningInfoRequest) ProtoMessage()
func (*QuerySigningInfoRequest) ProtoReflect ¶
func (x *QuerySigningInfoRequest) ProtoReflect() protoreflect.Message
func (*QuerySigningInfoRequest) Reset ¶
func (x *QuerySigningInfoRequest) Reset()
func (*QuerySigningInfoRequest) String ¶
func (x *QuerySigningInfoRequest) String() string
type QuerySigningInfoResponse ¶
type QuerySigningInfoResponse struct { // val_signing_info is the signing info of requested val cons address ValSigningInfo *ValidatorSigningInfo `protobuf:"bytes,1,opt,name=val_signing_info,json=valSigningInfo,proto3" json:"val_signing_info,omitempty"` // contains filtered or unexported fields }
QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC method
func (*QuerySigningInfoResponse) Descriptor
deprecated
func (*QuerySigningInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use QuerySigningInfoResponse.ProtoReflect.Descriptor instead.
func (*QuerySigningInfoResponse) GetValSigningInfo ¶
func (x *QuerySigningInfoResponse) GetValSigningInfo() *ValidatorSigningInfo
func (*QuerySigningInfoResponse) ProtoMessage ¶
func (*QuerySigningInfoResponse) ProtoMessage()
func (*QuerySigningInfoResponse) ProtoReflect ¶
func (x *QuerySigningInfoResponse) ProtoReflect() protoreflect.Message
func (*QuerySigningInfoResponse) Reset ¶
func (x *QuerySigningInfoResponse) Reset()
func (*QuerySigningInfoResponse) String ¶
func (x *QuerySigningInfoResponse) String() string
type QuerySigningInfosRequest ¶
type QuerySigningInfosRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC method
func (*QuerySigningInfosRequest) Descriptor
deprecated
func (*QuerySigningInfosRequest) Descriptor() ([]byte, []int)
Deprecated: Use QuerySigningInfosRequest.ProtoReflect.Descriptor instead.
func (*QuerySigningInfosRequest) GetPagination ¶
func (x *QuerySigningInfosRequest) GetPagination() *v1beta1.PageRequest
func (*QuerySigningInfosRequest) ProtoMessage ¶
func (*QuerySigningInfosRequest) ProtoMessage()
func (*QuerySigningInfosRequest) ProtoReflect ¶
func (x *QuerySigningInfosRequest) ProtoReflect() protoreflect.Message
func (*QuerySigningInfosRequest) Reset ¶
func (x *QuerySigningInfosRequest) Reset()
func (*QuerySigningInfosRequest) String ¶
func (x *QuerySigningInfosRequest) String() string
type QuerySigningInfosResponse ¶
type QuerySigningInfosResponse struct { // info is the signing info of all validators Info []*ValidatorSigningInfo `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC method
func (*QuerySigningInfosResponse) Descriptor
deprecated
func (*QuerySigningInfosResponse) Descriptor() ([]byte, []int)
Deprecated: Use QuerySigningInfosResponse.ProtoReflect.Descriptor instead.
func (*QuerySigningInfosResponse) GetInfo ¶
func (x *QuerySigningInfosResponse) GetInfo() []*ValidatorSigningInfo
func (*QuerySigningInfosResponse) GetPagination ¶
func (x *QuerySigningInfosResponse) GetPagination() *v1beta1.PageResponse
func (*QuerySigningInfosResponse) ProtoMessage ¶
func (*QuerySigningInfosResponse) ProtoMessage()
func (*QuerySigningInfosResponse) ProtoReflect ¶
func (x *QuerySigningInfosResponse) ProtoReflect() protoreflect.Message
func (*QuerySigningInfosResponse) Reset ¶
func (x *QuerySigningInfosResponse) Reset()
func (*QuerySigningInfosResponse) String ¶
func (x *QuerySigningInfosResponse) String() string
type SigningInfo ¶
type SigningInfo struct { // address is the validator address. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // validator_signing_info represents the signing info of this validator. ValidatorSigningInfo *ValidatorSigningInfo `protobuf:"bytes,2,opt,name=validator_signing_info,json=validatorSigningInfo,proto3" json:"validator_signing_info,omitempty"` // contains filtered or unexported fields }
SigningInfo stores validator signing info of corresponding address.
func (*SigningInfo) Descriptor
deprecated
func (*SigningInfo) Descriptor() ([]byte, []int)
Deprecated: Use SigningInfo.ProtoReflect.Descriptor instead.
func (*SigningInfo) GetAddress ¶
func (x *SigningInfo) GetAddress() string
func (*SigningInfo) GetValidatorSigningInfo ¶
func (x *SigningInfo) GetValidatorSigningInfo() *ValidatorSigningInfo
func (*SigningInfo) ProtoMessage ¶
func (*SigningInfo) ProtoMessage()
func (*SigningInfo) ProtoReflect ¶
func (x *SigningInfo) ProtoReflect() protoreflect.Message
func (*SigningInfo) Reset ¶
func (x *SigningInfo) Reset()
func (*SigningInfo) String ¶
func (x *SigningInfo) String() string
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) Unjail ¶
func (UnimplementedMsgServer) Unjail(context.Context, *MsgUnjail) (*MsgUnjailResponse, error)
func (UnimplementedMsgServer) UpdateParams ¶
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) Params ¶
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
func (UnimplementedQueryServer) SigningInfo ¶
func (UnimplementedQueryServer) SigningInfo(context.Context, *QuerySigningInfoRequest) (*QuerySigningInfoResponse, error)
func (UnimplementedQueryServer) SigningInfos ¶
func (UnimplementedQueryServer) SigningInfos(context.Context, *QuerySigningInfosRequest) (*QuerySigningInfosResponse, error)
type UnsafeMsgServer ¶
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.
type ValidatorMissedBlocks ¶
type ValidatorMissedBlocks struct { // address is the validator address. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // missed_blocks is an array of missed blocks by the validator. MissedBlocks []*MissedBlock `protobuf:"bytes,2,rep,name=missed_blocks,json=missedBlocks,proto3" json:"missed_blocks,omitempty"` // contains filtered or unexported fields }
ValidatorMissedBlocks contains array of missed blocks of corresponding address.
func (*ValidatorMissedBlocks) Descriptor
deprecated
func (*ValidatorMissedBlocks) Descriptor() ([]byte, []int)
Deprecated: Use ValidatorMissedBlocks.ProtoReflect.Descriptor instead.
func (*ValidatorMissedBlocks) GetAddress ¶
func (x *ValidatorMissedBlocks) GetAddress() string
func (*ValidatorMissedBlocks) GetMissedBlocks ¶
func (x *ValidatorMissedBlocks) GetMissedBlocks() []*MissedBlock
func (*ValidatorMissedBlocks) ProtoMessage ¶
func (*ValidatorMissedBlocks) ProtoMessage()
func (*ValidatorMissedBlocks) ProtoReflect ¶
func (x *ValidatorMissedBlocks) ProtoReflect() protoreflect.Message
func (*ValidatorMissedBlocks) Reset ¶
func (x *ValidatorMissedBlocks) Reset()
func (*ValidatorMissedBlocks) String ¶
func (x *ValidatorMissedBlocks) String() string
type ValidatorSigningInfo ¶
type ValidatorSigningInfo struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // Height at which validator was first a candidate OR was unjailed StartHeight int64 `protobuf:"varint,2,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"` // Index which is incremented each time the validator was a bonded // in a block and may have signed a precommit or not. This in conjunction with the // `SignedBlocksWindow` param determines the index in the `MissedBlocksBitArray`. IndexOffset int64 `protobuf:"varint,3,opt,name=index_offset,json=indexOffset,proto3" json:"index_offset,omitempty"` // Timestamp until which the validator is jailed due to liveness downtime. JailedUntil *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=jailed_until,json=jailedUntil,proto3" json:"jailed_until,omitempty"` // Whether or not a validator has been tombstoned (killed out of validator set). It is set // once the validator commits an equivocation or for any other configured misbehiavor. Tombstoned bool `protobuf:"varint,5,opt,name=tombstoned,proto3" json:"tombstoned,omitempty"` // A counter kept to avoid unnecessary array reads. // Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`. MissedBlocksCounter int64 `protobuf:"varint,6,opt,name=missed_blocks_counter,json=missedBlocksCounter,proto3" json:"missed_blocks_counter,omitempty"` // contains filtered or unexported fields }
ValidatorSigningInfo defines a validator's signing info for monitoring their liveness activity.
func (*ValidatorSigningInfo) Descriptor
deprecated
func (*ValidatorSigningInfo) Descriptor() ([]byte, []int)
Deprecated: Use ValidatorSigningInfo.ProtoReflect.Descriptor instead.
func (*ValidatorSigningInfo) GetAddress ¶
func (x *ValidatorSigningInfo) GetAddress() string
func (*ValidatorSigningInfo) GetIndexOffset ¶
func (x *ValidatorSigningInfo) GetIndexOffset() int64
func (*ValidatorSigningInfo) GetJailedUntil ¶
func (x *ValidatorSigningInfo) GetJailedUntil() *timestamppb.Timestamp
func (*ValidatorSigningInfo) GetMissedBlocksCounter ¶
func (x *ValidatorSigningInfo) GetMissedBlocksCounter() int64
func (*ValidatorSigningInfo) GetStartHeight ¶
func (x *ValidatorSigningInfo) GetStartHeight() int64
func (*ValidatorSigningInfo) GetTombstoned ¶
func (x *ValidatorSigningInfo) GetTombstoned() bool
func (*ValidatorSigningInfo) ProtoMessage ¶
func (*ValidatorSigningInfo) ProtoMessage()
func (*ValidatorSigningInfo) ProtoReflect ¶
func (x *ValidatorSigningInfo) ProtoReflect() protoreflect.Message
func (*ValidatorSigningInfo) Reset ¶
func (x *ValidatorSigningInfo) Reset()
func (*ValidatorSigningInfo) String ¶
func (x *ValidatorSigningInfo) String() string