Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CommitVoteData(nonce int64, dataHash []byte, providerAddress string) []byte
- func ConflictVoteKey(index string) []byte
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- 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 AccountKeeper
- type BankKeeper
- type ConflictRelayData
- func (*ConflictRelayData) Descriptor() ([]byte, []int)
- func (m *ConflictRelayData) GetReply() *ReplyMetadata
- func (m *ConflictRelayData) GetRequest() *types.RelayRequest
- func (m *ConflictRelayData) Marshal() (dAtA []byte, err error)
- func (m *ConflictRelayData) MarshalTo(dAtA []byte) (int, error)
- func (m *ConflictRelayData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ConflictRelayData) ProtoMessage()
- func (m *ConflictRelayData) Reset()
- func (m *ConflictRelayData) Size() (n int)
- func (m *ConflictRelayData) String() string
- func (m *ConflictRelayData) Unmarshal(dAtA []byte) error
- func (m *ConflictRelayData) XXX_DiscardUnknown()
- func (m *ConflictRelayData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConflictRelayData) XXX_Merge(src proto.Message)
- func (m *ConflictRelayData) XXX_Size() int
- func (m *ConflictRelayData) XXX_Unmarshal(b []byte) error
- type ConflictVote
- func (*ConflictVote) Descriptor() ([]byte, []int)
- func (m *ConflictVote) GetApiUrl() string
- func (m *ConflictVote) GetChainID() string
- func (m *ConflictVote) GetClientAddress() string
- func (m *ConflictVote) GetFirstProvider() Provider
- func (m *ConflictVote) GetIndex() string
- func (m *ConflictVote) GetRequestBlock() uint64
- func (m *ConflictVote) GetRequestData() []byte
- func (m *ConflictVote) GetSecondProvider() Provider
- func (m *ConflictVote) GetVoteDeadline() uint64
- func (m *ConflictVote) GetVoteStartBlock() uint64
- func (m *ConflictVote) GetVoteState() int64
- func (m *ConflictVote) GetVotes() []Vote
- func (m *ConflictVote) Marshal() (dAtA []byte, err error)
- func (m *ConflictVote) MarshalTo(dAtA []byte) (int, error)
- func (m *ConflictVote) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ConflictVote) ProtoMessage()
- func (m *ConflictVote) Reset()
- func (m *ConflictVote) Size() (n int)
- func (m *ConflictVote) String() string
- func (m *ConflictVote) Unmarshal(dAtA []byte) error
- func (m *ConflictVote) XXX_DiscardUnknown()
- func (m *ConflictVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConflictVote) XXX_Merge(src proto.Message)
- func (m *ConflictVote) XXX_Size() int
- func (m *ConflictVote) XXX_Unmarshal(b []byte) error
- type EpochstorageKeeper
- type FinalizationConflict
- func (*FinalizationConflict) Descriptor() ([]byte, []int)
- func (m *FinalizationConflict) GetRelayReply0() *types.RelayReply
- func (m *FinalizationConflict) GetRelayReply1() *types.RelayReply
- func (m *FinalizationConflict) Marshal() (dAtA []byte, err error)
- func (m *FinalizationConflict) MarshalTo(dAtA []byte) (int, error)
- func (m *FinalizationConflict) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FinalizationConflict) ProtoMessage()
- func (m *FinalizationConflict) Reset()
- func (m *FinalizationConflict) Size() (n int)
- func (m *FinalizationConflict) String() string
- func (m *FinalizationConflict) Unmarshal(dAtA []byte) error
- func (m *FinalizationConflict) XXX_DiscardUnknown()
- func (m *FinalizationConflict) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FinalizationConflict) XXX_Merge(src proto.Message)
- func (m *FinalizationConflict) XXX_Size() int
- func (m *FinalizationConflict) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetConflictVoteList() []ConflictVote
- func (m *GenesisState) GetParams() Params
- 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 (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() 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 MsgClient
- type MsgConflictVoteCommit
- func (*MsgConflictVoteCommit) Descriptor() ([]byte, []int)
- func (m *MsgConflictVoteCommit) GetCreator() string
- func (m *MsgConflictVoteCommit) GetHash() []byte
- func (msg *MsgConflictVoteCommit) GetSignBytes() []byte
- func (msg *MsgConflictVoteCommit) GetSigners() []sdk.AccAddress
- func (m *MsgConflictVoteCommit) GetVoteID() string
- func (m *MsgConflictVoteCommit) Marshal() (dAtA []byte, err error)
- func (m *MsgConflictVoteCommit) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgConflictVoteCommit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgConflictVoteCommit) ProtoMessage()
- func (m *MsgConflictVoteCommit) Reset()
- func (msg *MsgConflictVoteCommit) Route() string
- func (m *MsgConflictVoteCommit) Size() (n int)
- func (m *MsgConflictVoteCommit) String() string
- func (msg *MsgConflictVoteCommit) Type() string
- func (m *MsgConflictVoteCommit) Unmarshal(dAtA []byte) error
- func (msg *MsgConflictVoteCommit) ValidateBasic() error
- func (m *MsgConflictVoteCommit) XXX_DiscardUnknown()
- func (m *MsgConflictVoteCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgConflictVoteCommit) XXX_Merge(src proto.Message)
- func (m *MsgConflictVoteCommit) XXX_Size() int
- func (m *MsgConflictVoteCommit) XXX_Unmarshal(b []byte) error
- type MsgConflictVoteCommitResponse
- func (*MsgConflictVoteCommitResponse) Descriptor() ([]byte, []int)
- func (m *MsgConflictVoteCommitResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgConflictVoteCommitResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgConflictVoteCommitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgConflictVoteCommitResponse) ProtoMessage()
- func (m *MsgConflictVoteCommitResponse) Reset()
- func (m *MsgConflictVoteCommitResponse) Size() (n int)
- func (m *MsgConflictVoteCommitResponse) String() string
- func (m *MsgConflictVoteCommitResponse) Unmarshal(dAtA []byte) error
- func (m *MsgConflictVoteCommitResponse) XXX_DiscardUnknown()
- func (m *MsgConflictVoteCommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgConflictVoteCommitResponse) XXX_Merge(src proto.Message)
- func (m *MsgConflictVoteCommitResponse) XXX_Size() int
- func (m *MsgConflictVoteCommitResponse) XXX_Unmarshal(b []byte) error
- type MsgConflictVoteReveal
- func (*MsgConflictVoteReveal) Descriptor() ([]byte, []int)
- func (m *MsgConflictVoteReveal) GetCreator() string
- func (m *MsgConflictVoteReveal) GetHash() []byte
- func (m *MsgConflictVoteReveal) GetNonce() int64
- func (msg *MsgConflictVoteReveal) GetSignBytes() []byte
- func (msg *MsgConflictVoteReveal) GetSigners() []sdk.AccAddress
- func (m *MsgConflictVoteReveal) GetVoteID() string
- func (m *MsgConflictVoteReveal) Marshal() (dAtA []byte, err error)
- func (m *MsgConflictVoteReveal) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgConflictVoteReveal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgConflictVoteReveal) ProtoMessage()
- func (m *MsgConflictVoteReveal) Reset()
- func (msg *MsgConflictVoteReveal) Route() string
- func (m *MsgConflictVoteReveal) Size() (n int)
- func (m *MsgConflictVoteReveal) String() string
- func (msg *MsgConflictVoteReveal) Type() string
- func (m *MsgConflictVoteReveal) Unmarshal(dAtA []byte) error
- func (msg *MsgConflictVoteReveal) ValidateBasic() error
- func (m *MsgConflictVoteReveal) XXX_DiscardUnknown()
- func (m *MsgConflictVoteReveal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgConflictVoteReveal) XXX_Merge(src proto.Message)
- func (m *MsgConflictVoteReveal) XXX_Size() int
- func (m *MsgConflictVoteReveal) XXX_Unmarshal(b []byte) error
- type MsgConflictVoteRevealResponse
- func (*MsgConflictVoteRevealResponse) Descriptor() ([]byte, []int)
- func (m *MsgConflictVoteRevealResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgConflictVoteRevealResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgConflictVoteRevealResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgConflictVoteRevealResponse) ProtoMessage()
- func (m *MsgConflictVoteRevealResponse) Reset()
- func (m *MsgConflictVoteRevealResponse) Size() (n int)
- func (m *MsgConflictVoteRevealResponse) String() string
- func (m *MsgConflictVoteRevealResponse) Unmarshal(dAtA []byte) error
- func (m *MsgConflictVoteRevealResponse) XXX_DiscardUnknown()
- func (m *MsgConflictVoteRevealResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgConflictVoteRevealResponse) XXX_Merge(src proto.Message)
- func (m *MsgConflictVoteRevealResponse) XXX_Size() int
- func (m *MsgConflictVoteRevealResponse) XXX_Unmarshal(b []byte) error
- type MsgDetection
- func (*MsgDetection) Descriptor() ([]byte, []int)
- func (m *MsgDetection) GetCreator() string
- func (m *MsgDetection) GetFinalizationConflict() *FinalizationConflict
- func (m *MsgDetection) GetResponseConflict() *ResponseConflict
- func (m *MsgDetection) GetSameProviderConflict() *FinalizationConflict
- func (msg *MsgDetection) GetSignBytes() []byte
- func (msg *MsgDetection) GetSigners() []sdk.AccAddress
- func (m *MsgDetection) Marshal() (dAtA []byte, err error)
- func (m *MsgDetection) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDetection) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDetection) ProtoMessage()
- func (m *MsgDetection) Reset()
- func (msg *MsgDetection) Route() string
- func (m *MsgDetection) Size() (n int)
- func (m *MsgDetection) String() string
- func (msg *MsgDetection) Type() string
- func (m *MsgDetection) Unmarshal(dAtA []byte) error
- func (msg *MsgDetection) ValidateBasic() error
- func (m *MsgDetection) XXX_DiscardUnknown()
- func (m *MsgDetection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDetection) XXX_Merge(src proto.Message)
- func (m *MsgDetection) XXX_Size() int
- func (m *MsgDetection) XXX_Unmarshal(b []byte) error
- type MsgDetectionResponse
- func (*MsgDetectionResponse) Descriptor() ([]byte, []int)
- func (m *MsgDetectionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDetectionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDetectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDetectionResponse) ProtoMessage()
- func (m *MsgDetectionResponse) Reset()
- func (m *MsgDetectionResponse) Size() (n int)
- func (m *MsgDetectionResponse) String() string
- func (m *MsgDetectionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDetectionResponse) XXX_DiscardUnknown()
- func (m *MsgDetectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDetectionResponse) XXX_Merge(src proto.Message)
- func (m *MsgDetectionResponse) XXX_Size() int
- func (m *MsgDetectionResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type PairingKeeper
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetRewards() Rewards
- func (m *Params) GetVotePeriod() uint64
- func (m *Params) GetVoteStartSpan() uint64
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type Provider
- func (*Provider) Descriptor() ([]byte, []int)
- func (m *Provider) GetAccount() string
- func (m *Provider) GetResponse() []byte
- func (m *Provider) Marshal() (dAtA []byte, err error)
- func (m *Provider) MarshalTo(dAtA []byte) (int, error)
- func (m *Provider) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Provider) ProtoMessage()
- func (m *Provider) Reset()
- func (m *Provider) Size() (n int)
- func (m *Provider) String() string
- func (m *Provider) Unmarshal(dAtA []byte) error
- func (m *Provider) XXX_DiscardUnknown()
- func (m *Provider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Provider) XXX_Merge(src proto.Message)
- func (m *Provider) XXX_Size() int
- func (m *Provider) XXX_Unmarshal(b []byte) error
- type QueryAllConflictVoteRequest
- func (*QueryAllConflictVoteRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllConflictVoteRequest) GetPagination() *query.PageRequest
- func (m *QueryAllConflictVoteRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllConflictVoteRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllConflictVoteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllConflictVoteRequest) ProtoMessage()
- func (m *QueryAllConflictVoteRequest) Reset()
- func (m *QueryAllConflictVoteRequest) Size() (n int)
- func (m *QueryAllConflictVoteRequest) String() string
- func (m *QueryAllConflictVoteRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllConflictVoteRequest) XXX_DiscardUnknown()
- func (m *QueryAllConflictVoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllConflictVoteRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllConflictVoteRequest) XXX_Size() int
- func (m *QueryAllConflictVoteRequest) XXX_Unmarshal(b []byte) error
- type QueryAllConflictVoteResponse
- func (*QueryAllConflictVoteResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllConflictVoteResponse) GetConflictVote() []ConflictVote
- func (m *QueryAllConflictVoteResponse) GetPagination() *query.PageResponse
- func (m *QueryAllConflictVoteResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllConflictVoteResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllConflictVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllConflictVoteResponse) ProtoMessage()
- func (m *QueryAllConflictVoteResponse) Reset()
- func (m *QueryAllConflictVoteResponse) Size() (n int)
- func (m *QueryAllConflictVoteResponse) String() string
- func (m *QueryAllConflictVoteResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllConflictVoteResponse) XXX_DiscardUnknown()
- func (m *QueryAllConflictVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllConflictVoteResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllConflictVoteResponse) XXX_Size() int
- func (m *QueryAllConflictVoteResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryConsumerConflictsRequest
- func (*QueryConsumerConflictsRequest) Descriptor() ([]byte, []int)
- func (m *QueryConsumerConflictsRequest) GetConsumer() string
- func (m *QueryConsumerConflictsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryConsumerConflictsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryConsumerConflictsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryConsumerConflictsRequest) ProtoMessage()
- func (m *QueryConsumerConflictsRequest) Reset()
- func (m *QueryConsumerConflictsRequest) Size() (n int)
- func (m *QueryConsumerConflictsRequest) String() string
- func (m *QueryConsumerConflictsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryConsumerConflictsRequest) XXX_DiscardUnknown()
- func (m *QueryConsumerConflictsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryConsumerConflictsRequest) XXX_Merge(src proto.Message)
- func (m *QueryConsumerConflictsRequest) XXX_Size() int
- func (m *QueryConsumerConflictsRequest) XXX_Unmarshal(b []byte) error
- type QueryConsumerConflictsResponse
- func (*QueryConsumerConflictsResponse) Descriptor() ([]byte, []int)
- func (m *QueryConsumerConflictsResponse) GetConflicts() []string
- func (m *QueryConsumerConflictsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryConsumerConflictsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryConsumerConflictsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryConsumerConflictsResponse) ProtoMessage()
- func (m *QueryConsumerConflictsResponse) Reset()
- func (m *QueryConsumerConflictsResponse) Size() (n int)
- func (m *QueryConsumerConflictsResponse) String() string
- func (m *QueryConsumerConflictsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryConsumerConflictsResponse) XXX_DiscardUnknown()
- func (m *QueryConsumerConflictsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryConsumerConflictsResponse) XXX_Merge(src proto.Message)
- func (m *QueryConsumerConflictsResponse) XXX_Size() int
- func (m *QueryConsumerConflictsResponse) XXX_Unmarshal(b []byte) error
- type QueryGetConflictVoteRequest
- func (*QueryGetConflictVoteRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetConflictVoteRequest) GetIndex() string
- func (m *QueryGetConflictVoteRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetConflictVoteRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetConflictVoteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetConflictVoteRequest) ProtoMessage()
- func (m *QueryGetConflictVoteRequest) Reset()
- func (m *QueryGetConflictVoteRequest) Size() (n int)
- func (m *QueryGetConflictVoteRequest) String() string
- func (m *QueryGetConflictVoteRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetConflictVoteRequest) XXX_DiscardUnknown()
- func (m *QueryGetConflictVoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetConflictVoteRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetConflictVoteRequest) XXX_Size() int
- func (m *QueryGetConflictVoteRequest) XXX_Unmarshal(b []byte) error
- type QueryGetConflictVoteResponse
- func (*QueryGetConflictVoteResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetConflictVoteResponse) GetConflictVote() ConflictVote
- func (m *QueryGetConflictVoteResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetConflictVoteResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetConflictVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetConflictVoteResponse) ProtoMessage()
- func (m *QueryGetConflictVoteResponse) Reset()
- func (m *QueryGetConflictVoteResponse) Size() (n int)
- func (m *QueryGetConflictVoteResponse) String() string
- func (m *QueryGetConflictVoteResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetConflictVoteResponse) XXX_DiscardUnknown()
- func (m *QueryGetConflictVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetConflictVoteResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetConflictVoteResponse) XXX_Size() int
- func (m *QueryGetConflictVoteResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryProviderConflictsRequest
- func (*QueryProviderConflictsRequest) Descriptor() ([]byte, []int)
- func (m *QueryProviderConflictsRequest) GetProvider() string
- func (m *QueryProviderConflictsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryProviderConflictsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProviderConflictsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProviderConflictsRequest) ProtoMessage()
- func (m *QueryProviderConflictsRequest) Reset()
- func (m *QueryProviderConflictsRequest) Size() (n int)
- func (m *QueryProviderConflictsRequest) String() string
- func (m *QueryProviderConflictsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryProviderConflictsRequest) XXX_DiscardUnknown()
- func (m *QueryProviderConflictsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProviderConflictsRequest) XXX_Merge(src proto.Message)
- func (m *QueryProviderConflictsRequest) XXX_Size() int
- func (m *QueryProviderConflictsRequest) XXX_Unmarshal(b []byte) error
- type QueryProviderConflictsResponse
- func (*QueryProviderConflictsResponse) Descriptor() ([]byte, []int)
- func (m *QueryProviderConflictsResponse) GetCommitted() []string
- func (m *QueryProviderConflictsResponse) GetNotVoted() []string
- func (m *QueryProviderConflictsResponse) GetReported() []string
- func (m *QueryProviderConflictsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryProviderConflictsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProviderConflictsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProviderConflictsResponse) ProtoMessage()
- func (m *QueryProviderConflictsResponse) Reset()
- func (m *QueryProviderConflictsResponse) Size() (n int)
- func (m *QueryProviderConflictsResponse) String() string
- func (m *QueryProviderConflictsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryProviderConflictsResponse) XXX_DiscardUnknown()
- func (m *QueryProviderConflictsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProviderConflictsResponse) XXX_Merge(src proto.Message)
- func (m *QueryProviderConflictsResponse) XXX_Size() int
- func (m *QueryProviderConflictsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type RelayFinalizationMetaData
- type ReplyMetadata
- func (rm ReplyMetadata) DataToSign() []byte
- func (*ReplyMetadata) Descriptor() ([]byte, []int)
- func (m *ReplyMetadata) GetFinalizedBlocksHashes() []byte
- func (m *ReplyMetadata) GetHashAllDataHash() []byte
- func (m *ReplyMetadata) GetLatestBlock() int64
- func (m *ReplyMetadata) GetSig() []byte
- func (m *ReplyMetadata) GetSigBlocks() []byte
- func (rm ReplyMetadata) GetSignature() []byte
- func (rm ReplyMetadata) HashRounds() int
- func (m *ReplyMetadata) Marshal() (dAtA []byte, err error)
- func (m *ReplyMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *ReplyMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ReplyMetadata) ProtoMessage()
- func (m *ReplyMetadata) Reset()
- func (m *ReplyMetadata) Size() (n int)
- func (m *ReplyMetadata) String() string
- func (m *ReplyMetadata) Unmarshal(dAtA []byte) error
- func (m *ReplyMetadata) XXX_DiscardUnknown()
- func (m *ReplyMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplyMetadata) XXX_Merge(src proto.Message)
- func (m *ReplyMetadata) XXX_Size() int
- func (m *ReplyMetadata) XXX_Unmarshal(b []byte) error
- type ResponseConflict
- func (*ResponseConflict) Descriptor() ([]byte, []int)
- func (m *ResponseConflict) GetConflictRelayData0() *ConflictRelayData
- func (m *ResponseConflict) GetConflictRelayData1() *ConflictRelayData
- func (m *ResponseConflict) Marshal() (dAtA []byte, err error)
- func (m *ResponseConflict) MarshalTo(dAtA []byte) (int, error)
- func (m *ResponseConflict) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ResponseConflict) ProtoMessage()
- func (m *ResponseConflict) Reset()
- func (m *ResponseConflict) Size() (n int)
- func (m *ResponseConflict) String() string
- func (m *ResponseConflict) Unmarshal(dAtA []byte) error
- func (m *ResponseConflict) XXX_DiscardUnknown()
- func (m *ResponseConflict) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResponseConflict) XXX_Merge(src proto.Message)
- func (m *ResponseConflict) XXX_Size() int
- func (m *ResponseConflict) XXX_Unmarshal(b []byte) error
- type Rewards
- func (*Rewards) Descriptor() ([]byte, []int)
- func (m *Rewards) Marshal() (dAtA []byte, err error)
- func (m *Rewards) MarshalTo(dAtA []byte) (int, error)
- func (m *Rewards) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Rewards) ProtoMessage()
- func (m *Rewards) Reset()
- func (m *Rewards) Size() (n int)
- func (m *Rewards) String() string
- func (m *Rewards) Unmarshal(dAtA []byte) error
- func (m *Rewards) XXX_DiscardUnknown()
- func (m *Rewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Rewards) XXX_Merge(src proto.Message)
- func (m *Rewards) XXX_Size() int
- func (m *Rewards) XXX_Unmarshal(b []byte) error
- type SpecKeeper
- type StakingKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) ConflictVoteCommit(ctx context.Context, req *MsgConflictVoteCommit) (*MsgConflictVoteCommitResponse, error)
- func (*UnimplementedMsgServer) ConflictVoteReveal(ctx context.Context, req *MsgConflictVoteReveal) (*MsgConflictVoteRevealResponse, error)
- func (*UnimplementedMsgServer) Detection(ctx context.Context, req *MsgDetection) (*MsgDetectionResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) ConflictVote(ctx context.Context, req *QueryGetConflictVoteRequest) (*QueryGetConflictVoteResponse, error)
- func (*UnimplementedQueryServer) ConflictVoteAll(ctx context.Context, req *QueryAllConflictVoteRequest) (*QueryAllConflictVoteResponse, error)
- func (*UnimplementedQueryServer) ConsumerConflicts(ctx context.Context, req *QueryConsumerConflictsRequest) (*QueryConsumerConflictsResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) ProviderConflicts(ctx context.Context, req *QueryProviderConflictsRequest) (*QueryProviderConflictsResponse, error)
- type Vote
- func (*Vote) Descriptor() ([]byte, []int)
- func (m *Vote) GetAddress() string
- func (m *Vote) GetHash() []byte
- func (m *Vote) GetResult() int64
- func (m *Vote) Marshal() (dAtA []byte, err error)
- func (m *Vote) MarshalTo(dAtA []byte) (int, error)
- func (m *Vote) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Vote) ProtoMessage()
- func (m *Vote) Reset()
- func (m *Vote) Size() (n int)
- func (m *Vote) String() string
- func (m *Vote) Unmarshal(dAtA []byte) error
- func (m *Vote) XXX_DiscardUnknown()
- func (m *Vote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Vote) XXX_Merge(src proto.Message)
- func (m *Vote) XXX_Size() int
- func (m *Vote) XXX_Unmarshal(b []byte) error
Constants ¶
const ( // ModuleName defines the module name ModuleName = "conflict" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_conflict" )
const ( StateCommit = 0 StateReveal = 1 )
const ( NoVote = 0 Commit = 1 Provider0 = 2 Provider1 = 3 NoneOfTheProviders = 4 )
vote status for each voter
const ( ConflictVoteRevealEventName = "conflict_vote_reveal_started" ConflictDetectionRecievedEventName = "conflict_detection_received" ConflictVoteDetectionEventName = "response_conflict_detection" ConflictVoteResolvedEventName = "conflict_detection_vote_resolved" ConflictVoteUnresolvedEventName = "conflict_detection_vote_unresolved" ConflictVoteGotCommitEventName = "conflict_vote_got_commit" ConflictVoteGotRevealEventName = "conflict_vote_got_reveal" ConflictUnstakeFraudVoterEventName = "conflict_unstake_fraud_voter" )
const (
// ConflictVoteKeyPrefix is the prefix to retrieve all ConflictVote
ConflictVoteKeyPrefix = "ConflictVote/value/"
)
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
const TypeMsgConflictVoteCommit = "conflict_vote_commit"
const TypeMsgConflictVoteReveal = "conflict_vote_reveal"
const TypeMsgDetection = "detection"
const (
UnstakeDescriptionFraudVote = "fraud provider found in conflict detection"
)
unstake description
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInvalidLengthConflictData = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowConflictData = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupConflictData = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthConflictVote = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowConflictVote = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupConflictVote = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( KeyMajorityPercent = []byte("MajorityPercent") DefaultMajorityPercent sdk.Dec = sdk.NewDecWithPrec(95, 2) )
var ( KeyVoteStartSpan = []byte("VoteStartSpan") DefaultVoteStartSpan uint64 = 3 )
var ( KeyVotePeriod = []byte("VotePeriod") DefaultVotePeriod uint64 = 2 )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)
x/conflict module sentinel errors
Functions ¶
func CommitVoteData ¶
func ConflictVoteKey ¶
ConflictVoteKey returns the store key to retrieve a ConflictVote from the index fields
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BankKeeper ¶
BankKeeper defines the expected interface needed to retrieve account balances.
type ConflictRelayData ¶
type ConflictRelayData struct { Request *types.RelayRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` Reply *ReplyMetadata `protobuf:"bytes,3,opt,name=reply,proto3" json:"reply,omitempty"` }
func (*ConflictRelayData) Descriptor ¶
func (*ConflictRelayData) Descriptor() ([]byte, []int)
func (*ConflictRelayData) GetReply ¶
func (m *ConflictRelayData) GetReply() *ReplyMetadata
func (*ConflictRelayData) GetRequest ¶
func (m *ConflictRelayData) GetRequest() *types.RelayRequest
func (*ConflictRelayData) Marshal ¶
func (m *ConflictRelayData) Marshal() (dAtA []byte, err error)
func (*ConflictRelayData) MarshalTo ¶
func (m *ConflictRelayData) MarshalTo(dAtA []byte) (int, error)
func (*ConflictRelayData) MarshalToSizedBuffer ¶
func (m *ConflictRelayData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConflictRelayData) ProtoMessage ¶
func (*ConflictRelayData) ProtoMessage()
func (*ConflictRelayData) Reset ¶
func (m *ConflictRelayData) Reset()
func (*ConflictRelayData) Size ¶
func (m *ConflictRelayData) Size() (n int)
func (*ConflictRelayData) String ¶
func (m *ConflictRelayData) String() string
func (*ConflictRelayData) Unmarshal ¶
func (m *ConflictRelayData) Unmarshal(dAtA []byte) error
func (*ConflictRelayData) XXX_DiscardUnknown ¶
func (m *ConflictRelayData) XXX_DiscardUnknown()
func (*ConflictRelayData) XXX_Marshal ¶
func (m *ConflictRelayData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConflictRelayData) XXX_Merge ¶
func (m *ConflictRelayData) XXX_Merge(src proto.Message)
func (*ConflictRelayData) XXX_Size ¶
func (m *ConflictRelayData) XXX_Size() int
func (*ConflictRelayData) XXX_Unmarshal ¶
func (m *ConflictRelayData) XXX_Unmarshal(b []byte) error
type ConflictVote ¶
type ConflictVote struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` ClientAddress string `protobuf:"bytes,2,opt,name=clientAddress,proto3" json:"clientAddress,omitempty"` VoteDeadline uint64 `protobuf:"varint,3,opt,name=voteDeadline,proto3" json:"voteDeadline,omitempty"` VoteStartBlock uint64 `protobuf:"varint,4,opt,name=voteStartBlock,proto3" json:"voteStartBlock,omitempty"` VoteState int64 `protobuf:"varint,5,opt,name=voteState,proto3" json:"voteState,omitempty"` ChainID string `protobuf:"bytes,6,opt,name=chainID,proto3" json:"chainID,omitempty"` ApiUrl string `protobuf:"bytes,7,opt,name=apiUrl,proto3" json:"apiUrl,omitempty"` RequestData []byte `protobuf:"bytes,8,opt,name=requestData,proto3" json:"requestData,omitempty"` RequestBlock uint64 `protobuf:"varint,9,opt,name=requestBlock,proto3" json:"requestBlock,omitempty"` FirstProvider Provider `protobuf:"bytes,10,opt,name=firstProvider,proto3" json:"firstProvider"` SecondProvider Provider `protobuf:"bytes,11,opt,name=secondProvider,proto3" json:"secondProvider"` Votes []Vote `protobuf:"bytes,12,rep,name=votes,proto3" json:"votes"` }
func (*ConflictVote) Descriptor ¶
func (*ConflictVote) Descriptor() ([]byte, []int)
func (*ConflictVote) GetApiUrl ¶
func (m *ConflictVote) GetApiUrl() string
func (*ConflictVote) GetChainID ¶
func (m *ConflictVote) GetChainID() string
func (*ConflictVote) GetClientAddress ¶
func (m *ConflictVote) GetClientAddress() string
func (*ConflictVote) GetFirstProvider ¶
func (m *ConflictVote) GetFirstProvider() Provider
func (*ConflictVote) GetIndex ¶
func (m *ConflictVote) GetIndex() string
func (*ConflictVote) GetRequestBlock ¶
func (m *ConflictVote) GetRequestBlock() uint64
func (*ConflictVote) GetRequestData ¶
func (m *ConflictVote) GetRequestData() []byte
func (*ConflictVote) GetSecondProvider ¶
func (m *ConflictVote) GetSecondProvider() Provider
func (*ConflictVote) GetVoteDeadline ¶
func (m *ConflictVote) GetVoteDeadline() uint64
func (*ConflictVote) GetVoteStartBlock ¶
func (m *ConflictVote) GetVoteStartBlock() uint64
func (*ConflictVote) GetVoteState ¶
func (m *ConflictVote) GetVoteState() int64
func (*ConflictVote) GetVotes ¶
func (m *ConflictVote) GetVotes() []Vote
func (*ConflictVote) Marshal ¶
func (m *ConflictVote) Marshal() (dAtA []byte, err error)
func (*ConflictVote) MarshalToSizedBuffer ¶
func (m *ConflictVote) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConflictVote) ProtoMessage ¶
func (*ConflictVote) ProtoMessage()
func (*ConflictVote) Reset ¶
func (m *ConflictVote) Reset()
func (*ConflictVote) Size ¶
func (m *ConflictVote) Size() (n int)
func (*ConflictVote) String ¶
func (m *ConflictVote) String() string
func (*ConflictVote) Unmarshal ¶
func (m *ConflictVote) Unmarshal(dAtA []byte) error
func (*ConflictVote) XXX_DiscardUnknown ¶
func (m *ConflictVote) XXX_DiscardUnknown()
func (*ConflictVote) XXX_Marshal ¶
func (m *ConflictVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConflictVote) XXX_Merge ¶
func (m *ConflictVote) XXX_Merge(src proto.Message)
func (*ConflictVote) XXX_Size ¶
func (m *ConflictVote) XXX_Size() int
func (*ConflictVote) XXX_Unmarshal ¶
func (m *ConflictVote) XXX_Unmarshal(b []byte) error
type EpochstorageKeeper ¶
type EpochstorageKeeper interface { GetNextEpoch(ctx sdk.Context, block uint64) (nextEpoch uint64, erro error) GetEpochStart(ctx sdk.Context) uint64 EpochBlocks(ctx sdk.Context, block uint64) (res uint64, err error) BlocksToSave(ctx sdk.Context, block uint64) (res uint64, err error) GetEarliestEpochStart(ctx sdk.Context) uint64 GetEpochStartForBlock(ctx sdk.Context, block uint64) (epochStart, blockInEpoch uint64, err error) GetStakeEntryForProviderEpoch(ctx sdk.Context, chainID string, selectedProvider string, epoch uint64) (entry epochstoragetypes.StakeEntry, found bool) GetStakeEntryForAllProvidersEpoch(ctx sdk.Context, chainID string, epoch uint64) (entrys *[]epochstoragetypes.StakeEntry, err error) ModifyStakeEntryCurrent(ctx sdk.Context, chainID string, stakeEntry epochstoragetypes.StakeEntry) GetStakeEntryByAddressCurrent(ctx sdk.Context, chainID string, address string) (value epochstoragetypes.StakeEntry, found bool) PushFixatedParams(ctx sdk.Context, block, limit uint64) }
type FinalizationConflict ¶
type FinalizationConflict struct { RelayReply0 *types.RelayReply `protobuf:"bytes,1,opt,name=relayReply0,proto3" json:"relayReply0,omitempty"` RelayReply1 *types.RelayReply `protobuf:"bytes,2,opt,name=relayReply1,proto3" json:"relayReply1,omitempty"` }
func (*FinalizationConflict) Descriptor ¶
func (*FinalizationConflict) Descriptor() ([]byte, []int)
func (*FinalizationConflict) GetRelayReply0 ¶
func (m *FinalizationConflict) GetRelayReply0() *types.RelayReply
func (*FinalizationConflict) GetRelayReply1 ¶
func (m *FinalizationConflict) GetRelayReply1() *types.RelayReply
func (*FinalizationConflict) Marshal ¶
func (m *FinalizationConflict) Marshal() (dAtA []byte, err error)
func (*FinalizationConflict) MarshalTo ¶
func (m *FinalizationConflict) MarshalTo(dAtA []byte) (int, error)
func (*FinalizationConflict) MarshalToSizedBuffer ¶
func (m *FinalizationConflict) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FinalizationConflict) ProtoMessage ¶
func (*FinalizationConflict) ProtoMessage()
func (*FinalizationConflict) Reset ¶
func (m *FinalizationConflict) Reset()
func (*FinalizationConflict) Size ¶
func (m *FinalizationConflict) Size() (n int)
func (*FinalizationConflict) String ¶
func (m *FinalizationConflict) String() string
func (*FinalizationConflict) Unmarshal ¶
func (m *FinalizationConflict) Unmarshal(dAtA []byte) error
func (*FinalizationConflict) XXX_DiscardUnknown ¶
func (m *FinalizationConflict) XXX_DiscardUnknown()
func (*FinalizationConflict) XXX_Marshal ¶
func (m *FinalizationConflict) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FinalizationConflict) XXX_Merge ¶
func (m *FinalizationConflict) XXX_Merge(src proto.Message)
func (*FinalizationConflict) XXX_Size ¶
func (m *FinalizationConflict) XXX_Size() int
func (*FinalizationConflict) XXX_Unmarshal ¶
func (m *FinalizationConflict) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` ConflictVoteList []ConflictVote `protobuf:"bytes,2,rep,name=conflictVoteList,proto3" json:"conflictVoteList"` }
GenesisState defines the conflict module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetConflictVoteList ¶
func (m *GenesisState) GetConflictVoteList() []ConflictVote
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { Detection(ctx context.Context, in *MsgDetection, opts ...grpc.CallOption) (*MsgDetectionResponse, error) ConflictVoteCommit(ctx context.Context, in *MsgConflictVoteCommit, opts ...grpc.CallOption) (*MsgConflictVoteCommitResponse, error) ConflictVoteReveal(ctx context.Context, in *MsgConflictVoteReveal, opts ...grpc.CallOption) (*MsgConflictVoteRevealResponse, 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 MsgConflictVoteCommit ¶
type MsgConflictVoteCommit struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` VoteID string `protobuf:"bytes,2,opt,name=voteID,proto3" json:"voteID,omitempty"` Hash []byte `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"` }
func NewMsgConflictVoteCommit ¶
func NewMsgConflictVoteCommit(creator, voteID string, hash []byte) *MsgConflictVoteCommit
func (*MsgConflictVoteCommit) Descriptor ¶
func (*MsgConflictVoteCommit) Descriptor() ([]byte, []int)
func (*MsgConflictVoteCommit) GetCreator ¶
func (m *MsgConflictVoteCommit) GetCreator() string
func (*MsgConflictVoteCommit) GetHash ¶
func (m *MsgConflictVoteCommit) GetHash() []byte
func (*MsgConflictVoteCommit) GetSignBytes ¶
func (msg *MsgConflictVoteCommit) GetSignBytes() []byte
func (*MsgConflictVoteCommit) GetSigners ¶
func (msg *MsgConflictVoteCommit) GetSigners() []sdk.AccAddress
func (*MsgConflictVoteCommit) GetVoteID ¶
func (m *MsgConflictVoteCommit) GetVoteID() string
func (*MsgConflictVoteCommit) Marshal ¶
func (m *MsgConflictVoteCommit) Marshal() (dAtA []byte, err error)
func (*MsgConflictVoteCommit) MarshalTo ¶
func (m *MsgConflictVoteCommit) MarshalTo(dAtA []byte) (int, error)
func (*MsgConflictVoteCommit) MarshalToSizedBuffer ¶
func (m *MsgConflictVoteCommit) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgConflictVoteCommit) ProtoMessage ¶
func (*MsgConflictVoteCommit) ProtoMessage()
func (*MsgConflictVoteCommit) Reset ¶
func (m *MsgConflictVoteCommit) Reset()
func (*MsgConflictVoteCommit) Route ¶
func (msg *MsgConflictVoteCommit) Route() string
func (*MsgConflictVoteCommit) Size ¶
func (m *MsgConflictVoteCommit) Size() (n int)
func (*MsgConflictVoteCommit) String ¶
func (m *MsgConflictVoteCommit) String() string
func (*MsgConflictVoteCommit) Type ¶
func (msg *MsgConflictVoteCommit) Type() string
func (*MsgConflictVoteCommit) Unmarshal ¶
func (m *MsgConflictVoteCommit) Unmarshal(dAtA []byte) error
func (*MsgConflictVoteCommit) ValidateBasic ¶
func (msg *MsgConflictVoteCommit) ValidateBasic() error
func (*MsgConflictVoteCommit) XXX_DiscardUnknown ¶
func (m *MsgConflictVoteCommit) XXX_DiscardUnknown()
func (*MsgConflictVoteCommit) XXX_Marshal ¶
func (m *MsgConflictVoteCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgConflictVoteCommit) XXX_Merge ¶
func (m *MsgConflictVoteCommit) XXX_Merge(src proto.Message)
func (*MsgConflictVoteCommit) XXX_Size ¶
func (m *MsgConflictVoteCommit) XXX_Size() int
func (*MsgConflictVoteCommit) XXX_Unmarshal ¶
func (m *MsgConflictVoteCommit) XXX_Unmarshal(b []byte) error
type MsgConflictVoteCommitResponse ¶
type MsgConflictVoteCommitResponse struct { }
func (*MsgConflictVoteCommitResponse) Descriptor ¶
func (*MsgConflictVoteCommitResponse) Descriptor() ([]byte, []int)
func (*MsgConflictVoteCommitResponse) Marshal ¶
func (m *MsgConflictVoteCommitResponse) Marshal() (dAtA []byte, err error)
func (*MsgConflictVoteCommitResponse) MarshalTo ¶
func (m *MsgConflictVoteCommitResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgConflictVoteCommitResponse) MarshalToSizedBuffer ¶
func (m *MsgConflictVoteCommitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgConflictVoteCommitResponse) ProtoMessage ¶
func (*MsgConflictVoteCommitResponse) ProtoMessage()
func (*MsgConflictVoteCommitResponse) Reset ¶
func (m *MsgConflictVoteCommitResponse) Reset()
func (*MsgConflictVoteCommitResponse) Size ¶
func (m *MsgConflictVoteCommitResponse) Size() (n int)
func (*MsgConflictVoteCommitResponse) String ¶
func (m *MsgConflictVoteCommitResponse) String() string
func (*MsgConflictVoteCommitResponse) Unmarshal ¶
func (m *MsgConflictVoteCommitResponse) Unmarshal(dAtA []byte) error
func (*MsgConflictVoteCommitResponse) XXX_DiscardUnknown ¶
func (m *MsgConflictVoteCommitResponse) XXX_DiscardUnknown()
func (*MsgConflictVoteCommitResponse) XXX_Marshal ¶
func (m *MsgConflictVoteCommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgConflictVoteCommitResponse) XXX_Merge ¶
func (m *MsgConflictVoteCommitResponse) XXX_Merge(src proto.Message)
func (*MsgConflictVoteCommitResponse) XXX_Size ¶
func (m *MsgConflictVoteCommitResponse) XXX_Size() int
func (*MsgConflictVoteCommitResponse) XXX_Unmarshal ¶
func (m *MsgConflictVoteCommitResponse) XXX_Unmarshal(b []byte) error
type MsgConflictVoteReveal ¶
type MsgConflictVoteReveal struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` VoteID string `protobuf:"bytes,2,opt,name=voteID,proto3" json:"voteID,omitempty"` Nonce int64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"` Hash []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"` }
func NewMsgConflictVoteReveal ¶
func NewMsgConflictVoteReveal(creator, voteID string, nonce int64, hash []byte) *MsgConflictVoteReveal
func (*MsgConflictVoteReveal) Descriptor ¶
func (*MsgConflictVoteReveal) Descriptor() ([]byte, []int)
func (*MsgConflictVoteReveal) GetCreator ¶
func (m *MsgConflictVoteReveal) GetCreator() string
func (*MsgConflictVoteReveal) GetHash ¶
func (m *MsgConflictVoteReveal) GetHash() []byte
func (*MsgConflictVoteReveal) GetNonce ¶
func (m *MsgConflictVoteReveal) GetNonce() int64
func (*MsgConflictVoteReveal) GetSignBytes ¶
func (msg *MsgConflictVoteReveal) GetSignBytes() []byte
func (*MsgConflictVoteReveal) GetSigners ¶
func (msg *MsgConflictVoteReveal) GetSigners() []sdk.AccAddress
func (*MsgConflictVoteReveal) GetVoteID ¶
func (m *MsgConflictVoteReveal) GetVoteID() string
func (*MsgConflictVoteReveal) Marshal ¶
func (m *MsgConflictVoteReveal) Marshal() (dAtA []byte, err error)
func (*MsgConflictVoteReveal) MarshalTo ¶
func (m *MsgConflictVoteReveal) MarshalTo(dAtA []byte) (int, error)
func (*MsgConflictVoteReveal) MarshalToSizedBuffer ¶
func (m *MsgConflictVoteReveal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgConflictVoteReveal) ProtoMessage ¶
func (*MsgConflictVoteReveal) ProtoMessage()
func (*MsgConflictVoteReveal) Reset ¶
func (m *MsgConflictVoteReveal) Reset()
func (*MsgConflictVoteReveal) Route ¶
func (msg *MsgConflictVoteReveal) Route() string
func (*MsgConflictVoteReveal) Size ¶
func (m *MsgConflictVoteReveal) Size() (n int)
func (*MsgConflictVoteReveal) String ¶
func (m *MsgConflictVoteReveal) String() string
func (*MsgConflictVoteReveal) Type ¶
func (msg *MsgConflictVoteReveal) Type() string
func (*MsgConflictVoteReveal) Unmarshal ¶
func (m *MsgConflictVoteReveal) Unmarshal(dAtA []byte) error
func (*MsgConflictVoteReveal) ValidateBasic ¶
func (msg *MsgConflictVoteReveal) ValidateBasic() error
func (*MsgConflictVoteReveal) XXX_DiscardUnknown ¶
func (m *MsgConflictVoteReveal) XXX_DiscardUnknown()
func (*MsgConflictVoteReveal) XXX_Marshal ¶
func (m *MsgConflictVoteReveal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgConflictVoteReveal) XXX_Merge ¶
func (m *MsgConflictVoteReveal) XXX_Merge(src proto.Message)
func (*MsgConflictVoteReveal) XXX_Size ¶
func (m *MsgConflictVoteReveal) XXX_Size() int
func (*MsgConflictVoteReveal) XXX_Unmarshal ¶
func (m *MsgConflictVoteReveal) XXX_Unmarshal(b []byte) error
type MsgConflictVoteRevealResponse ¶
type MsgConflictVoteRevealResponse struct { }
func (*MsgConflictVoteRevealResponse) Descriptor ¶
func (*MsgConflictVoteRevealResponse) Descriptor() ([]byte, []int)
func (*MsgConflictVoteRevealResponse) Marshal ¶
func (m *MsgConflictVoteRevealResponse) Marshal() (dAtA []byte, err error)
func (*MsgConflictVoteRevealResponse) MarshalTo ¶
func (m *MsgConflictVoteRevealResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgConflictVoteRevealResponse) MarshalToSizedBuffer ¶
func (m *MsgConflictVoteRevealResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgConflictVoteRevealResponse) ProtoMessage ¶
func (*MsgConflictVoteRevealResponse) ProtoMessage()
func (*MsgConflictVoteRevealResponse) Reset ¶
func (m *MsgConflictVoteRevealResponse) Reset()
func (*MsgConflictVoteRevealResponse) Size ¶
func (m *MsgConflictVoteRevealResponse) Size() (n int)
func (*MsgConflictVoteRevealResponse) String ¶
func (m *MsgConflictVoteRevealResponse) String() string
func (*MsgConflictVoteRevealResponse) Unmarshal ¶
func (m *MsgConflictVoteRevealResponse) Unmarshal(dAtA []byte) error
func (*MsgConflictVoteRevealResponse) XXX_DiscardUnknown ¶
func (m *MsgConflictVoteRevealResponse) XXX_DiscardUnknown()
func (*MsgConflictVoteRevealResponse) XXX_Marshal ¶
func (m *MsgConflictVoteRevealResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgConflictVoteRevealResponse) XXX_Merge ¶
func (m *MsgConflictVoteRevealResponse) XXX_Merge(src proto.Message)
func (*MsgConflictVoteRevealResponse) XXX_Size ¶
func (m *MsgConflictVoteRevealResponse) XXX_Size() int
func (*MsgConflictVoteRevealResponse) XXX_Unmarshal ¶
func (m *MsgConflictVoteRevealResponse) XXX_Unmarshal(b []byte) error
type MsgDetection ¶
type MsgDetection struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` FinalizationConflict *FinalizationConflict `protobuf:"bytes,2,opt,name=finalizationConflict,proto3" json:"finalizationConflict,omitempty"` ResponseConflict *ResponseConflict `protobuf:"bytes,3,opt,name=responseConflict,proto3" json:"responseConflict,omitempty"` SameProviderConflict *FinalizationConflict `protobuf:"bytes,4,opt,name=sameProviderConflict,proto3" json:"sameProviderConflict,omitempty"` }
TODO:: change coin type to another proto (define proto in another file int this directory)
func NewMsgDetection ¶
func NewMsgDetection(creator string, finalizationConflict *FinalizationConflict, responseConflict *ResponseConflict, sameProviderConflict *FinalizationConflict) *MsgDetection
func (*MsgDetection) Descriptor ¶
func (*MsgDetection) Descriptor() ([]byte, []int)
func (*MsgDetection) GetCreator ¶
func (m *MsgDetection) GetCreator() string
func (*MsgDetection) GetFinalizationConflict ¶
func (m *MsgDetection) GetFinalizationConflict() *FinalizationConflict
func (*MsgDetection) GetResponseConflict ¶
func (m *MsgDetection) GetResponseConflict() *ResponseConflict
func (*MsgDetection) GetSameProviderConflict ¶
func (m *MsgDetection) GetSameProviderConflict() *FinalizationConflict
func (*MsgDetection) GetSignBytes ¶
func (msg *MsgDetection) GetSignBytes() []byte
func (*MsgDetection) GetSigners ¶
func (msg *MsgDetection) GetSigners() []sdk.AccAddress
func (*MsgDetection) Marshal ¶
func (m *MsgDetection) Marshal() (dAtA []byte, err error)
func (*MsgDetection) MarshalToSizedBuffer ¶
func (m *MsgDetection) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDetection) ProtoMessage ¶
func (*MsgDetection) ProtoMessage()
func (*MsgDetection) Reset ¶
func (m *MsgDetection) Reset()
func (*MsgDetection) Route ¶
func (msg *MsgDetection) Route() string
func (*MsgDetection) Size ¶
func (m *MsgDetection) Size() (n int)
func (*MsgDetection) String ¶
func (m *MsgDetection) String() string
func (*MsgDetection) Type ¶
func (msg *MsgDetection) Type() string
func (*MsgDetection) Unmarshal ¶
func (m *MsgDetection) Unmarshal(dAtA []byte) error
func (*MsgDetection) ValidateBasic ¶
func (msg *MsgDetection) ValidateBasic() error
func (*MsgDetection) XXX_DiscardUnknown ¶
func (m *MsgDetection) XXX_DiscardUnknown()
func (*MsgDetection) XXX_Marshal ¶
func (m *MsgDetection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDetection) XXX_Merge ¶
func (m *MsgDetection) XXX_Merge(src proto.Message)
func (*MsgDetection) XXX_Size ¶
func (m *MsgDetection) XXX_Size() int
func (*MsgDetection) XXX_Unmarshal ¶
func (m *MsgDetection) XXX_Unmarshal(b []byte) error
type MsgDetectionResponse ¶
type MsgDetectionResponse struct { }
func (*MsgDetectionResponse) Descriptor ¶
func (*MsgDetectionResponse) Descriptor() ([]byte, []int)
func (*MsgDetectionResponse) Marshal ¶
func (m *MsgDetectionResponse) Marshal() (dAtA []byte, err error)
func (*MsgDetectionResponse) MarshalTo ¶
func (m *MsgDetectionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDetectionResponse) MarshalToSizedBuffer ¶
func (m *MsgDetectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDetectionResponse) ProtoMessage ¶
func (*MsgDetectionResponse) ProtoMessage()
func (*MsgDetectionResponse) Reset ¶
func (m *MsgDetectionResponse) Reset()
func (*MsgDetectionResponse) Size ¶
func (m *MsgDetectionResponse) Size() (n int)
func (*MsgDetectionResponse) String ¶
func (m *MsgDetectionResponse) String() string
func (*MsgDetectionResponse) Unmarshal ¶
func (m *MsgDetectionResponse) Unmarshal(dAtA []byte) error
func (*MsgDetectionResponse) XXX_DiscardUnknown ¶
func (m *MsgDetectionResponse) XXX_DiscardUnknown()
func (*MsgDetectionResponse) XXX_Marshal ¶
func (m *MsgDetectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDetectionResponse) XXX_Merge ¶
func (m *MsgDetectionResponse) XXX_Merge(src proto.Message)
func (*MsgDetectionResponse) XXX_Size ¶
func (m *MsgDetectionResponse) XXX_Size() int
func (*MsgDetectionResponse) XXX_Unmarshal ¶
func (m *MsgDetectionResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { Detection(context.Context, *MsgDetection) (*MsgDetectionResponse, error) ConflictVoteCommit(context.Context, *MsgConflictVoteCommit) (*MsgConflictVoteCommitResponse, error) ConflictVoteReveal(context.Context, *MsgConflictVoteReveal) (*MsgConflictVoteRevealResponse, error) }
MsgServer is the server API for Msg service.
type PairingKeeper ¶
type PairingKeeper interface { UnstakeEntry(ctx sdk.Context, validator, chainID, creator, unstakeDescription string) error FreezeProvider(ctx sdk.Context, provider string, chainIDs []string, reason string) error CreditStakeEntry(ctx sdk.Context, chainID string, lookUpAddress sdk.AccAddress, creditAmount sdk.Coin) (bool, error) VerifyPairingData(ctx sdk.Context, chainID string, block uint64) (epoch uint64, providersType spectypes.Spec_ProvidersTypes, errorRet error) JailEntry(ctx sdk.Context, address string, chainID string, jailStartBlock, jailBlocks uint64, bail sdk.Coin) error BailEntry(ctx sdk.Context, address string, chainID string, bail sdk.Coin) error SlashEntry(ctx sdk.Context, address string, chainID string, percentage sdk.Dec) (sdk.Coin, error) GetProjectData(ctx sdk.Context, developerKey sdk.AccAddress, chainID string, blockHeight uint64) (proj projectstypes.Project, errRet error) }
type Params ¶
type Params struct { MajorityPercent github_com_cosmos_cosmos_sdk_types.Dec `` /* 147-byte string literal not displayed */ VoteStartSpan uint64 `protobuf:"varint,2,opt,name=voteStartSpan,proto3" json:"voteStartSpan,omitempty"` VotePeriod uint64 `protobuf:"varint,3,opt,name=votePeriod,proto3" json:"votePeriod,omitempty"` Rewards Rewards `protobuf:"bytes,4,opt,name=Rewards,proto3" json:"Rewards"` }
Params defines the parameters for the module.
func NewParams ¶
func NewParams( majorityPercent sdk.Dec, voteStartSpan, votePeriod uint64, rewards Rewards, ) Params
NewParams creates a new Params instance
func (*Params) Descriptor ¶
func (*Params) GetRewards ¶
func (*Params) GetVotePeriod ¶
func (*Params) GetVoteStartSpan ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type Provider ¶
type Provider struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` Response []byte `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"` }
func (*Provider) Descriptor ¶
func (*Provider) GetAccount ¶
func (*Provider) GetResponse ¶
func (*Provider) MarshalToSizedBuffer ¶
func (*Provider) ProtoMessage ¶
func (*Provider) ProtoMessage()
func (*Provider) XXX_DiscardUnknown ¶
func (m *Provider) XXX_DiscardUnknown()
func (*Provider) XXX_Marshal ¶
func (*Provider) XXX_Unmarshal ¶
type QueryAllConflictVoteRequest ¶
type QueryAllConflictVoteRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllConflictVoteRequest) Descriptor ¶
func (*QueryAllConflictVoteRequest) Descriptor() ([]byte, []int)
func (*QueryAllConflictVoteRequest) GetPagination ¶
func (m *QueryAllConflictVoteRequest) GetPagination() *query.PageRequest
func (*QueryAllConflictVoteRequest) Marshal ¶
func (m *QueryAllConflictVoteRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllConflictVoteRequest) MarshalTo ¶
func (m *QueryAllConflictVoteRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllConflictVoteRequest) MarshalToSizedBuffer ¶
func (m *QueryAllConflictVoteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllConflictVoteRequest) ProtoMessage ¶
func (*QueryAllConflictVoteRequest) ProtoMessage()
func (*QueryAllConflictVoteRequest) Reset ¶
func (m *QueryAllConflictVoteRequest) Reset()
func (*QueryAllConflictVoteRequest) Size ¶
func (m *QueryAllConflictVoteRequest) Size() (n int)
func (*QueryAllConflictVoteRequest) String ¶
func (m *QueryAllConflictVoteRequest) String() string
func (*QueryAllConflictVoteRequest) Unmarshal ¶
func (m *QueryAllConflictVoteRequest) Unmarshal(dAtA []byte) error
func (*QueryAllConflictVoteRequest) XXX_DiscardUnknown ¶
func (m *QueryAllConflictVoteRequest) XXX_DiscardUnknown()
func (*QueryAllConflictVoteRequest) XXX_Marshal ¶
func (m *QueryAllConflictVoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllConflictVoteRequest) XXX_Merge ¶
func (m *QueryAllConflictVoteRequest) XXX_Merge(src proto.Message)
func (*QueryAllConflictVoteRequest) XXX_Size ¶
func (m *QueryAllConflictVoteRequest) XXX_Size() int
func (*QueryAllConflictVoteRequest) XXX_Unmarshal ¶
func (m *QueryAllConflictVoteRequest) XXX_Unmarshal(b []byte) error
type QueryAllConflictVoteResponse ¶
type QueryAllConflictVoteResponse struct { ConflictVote []ConflictVote `protobuf:"bytes,1,rep,name=conflictVote,proto3" json:"conflictVote"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllConflictVoteResponse) Descriptor ¶
func (*QueryAllConflictVoteResponse) Descriptor() ([]byte, []int)
func (*QueryAllConflictVoteResponse) GetConflictVote ¶
func (m *QueryAllConflictVoteResponse) GetConflictVote() []ConflictVote
func (*QueryAllConflictVoteResponse) GetPagination ¶
func (m *QueryAllConflictVoteResponse) GetPagination() *query.PageResponse
func (*QueryAllConflictVoteResponse) Marshal ¶
func (m *QueryAllConflictVoteResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllConflictVoteResponse) MarshalTo ¶
func (m *QueryAllConflictVoteResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllConflictVoteResponse) MarshalToSizedBuffer ¶
func (m *QueryAllConflictVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllConflictVoteResponse) ProtoMessage ¶
func (*QueryAllConflictVoteResponse) ProtoMessage()
func (*QueryAllConflictVoteResponse) Reset ¶
func (m *QueryAllConflictVoteResponse) Reset()
func (*QueryAllConflictVoteResponse) Size ¶
func (m *QueryAllConflictVoteResponse) Size() (n int)
func (*QueryAllConflictVoteResponse) String ¶
func (m *QueryAllConflictVoteResponse) String() string
func (*QueryAllConflictVoteResponse) Unmarshal ¶
func (m *QueryAllConflictVoteResponse) Unmarshal(dAtA []byte) error
func (*QueryAllConflictVoteResponse) XXX_DiscardUnknown ¶
func (m *QueryAllConflictVoteResponse) XXX_DiscardUnknown()
func (*QueryAllConflictVoteResponse) XXX_Marshal ¶
func (m *QueryAllConflictVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllConflictVoteResponse) XXX_Merge ¶
func (m *QueryAllConflictVoteResponse) XXX_Merge(src proto.Message)
func (*QueryAllConflictVoteResponse) XXX_Size ¶
func (m *QueryAllConflictVoteResponse) XXX_Size() int
func (*QueryAllConflictVoteResponse) XXX_Unmarshal ¶
func (m *QueryAllConflictVoteResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a ConflictVote by index. ConflictVote(ctx context.Context, in *QueryGetConflictVoteRequest, opts ...grpc.CallOption) (*QueryGetConflictVoteResponse, error) // Queries a list of ConflictVote items. ConflictVoteAll(ctx context.Context, in *QueryAllConflictVoteRequest, opts ...grpc.CallOption) (*QueryAllConflictVoteResponse, error) // Gets a consumer's active conflict list. ConsumerConflicts(ctx context.Context, in *QueryConsumerConflictsRequest, opts ...grpc.CallOption) (*QueryConsumerConflictsResponse, error) // Queries a provider's conflict list (ones that the provider was reported in and ones that the provider needs to vote) ProviderConflicts(ctx context.Context, in *QueryProviderConflictsRequest, opts ...grpc.CallOption) (*QueryProviderConflictsResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryConsumerConflictsRequest ¶
type QueryConsumerConflictsRequest struct {
Consumer string `protobuf:"bytes,1,opt,name=consumer,proto3" json:"consumer,omitempty"`
}
func (*QueryConsumerConflictsRequest) Descriptor ¶
func (*QueryConsumerConflictsRequest) Descriptor() ([]byte, []int)
func (*QueryConsumerConflictsRequest) GetConsumer ¶
func (m *QueryConsumerConflictsRequest) GetConsumer() string
func (*QueryConsumerConflictsRequest) Marshal ¶
func (m *QueryConsumerConflictsRequest) Marshal() (dAtA []byte, err error)
func (*QueryConsumerConflictsRequest) MarshalTo ¶
func (m *QueryConsumerConflictsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryConsumerConflictsRequest) MarshalToSizedBuffer ¶
func (m *QueryConsumerConflictsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryConsumerConflictsRequest) ProtoMessage ¶
func (*QueryConsumerConflictsRequest) ProtoMessage()
func (*QueryConsumerConflictsRequest) Reset ¶
func (m *QueryConsumerConflictsRequest) Reset()
func (*QueryConsumerConflictsRequest) Size ¶
func (m *QueryConsumerConflictsRequest) Size() (n int)
func (*QueryConsumerConflictsRequest) String ¶
func (m *QueryConsumerConflictsRequest) String() string
func (*QueryConsumerConflictsRequest) Unmarshal ¶
func (m *QueryConsumerConflictsRequest) Unmarshal(dAtA []byte) error
func (*QueryConsumerConflictsRequest) XXX_DiscardUnknown ¶
func (m *QueryConsumerConflictsRequest) XXX_DiscardUnknown()
func (*QueryConsumerConflictsRequest) XXX_Marshal ¶
func (m *QueryConsumerConflictsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryConsumerConflictsRequest) XXX_Merge ¶
func (m *QueryConsumerConflictsRequest) XXX_Merge(src proto.Message)
func (*QueryConsumerConflictsRequest) XXX_Size ¶
func (m *QueryConsumerConflictsRequest) XXX_Size() int
func (*QueryConsumerConflictsRequest) XXX_Unmarshal ¶
func (m *QueryConsumerConflictsRequest) XXX_Unmarshal(b []byte) error
type QueryConsumerConflictsResponse ¶
type QueryConsumerConflictsResponse struct {
Conflicts []string `protobuf:"bytes,1,rep,name=conflicts,proto3" json:"conflicts,omitempty"`
}
func (*QueryConsumerConflictsResponse) Descriptor ¶
func (*QueryConsumerConflictsResponse) Descriptor() ([]byte, []int)
func (*QueryConsumerConflictsResponse) GetConflicts ¶
func (m *QueryConsumerConflictsResponse) GetConflicts() []string
func (*QueryConsumerConflictsResponse) Marshal ¶
func (m *QueryConsumerConflictsResponse) Marshal() (dAtA []byte, err error)
func (*QueryConsumerConflictsResponse) MarshalTo ¶
func (m *QueryConsumerConflictsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryConsumerConflictsResponse) MarshalToSizedBuffer ¶
func (m *QueryConsumerConflictsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryConsumerConflictsResponse) ProtoMessage ¶
func (*QueryConsumerConflictsResponse) ProtoMessage()
func (*QueryConsumerConflictsResponse) Reset ¶
func (m *QueryConsumerConflictsResponse) Reset()
func (*QueryConsumerConflictsResponse) Size ¶
func (m *QueryConsumerConflictsResponse) Size() (n int)
func (*QueryConsumerConflictsResponse) String ¶
func (m *QueryConsumerConflictsResponse) String() string
func (*QueryConsumerConflictsResponse) Unmarshal ¶
func (m *QueryConsumerConflictsResponse) Unmarshal(dAtA []byte) error
func (*QueryConsumerConflictsResponse) XXX_DiscardUnknown ¶
func (m *QueryConsumerConflictsResponse) XXX_DiscardUnknown()
func (*QueryConsumerConflictsResponse) XXX_Marshal ¶
func (m *QueryConsumerConflictsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryConsumerConflictsResponse) XXX_Merge ¶
func (m *QueryConsumerConflictsResponse) XXX_Merge(src proto.Message)
func (*QueryConsumerConflictsResponse) XXX_Size ¶
func (m *QueryConsumerConflictsResponse) XXX_Size() int
func (*QueryConsumerConflictsResponse) XXX_Unmarshal ¶
func (m *QueryConsumerConflictsResponse) XXX_Unmarshal(b []byte) error
type QueryGetConflictVoteRequest ¶
type QueryGetConflictVoteRequest struct {
Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
}
func (*QueryGetConflictVoteRequest) Descriptor ¶
func (*QueryGetConflictVoteRequest) Descriptor() ([]byte, []int)
func (*QueryGetConflictVoteRequest) GetIndex ¶
func (m *QueryGetConflictVoteRequest) GetIndex() string
func (*QueryGetConflictVoteRequest) Marshal ¶
func (m *QueryGetConflictVoteRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetConflictVoteRequest) MarshalTo ¶
func (m *QueryGetConflictVoteRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetConflictVoteRequest) MarshalToSizedBuffer ¶
func (m *QueryGetConflictVoteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetConflictVoteRequest) ProtoMessage ¶
func (*QueryGetConflictVoteRequest) ProtoMessage()
func (*QueryGetConflictVoteRequest) Reset ¶
func (m *QueryGetConflictVoteRequest) Reset()
func (*QueryGetConflictVoteRequest) Size ¶
func (m *QueryGetConflictVoteRequest) Size() (n int)
func (*QueryGetConflictVoteRequest) String ¶
func (m *QueryGetConflictVoteRequest) String() string
func (*QueryGetConflictVoteRequest) Unmarshal ¶
func (m *QueryGetConflictVoteRequest) Unmarshal(dAtA []byte) error
func (*QueryGetConflictVoteRequest) XXX_DiscardUnknown ¶
func (m *QueryGetConflictVoteRequest) XXX_DiscardUnknown()
func (*QueryGetConflictVoteRequest) XXX_Marshal ¶
func (m *QueryGetConflictVoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetConflictVoteRequest) XXX_Merge ¶
func (m *QueryGetConflictVoteRequest) XXX_Merge(src proto.Message)
func (*QueryGetConflictVoteRequest) XXX_Size ¶
func (m *QueryGetConflictVoteRequest) XXX_Size() int
func (*QueryGetConflictVoteRequest) XXX_Unmarshal ¶
func (m *QueryGetConflictVoteRequest) XXX_Unmarshal(b []byte) error
type QueryGetConflictVoteResponse ¶
type QueryGetConflictVoteResponse struct {
ConflictVote ConflictVote `protobuf:"bytes,1,opt,name=conflictVote,proto3" json:"conflictVote"`
}
func (*QueryGetConflictVoteResponse) Descriptor ¶
func (*QueryGetConflictVoteResponse) Descriptor() ([]byte, []int)
func (*QueryGetConflictVoteResponse) GetConflictVote ¶
func (m *QueryGetConflictVoteResponse) GetConflictVote() ConflictVote
func (*QueryGetConflictVoteResponse) Marshal ¶
func (m *QueryGetConflictVoteResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetConflictVoteResponse) MarshalTo ¶
func (m *QueryGetConflictVoteResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetConflictVoteResponse) MarshalToSizedBuffer ¶
func (m *QueryGetConflictVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetConflictVoteResponse) ProtoMessage ¶
func (*QueryGetConflictVoteResponse) ProtoMessage()
func (*QueryGetConflictVoteResponse) Reset ¶
func (m *QueryGetConflictVoteResponse) Reset()
func (*QueryGetConflictVoteResponse) Size ¶
func (m *QueryGetConflictVoteResponse) Size() (n int)
func (*QueryGetConflictVoteResponse) String ¶
func (m *QueryGetConflictVoteResponse) String() string
func (*QueryGetConflictVoteResponse) Unmarshal ¶
func (m *QueryGetConflictVoteResponse) Unmarshal(dAtA []byte) error
func (*QueryGetConflictVoteResponse) XXX_DiscardUnknown ¶
func (m *QueryGetConflictVoteResponse) XXX_DiscardUnknown()
func (*QueryGetConflictVoteResponse) XXX_Marshal ¶
func (m *QueryGetConflictVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetConflictVoteResponse) XXX_Merge ¶
func (m *QueryGetConflictVoteResponse) XXX_Merge(src proto.Message)
func (*QueryGetConflictVoteResponse) XXX_Size ¶
func (m *QueryGetConflictVoteResponse) XXX_Size() int
func (*QueryGetConflictVoteResponse) XXX_Unmarshal ¶
func (m *QueryGetConflictVoteResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryProviderConflictsRequest ¶
type QueryProviderConflictsRequest struct {
Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
}
func (*QueryProviderConflictsRequest) Descriptor ¶
func (*QueryProviderConflictsRequest) Descriptor() ([]byte, []int)
func (*QueryProviderConflictsRequest) GetProvider ¶
func (m *QueryProviderConflictsRequest) GetProvider() string
func (*QueryProviderConflictsRequest) Marshal ¶
func (m *QueryProviderConflictsRequest) Marshal() (dAtA []byte, err error)
func (*QueryProviderConflictsRequest) MarshalTo ¶
func (m *QueryProviderConflictsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryProviderConflictsRequest) MarshalToSizedBuffer ¶
func (m *QueryProviderConflictsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProviderConflictsRequest) ProtoMessage ¶
func (*QueryProviderConflictsRequest) ProtoMessage()
func (*QueryProviderConflictsRequest) Reset ¶
func (m *QueryProviderConflictsRequest) Reset()
func (*QueryProviderConflictsRequest) Size ¶
func (m *QueryProviderConflictsRequest) Size() (n int)
func (*QueryProviderConflictsRequest) String ¶
func (m *QueryProviderConflictsRequest) String() string
func (*QueryProviderConflictsRequest) Unmarshal ¶
func (m *QueryProviderConflictsRequest) Unmarshal(dAtA []byte) error
func (*QueryProviderConflictsRequest) XXX_DiscardUnknown ¶
func (m *QueryProviderConflictsRequest) XXX_DiscardUnknown()
func (*QueryProviderConflictsRequest) XXX_Marshal ¶
func (m *QueryProviderConflictsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProviderConflictsRequest) XXX_Merge ¶
func (m *QueryProviderConflictsRequest) XXX_Merge(src proto.Message)
func (*QueryProviderConflictsRequest) XXX_Size ¶
func (m *QueryProviderConflictsRequest) XXX_Size() int
func (*QueryProviderConflictsRequest) XXX_Unmarshal ¶
func (m *QueryProviderConflictsRequest) XXX_Unmarshal(b []byte) error
type QueryProviderConflictsResponse ¶
type QueryProviderConflictsResponse struct { Reported []string `protobuf:"bytes,1,rep,name=reported,proto3" json:"reported,omitempty"` NotVoted []string `protobuf:"bytes,2,rep,name=not_voted,json=notVoted,proto3" json:"not_voted,omitempty"` Committed []string `protobuf:"bytes,3,rep,name=committed,proto3" json:"committed,omitempty"` }
func (*QueryProviderConflictsResponse) Descriptor ¶
func (*QueryProviderConflictsResponse) Descriptor() ([]byte, []int)
func (*QueryProviderConflictsResponse) GetCommitted ¶
func (m *QueryProviderConflictsResponse) GetCommitted() []string
func (*QueryProviderConflictsResponse) GetNotVoted ¶
func (m *QueryProviderConflictsResponse) GetNotVoted() []string
func (*QueryProviderConflictsResponse) GetReported ¶
func (m *QueryProviderConflictsResponse) GetReported() []string
func (*QueryProviderConflictsResponse) Marshal ¶
func (m *QueryProviderConflictsResponse) Marshal() (dAtA []byte, err error)
func (*QueryProviderConflictsResponse) MarshalTo ¶
func (m *QueryProviderConflictsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryProviderConflictsResponse) MarshalToSizedBuffer ¶
func (m *QueryProviderConflictsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProviderConflictsResponse) ProtoMessage ¶
func (*QueryProviderConflictsResponse) ProtoMessage()
func (*QueryProviderConflictsResponse) Reset ¶
func (m *QueryProviderConflictsResponse) Reset()
func (*QueryProviderConflictsResponse) Size ¶
func (m *QueryProviderConflictsResponse) Size() (n int)
func (*QueryProviderConflictsResponse) String ¶
func (m *QueryProviderConflictsResponse) String() string
func (*QueryProviderConflictsResponse) Unmarshal ¶
func (m *QueryProviderConflictsResponse) Unmarshal(dAtA []byte) error
func (*QueryProviderConflictsResponse) XXX_DiscardUnknown ¶
func (m *QueryProviderConflictsResponse) XXX_DiscardUnknown()
func (*QueryProviderConflictsResponse) XXX_Marshal ¶
func (m *QueryProviderConflictsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProviderConflictsResponse) XXX_Merge ¶
func (m *QueryProviderConflictsResponse) XXX_Merge(src proto.Message)
func (*QueryProviderConflictsResponse) XXX_Size ¶
func (m *QueryProviderConflictsResponse) XXX_Size() int
func (*QueryProviderConflictsResponse) XXX_Unmarshal ¶
func (m *QueryProviderConflictsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a ConflictVote by index. ConflictVote(context.Context, *QueryGetConflictVoteRequest) (*QueryGetConflictVoteResponse, error) // Queries a list of ConflictVote items. ConflictVoteAll(context.Context, *QueryAllConflictVoteRequest) (*QueryAllConflictVoteResponse, error) // Gets a consumer's active conflict list. ConsumerConflicts(context.Context, *QueryConsumerConflictsRequest) (*QueryConsumerConflictsResponse, error) // Queries a provider's conflict list (ones that the provider was reported in and ones that the provider needs to vote) ProviderConflicts(context.Context, *QueryProviderConflictsRequest) (*QueryProviderConflictsResponse, error) }
QueryServer is the server API for Query service.
type RelayFinalizationMetaData ¶
type RelayFinalizationMetaData struct { MetaData ReplyMetadata Request pairingtypes.RelayRequest Addr sdk.AccAddress }
func NewRelayFinalizationMetaData ¶
func NewRelayFinalizationMetaData(meta ReplyMetadata, req pairingtypes.RelayRequest, addr sdk.AccAddress) RelayFinalizationMetaData
func (RelayFinalizationMetaData) DataToSign ¶
func (rfm RelayFinalizationMetaData) DataToSign() []byte
func (RelayFinalizationMetaData) GetSignature ¶
func (rfm RelayFinalizationMetaData) GetSignature() []byte
func (RelayFinalizationMetaData) HashRounds ¶
func (rfm RelayFinalizationMetaData) HashRounds() int
type ReplyMetadata ¶
type ReplyMetadata struct { HashAllDataHash []byte `protobuf:"bytes,1,opt,name=hash_all_data_hash,json=hashAllDataHash,proto3" json:"hash_all_data_hash,omitempty"` Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"` LatestBlock int64 `protobuf:"varint,3,opt,name=latest_block,json=latestBlock,proto3" json:"latest_block,omitempty"` FinalizedBlocksHashes []byte `` /* 126-byte string literal not displayed */ SigBlocks []byte `protobuf:"bytes,5,opt,name=sig_blocks,json=sigBlocks,proto3" json:"sig_blocks,omitempty"` }
func (ReplyMetadata) DataToSign ¶
func (rm ReplyMetadata) DataToSign() []byte
func (*ReplyMetadata) Descriptor ¶
func (*ReplyMetadata) Descriptor() ([]byte, []int)
func (*ReplyMetadata) GetFinalizedBlocksHashes ¶
func (m *ReplyMetadata) GetFinalizedBlocksHashes() []byte
func (*ReplyMetadata) GetHashAllDataHash ¶
func (m *ReplyMetadata) GetHashAllDataHash() []byte
func (*ReplyMetadata) GetLatestBlock ¶
func (m *ReplyMetadata) GetLatestBlock() int64
func (*ReplyMetadata) GetSig ¶
func (m *ReplyMetadata) GetSig() []byte
func (*ReplyMetadata) GetSigBlocks ¶
func (m *ReplyMetadata) GetSigBlocks() []byte
func (ReplyMetadata) GetSignature ¶
func (rm ReplyMetadata) GetSignature() []byte
func (ReplyMetadata) HashRounds ¶
func (rm ReplyMetadata) HashRounds() int
func (*ReplyMetadata) Marshal ¶
func (m *ReplyMetadata) Marshal() (dAtA []byte, err error)
func (*ReplyMetadata) MarshalToSizedBuffer ¶
func (m *ReplyMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ReplyMetadata) ProtoMessage ¶
func (*ReplyMetadata) ProtoMessage()
func (*ReplyMetadata) Reset ¶
func (m *ReplyMetadata) Reset()
func (*ReplyMetadata) Size ¶
func (m *ReplyMetadata) Size() (n int)
func (*ReplyMetadata) String ¶
func (m *ReplyMetadata) String() string
func (*ReplyMetadata) Unmarshal ¶
func (m *ReplyMetadata) Unmarshal(dAtA []byte) error
func (*ReplyMetadata) XXX_DiscardUnknown ¶
func (m *ReplyMetadata) XXX_DiscardUnknown()
func (*ReplyMetadata) XXX_Marshal ¶
func (m *ReplyMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplyMetadata) XXX_Merge ¶
func (m *ReplyMetadata) XXX_Merge(src proto.Message)
func (*ReplyMetadata) XXX_Size ¶
func (m *ReplyMetadata) XXX_Size() int
func (*ReplyMetadata) XXX_Unmarshal ¶
func (m *ReplyMetadata) XXX_Unmarshal(b []byte) error
type ResponseConflict ¶
type ResponseConflict struct { ConflictRelayData0 *ConflictRelayData `protobuf:"bytes,1,opt,name=conflictRelayData0,proto3" json:"conflictRelayData0,omitempty"` ConflictRelayData1 *ConflictRelayData `protobuf:"bytes,2,opt,name=conflictRelayData1,proto3" json:"conflictRelayData1,omitempty"` }
func (*ResponseConflict) Descriptor ¶
func (*ResponseConflict) Descriptor() ([]byte, []int)
func (*ResponseConflict) GetConflictRelayData0 ¶
func (m *ResponseConflict) GetConflictRelayData0() *ConflictRelayData
func (*ResponseConflict) GetConflictRelayData1 ¶
func (m *ResponseConflict) GetConflictRelayData1() *ConflictRelayData
func (*ResponseConflict) Marshal ¶
func (m *ResponseConflict) Marshal() (dAtA []byte, err error)
func (*ResponseConflict) MarshalToSizedBuffer ¶
func (m *ResponseConflict) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResponseConflict) ProtoMessage ¶
func (*ResponseConflict) ProtoMessage()
func (*ResponseConflict) Reset ¶
func (m *ResponseConflict) Reset()
func (*ResponseConflict) Size ¶
func (m *ResponseConflict) Size() (n int)
func (*ResponseConflict) String ¶
func (m *ResponseConflict) String() string
func (*ResponseConflict) Unmarshal ¶
func (m *ResponseConflict) Unmarshal(dAtA []byte) error
func (*ResponseConflict) XXX_DiscardUnknown ¶
func (m *ResponseConflict) XXX_DiscardUnknown()
func (*ResponseConflict) XXX_Marshal ¶
func (m *ResponseConflict) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResponseConflict) XXX_Merge ¶
func (m *ResponseConflict) XXX_Merge(src proto.Message)
func (*ResponseConflict) XXX_Size ¶
func (m *ResponseConflict) XXX_Size() int
func (*ResponseConflict) XXX_Unmarshal ¶
func (m *ResponseConflict) XXX_Unmarshal(b []byte) error
type Rewards ¶
type Rewards struct { WinnerRewardPercent github_com_cosmos_cosmos_sdk_types.Dec `` /* 160-byte string literal not displayed */ ClientRewardPercent github_com_cosmos_cosmos_sdk_types.Dec `` /* 160-byte string literal not displayed */ VotersRewardPercent github_com_cosmos_cosmos_sdk_types.Dec `` /* 160-byte string literal not displayed */ }
var ( KeyRewards = []byte("WinnerRewardPercent") DefaultRewards Rewards = Rewards{WinnerRewardPercent: sdk.NewDecWithPrec(15, 2), ClientRewardPercent: sdk.NewDecWithPrec(10, 2), VotersRewardPercent: sdk.NewDecWithPrec(15, 2)} )
func (*Rewards) Descriptor ¶
func (*Rewards) MarshalToSizedBuffer ¶
func (*Rewards) ProtoMessage ¶
func (*Rewards) ProtoMessage()
func (*Rewards) XXX_DiscardUnknown ¶
func (m *Rewards) XXX_DiscardUnknown()
func (*Rewards) XXX_Marshal ¶
func (*Rewards) XXX_Unmarshal ¶
type SpecKeeper ¶
type StakingKeeper ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) ConflictVoteCommit ¶
func (*UnimplementedMsgServer) ConflictVoteCommit(ctx context.Context, req *MsgConflictVoteCommit) (*MsgConflictVoteCommitResponse, error)
func (*UnimplementedMsgServer) ConflictVoteReveal ¶
func (*UnimplementedMsgServer) ConflictVoteReveal(ctx context.Context, req *MsgConflictVoteReveal) (*MsgConflictVoteRevealResponse, error)
func (*UnimplementedMsgServer) Detection ¶
func (*UnimplementedMsgServer) Detection(ctx context.Context, req *MsgDetection) (*MsgDetectionResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) ConflictVote ¶
func (*UnimplementedQueryServer) ConflictVote(ctx context.Context, req *QueryGetConflictVoteRequest) (*QueryGetConflictVoteResponse, error)
func (*UnimplementedQueryServer) ConflictVoteAll ¶
func (*UnimplementedQueryServer) ConflictVoteAll(ctx context.Context, req *QueryAllConflictVoteRequest) (*QueryAllConflictVoteResponse, error)
func (*UnimplementedQueryServer) ConsumerConflicts ¶
func (*UnimplementedQueryServer) ConsumerConflicts(ctx context.Context, req *QueryConsumerConflictsRequest) (*QueryConsumerConflictsResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) ProviderConflicts ¶
func (*UnimplementedQueryServer) ProviderConflicts(ctx context.Context, req *QueryProviderConflictsRequest) (*QueryProviderConflictsResponse, error)
type Vote ¶
type Vote struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Hash []byte `protobuf:"bytes,2,opt,name=Hash,proto3" json:"Hash,omitempty"` Result int64 `protobuf:"varint,3,opt,name=Result,proto3" json:"Result,omitempty"` }
func (*Vote) Descriptor ¶
func (*Vote) GetAddress ¶
func (*Vote) ProtoMessage ¶
func (*Vote) ProtoMessage()
func (*Vote) XXX_DiscardUnknown ¶
func (m *Vote) XXX_DiscardUnknown()
func (*Vote) XXX_Unmarshal ¶
Source Files ¶
- codec.go
- conflict_data.pb.go
- conflict_vote.pb.go
- errors.go
- expected_keepers.go
- genesis.go
- genesis.pb.go
- key_conflict_vote.go
- keys.go
- message_conflict_vote_commit.go
- message_conflict_vote_reveal.go
- message_detection.go
- params.go
- params.pb.go
- query.pb.go
- query.pb.gw.go
- relay_finalization_metadata.go
- relay_metadata.go
- tx.pb.go
- types.go