Versions in this module Expand all Collapse all v0 v0.45.26 May 2, 2022 v0.45.25 May 2, 2022 Changes in this version + const AttributeKeyEvidenceHash + const AttributeValueCategory + const EventTypeSubmitEvidence + const ModuleName + const QuerierRoute + const QueryAllEvidence + const QueryEvidence + const RouteEquivocation + const RouterKey + const StoreKey + const TypeEquivocation + const TypeMsgSubmitEvidence + var DoubleSignJailEndTime = time.Unix(253402300799, 0) + var ErrEvidenceExists = sdkerrors.Register(ModuleName, 5, "evidence already exists") + var ErrIntOverflowEvidence = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + var ErrInvalidEvidence = sdkerrors.Register(ModuleName, 3, "invalid evidence") + var ErrInvalidLengthEvidence = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrNoEvidenceExists = sdkerrors.Register(ModuleName, 4, "evidence does not exist") + var ErrNoEvidenceHandlerExists = sdkerrors.Register(ModuleName, 2, "unregistered handler for evidence type") + var ErrUnexpectedEndOfGroupEvidence = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") + var KeyPrefixEvidence = []byte + var ModuleCdc = codec.NewAminoCodec(amino) + func FromABCIEvidence(e abci.Evidence) exported.Evidence + func RegisterInterfaces(registry types.InterfaceRegistry) + func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) + func RegisterMsgServer(s grpc1.Server, srv MsgServer) + func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error + func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error + func RegisterQueryServer(s grpc1.Server, srv QueryServer) + type Equivocation struct + ConsensusAddress string + Height int64 + Power int64 + Time time.Time + func (*Equivocation) Descriptor() ([]byte, []int) + func (*Equivocation) ProtoMessage() + func (e *Equivocation) Hash() tmbytes.HexBytes + func (e *Equivocation) Route() string + func (e *Equivocation) String() string + func (e *Equivocation) Type() string + func (e *Equivocation) ValidateBasic() error + func (e Equivocation) GetConsensusAddress() sdk.ConsAddress + func (e Equivocation) GetHeight() int64 + func (e Equivocation) GetTime() time.Time + func (e Equivocation) GetTotalPower() int64 + func (e Equivocation) GetValidatorPower() int64 + func (m *Equivocation) Marshal() (dAtA []byte, err error) + func (m *Equivocation) MarshalTo(dAtA []byte) (int, error) + func (m *Equivocation) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Equivocation) Reset() + func (m *Equivocation) Size() (n int) + func (m *Equivocation) Unmarshal(dAtA []byte) error + func (m *Equivocation) XXX_DiscardUnknown() + func (m *Equivocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Equivocation) XXX_Merge(src proto.Message) + func (m *Equivocation) XXX_Size() int + func (m *Equivocation) XXX_Unmarshal(b []byte) error + type GenesisState struct + Evidence []*types.Any + func DefaultGenesisState() *GenesisState + func NewGenesisState(e []exported.Evidence) *GenesisState + func (*GenesisState) Descriptor() ([]byte, []int) + func (*GenesisState) ProtoMessage() + func (gs GenesisState) UnpackInterfaces(unpacker types.AnyUnpacker) error + func (gs GenesisState) Validate() error + func (m *GenesisState) GetEvidence() []*types.Any + func (m *GenesisState) Marshal() (dAtA []byte, err error) + func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) + func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GenesisState) Reset() + func (m *GenesisState) Size() (n int) + func (m *GenesisState) String() string + func (m *GenesisState) Unmarshal(dAtA []byte) error + func (m *GenesisState) XXX_DiscardUnknown() + func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GenesisState) XXX_Merge(src proto.Message) + func (m *GenesisState) XXX_Size() int + func (m *GenesisState) XXX_Unmarshal(b []byte) error + type Handler func(sdk.Context, exported.Evidence) error + type MsgClient interface + SubmitEvidence func(ctx context.Context, in *MsgSubmitEvidence, opts ...grpc.CallOption) (*MsgSubmitEvidenceResponse, error) + func NewMsgClient(cc grpc1.ClientConn) MsgClient + type MsgServer interface + SubmitEvidence func(context.Context, *MsgSubmitEvidence) (*MsgSubmitEvidenceResponse, error) + type MsgSubmitEvidence struct + Evidence *types.Any + Submitter string + func NewMsgSubmitEvidence(s sdk.AccAddress, evi exported.Evidence) (*MsgSubmitEvidence, error) + func (*MsgSubmitEvidence) Descriptor() ([]byte, []int) + func (*MsgSubmitEvidence) ProtoMessage() + func (m *MsgSubmitEvidence) Marshal() (dAtA []byte, err error) + func (m *MsgSubmitEvidence) MarshalTo(dAtA []byte) (int, error) + func (m *MsgSubmitEvidence) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgSubmitEvidence) Reset() + func (m *MsgSubmitEvidence) Size() (n int) + func (m *MsgSubmitEvidence) String() string + func (m *MsgSubmitEvidence) Unmarshal(dAtA []byte) error + func (m *MsgSubmitEvidence) XXX_DiscardUnknown() + func (m *MsgSubmitEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgSubmitEvidence) XXX_Merge(src proto.Message) + func (m *MsgSubmitEvidence) XXX_Size() int + func (m *MsgSubmitEvidence) XXX_Unmarshal(b []byte) error + func (m MsgSubmitEvidence) GetEvidence() exported.Evidence + func (m MsgSubmitEvidence) GetSignBytes() []byte + func (m MsgSubmitEvidence) GetSigners() []sdk.AccAddress + func (m MsgSubmitEvidence) GetSubmitter() sdk.AccAddress + func (m MsgSubmitEvidence) Route() string + func (m MsgSubmitEvidence) Type() string + func (m MsgSubmitEvidence) UnpackInterfaces(ctx types.AnyUnpacker) error + func (m MsgSubmitEvidence) ValidateBasic() error + type MsgSubmitEvidenceResponse struct + Hash []byte + func (*MsgSubmitEvidenceResponse) Descriptor() ([]byte, []int) + func (*MsgSubmitEvidenceResponse) ProtoMessage() + func (m *MsgSubmitEvidenceResponse) GetHash() []byte + func (m *MsgSubmitEvidenceResponse) Marshal() (dAtA []byte, err error) + func (m *MsgSubmitEvidenceResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgSubmitEvidenceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgSubmitEvidenceResponse) Reset() + func (m *MsgSubmitEvidenceResponse) Size() (n int) + func (m *MsgSubmitEvidenceResponse) String() string + func (m *MsgSubmitEvidenceResponse) Unmarshal(dAtA []byte) error + func (m *MsgSubmitEvidenceResponse) XXX_DiscardUnknown() + func (m *MsgSubmitEvidenceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgSubmitEvidenceResponse) XXX_Merge(src proto.Message) + func (m *MsgSubmitEvidenceResponse) XXX_Size() int + func (m *MsgSubmitEvidenceResponse) XXX_Unmarshal(b []byte) error + func (this *MsgSubmitEvidenceResponse) Equal(that interface{}) bool + type QueryAllEvidenceParams struct + Limit int + Page int + func NewQueryAllEvidenceParams(page, limit int) QueryAllEvidenceParams + type QueryAllEvidenceRequest struct + Pagination *query.PageRequest + func NewQueryAllEvidenceRequest(pageReq *query.PageRequest) *QueryAllEvidenceRequest + func (*QueryAllEvidenceRequest) Descriptor() ([]byte, []int) + func (*QueryAllEvidenceRequest) ProtoMessage() + func (m *QueryAllEvidenceRequest) GetPagination() *query.PageRequest + func (m *QueryAllEvidenceRequest) Marshal() (dAtA []byte, err error) + func (m *QueryAllEvidenceRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryAllEvidenceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryAllEvidenceRequest) Reset() + func (m *QueryAllEvidenceRequest) Size() (n int) + func (m *QueryAllEvidenceRequest) String() string + func (m *QueryAllEvidenceRequest) Unmarshal(dAtA []byte) error + func (m *QueryAllEvidenceRequest) XXX_DiscardUnknown() + func (m *QueryAllEvidenceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryAllEvidenceRequest) XXX_Merge(src proto.Message) + func (m *QueryAllEvidenceRequest) XXX_Size() int + func (m *QueryAllEvidenceRequest) XXX_Unmarshal(b []byte) error + type QueryAllEvidenceResponse struct + Evidence []*types.Any + Pagination *query.PageResponse + func (*QueryAllEvidenceResponse) Descriptor() ([]byte, []int) + func (*QueryAllEvidenceResponse) ProtoMessage() + func (m *QueryAllEvidenceResponse) GetEvidence() []*types.Any + func (m *QueryAllEvidenceResponse) GetPagination() *query.PageResponse + func (m *QueryAllEvidenceResponse) Marshal() (dAtA []byte, err error) + func (m *QueryAllEvidenceResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryAllEvidenceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryAllEvidenceResponse) Reset() + func (m *QueryAllEvidenceResponse) Size() (n int) + func (m *QueryAllEvidenceResponse) String() string + func (m *QueryAllEvidenceResponse) Unmarshal(dAtA []byte) error + func (m *QueryAllEvidenceResponse) XXX_DiscardUnknown() + func (m *QueryAllEvidenceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryAllEvidenceResponse) XXX_Merge(src proto.Message) + func (m *QueryAllEvidenceResponse) XXX_Size() int + func (m *QueryAllEvidenceResponse) XXX_Unmarshal(b []byte) error + type QueryClient interface + AllEvidence func(ctx context.Context, in *QueryAllEvidenceRequest, opts ...grpc.CallOption) (*QueryAllEvidenceResponse, error) + Evidence func(ctx context.Context, in *QueryEvidenceRequest, opts ...grpc.CallOption) (*QueryEvidenceResponse, error) + func NewQueryClient(cc grpc1.ClientConn) QueryClient + type QueryEvidenceRequest struct + EvidenceHash github_com_tendermint_tendermint_libs_bytes.HexBytes + func NewQueryEvidenceRequest(hash tmbytes.HexBytes) *QueryEvidenceRequest + func (*QueryEvidenceRequest) Descriptor() ([]byte, []int) + func (*QueryEvidenceRequest) ProtoMessage() + func (m *QueryEvidenceRequest) GetEvidenceHash() github_com_tendermint_tendermint_libs_bytes.HexBytes + func (m *QueryEvidenceRequest) Marshal() (dAtA []byte, err error) + func (m *QueryEvidenceRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryEvidenceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryEvidenceRequest) Reset() + func (m *QueryEvidenceRequest) Size() (n int) + func (m *QueryEvidenceRequest) String() string + func (m *QueryEvidenceRequest) Unmarshal(dAtA []byte) error + func (m *QueryEvidenceRequest) XXX_DiscardUnknown() + func (m *QueryEvidenceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryEvidenceRequest) XXX_Merge(src proto.Message) + func (m *QueryEvidenceRequest) XXX_Size() int + func (m *QueryEvidenceRequest) XXX_Unmarshal(b []byte) error + type QueryEvidenceResponse struct + Evidence *types.Any + func (*QueryEvidenceResponse) Descriptor() ([]byte, []int) + func (*QueryEvidenceResponse) ProtoMessage() + func (m *QueryEvidenceResponse) GetEvidence() *types.Any + func (m *QueryEvidenceResponse) Marshal() (dAtA []byte, err error) + func (m *QueryEvidenceResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryEvidenceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryEvidenceResponse) Reset() + func (m *QueryEvidenceResponse) Size() (n int) + func (m *QueryEvidenceResponse) String() string + func (m *QueryEvidenceResponse) Unmarshal(dAtA []byte) error + func (m *QueryEvidenceResponse) XXX_DiscardUnknown() + func (m *QueryEvidenceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryEvidenceResponse) XXX_Merge(src proto.Message) + func (m *QueryEvidenceResponse) XXX_Size() int + func (m *QueryEvidenceResponse) XXX_Unmarshal(b []byte) error + type QueryServer interface + AllEvidence func(context.Context, *QueryAllEvidenceRequest) (*QueryAllEvidenceResponse, error) + Evidence func(context.Context, *QueryEvidenceRequest) (*QueryEvidenceResponse, error) + type Router interface + AddRoute func(r string, h Handler) Router + GetRoute func(path string) Handler + HasRoute func(r string) bool + Seal func() + Sealed func() bool + func NewRouter() Router + type SlashingKeeper interface + GetPubkey func(sdk.Context, cryptotypes.Address) (cryptotypes.PubKey, error) + HasValidatorSigningInfo func(sdk.Context, sdk.ConsAddress) bool + IsTombstoned func(sdk.Context, sdk.ConsAddress) bool + Jail func(sdk.Context, sdk.ConsAddress) + JailUntil func(sdk.Context, sdk.ConsAddress, time.Time) + Slash func(sdk.Context, sdk.ConsAddress, sdk.Dec, int64, int64) + SlashFractionDoubleSign func(sdk.Context) sdk.Dec + Tombstone func(sdk.Context, sdk.ConsAddress) + type StakingKeeper interface + ValidatorByConsAddr func(sdk.Context, sdk.ConsAddress) stakingtypes.ValidatorI + type UnimplementedMsgServer struct + func (*UnimplementedMsgServer) SubmitEvidence(ctx context.Context, req *MsgSubmitEvidence) (*MsgSubmitEvidenceResponse, error) + type UnimplementedQueryServer struct + func (*UnimplementedQueryServer) AllEvidence(ctx context.Context, req *QueryAllEvidenceRequest) (*QueryAllEvidenceResponse, error) + func (*UnimplementedQueryServer) Evidence(ctx context.Context, req *QueryEvidenceRequest) (*QueryEvidenceResponse, error)