evidencev1beta1

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
var File_cosmos_evidence_v1beta1_evidence_proto protoreflect.FileDescriptor
View Source
var File_cosmos_evidence_v1beta1_genesis_proto protoreflect.FileDescriptor
View Source
var File_cosmos_evidence_v1beta1_query_proto protoreflect.FileDescriptor
View Source
var File_cosmos_evidence_v1beta1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cosmos.evidence.v1beta1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SubmitEvidence",
			Handler:    _Msg_SubmitEvidence_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/evidence/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)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cosmos.evidence.v1beta1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Evidence",
			Handler:    _Query_Evidence_Handler,
		},
		{
			MethodName: "AllEvidence",
			Handler:    _Query_AllEvidence_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/evidence/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 Equivocation

type Equivocation struct {
	Height           int64                  `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Time             *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
	Power            int64                  `protobuf:"varint,3,opt,name=power,proto3" json:"power,omitempty"`
	ConsensusAddress string                 `protobuf:"bytes,4,opt,name=consensus_address,json=consensusAddress,proto3" json:"consensus_address,omitempty"`
	// contains filtered or unexported fields
}

Equivocation implements the Evidence interface and defines evidence of double signing misbehavior.

func (*Equivocation) Descriptor deprecated

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

Deprecated: Use Equivocation.ProtoReflect.Descriptor instead.

func (*Equivocation) GetConsensusAddress

func (x *Equivocation) GetConsensusAddress() string

func (*Equivocation) GetHeight

func (x *Equivocation) GetHeight() int64

func (*Equivocation) GetPower

func (x *Equivocation) GetPower() int64

func (*Equivocation) GetTime

func (x *Equivocation) GetTime() *timestamppb.Timestamp

func (*Equivocation) ProtoMessage

func (*Equivocation) ProtoMessage()

func (*Equivocation) ProtoReflect

func (x *Equivocation) ProtoReflect() protoreflect.Message

func (*Equivocation) Reset

func (x *Equivocation) Reset()

func (*Equivocation) String

func (x *Equivocation) String() string

type GenesisState

type GenesisState struct {

	// evidence defines all the evidence at genesis.
	Evidence []*anypb.Any `protobuf:"bytes,1,rep,name=evidence,proto3" json:"evidence,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the evidence module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetEvidence

func (x *GenesisState) GetEvidence() []*anypb.Any

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 MsgClient

type MsgClient interface {
	// SubmitEvidence submits an arbitrary Evidence of misbehavior such as equivocation or
	// counterfactual signing.
	SubmitEvidence(ctx context.Context, in *MsgSubmitEvidence, opts ...grpc.CallOption) (*MsgSubmitEvidenceResponse, 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 {
	// SubmitEvidence submits an arbitrary Evidence of misbehavior such as equivocation or
	// counterfactual signing.
	SubmitEvidence(context.Context, *MsgSubmitEvidence) (*MsgSubmitEvidenceResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

type MsgSubmitEvidence

type MsgSubmitEvidence struct {
	Submitter string     `protobuf:"bytes,1,opt,name=submitter,proto3" json:"submitter,omitempty"`
	Evidence  *anypb.Any `protobuf:"bytes,2,opt,name=evidence,proto3" json:"evidence,omitempty"`
	// contains filtered or unexported fields
}

MsgSubmitEvidence represents a message that supports submitting arbitrary Evidence of misbehavior such as equivocation or counterfactual signing.

func (*MsgSubmitEvidence) Descriptor deprecated

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

Deprecated: Use MsgSubmitEvidence.ProtoReflect.Descriptor instead.

func (*MsgSubmitEvidence) GetEvidence

func (x *MsgSubmitEvidence) GetEvidence() *anypb.Any

func (*MsgSubmitEvidence) GetSubmitter

func (x *MsgSubmitEvidence) GetSubmitter() string

func (*MsgSubmitEvidence) ProtoMessage

func (*MsgSubmitEvidence) ProtoMessage()

func (*MsgSubmitEvidence) ProtoReflect

func (x *MsgSubmitEvidence) ProtoReflect() protoreflect.Message

func (*MsgSubmitEvidence) Reset

func (x *MsgSubmitEvidence) Reset()

func (*MsgSubmitEvidence) String

func (x *MsgSubmitEvidence) String() string

type MsgSubmitEvidenceResponse

type MsgSubmitEvidenceResponse struct {

	// hash defines the hash of the evidence.
	Hash []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type.

func (*MsgSubmitEvidenceResponse) Descriptor deprecated

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

Deprecated: Use MsgSubmitEvidenceResponse.ProtoReflect.Descriptor instead.

func (*MsgSubmitEvidenceResponse) GetHash

func (x *MsgSubmitEvidenceResponse) GetHash() []byte

func (*MsgSubmitEvidenceResponse) ProtoMessage

func (*MsgSubmitEvidenceResponse) ProtoMessage()

func (*MsgSubmitEvidenceResponse) ProtoReflect

func (*MsgSubmitEvidenceResponse) Reset

func (x *MsgSubmitEvidenceResponse) Reset()

func (*MsgSubmitEvidenceResponse) String

func (x *MsgSubmitEvidenceResponse) String() string

type QueryAllEvidenceRequest

type QueryAllEvidenceRequest struct {

	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryEvidenceRequest is the request type for the Query/AllEvidence RPC method.

func (*QueryAllEvidenceRequest) Descriptor deprecated

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

Deprecated: Use QueryAllEvidenceRequest.ProtoReflect.Descriptor instead.

func (*QueryAllEvidenceRequest) GetPagination

func (x *QueryAllEvidenceRequest) GetPagination() *v1beta1.PageRequest

func (*QueryAllEvidenceRequest) ProtoMessage

func (*QueryAllEvidenceRequest) ProtoMessage()

func (*QueryAllEvidenceRequest) ProtoReflect

func (x *QueryAllEvidenceRequest) ProtoReflect() protoreflect.Message

func (*QueryAllEvidenceRequest) Reset

func (x *QueryAllEvidenceRequest) Reset()

func (*QueryAllEvidenceRequest) String

func (x *QueryAllEvidenceRequest) String() string

type QueryAllEvidenceResponse

type QueryAllEvidenceResponse struct {

	// evidence returns all evidences.
	Evidence []*anypb.Any `protobuf:"bytes,1,rep,name=evidence,proto3" json:"evidence,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC method.

func (*QueryAllEvidenceResponse) Descriptor deprecated

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

Deprecated: Use QueryAllEvidenceResponse.ProtoReflect.Descriptor instead.

func (*QueryAllEvidenceResponse) GetEvidence

func (x *QueryAllEvidenceResponse) GetEvidence() []*anypb.Any

func (*QueryAllEvidenceResponse) GetPagination

func (x *QueryAllEvidenceResponse) GetPagination() *v1beta1.PageResponse

func (*QueryAllEvidenceResponse) ProtoMessage

func (*QueryAllEvidenceResponse) ProtoMessage()

func (*QueryAllEvidenceResponse) ProtoReflect

func (x *QueryAllEvidenceResponse) ProtoReflect() protoreflect.Message

func (*QueryAllEvidenceResponse) Reset

func (x *QueryAllEvidenceResponse) Reset()

func (*QueryAllEvidenceResponse) String

func (x *QueryAllEvidenceResponse) String() string

type QueryClient

type QueryClient interface {
	// Evidence queries evidence based on evidence hash.
	Evidence(ctx context.Context, in *QueryEvidenceRequest, opts ...grpc.CallOption) (*QueryEvidenceResponse, error)
	// AllEvidence queries all evidence.
	AllEvidence(ctx context.Context, in *QueryAllEvidenceRequest, opts ...grpc.CallOption) (*QueryAllEvidenceResponse, 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 QueryEvidenceRequest

type QueryEvidenceRequest struct {

	// evidence_hash defines the hash of the requested evidence.
	// Deprecated: Use hash, a HEX encoded string, instead.
	//
	// Deprecated: Do not use.
	EvidenceHash []byte `protobuf:"bytes,1,opt,name=evidence_hash,json=evidenceHash,proto3" json:"evidence_hash,omitempty"`
	// hash defines the evidence hash of the requested evidence.
	//
	// Since: cosmos-sdk 0.47
	Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

QueryEvidenceRequest is the request type for the Query/Evidence RPC method.

func (*QueryEvidenceRequest) Descriptor deprecated

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

Deprecated: Use QueryEvidenceRequest.ProtoReflect.Descriptor instead.

func (*QueryEvidenceRequest) GetEvidenceHash deprecated

func (x *QueryEvidenceRequest) GetEvidenceHash() []byte

Deprecated: Do not use.

func (*QueryEvidenceRequest) GetHash added in v0.6.7

func (x *QueryEvidenceRequest) GetHash() string

func (*QueryEvidenceRequest) ProtoMessage

func (*QueryEvidenceRequest) ProtoMessage()

func (*QueryEvidenceRequest) ProtoReflect

func (x *QueryEvidenceRequest) ProtoReflect() protoreflect.Message

func (*QueryEvidenceRequest) Reset

func (x *QueryEvidenceRequest) Reset()

func (*QueryEvidenceRequest) String

func (x *QueryEvidenceRequest) String() string

type QueryEvidenceResponse

type QueryEvidenceResponse struct {

	// evidence returns the requested evidence.
	Evidence *anypb.Any `protobuf:"bytes,1,opt,name=evidence,proto3" json:"evidence,omitempty"`
	// contains filtered or unexported fields
}

QueryEvidenceResponse is the response type for the Query/Evidence RPC method.

func (*QueryEvidenceResponse) Descriptor deprecated

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

Deprecated: Use QueryEvidenceResponse.ProtoReflect.Descriptor instead.

func (*QueryEvidenceResponse) GetEvidence

func (x *QueryEvidenceResponse) GetEvidence() *anypb.Any

func (*QueryEvidenceResponse) ProtoMessage

func (*QueryEvidenceResponse) ProtoMessage()

func (*QueryEvidenceResponse) ProtoReflect

func (x *QueryEvidenceResponse) ProtoReflect() protoreflect.Message

func (*QueryEvidenceResponse) Reset

func (x *QueryEvidenceResponse) Reset()

func (*QueryEvidenceResponse) String

func (x *QueryEvidenceResponse) String() string

type QueryServer

type QueryServer interface {
	// Evidence queries evidence based on evidence hash.
	Evidence(context.Context, *QueryEvidenceRequest) (*QueryEvidenceResponse, error)
	// AllEvidence queries all evidence.
	AllEvidence(context.Context, *QueryAllEvidenceRequest) (*QueryAllEvidenceResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) SubmitEvidence

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Evidence

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.

Jump to

Keyboard shortcuts

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