Documentation ¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- type MsgClient
- type MsgServer
- type MsgUnjailValidator
- func (*MsgUnjailValidator) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUnjailValidator) GetId() string
- func (x *MsgUnjailValidator) GetOperator() string
- func (*MsgUnjailValidator) ProtoMessage()
- func (x *MsgUnjailValidator) ProtoReflect() protoreflect.Message
- func (x *MsgUnjailValidator) Reset()
- func (x *MsgUnjailValidator) String() string
- type MsgUnjailValidatorResponse
- 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 UnimplementedMsgServer
- type UnsafeMsgServer
- 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 ¶
const (
Msg_UnjailValidator_FullMethodName = "/iritamod.slashing.Msg/UnjailValidator"
)
Variables ¶
var File_iritamod_slashing_slashing_proto protoreflect.FileDescriptor
var File_iritamod_slashing_tx_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "iritamod.slashing.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UnjailValidator", Handler: _Msg_UnjailValidator_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "iritamod/slashing/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)
Functions ¶
func RegisterMsgServer ¶
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
Types ¶
type MsgClient ¶
type MsgClient interface { // Unjail defines a method for unjail a validator. UnjailValidator(ctx context.Context, in *MsgUnjailValidator, opts ...grpc.CallOption) (*MsgUnjailValidatorResponse, 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 unjail a validator. UnjailValidator(context.Context, *MsgUnjailValidator) (*MsgUnjailValidatorResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
type MsgUnjailValidator ¶
type MsgUnjailValidator struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` // contains filtered or unexported fields }
MsgUnjailValidator - struct for unjailing jailed validator
func (*MsgUnjailValidator) Descriptor
deprecated
func (*MsgUnjailValidator) Descriptor() ([]byte, []int)
Deprecated: Use MsgUnjailValidator.ProtoReflect.Descriptor instead.
func (*MsgUnjailValidator) GetId ¶
func (x *MsgUnjailValidator) GetId() string
func (*MsgUnjailValidator) GetOperator ¶
func (x *MsgUnjailValidator) GetOperator() string
func (*MsgUnjailValidator) ProtoMessage ¶
func (*MsgUnjailValidator) ProtoMessage()
func (*MsgUnjailValidator) ProtoReflect ¶
func (x *MsgUnjailValidator) ProtoReflect() protoreflect.Message
func (*MsgUnjailValidator) Reset ¶
func (x *MsgUnjailValidator) Reset()
func (*MsgUnjailValidator) String ¶
func (x *MsgUnjailValidator) String() string
type MsgUnjailValidatorResponse ¶
type MsgUnjailValidatorResponse struct {
// contains filtered or unexported fields
}
MsgUnjailValidatorResponse defines the Msg/Unjail response type.
func (*MsgUnjailValidatorResponse) Descriptor
deprecated
func (*MsgUnjailValidatorResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUnjailValidatorResponse.ProtoReflect.Descriptor instead.
func (*MsgUnjailValidatorResponse) ProtoMessage ¶
func (*MsgUnjailValidatorResponse) ProtoMessage()
func (*MsgUnjailValidatorResponse) ProtoReflect ¶
func (x *MsgUnjailValidatorResponse) ProtoReflect() protoreflect.Message
func (*MsgUnjailValidatorResponse) Reset ¶
func (x *MsgUnjailValidatorResponse) Reset()
func (*MsgUnjailValidatorResponse) String ¶
func (x *MsgUnjailValidatorResponse) 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 UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) UnjailValidator ¶
func (UnimplementedMsgServer) UnjailValidator(context.Context, *MsgUnjailValidator) (*MsgUnjailValidatorResponse, 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 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 offset into signed block bit array IndexOffset int64 `protobuf:"varint,3,opt,name=index_offset,json=indexOffset,proto3" json:"index_offset,omitempty"` // timestamp validator cannot be unjailed until 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) Tombstoned bool `protobuf:"varint,5,opt,name=tombstoned,proto3" json:"tombstoned,omitempty"` // missed blocks counter (to avoid scanning the array every time) 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