types

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

noalias DONTCOVER

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthSlashing        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSlashing          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSlashing = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (

	// ModuleCdc is instance of AminoCodec
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces registers the necessary interfaces and concrete types on the provided protobuf codec.

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary interfaces and concrete types on the provided Amino codec. These types are used for Amino JSON serialization.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, 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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgServer

type MsgServer interface {
	// Unjail defines a method for unjail a validator.
	UnjailValidator(context.Context, *MsgUnjailValidator) (*MsgUnjailValidatorResponse, error)
}

MsgServer is the server API for Msg service.

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"`
}

MsgUnjailValidator - struct for unjailing jailed validator

func NewMsgUnjailValidator

func NewMsgUnjailValidator(id tmbytes.HexBytes, operator sdk.AccAddress) *MsgUnjailValidator

NewMsgUnjailValidator creates a new MsgUnjailValidator instance.

func (*MsgUnjailValidator) Descriptor

func (*MsgUnjailValidator) Descriptor() ([]byte, []int)

func (MsgUnjailValidator) GetSignBytes

func (m MsgUnjailValidator) GetSignBytes() []byte

GetSignBytes implement sdk.Msg

func (MsgUnjailValidator) GetSigners

func (m MsgUnjailValidator) GetSigners() []sdk.AccAddress

GetSigners implement sdk.Msg

func (*MsgUnjailValidator) Marshal

func (m *MsgUnjailValidator) Marshal() (dAtA []byte, err error)

func (*MsgUnjailValidator) MarshalTo

func (m *MsgUnjailValidator) MarshalTo(dAtA []byte) (int, error)

func (*MsgUnjailValidator) MarshalToSizedBuffer

func (m *MsgUnjailValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUnjailValidator) ProtoMessage

func (*MsgUnjailValidator) ProtoMessage()

func (*MsgUnjailValidator) Reset

func (m *MsgUnjailValidator) Reset()

func (MsgUnjailValidator) Route

func (m MsgUnjailValidator) Route() string

Route implement sdk.Msg

func (*MsgUnjailValidator) Size

func (m *MsgUnjailValidator) Size() (n int)

func (*MsgUnjailValidator) String

func (m *MsgUnjailValidator) String() string

func (MsgUnjailValidator) Type

func (m MsgUnjailValidator) Type() string

Type implement sdk.Msg

func (*MsgUnjailValidator) Unmarshal

func (m *MsgUnjailValidator) Unmarshal(dAtA []byte) error

func (MsgUnjailValidator) ValidateBasic

func (m MsgUnjailValidator) ValidateBasic() error

ValidateBasic implement sdk.Msg

func (*MsgUnjailValidator) XXX_DiscardUnknown

func (m *MsgUnjailValidator) XXX_DiscardUnknown()

func (*MsgUnjailValidator) XXX_Marshal

func (m *MsgUnjailValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUnjailValidator) XXX_Merge

func (m *MsgUnjailValidator) XXX_Merge(src proto.Message)

func (*MsgUnjailValidator) XXX_Size

func (m *MsgUnjailValidator) XXX_Size() int

func (*MsgUnjailValidator) XXX_Unmarshal

func (m *MsgUnjailValidator) XXX_Unmarshal(b []byte) error

type MsgUnjailValidatorResponse

type MsgUnjailValidatorResponse struct {
}

MsgUnjailValidatorResponse defines the Msg/Unjail response type.

func (*MsgUnjailValidatorResponse) Descriptor

func (*MsgUnjailValidatorResponse) Descriptor() ([]byte, []int)

func (*MsgUnjailValidatorResponse) Marshal

func (m *MsgUnjailValidatorResponse) Marshal() (dAtA []byte, err error)

func (*MsgUnjailValidatorResponse) MarshalTo

func (m *MsgUnjailValidatorResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUnjailValidatorResponse) MarshalToSizedBuffer

func (m *MsgUnjailValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUnjailValidatorResponse) ProtoMessage

func (*MsgUnjailValidatorResponse) ProtoMessage()

func (*MsgUnjailValidatorResponse) Reset

func (m *MsgUnjailValidatorResponse) Reset()

func (*MsgUnjailValidatorResponse) Size

func (m *MsgUnjailValidatorResponse) Size() (n int)

func (*MsgUnjailValidatorResponse) String

func (m *MsgUnjailValidatorResponse) String() string

func (*MsgUnjailValidatorResponse) Unmarshal

func (m *MsgUnjailValidatorResponse) Unmarshal(dAtA []byte) error

func (*MsgUnjailValidatorResponse) XXX_DiscardUnknown

func (m *MsgUnjailValidatorResponse) XXX_DiscardUnknown()

func (*MsgUnjailValidatorResponse) XXX_Marshal

func (m *MsgUnjailValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUnjailValidatorResponse) XXX_Merge

func (m *MsgUnjailValidatorResponse) XXX_Merge(src proto.Message)

func (*MsgUnjailValidatorResponse) XXX_Size

func (m *MsgUnjailValidatorResponse) XXX_Size() int

func (*MsgUnjailValidatorResponse) XXX_Unmarshal

func (m *MsgUnjailValidatorResponse) XXX_Unmarshal(b []byte) error

type NodeKeeper

type NodeKeeper interface {
	ValidatorByID(ctx sdk.Context, id tmbytes.HexBytes) stakingexported.ValidatorI
}

NodeKeeper defines the expected node keeper

type Params

type Params struct {
	SignedBlocksWindow      int64                                  `` /* 146-byte string literal not displayed */
	MinSignedPerWindow      github_com_cosmos_cosmos_sdk_types.Dec `` /* 188-byte string literal not displayed */
	DowntimeJailDuration    time.Duration                          `` /* 155-byte string literal not displayed */
	SlashFractionDoubleSign github_com_cosmos_cosmos_sdk_types.Dec `` /* 208-byte string literal not displayed */
	SlashFractionDowntime   github_com_cosmos_cosmos_sdk_types.Dec `` /* 197-byte string literal not displayed */
}

Params represents the parameters used for by the slashing module.

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) UnjailValidator

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" yaml:"start_height"`
	// index offset into signed block bit array
	IndexOffset int64 `protobuf:"varint,3,opt,name=index_offset,json=indexOffset,proto3" json:"index_offset,omitempty" yaml:"index_offset"`
	// timestamp validator cannot be unjailed until
	JailedUntil time.Time `protobuf:"bytes,4,opt,name=jailed_until,json=jailedUntil,proto3,stdtime" json:"jailed_until" yaml:"jailed_until"`
	// 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 `` /* 150-byte string literal not displayed */
}

ValidatorSigningInfo defines a validator's signing info for monitoring their liveness activity.

func (*ValidatorSigningInfo) Descriptor

func (*ValidatorSigningInfo) Descriptor() ([]byte, []int)

func (*ValidatorSigningInfo) Equal

func (this *ValidatorSigningInfo) Equal(that interface{}) bool

func (*ValidatorSigningInfo) Marshal

func (m *ValidatorSigningInfo) Marshal() (dAtA []byte, err error)

func (*ValidatorSigningInfo) MarshalTo

func (m *ValidatorSigningInfo) MarshalTo(dAtA []byte) (int, error)

func (*ValidatorSigningInfo) MarshalToSizedBuffer

func (m *ValidatorSigningInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValidatorSigningInfo) ProtoMessage

func (*ValidatorSigningInfo) ProtoMessage()

func (*ValidatorSigningInfo) Reset

func (m *ValidatorSigningInfo) Reset()

func (*ValidatorSigningInfo) Size

func (m *ValidatorSigningInfo) Size() (n int)

func (*ValidatorSigningInfo) String

func (m *ValidatorSigningInfo) String() string

func (*ValidatorSigningInfo) Unmarshal

func (m *ValidatorSigningInfo) Unmarshal(dAtA []byte) error

func (*ValidatorSigningInfo) XXX_DiscardUnknown

func (m *ValidatorSigningInfo) XXX_DiscardUnknown()

func (*ValidatorSigningInfo) XXX_Marshal

func (m *ValidatorSigningInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidatorSigningInfo) XXX_Merge

func (m *ValidatorSigningInfo) XXX_Merge(src proto.Message)

func (*ValidatorSigningInfo) XXX_Size

func (m *ValidatorSigningInfo) XXX_Size() int

func (*ValidatorSigningInfo) XXX_Unmarshal

func (m *ValidatorSigningInfo) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL