types

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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"
)
View Source
const (
	StateCommit = 0
	StateReveal = 1
)
View Source
const (
	NoVote             = 0
	Commit             = 1
	Provider0          = 2
	Provider1          = 3
	NoneOfTheProviders = 4
)

vote status for each voter

View Source
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"
)
View Source
const (
	// ConflictVoteKeyPrefix is the prefix to retrieve all ConflictVote
	ConflictVoteKeyPrefix = "ConflictVote/value/"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const TypeMsgConflictVoteCommit = "conflict_vote_commit"
View Source
const TypeMsgConflictVoteReveal = "conflict_vote_reveal"
View Source
const TypeMsgDetection = "detection"
View Source
const (
	UnstakeDescriptionFraudVote = "fraud provider found in conflict detection"
)

unstake description

Variables

View Source
var (
	ErrInvalidLengthConflictData        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowConflictData          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupConflictData = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthConflictVote        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowConflictVote          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupConflictVote = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyMajorityPercent             = []byte("MajorityPercent")
	DefaultMajorityPercent sdk.Dec = sdk.NewDecWithPrec(95, 2)
)
View Source
var (
	KeyVoteStartSpan            = []byte("VoteStartSpan")
	DefaultVoteStartSpan uint64 = 3
)
View Source
var (
	KeyVotePeriod            = []byte("VotePeriod")
	DefaultVotePeriod uint64 = 2
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)

x/conflict module sentinel errors

Functions

func CommitVoteData

func CommitVoteData(nonce int64, dataHash []byte, providerAddress string) []byte

func ConflictVoteKey

func ConflictVoteKey(
	index string,
) []byte

ConflictVoteKey returns the store key to retrieve a ConflictVote from the index fields

func KeyPrefix

func KeyPrefix(p string) []byte

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 RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

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) MarshalTo

func (m *ConflictVote) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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 (*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 (*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) MarshalTo

func (m *MsgDetection) MarshalTo(dAtA []byte) (int, 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

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 DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(
	majorityPercent sdk.Dec, voteStartSpan, votePeriod uint64, rewards Rewards,
) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetRewards

func (m *Params) GetRewards() Rewards

func (*Params) GetVotePeriod

func (m *Params) GetVotePeriod() uint64

func (*Params) GetVoteStartSpan

func (m *Params) GetVoteStartSpan() uint64

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type 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) Descriptor() ([]byte, []int)

func (*Provider) GetAccount

func (m *Provider) GetAccount() string

func (*Provider) GetResponse

func (m *Provider) GetResponse() []byte

func (*Provider) Marshal

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

func (*Provider) MarshalTo

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

func (*Provider) MarshalToSizedBuffer

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

func (*Provider) ProtoMessage

func (*Provider) ProtoMessage()

func (*Provider) Reset

func (m *Provider) Reset()

func (*Provider) Size

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

func (*Provider) String

func (m *Provider) String() string

func (*Provider) Unmarshal

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

func (*Provider) XXX_DiscardUnknown

func (m *Provider) XXX_DiscardUnknown()

func (*Provider) XXX_Marshal

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

func (*Provider) XXX_Merge

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

func (*Provider) XXX_Size

func (m *Provider) XXX_Size() int

func (*Provider) XXX_Unmarshal

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

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 (*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 (*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 (*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 (*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 (*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 (*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 (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) MarshalTo

func (m *ReplyMetadata) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *ResponseConflict) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Rewards) Marshal

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

func (*Rewards) MarshalTo

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

func (*Rewards) MarshalToSizedBuffer

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

func (*Rewards) ProtoMessage

func (*Rewards) ProtoMessage()

func (*Rewards) Reset

func (m *Rewards) Reset()

func (*Rewards) Size

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

func (*Rewards) String

func (m *Rewards) String() string

func (*Rewards) Unmarshal

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

func (*Rewards) XXX_DiscardUnknown

func (m *Rewards) XXX_DiscardUnknown()

func (*Rewards) XXX_Marshal

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

func (*Rewards) XXX_Merge

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

func (*Rewards) XXX_Size

func (m *Rewards) XXX_Size() int

func (*Rewards) XXX_Unmarshal

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

type SpecKeeper

type SpecKeeper interface {
	IsSpecFoundAndActive(ctx sdk.Context, chainID string) (foundAndActive, found bool, providersType spectypes.Spec_ProvidersTypes)
	IsFinalizedBlock(ctx sdk.Context, chainID string, requestedBlock, latestBlock int64) bool
}

type StakingKeeper

type StakingKeeper interface {
	BondDenom(ctx sdk.Context) string
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ConflictVoteCommit

func (*UnimplementedMsgServer) ConflictVoteReveal

func (*UnimplementedMsgServer) Detection

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) ConflictVote

func (*UnimplementedQueryServer) ConflictVoteAll

func (*UnimplementedQueryServer) ConsumerConflicts

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) ProviderConflicts

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) Descriptor() ([]byte, []int)

func (*Vote) GetAddress

func (m *Vote) GetAddress() string

func (*Vote) GetHash

func (m *Vote) GetHash() []byte

func (*Vote) GetResult

func (m *Vote) GetResult() int64

func (*Vote) Marshal

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

func (*Vote) MarshalTo

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

func (*Vote) MarshalToSizedBuffer

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

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) Reset

func (m *Vote) Reset()

func (*Vote) Size

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

func (*Vote) String

func (m *Vote) String() string

func (*Vote) Unmarshal

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

func (*Vote) XXX_DiscardUnknown

func (m *Vote) XXX_DiscardUnknown()

func (*Vote) XXX_Marshal

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

func (*Vote) XXX_Merge

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

func (*Vote) XXX_Size

func (m *Vote) XXX_Size() int

func (*Vote) XXX_Unmarshal

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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