types

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 41 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 = "dispute"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName

	// ParamsKey defines the primary module store key
	ParamsKey = "params"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

View Source
const TypeMsgAddFeeToDispute = "add_fee_to_dispute"
View Source
const TypeMsgProposeDispute = "propose_dispute"
View Source
const TypeMsgVote = "vote"

Variables

View Source
var (
	ErrInvalidLengthDispute        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDispute          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDispute = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthDisputeParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDisputeParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDisputeParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	INSUFFICIENT_BALANCE       = sdkerrors.Register(ModuleName, 2, "insufficient balance")
	ErrDisputeDoesNotExist     = sdkerrors.Register(ModuleName, 3, "dispute not found")
	ErrDisputeTimeExpired      = sdkerrors.Register(ModuleName, 4, "dispute time expired")
	ErrDisputeFeeAlreadyMet    = sdkerrors.Register(ModuleName, 5, "dispute fee already met")
	ErrDisputeNotInVotingState = sdkerrors.Register(ModuleName, 6, "dispute not in voting state")
	ErrVoterHasAlreadyVoted    = sdkerrors.Register(ModuleName, 7, "voter has already voted")
	ErrVoteDoesNotExist        = sdkerrors.Register(ModuleName, 8, "vote does not exist")
	ErrVotingPeriodEnded       = sdkerrors.Register(ModuleName, 9, "voting period ended")
	ErrMinimumTRBrequired      = sdkerrors.Register(ModuleName, 10, "Minimum fee amount is 1 TRB")
	ErrInvalidFeeDenom         = sdkerrors.Register(ModuleName, 11, "invalid fee denom")
	ErrInvalidDisputeCategory  = sdkerrors.Register(ModuleName, 12, "invalid dispute category")
	ErrInvalidSigner           = sdkerrors.Register(ModuleName, 13, "expected teamaccount as only signer for updateTeam message")
	ErrNoQuorumStillVoting     = sdkerrors.Register(ModuleName, 14, "vote period not ended and quorum not reached")
)

x/dispute module sentinel errors

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 (
	DisputesPrefix                           = collections.NewPrefix(1)
	DisputesByReporterIndexPrefix            = collections.NewPrefix(2)
	DisputesCountIndexPrefix                 = collections.NewPrefix(3)
	VotesPrefix                              = collections.NewPrefix(5)
	VoterVotePrefix                          = collections.NewPrefix(6)
	VotersByIdIndexPrefix                    = collections.NewPrefix(7)
	UserPowerIndexPrefix                     = collections.NewPrefix(8)
	ReporterPowerIndexPrefix                 = collections.NewPrefix(9)
	ReportersWithDelegatorsVotedBeforePrefix = collections.NewPrefix(10)
	TeamVoterPrefix                          = collections.NewPrefix(11)
	UsersGroupPrefix                         = collections.NewPrefix(12)
	BlockInfoPrefix                          = collections.NewPrefix(13)
	OpenDisputesIndexPrefix                  = collections.NewPrefix(14)
	DisputeFeePayerPrefix                    = collections.NewPrefix(15)
	DustKeyPrefix                            = collections.NewPrefix(16)
	VoteCountsByGroupPrefix                  = collections.NewPrefix(17)
	PendingExecutionIndexPrefix              = collections.NewPrefix(18)
)
View Source
var (
	ErrInvalidLengthOpenDisputes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowOpenDisputes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupOpenDisputes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyTeamAddress     = []byte("TeamAddress")
	DefaultTeamAddress = authtypes.NewModuleAddress("trbFakeAddress") // TODO: Determine the default value
)
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 (
	ErrInvalidLengthTally        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTally          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTally = 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 (
	ErrInvalidLengthVote        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowVote          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupVote = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthVoterClasses        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowVoterClasses          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupVoterClasses = fmt.Errorf("proto: unexpected end of group")
)
View Source
var DisputeCategory_name = map[int32]string{
	0: "DISPUTE_CATEGORY_UNSPECIFIED",
	1: "DISPUTE_CATEGORY_WARNING",
	2: "DISPUTE_CATEGORY_MINOR",
	3: "DISPUTE_CATEGORY_MAJOR",
}
View Source
var DisputeCategory_value = map[string]int32{
	"DISPUTE_CATEGORY_UNSPECIFIED": 0,
	"DISPUTE_CATEGORY_WARNING":     1,
	"DISPUTE_CATEGORY_MINOR":       2,
	"DISPUTE_CATEGORY_MAJOR":       3,
}
View Source
var DisputeStatus_name = map[int32]string{
	0: "DISPUTE_STATUS_PREVOTE",
	1: "DISPUTE_STATUS_VOTING",
	2: "DISPUTE_STATUS_RESOLVED",
	3: "DISPUTE_STATUS_UNRESOLVED",
	4: "DISPUTE_STATUS_FAILED",
}
View Source
var DisputeStatus_value = map[string]int32{
	"DISPUTE_STATUS_PREVOTE":    0,
	"DISPUTE_STATUS_VOTING":     1,
	"DISPUTE_STATUS_RESOLVED":   2,
	"DISPUTE_STATUS_UNRESOLVED": 3,
	"DISPUTE_STATUS_FAILED":     4,
}
View Source
var LegacyDecValue collcodec.ValueCodec[math.LegacyDec] = legacyDecValueCodec{}
View Source
var VoteEnum_name = map[int32]string{
	0: "VOTE_INVALID",
	1: "VOTE_SUPPORT",
	2: "VOTE_AGAINST",
}
View Source
var VoteEnum_value = map[string]int32{
	"VOTE_INVALID": 0,
	"VOTE_SUPPORT": 1,
	"VOTE_AGAINST": 2,
}
View Source
var VoteResult_name = map[int32]string{
	0: "NO_TALLY",
	1: "SUPPORT",
	2: "AGAINST",
	3: "INVALID",
	4: "NO_QUORUM_MAJORITY_SUPPORT",
	5: "NO_QUORUM_MAJORITY_AGAINST",
	6: "NO_QUORUM_MAJORITY_INVALID",
}
View Source
var VoteResult_value = map[string]int32{
	"NO_TALLY":                   0,
	"SUPPORT":                    1,
	"AGAINST":                    2,
	"INVALID":                    3,
	"NO_QUORUM_MAJORITY_SUPPORT": 4,
	"NO_QUORUM_MAJORITY_AGAINST": 5,
	"NO_QUORUM_MAJORITY_INVALID": 6,
}

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func ParamsKeyPrefix

func ParamsKeyPrefix() []byte

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 context.Context, addr sdk.AccAddress) sdk.AccountI
	GetModuleAddress(moduleName string) sdk.AccAddress
}

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

type BankKeeper

type BankKeeper interface {
	BurnCoins(ctx context.Context, moduleName string, amt sdk.Coins) error
	GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin
	GetSupply(ctx context.Context, denom string) sdk.Coin
	HasBalance(ctx context.Context, addr sdk.AccAddress, amt sdk.Coin) bool
	InputOutputCoins(ctx context.Context, inputs banktypes.Input, outputs []banktypes.Output) error
	SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx context.Context, senderModule, recipientModule string, amt sdk.Coins) error
	SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins
	SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type BlockInfo

type BlockInfo struct {
	// total reporter power at block
	TotalReporterPower cosmossdk_io_math.Int `` /* 140-byte string literal not displayed */
	// total user tips at block
	TotalUserTips cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=total_user_tips,json=totalUserTips,proto3,customtype=cosmossdk.io/math.Int" json:"total_user_tips"`
}

func (*BlockInfo) Descriptor

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

func (*BlockInfo) Marshal

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

func (*BlockInfo) MarshalTo

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

func (*BlockInfo) MarshalToSizedBuffer

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

func (*BlockInfo) ProtoMessage

func (*BlockInfo) ProtoMessage()

func (*BlockInfo) Reset

func (m *BlockInfo) Reset()

func (*BlockInfo) Size

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

func (*BlockInfo) String

func (m *BlockInfo) String() string

func (*BlockInfo) Unmarshal

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

func (*BlockInfo) XXX_DiscardUnknown

func (m *BlockInfo) XXX_DiscardUnknown()

func (*BlockInfo) XXX_Marshal

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

func (*BlockInfo) XXX_Merge

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

func (*BlockInfo) XXX_Size

func (m *BlockInfo) XXX_Size() int

func (*BlockInfo) XXX_Unmarshal

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

type Dispute

type Dispute struct {
	// unique dispute hash identifier
	HashId []byte `protobuf:"bytes,1,opt,name=hash_id,json=hashId,proto3" json:"hash_id,omitempty"`
	// current dispute id
	DisputeId uint64 `protobuf:"varint,2,opt,name=dispute_id,json=disputeId,proto3" json:"dispute_id,omitempty"`
	// dispute severity level
	DisputeCategory DisputeCategory `` /* 142-byte string literal not displayed */
	// cost to start dispute
	DisputeFee cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=dispute_fee,json=disputeFee,proto3,customtype=cosmossdk.io/math.Int" json:"dispute_fee"`
	// current dispute status
	DisputeStatus DisputeStatus `` /* 134-byte string literal not displayed */
	// start time of the dispute that begins after dispute fee is fully paid
	DisputeStartTime time.Time `protobuf:"bytes,6,opt,name=dispute_start_time,json=disputeStartTime,proto3,stdtime" json:"dispute_start_time"`
	// end time that the dispute stop taking votes and creating new rounds
	DisputeEndTime time.Time `protobuf:"bytes,7,opt,name=dispute_end_time,json=disputeEndTime,proto3,stdtime" json:"dispute_end_time"`
	// height of the block that started the dispute
	DisputeStartBlock uint64 `protobuf:"varint,8,opt,name=dispute_start_block,json=disputeStartBlock,proto3" json:"dispute_start_block,omitempty"`
	// current dispute round
	DisputeRound uint64 `protobuf:"varint,9,opt,name=dispute_round,json=disputeRound,proto3" json:"dispute_round,omitempty"`
	// reporter's slashed amount
	SlashAmount cosmossdk_io_math.Int `protobuf:"bytes,10,opt,name=slash_amount,json=slashAmount,proto3,customtype=cosmossdk.io/math.Int" json:"slash_amount"`
	// burn amount that will be divided in half and paid to voters and the other half burned
	BurnAmount cosmossdk_io_math.Int `protobuf:"bytes,11,opt,name=burn_amount,json=burnAmount,proto3,customtype=cosmossdk.io/math.Int" json:"burn_amount"`
	// initial single report evidence to be disputed
	InitialEvidence types.MicroReport `protobuf:"bytes,12,opt,name=initial_evidence,json=initialEvidence,proto3" json:"initial_evidence"`
	// fee payers that were involved in paying the dispute fee in order to start the dispute
	// total fee paid tracked to know if dispute fee is fully paid to start dispute
	FeeTotal cosmossdk_io_math.Int `protobuf:"bytes,13,opt,name=fee_total,json=feeTotal,proto3,customtype=cosmossdk.io/math.Int" json:"fee_total"`
	// list of dispute ids that preceded before this current round began
	PrevDisputeIds []uint64 `protobuf:"varint,14,rep,packed,name=prev_dispute_ids,json=prevDisputeIds,proto3" json:"prev_dispute_ids,omitempty"`
	// block number when this specific dispute was created
	BlockNumber        uint64               `protobuf:"varint,15,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"`
	Open               bool                 `protobuf:"varint,16,opt,name=open,proto3" json:"open,omitempty"`
	AdditionalEvidence []*types.MicroReport `protobuf:"bytes,17,rep,name=additional_evidence,json=additionalEvidence,proto3" json:"additional_evidence,omitempty"`
	// total tokens allocated to voters
	VoterReward cosmossdk_io_math.Int `protobuf:"bytes,18,opt,name=voter_reward,json=voterReward,proto3,customtype=cosmossdk.io/math.Int" json:"voter_reward"`
	// pending execution is true if the dispute has reached quorum and is pending execution.
	// however, if a new dispute round begins, this is set to false again
	PendingExecution bool `protobuf:"varint,19,opt,name=pending_execution,json=pendingExecution,proto3" json:"pending_execution,omitempty"`
}

Dispute defines a dispute.

func (*Dispute) Descriptor

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

func (*Dispute) GetAdditionalEvidence

func (m *Dispute) GetAdditionalEvidence() []*types.MicroReport

func (*Dispute) GetBlockNumber

func (m *Dispute) GetBlockNumber() uint64

func (*Dispute) GetDisputeCategory

func (m *Dispute) GetDisputeCategory() DisputeCategory

func (*Dispute) GetDisputeEndTime

func (m *Dispute) GetDisputeEndTime() time.Time

func (*Dispute) GetDisputeId

func (m *Dispute) GetDisputeId() uint64

func (*Dispute) GetDisputeRound

func (m *Dispute) GetDisputeRound() uint64

func (*Dispute) GetDisputeStartBlock

func (m *Dispute) GetDisputeStartBlock() uint64

func (*Dispute) GetDisputeStartTime

func (m *Dispute) GetDisputeStartTime() time.Time

func (*Dispute) GetDisputeStatus

func (m *Dispute) GetDisputeStatus() DisputeStatus

func (*Dispute) GetHashId

func (m *Dispute) GetHashId() []byte

func (*Dispute) GetInitialEvidence

func (m *Dispute) GetInitialEvidence() types.MicroReport

func (*Dispute) GetOpen

func (m *Dispute) GetOpen() bool

func (*Dispute) GetPendingExecution

func (m *Dispute) GetPendingExecution() bool

func (*Dispute) GetPrevDisputeIds

func (m *Dispute) GetPrevDisputeIds() []uint64

func (*Dispute) Marshal

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

func (*Dispute) MarshalTo

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

func (*Dispute) MarshalToSizedBuffer

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

func (*Dispute) ProtoMessage

func (*Dispute) ProtoMessage()

func (*Dispute) Reset

func (m *Dispute) Reset()

func (*Dispute) Size

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

func (*Dispute) String

func (m *Dispute) String() string

func (*Dispute) Unmarshal

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

func (*Dispute) XXX_DiscardUnknown

func (m *Dispute) XXX_DiscardUnknown()

func (*Dispute) XXX_Marshal

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

func (*Dispute) XXX_Merge

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

func (*Dispute) XXX_Size

func (m *Dispute) XXX_Size() int

func (*Dispute) XXX_Unmarshal

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

type DisputeCategory

type DisputeCategory int32

DisputeCategory defines the severity of a dispute.

const (
	// UNSPECIFIED defines an invalid dispute category.
	Unspecified DisputeCategory = 0
	// WARNING defines a 1 percent slashing.
	Warning DisputeCategory = 1
	// MINOR defines a 5 percent slashing.
	Minor DisputeCategory = 2
	// MAJOR defines a 100 percent slashing.
	Major DisputeCategory = 3
)

func (DisputeCategory) EnumDescriptor

func (DisputeCategory) EnumDescriptor() ([]byte, []int)

func (DisputeCategory) String

func (x DisputeCategory) String() string

type DisputeParams

type DisputeParams struct {
	Report   *types.MicroReport `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"`
	Category DisputeCategory    `protobuf:"varint,2,opt,name=category,proto3,enum=layer.dispute.DisputeCategory" json:"category,omitempty"`
}

func (*DisputeParams) Descriptor

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

func (*DisputeParams) GetCategory

func (m *DisputeParams) GetCategory() DisputeCategory

func (*DisputeParams) GetReport

func (m *DisputeParams) GetReport() *types.MicroReport

func (*DisputeParams) Marshal

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

func (*DisputeParams) MarshalTo

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

func (*DisputeParams) MarshalToSizedBuffer

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

func (*DisputeParams) ProtoMessage

func (*DisputeParams) ProtoMessage()

func (*DisputeParams) Reset

func (m *DisputeParams) Reset()

func (*DisputeParams) Size

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

func (*DisputeParams) String

func (m *DisputeParams) String() string

func (*DisputeParams) Unmarshal

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

func (*DisputeParams) XXX_DiscardUnknown

func (m *DisputeParams) XXX_DiscardUnknown()

func (*DisputeParams) XXX_Marshal

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

func (*DisputeParams) XXX_Merge

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

func (*DisputeParams) XXX_Size

func (m *DisputeParams) XXX_Size() int

func (*DisputeParams) XXX_Unmarshal

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

type DisputeStatus

type DisputeStatus int32

DisputeStatus defines the status of a dispute.

const (
	// PREVOTE defines a dispute that hasn't started voting (ie in funding).
	Prevote DisputeStatus = 0
	// VOTING defines a dispute that has been funded and is in voting.
	Voting DisputeStatus = 1
	// RESOLVED defines a dispute that has completed voting and reached quroum
	Resolved DisputeStatus = 2
	// UNRESOLVED defines a dispute that has completed voting and but hasn't reached quroum
	Unresolved DisputeStatus = 3
	// FAILED defines a dispute that failed to pay the dispute fee to start vote.
	Failed DisputeStatus = 4
)

func (DisputeStatus) EnumDescriptor

func (DisputeStatus) EnumDescriptor() ([]byte, []int)

func (DisputeStatus) String

func (x DisputeStatus) String() string

type Disputes

type Disputes struct {
	DisputeId uint64   `protobuf:"varint,1,opt,name=disputeId,proto3" json:"disputeId,omitempty"`
	Metadata  *Dispute `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

func (*Disputes) Descriptor

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

func (*Disputes) GetDisputeId

func (m *Disputes) GetDisputeId() uint64

func (*Disputes) GetMetadata

func (m *Disputes) GetMetadata() *Dispute

func (*Disputes) Marshal

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

func (*Disputes) MarshalTo

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

func (*Disputes) MarshalToSizedBuffer

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

func (*Disputes) ProtoMessage

func (*Disputes) ProtoMessage()

func (*Disputes) Reset

func (m *Disputes) Reset()

func (*Disputes) Size

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

func (*Disputes) String

func (m *Disputes) String() string

func (*Disputes) Unmarshal

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

func (*Disputes) XXX_DiscardUnknown

func (m *Disputes) XXX_DiscardUnknown()

func (*Disputes) XXX_Marshal

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

func (*Disputes) XXX_Merge

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

func (*Disputes) XXX_Size

func (m *Disputes) XXX_Size() int

func (*Disputes) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

GenesisState defines the dispute module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func GetGenesisStateFromAppState

func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *GenesisState

func (*GenesisState) Descriptor

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

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 GroupTally

type GroupTally struct {
	VoteCount       *VoteCounts `protobuf:"bytes,1,opt,name=voteCount,proto3" json:"voteCount,omitempty"`
	TotalPowerVoted uint64      `protobuf:"varint,2,opt,name=totalPowerVoted,proto3" json:"totalPowerVoted,omitempty"`
	TotalGroupPower uint64      `protobuf:"varint,3,opt,name=totalGroupPower,proto3" json:"totalGroupPower,omitempty"`
}

func (*GroupTally) Descriptor

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

func (*GroupTally) GetTotalGroupPower

func (m *GroupTally) GetTotalGroupPower() uint64

func (*GroupTally) GetTotalPowerVoted

func (m *GroupTally) GetTotalPowerVoted() uint64

func (*GroupTally) GetVoteCount

func (m *GroupTally) GetVoteCount() *VoteCounts

func (*GroupTally) Marshal

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

func (*GroupTally) MarshalTo

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

func (*GroupTally) MarshalToSizedBuffer

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

func (*GroupTally) ProtoMessage

func (*GroupTally) ProtoMessage()

func (*GroupTally) Reset

func (m *GroupTally) Reset()

func (*GroupTally) Size

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

func (*GroupTally) String

func (m *GroupTally) String() string

func (*GroupTally) Unmarshal

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

func (*GroupTally) XXX_DiscardUnknown

func (m *GroupTally) XXX_DiscardUnknown()

func (*GroupTally) XXX_Marshal

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

func (*GroupTally) XXX_Merge

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

func (*GroupTally) XXX_Size

func (m *GroupTally) XXX_Size() int

func (*GroupTally) XXX_Unmarshal

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

type MsgAddEvidence

type MsgAddEvidence struct {
	CallerAddress string               `protobuf:"bytes,1,opt,name=caller_address,json=callerAddress,proto3" json:"caller_address,omitempty"`
	DisputeId     uint64               `protobuf:"varint,2,opt,name=dispute_id,json=disputeId,proto3" json:"dispute_id,omitempty"`
	Reports       []*types.MicroReport `protobuf:"bytes,3,rep,name=reports,proto3" json:"reports,omitempty"`
}

func (*MsgAddEvidence) Descriptor

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

func (*MsgAddEvidence) GetCallerAddress

func (m *MsgAddEvidence) GetCallerAddress() string

func (*MsgAddEvidence) GetDisputeId

func (m *MsgAddEvidence) GetDisputeId() uint64

func (*MsgAddEvidence) GetReports

func (m *MsgAddEvidence) GetReports() []*types.MicroReport

func (*MsgAddEvidence) Marshal

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

func (*MsgAddEvidence) MarshalTo

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

func (*MsgAddEvidence) MarshalToSizedBuffer

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

func (*MsgAddEvidence) ProtoMessage

func (*MsgAddEvidence) ProtoMessage()

func (*MsgAddEvidence) Reset

func (m *MsgAddEvidence) Reset()

func (*MsgAddEvidence) Size

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

func (*MsgAddEvidence) String

func (m *MsgAddEvidence) String() string

func (*MsgAddEvidence) Unmarshal

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

func (*MsgAddEvidence) XXX_DiscardUnknown

func (m *MsgAddEvidence) XXX_DiscardUnknown()

func (*MsgAddEvidence) XXX_Marshal

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

func (*MsgAddEvidence) XXX_Merge

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

func (*MsgAddEvidence) XXX_Size

func (m *MsgAddEvidence) XXX_Size() int

func (*MsgAddEvidence) XXX_Unmarshal

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

type MsgAddEvidenceResponse

type MsgAddEvidenceResponse struct {
}

func (*MsgAddEvidenceResponse) Descriptor

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

func (*MsgAddEvidenceResponse) Marshal

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

func (*MsgAddEvidenceResponse) MarshalTo

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

func (*MsgAddEvidenceResponse) MarshalToSizedBuffer

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

func (*MsgAddEvidenceResponse) ProtoMessage

func (*MsgAddEvidenceResponse) ProtoMessage()

func (*MsgAddEvidenceResponse) Reset

func (m *MsgAddEvidenceResponse) Reset()

func (*MsgAddEvidenceResponse) Size

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

func (*MsgAddEvidenceResponse) String

func (m *MsgAddEvidenceResponse) String() string

func (*MsgAddEvidenceResponse) Unmarshal

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

func (*MsgAddEvidenceResponse) XXX_DiscardUnknown

func (m *MsgAddEvidenceResponse) XXX_DiscardUnknown()

func (*MsgAddEvidenceResponse) XXX_Marshal

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

func (*MsgAddEvidenceResponse) XXX_Merge

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

func (*MsgAddEvidenceResponse) XXX_Size

func (m *MsgAddEvidenceResponse) XXX_Size() int

func (*MsgAddEvidenceResponse) XXX_Unmarshal

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

type MsgAddFeeToDispute

type MsgAddFeeToDispute struct {
	Creator     string      `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	DisputeId   uint64      `protobuf:"varint,2,opt,name=dispute_id,json=disputeId,proto3" json:"dispute_id,omitempty"`
	Amount      types1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
	PayFromBond bool        `protobuf:"varint,4,opt,name=pay_from_bond,json=payFromBond,proto3" json:"pay_from_bond,omitempty"`
}

func NewMsgAddFeeToDispute

func NewMsgAddFeeToDispute(creator string, disputeId uint64, amount sdk.Coin, payFromBond bool) *MsgAddFeeToDispute

func (*MsgAddFeeToDispute) Descriptor

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

func (*MsgAddFeeToDispute) GetAmount

func (m *MsgAddFeeToDispute) GetAmount() types1.Coin

func (*MsgAddFeeToDispute) GetCreator

func (m *MsgAddFeeToDispute) GetCreator() string

func (*MsgAddFeeToDispute) GetDisputeId

func (m *MsgAddFeeToDispute) GetDisputeId() uint64

func (*MsgAddFeeToDispute) GetPayFromBond

func (m *MsgAddFeeToDispute) GetPayFromBond() bool

func (*MsgAddFeeToDispute) GetSignBytes

func (msg *MsgAddFeeToDispute) GetSignBytes() []byte

func (*MsgAddFeeToDispute) GetSigners

func (msg *MsgAddFeeToDispute) GetSigners() []sdk.AccAddress

func (*MsgAddFeeToDispute) Marshal

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

func (*MsgAddFeeToDispute) MarshalTo

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

func (*MsgAddFeeToDispute) MarshalToSizedBuffer

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

func (*MsgAddFeeToDispute) ProtoMessage

func (*MsgAddFeeToDispute) ProtoMessage()

func (*MsgAddFeeToDispute) Reset

func (m *MsgAddFeeToDispute) Reset()

func (*MsgAddFeeToDispute) Route

func (msg *MsgAddFeeToDispute) Route() string

func (*MsgAddFeeToDispute) Size

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

func (*MsgAddFeeToDispute) String

func (m *MsgAddFeeToDispute) String() string

func (*MsgAddFeeToDispute) Type

func (msg *MsgAddFeeToDispute) Type() string

func (*MsgAddFeeToDispute) Unmarshal

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

func (*MsgAddFeeToDispute) ValidateBasic

func (msg *MsgAddFeeToDispute) ValidateBasic() error

func (*MsgAddFeeToDispute) XXX_DiscardUnknown

func (m *MsgAddFeeToDispute) XXX_DiscardUnknown()

func (*MsgAddFeeToDispute) XXX_Marshal

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

func (*MsgAddFeeToDispute) XXX_Merge

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

func (*MsgAddFeeToDispute) XXX_Size

func (m *MsgAddFeeToDispute) XXX_Size() int

func (*MsgAddFeeToDispute) XXX_Unmarshal

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

type MsgAddFeeToDisputeResponse

type MsgAddFeeToDisputeResponse struct {
}

func (*MsgAddFeeToDisputeResponse) Descriptor

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

func (*MsgAddFeeToDisputeResponse) Marshal

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

func (*MsgAddFeeToDisputeResponse) MarshalTo

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

func (*MsgAddFeeToDisputeResponse) MarshalToSizedBuffer

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

func (*MsgAddFeeToDisputeResponse) ProtoMessage

func (*MsgAddFeeToDisputeResponse) ProtoMessage()

func (*MsgAddFeeToDisputeResponse) Reset

func (m *MsgAddFeeToDisputeResponse) Reset()

func (*MsgAddFeeToDisputeResponse) Size

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

func (*MsgAddFeeToDisputeResponse) String

func (m *MsgAddFeeToDisputeResponse) String() string

func (*MsgAddFeeToDisputeResponse) Unmarshal

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

func (*MsgAddFeeToDisputeResponse) XXX_DiscardUnknown

func (m *MsgAddFeeToDisputeResponse) XXX_DiscardUnknown()

func (*MsgAddFeeToDisputeResponse) XXX_Marshal

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

func (*MsgAddFeeToDisputeResponse) XXX_Merge

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

func (*MsgAddFeeToDisputeResponse) XXX_Size

func (m *MsgAddFeeToDisputeResponse) XXX_Size() int

func (*MsgAddFeeToDisputeResponse) XXX_Unmarshal

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

type MsgClaimReward

type MsgClaimReward struct {
	CallerAddress string `protobuf:"bytes,1,opt,name=caller_address,json=callerAddress,proto3" json:"caller_address,omitempty"`
	DisputeId     uint64 `protobuf:"varint,2,opt,name=dispute_id,json=disputeId,proto3" json:"dispute_id,omitempty"`
}

func (*MsgClaimReward) Descriptor

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

func (*MsgClaimReward) GetCallerAddress

func (m *MsgClaimReward) GetCallerAddress() string

func (*MsgClaimReward) GetDisputeId

func (m *MsgClaimReward) GetDisputeId() uint64

func (*MsgClaimReward) Marshal

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

func (*MsgClaimReward) MarshalTo

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

func (*MsgClaimReward) MarshalToSizedBuffer

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

func (*MsgClaimReward) ProtoMessage

func (*MsgClaimReward) ProtoMessage()

func (*MsgClaimReward) Reset

func (m *MsgClaimReward) Reset()

func (*MsgClaimReward) Size

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

func (*MsgClaimReward) String

func (m *MsgClaimReward) String() string

func (*MsgClaimReward) Unmarshal

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

func (*MsgClaimReward) XXX_DiscardUnknown

func (m *MsgClaimReward) XXX_DiscardUnknown()

func (*MsgClaimReward) XXX_Marshal

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

func (*MsgClaimReward) XXX_Merge

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

func (*MsgClaimReward) XXX_Size

func (m *MsgClaimReward) XXX_Size() int

func (*MsgClaimReward) XXX_Unmarshal

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

type MsgClaimRewardResponse

type MsgClaimRewardResponse struct {
}

func (*MsgClaimRewardResponse) Descriptor

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

func (*MsgClaimRewardResponse) Marshal

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

func (*MsgClaimRewardResponse) MarshalTo

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

func (*MsgClaimRewardResponse) MarshalToSizedBuffer

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

func (*MsgClaimRewardResponse) ProtoMessage

func (*MsgClaimRewardResponse) ProtoMessage()

func (*MsgClaimRewardResponse) Reset

func (m *MsgClaimRewardResponse) Reset()

func (*MsgClaimRewardResponse) Size

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

func (*MsgClaimRewardResponse) String

func (m *MsgClaimRewardResponse) String() string

func (*MsgClaimRewardResponse) Unmarshal

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

func (*MsgClaimRewardResponse) XXX_DiscardUnknown

func (m *MsgClaimRewardResponse) XXX_DiscardUnknown()

func (*MsgClaimRewardResponse) XXX_Marshal

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

func (*MsgClaimRewardResponse) XXX_Merge

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

func (*MsgClaimRewardResponse) XXX_Size

func (m *MsgClaimRewardResponse) XXX_Size() int

func (*MsgClaimRewardResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	ProposeDispute(ctx context.Context, in *MsgProposeDispute, opts ...grpc.CallOption) (*MsgProposeDisputeResponse, error)
	AddFeeToDispute(ctx context.Context, in *MsgAddFeeToDispute, opts ...grpc.CallOption) (*MsgAddFeeToDisputeResponse, error)
	Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error)
	UpdateTeam(ctx context.Context, in *MsgUpdateTeam, opts ...grpc.CallOption) (*MsgUpdateTeamResponse, error)
	WithdrawFeeRefund(ctx context.Context, in *MsgWithdrawFeeRefund, opts ...grpc.CallOption) (*MsgWithdrawFeeRefundResponse, error)
	AddEvidence(ctx context.Context, in *MsgAddEvidence, opts ...grpc.CallOption) (*MsgAddEvidenceResponse, error)
	ClaimReward(ctx context.Context, in *MsgClaimReward, opts ...grpc.CallOption) (*MsgClaimRewardResponse, 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 MsgProposeDispute

type MsgProposeDispute struct {
	Creator         string             `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Report          *types.MicroReport `protobuf:"bytes,2,opt,name=report,proto3" json:"report,omitempty"`
	DisputeCategory DisputeCategory    `` /* 142-byte string literal not displayed */
	Fee             types1.Coin        `protobuf:"bytes,4,opt,name=fee,proto3" json:"fee"`
	PayFromBond     bool               `protobuf:"varint,5,opt,name=pay_from_bond,json=payFromBond,proto3" json:"pay_from_bond,omitempty"`
}

func NewMsgProposeDispute

func NewMsgProposeDispute(creator string, report *oracletypes.MicroReport, disputeCategory DisputeCategory, fee sdk.Coin, payFromBond bool) *MsgProposeDispute

func (*MsgProposeDispute) Descriptor

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

func (*MsgProposeDispute) GetCreator

func (m *MsgProposeDispute) GetCreator() string

func (*MsgProposeDispute) GetDisputeCategory

func (m *MsgProposeDispute) GetDisputeCategory() DisputeCategory

func (*MsgProposeDispute) GetFee

func (m *MsgProposeDispute) GetFee() types1.Coin

func (*MsgProposeDispute) GetPayFromBond

func (m *MsgProposeDispute) GetPayFromBond() bool

func (*MsgProposeDispute) GetReport

func (m *MsgProposeDispute) GetReport() *types.MicroReport

func (*MsgProposeDispute) GetSignBytes

func (msg *MsgProposeDispute) GetSignBytes() []byte

func (*MsgProposeDispute) GetSigners

func (msg *MsgProposeDispute) GetSigners() []sdk.AccAddress

func (*MsgProposeDispute) Marshal

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

func (*MsgProposeDispute) MarshalTo

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

func (*MsgProposeDispute) MarshalToSizedBuffer

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

func (*MsgProposeDispute) ProtoMessage

func (*MsgProposeDispute) ProtoMessage()

func (*MsgProposeDispute) Reset

func (m *MsgProposeDispute) Reset()

func (*MsgProposeDispute) Route

func (msg *MsgProposeDispute) Route() string

func (*MsgProposeDispute) Size

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

func (*MsgProposeDispute) String

func (m *MsgProposeDispute) String() string

func (*MsgProposeDispute) Type

func (msg *MsgProposeDispute) Type() string

func (*MsgProposeDispute) Unmarshal

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

func (*MsgProposeDispute) ValidateBasic

func (msg *MsgProposeDispute) ValidateBasic() error

func (*MsgProposeDispute) XXX_DiscardUnknown

func (m *MsgProposeDispute) XXX_DiscardUnknown()

func (*MsgProposeDispute) XXX_Marshal

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

func (*MsgProposeDispute) XXX_Merge

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

func (*MsgProposeDispute) XXX_Size

func (m *MsgProposeDispute) XXX_Size() int

func (*MsgProposeDispute) XXX_Unmarshal

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

type MsgProposeDisputeResponse

type MsgProposeDisputeResponse struct {
}

func (*MsgProposeDisputeResponse) Descriptor

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

func (*MsgProposeDisputeResponse) Marshal

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

func (*MsgProposeDisputeResponse) MarshalTo

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

func (*MsgProposeDisputeResponse) MarshalToSizedBuffer

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

func (*MsgProposeDisputeResponse) ProtoMessage

func (*MsgProposeDisputeResponse) ProtoMessage()

func (*MsgProposeDisputeResponse) Reset

func (m *MsgProposeDisputeResponse) Reset()

func (*MsgProposeDisputeResponse) Size

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

func (*MsgProposeDisputeResponse) String

func (m *MsgProposeDisputeResponse) String() string

func (*MsgProposeDisputeResponse) Unmarshal

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

func (*MsgProposeDisputeResponse) XXX_DiscardUnknown

func (m *MsgProposeDisputeResponse) XXX_DiscardUnknown()

func (*MsgProposeDisputeResponse) XXX_Marshal

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

func (*MsgProposeDisputeResponse) XXX_Merge

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

func (*MsgProposeDisputeResponse) XXX_Size

func (m *MsgProposeDisputeResponse) XXX_Size() int

func (*MsgProposeDisputeResponse) XXX_Unmarshal

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

type MsgUpdateTeam

type MsgUpdateTeam struct {
	CurrentTeamAddress string `protobuf:"bytes,1,opt,name=current_team_address,json=currentTeamAddress,proto3" json:"current_team_address,omitempty"`
	NewTeamAddress     string `protobuf:"bytes,2,opt,name=new_team_address,json=newTeamAddress,proto3" json:"new_team_address,omitempty"`
}

func (*MsgUpdateTeam) Descriptor

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

func (*MsgUpdateTeam) GetCurrentTeamAddress

func (m *MsgUpdateTeam) GetCurrentTeamAddress() string

func (*MsgUpdateTeam) GetNewTeamAddress

func (m *MsgUpdateTeam) GetNewTeamAddress() string

func (*MsgUpdateTeam) Marshal

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

func (*MsgUpdateTeam) MarshalTo

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

func (*MsgUpdateTeam) MarshalToSizedBuffer

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

func (*MsgUpdateTeam) ProtoMessage

func (*MsgUpdateTeam) ProtoMessage()

func (*MsgUpdateTeam) Reset

func (m *MsgUpdateTeam) Reset()

func (*MsgUpdateTeam) Size

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

func (*MsgUpdateTeam) String

func (m *MsgUpdateTeam) String() string

func (*MsgUpdateTeam) Unmarshal

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

func (*MsgUpdateTeam) XXX_DiscardUnknown

func (m *MsgUpdateTeam) XXX_DiscardUnknown()

func (*MsgUpdateTeam) XXX_Marshal

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

func (*MsgUpdateTeam) XXX_Merge

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

func (*MsgUpdateTeam) XXX_Size

func (m *MsgUpdateTeam) XXX_Size() int

func (*MsgUpdateTeam) XXX_Unmarshal

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

type MsgUpdateTeamResponse

type MsgUpdateTeamResponse struct {
}

func (*MsgUpdateTeamResponse) Descriptor

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

func (*MsgUpdateTeamResponse) Marshal

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

func (*MsgUpdateTeamResponse) MarshalTo

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

func (*MsgUpdateTeamResponse) MarshalToSizedBuffer

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

func (*MsgUpdateTeamResponse) ProtoMessage

func (*MsgUpdateTeamResponse) ProtoMessage()

func (*MsgUpdateTeamResponse) Reset

func (m *MsgUpdateTeamResponse) Reset()

func (*MsgUpdateTeamResponse) Size

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

func (*MsgUpdateTeamResponse) String

func (m *MsgUpdateTeamResponse) String() string

func (*MsgUpdateTeamResponse) Unmarshal

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

func (*MsgUpdateTeamResponse) XXX_DiscardUnknown

func (m *MsgUpdateTeamResponse) XXX_DiscardUnknown()

func (*MsgUpdateTeamResponse) XXX_Marshal

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

func (*MsgUpdateTeamResponse) XXX_Merge

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

func (*MsgUpdateTeamResponse) XXX_Size

func (m *MsgUpdateTeamResponse) XXX_Size() int

func (*MsgUpdateTeamResponse) XXX_Unmarshal

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

type MsgVote

type MsgVote struct {
	Voter string   `protobuf:"bytes,1,opt,name=voter,proto3" json:"voter,omitempty"`
	Id    uint64   `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	Vote  VoteEnum `protobuf:"varint,3,opt,name=vote,proto3,enum=layer.dispute.VoteEnum" json:"vote,omitempty"`
}

func NewMsgVote

func NewMsgVote(voter string, id uint64, vote VoteEnum) *MsgVote

func (*MsgVote) Descriptor

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

func (*MsgVote) GetId

func (m *MsgVote) GetId() uint64

func (*MsgVote) GetSignBytes

func (msg *MsgVote) GetSignBytes() []byte

func (*MsgVote) GetSigners

func (msg *MsgVote) GetSigners() []sdk.AccAddress

func (*MsgVote) GetVote

func (m *MsgVote) GetVote() VoteEnum

func (*MsgVote) GetVoter

func (m *MsgVote) GetVoter() string

func (*MsgVote) Marshal

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

func (*MsgVote) MarshalTo

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

func (*MsgVote) MarshalToSizedBuffer

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

func (*MsgVote) ProtoMessage

func (*MsgVote) ProtoMessage()

func (*MsgVote) Reset

func (m *MsgVote) Reset()

func (*MsgVote) Route

func (msg *MsgVote) Route() string

func (*MsgVote) Size

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

func (*MsgVote) String

func (m *MsgVote) String() string

func (*MsgVote) Type

func (msg *MsgVote) Type() string

func (*MsgVote) Unmarshal

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

func (*MsgVote) ValidateBasic

func (msg *MsgVote) ValidateBasic() error

func (*MsgVote) XXX_DiscardUnknown

func (m *MsgVote) XXX_DiscardUnknown()

func (*MsgVote) XXX_Marshal

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

func (*MsgVote) XXX_Merge

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

func (*MsgVote) XXX_Size

func (m *MsgVote) XXX_Size() int

func (*MsgVote) XXX_Unmarshal

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

type MsgVoteResponse

type MsgVoteResponse struct {
}

func (*MsgVoteResponse) Descriptor

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

func (*MsgVoteResponse) Marshal

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

func (*MsgVoteResponse) MarshalTo

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

func (*MsgVoteResponse) MarshalToSizedBuffer

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

func (*MsgVoteResponse) ProtoMessage

func (*MsgVoteResponse) ProtoMessage()

func (*MsgVoteResponse) Reset

func (m *MsgVoteResponse) Reset()

func (*MsgVoteResponse) Size

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

func (*MsgVoteResponse) String

func (m *MsgVoteResponse) String() string

func (*MsgVoteResponse) Unmarshal

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

func (*MsgVoteResponse) XXX_DiscardUnknown

func (m *MsgVoteResponse) XXX_DiscardUnknown()

func (*MsgVoteResponse) XXX_Marshal

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

func (*MsgVoteResponse) XXX_Merge

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

func (*MsgVoteResponse) XXX_Size

func (m *MsgVoteResponse) XXX_Size() int

func (*MsgVoteResponse) XXX_Unmarshal

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

type MsgWithdrawFeeRefund

type MsgWithdrawFeeRefund struct {
	CallerAddress string `protobuf:"bytes,1,opt,name=caller_address,json=callerAddress,proto3" json:"caller_address,omitempty"`
	PayerAddress  string `protobuf:"bytes,2,opt,name=payer_address,json=payerAddress,proto3" json:"payer_address,omitempty"`
	Id            uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
}

func (*MsgWithdrawFeeRefund) Descriptor

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

func (*MsgWithdrawFeeRefund) GetCallerAddress

func (m *MsgWithdrawFeeRefund) GetCallerAddress() string

func (*MsgWithdrawFeeRefund) GetId

func (m *MsgWithdrawFeeRefund) GetId() uint64

func (*MsgWithdrawFeeRefund) GetPayerAddress

func (m *MsgWithdrawFeeRefund) GetPayerAddress() string

func (*MsgWithdrawFeeRefund) Marshal

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

func (*MsgWithdrawFeeRefund) MarshalTo

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

func (*MsgWithdrawFeeRefund) MarshalToSizedBuffer

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

func (*MsgWithdrawFeeRefund) ProtoMessage

func (*MsgWithdrawFeeRefund) ProtoMessage()

func (*MsgWithdrawFeeRefund) Reset

func (m *MsgWithdrawFeeRefund) Reset()

func (*MsgWithdrawFeeRefund) Size

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

func (*MsgWithdrawFeeRefund) String

func (m *MsgWithdrawFeeRefund) String() string

func (*MsgWithdrawFeeRefund) Unmarshal

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

func (*MsgWithdrawFeeRefund) XXX_DiscardUnknown

func (m *MsgWithdrawFeeRefund) XXX_DiscardUnknown()

func (*MsgWithdrawFeeRefund) XXX_Marshal

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

func (*MsgWithdrawFeeRefund) XXX_Merge

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

func (*MsgWithdrawFeeRefund) XXX_Size

func (m *MsgWithdrawFeeRefund) XXX_Size() int

func (*MsgWithdrawFeeRefund) XXX_Unmarshal

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

type MsgWithdrawFeeRefundResponse

type MsgWithdrawFeeRefundResponse struct {
}

func (*MsgWithdrawFeeRefundResponse) Descriptor

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

func (*MsgWithdrawFeeRefundResponse) Marshal

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

func (*MsgWithdrawFeeRefundResponse) MarshalTo

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

func (*MsgWithdrawFeeRefundResponse) MarshalToSizedBuffer

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

func (*MsgWithdrawFeeRefundResponse) ProtoMessage

func (*MsgWithdrawFeeRefundResponse) ProtoMessage()

func (*MsgWithdrawFeeRefundResponse) Reset

func (m *MsgWithdrawFeeRefundResponse) Reset()

func (*MsgWithdrawFeeRefundResponse) Size

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

func (*MsgWithdrawFeeRefundResponse) String

func (*MsgWithdrawFeeRefundResponse) Unmarshal

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

func (*MsgWithdrawFeeRefundResponse) XXX_DiscardUnknown

func (m *MsgWithdrawFeeRefundResponse) XXX_DiscardUnknown()

func (*MsgWithdrawFeeRefundResponse) XXX_Marshal

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

func (*MsgWithdrawFeeRefundResponse) XXX_Merge

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

func (*MsgWithdrawFeeRefundResponse) XXX_Size

func (m *MsgWithdrawFeeRefundResponse) XXX_Size() int

func (*MsgWithdrawFeeRefundResponse) XXX_Unmarshal

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

type OpenDisputes

type OpenDisputes struct {
	Ids []uint64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
}

func (*OpenDisputes) Descriptor

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

func (*OpenDisputes) GetIds

func (m *OpenDisputes) GetIds() []uint64

func (*OpenDisputes) Marshal

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

func (*OpenDisputes) MarshalTo

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

func (*OpenDisputes) MarshalToSizedBuffer

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

func (*OpenDisputes) ProtoMessage

func (*OpenDisputes) ProtoMessage()

func (*OpenDisputes) Reset

func (m *OpenDisputes) Reset()

func (*OpenDisputes) Size

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

func (*OpenDisputes) String

func (m *OpenDisputes) String() string

func (*OpenDisputes) Unmarshal

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

func (*OpenDisputes) XXX_DiscardUnknown

func (m *OpenDisputes) XXX_DiscardUnknown()

func (*OpenDisputes) XXX_Marshal

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

func (*OpenDisputes) XXX_Merge

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

func (*OpenDisputes) XXX_Size

func (m *OpenDisputes) XXX_Size() int

func (*OpenDisputes) XXX_Unmarshal

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

type OracleKeeper

type OracleKeeper interface {
	GetTotalTips(ctx context.Context) (math.Int, error)
	GetUserTips(ctx context.Context, tipper sdk.AccAddress) (math.Int, error)
	GetTotalTipsAtBlock(ctx context.Context, blockNumber uint64) (math.Int, error)
	GetTipsAtBlockForTipper(ctx context.Context, blockNumber uint64, tipper sdk.AccAddress) (math.Int, error)
	FlagAggregateReport(ctx context.Context, report oracletypes.MicroReport) error
}

type Params

type Params struct {
	TeamAddress []byte `protobuf:"bytes,1,opt,name=team_address,json=teamAddress,proto3" json:"team_address,omitempty"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(
	team sdk.AccAddress,
) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetTeamAddress

func (m *Params) GetTeamAddress() []byte

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 PayerInfo

type PayerInfo struct {
	// amount paid
	Amount cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"`
	// source of funds either from bond or free floating funds
	FromBond bool `protobuf:"varint,2,opt,name=from_bond,json=fromBond,proto3" json:"from_bond,omitempty"`
}

PayerInfo defines the payer info of a dispute fee payer's info that was involved in paying the dispute fee in order to start the dispute

func (*PayerInfo) Descriptor

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

func (*PayerInfo) GetFromBond

func (m *PayerInfo) GetFromBond() bool

func (*PayerInfo) Marshal

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

func (*PayerInfo) MarshalTo

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

func (*PayerInfo) MarshalToSizedBuffer

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

func (*PayerInfo) ProtoMessage

func (*PayerInfo) ProtoMessage()

func (*PayerInfo) Reset

func (m *PayerInfo) Reset()

func (*PayerInfo) Size

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

func (*PayerInfo) String

func (m *PayerInfo) String() string

func (*PayerInfo) Unmarshal

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

func (*PayerInfo) XXX_DiscardUnknown

func (m *PayerInfo) XXX_DiscardUnknown()

func (*PayerInfo) XXX_Marshal

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

func (*PayerInfo) XXX_Merge

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

func (*PayerInfo) XXX_Size

func (m *PayerInfo) XXX_Size() int

func (*PayerInfo) XXX_Unmarshal

func (m *PayerInfo) 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)
	// Reporters queries all the staked reporters.
	Disputes(ctx context.Context, in *QueryDisputesRequest, opts ...grpc.CallOption) (*QueryDisputesResponse, error)
	// OpenDisputes queries all the open disputes.
	OpenDisputes(ctx context.Context, in *QueryOpenDisputesRequest, opts ...grpc.CallOption) (*QueryOpenDisputesResponse, error)
	// team vote queries the team vote for a dispute.
	TeamVote(ctx context.Context, in *QueryTeamVoteRequest, opts ...grpc.CallOption) (*QueryTeamVoteResponse, error)
	// team address queries the team address.
	TeamAddress(ctx context.Context, in *QueryTeamAddressRequest, opts ...grpc.CallOption) (*QueryTeamAddressResponse, error)
	// Tally queries the vote count of a dispute
	Tally(ctx context.Context, in *QueryDisputesTallyRequest, opts ...grpc.CallOption) (*QueryDisputesTallyResponse, 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 QueryDisputesRequest

type QueryDisputesRequest struct {
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryDisputesRequest) Descriptor

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

func (*QueryDisputesRequest) GetPagination

func (m *QueryDisputesRequest) GetPagination() *query.PageRequest

func (*QueryDisputesRequest) Marshal

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

func (*QueryDisputesRequest) MarshalTo

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

func (*QueryDisputesRequest) MarshalToSizedBuffer

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

func (*QueryDisputesRequest) ProtoMessage

func (*QueryDisputesRequest) ProtoMessage()

func (*QueryDisputesRequest) Reset

func (m *QueryDisputesRequest) Reset()

func (*QueryDisputesRequest) Size

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

func (*QueryDisputesRequest) String

func (m *QueryDisputesRequest) String() string

func (*QueryDisputesRequest) Unmarshal

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

func (*QueryDisputesRequest) XXX_DiscardUnknown

func (m *QueryDisputesRequest) XXX_DiscardUnknown()

func (*QueryDisputesRequest) XXX_Marshal

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

func (*QueryDisputesRequest) XXX_Merge

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

func (*QueryDisputesRequest) XXX_Size

func (m *QueryDisputesRequest) XXX_Size() int

func (*QueryDisputesRequest) XXX_Unmarshal

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

type QueryDisputesResponse

type QueryDisputesResponse struct {
	// pagination defines an optional pagination for the request.
	Pagination *query.PageResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Disputes   []*Disputes         `protobuf:"bytes,2,rep,name=disputes,proto3" json:"disputes,omitempty"`
}

func (*QueryDisputesResponse) Descriptor

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

func (*QueryDisputesResponse) GetDisputes

func (m *QueryDisputesResponse) GetDisputes() []*Disputes

func (*QueryDisputesResponse) GetPagination

func (m *QueryDisputesResponse) GetPagination() *query.PageResponse

func (*QueryDisputesResponse) Marshal

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

func (*QueryDisputesResponse) MarshalTo

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

func (*QueryDisputesResponse) MarshalToSizedBuffer

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

func (*QueryDisputesResponse) ProtoMessage

func (*QueryDisputesResponse) ProtoMessage()

func (*QueryDisputesResponse) Reset

func (m *QueryDisputesResponse) Reset()

func (*QueryDisputesResponse) Size

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

func (*QueryDisputesResponse) String

func (m *QueryDisputesResponse) String() string

func (*QueryDisputesResponse) Unmarshal

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

func (*QueryDisputesResponse) XXX_DiscardUnknown

func (m *QueryDisputesResponse) XXX_DiscardUnknown()

func (*QueryDisputesResponse) XXX_Marshal

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

func (*QueryDisputesResponse) XXX_Merge

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

func (*QueryDisputesResponse) XXX_Size

func (m *QueryDisputesResponse) XXX_Size() int

func (*QueryDisputesResponse) XXX_Unmarshal

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

type QueryDisputesTallyRequest

type QueryDisputesTallyRequest struct {
	DisputeId uint64 `protobuf:"varint,1,opt,name=dispute_id,json=disputeId,proto3" json:"dispute_id,omitempty"`
}

Request the current vote count for a dispute

func (*QueryDisputesTallyRequest) Descriptor

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

func (*QueryDisputesTallyRequest) GetDisputeId

func (m *QueryDisputesTallyRequest) GetDisputeId() uint64

func (*QueryDisputesTallyRequest) Marshal

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

func (*QueryDisputesTallyRequest) MarshalTo

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

func (*QueryDisputesTallyRequest) MarshalToSizedBuffer

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

func (*QueryDisputesTallyRequest) ProtoMessage

func (*QueryDisputesTallyRequest) ProtoMessage()

func (*QueryDisputesTallyRequest) Reset

func (m *QueryDisputesTallyRequest) Reset()

func (*QueryDisputesTallyRequest) Size

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

func (*QueryDisputesTallyRequest) String

func (m *QueryDisputesTallyRequest) String() string

func (*QueryDisputesTallyRequest) Unmarshal

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

func (*QueryDisputesTallyRequest) XXX_DiscardUnknown

func (m *QueryDisputesTallyRequest) XXX_DiscardUnknown()

func (*QueryDisputesTallyRequest) XXX_Marshal

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

func (*QueryDisputesTallyRequest) XXX_Merge

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

func (*QueryDisputesTallyRequest) XXX_Size

func (m *QueryDisputesTallyRequest) XXX_Size() int

func (*QueryDisputesTallyRequest) XXX_Unmarshal

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

type QueryDisputesTallyResponse

type QueryDisputesTallyResponse struct {
	Users        *GroupTally `protobuf:"bytes,1,opt,name=users,proto3" json:"users,omitempty"`
	Reporters    *GroupTally `protobuf:"bytes,2,opt,name=reporters,proto3" json:"reporters,omitempty"`
	Tokenholders *GroupTally `protobuf:"bytes,3,opt,name=tokenholders,proto3" json:"tokenholders,omitempty"`
	Team         *VoteCounts `protobuf:"bytes,4,opt,name=team,proto3" json:"team,omitempty"`
}

func (*QueryDisputesTallyResponse) Descriptor

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

func (*QueryDisputesTallyResponse) GetReporters

func (m *QueryDisputesTallyResponse) GetReporters() *GroupTally

func (*QueryDisputesTallyResponse) GetTeam

func (m *QueryDisputesTallyResponse) GetTeam() *VoteCounts

func (*QueryDisputesTallyResponse) GetTokenholders

func (m *QueryDisputesTallyResponse) GetTokenholders() *GroupTally

func (*QueryDisputesTallyResponse) GetUsers

func (m *QueryDisputesTallyResponse) GetUsers() *GroupTally

func (*QueryDisputesTallyResponse) Marshal

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

func (*QueryDisputesTallyResponse) MarshalTo

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

func (*QueryDisputesTallyResponse) MarshalToSizedBuffer

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

func (*QueryDisputesTallyResponse) ProtoMessage

func (*QueryDisputesTallyResponse) ProtoMessage()

func (*QueryDisputesTallyResponse) Reset

func (m *QueryDisputesTallyResponse) Reset()

func (*QueryDisputesTallyResponse) Size

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

func (*QueryDisputesTallyResponse) String

func (m *QueryDisputesTallyResponse) String() string

func (*QueryDisputesTallyResponse) Unmarshal

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

func (*QueryDisputesTallyResponse) XXX_DiscardUnknown

func (m *QueryDisputesTallyResponse) XXX_DiscardUnknown()

func (*QueryDisputesTallyResponse) XXX_Marshal

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

func (*QueryDisputesTallyResponse) XXX_Merge

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

func (*QueryDisputesTallyResponse) XXX_Size

func (m *QueryDisputesTallyResponse) XXX_Size() int

func (*QueryDisputesTallyResponse) XXX_Unmarshal

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

type QueryOpenDisputesRequest

type QueryOpenDisputesRequest struct {
}

func (*QueryOpenDisputesRequest) Descriptor

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

func (*QueryOpenDisputesRequest) Marshal

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

func (*QueryOpenDisputesRequest) MarshalTo

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

func (*QueryOpenDisputesRequest) MarshalToSizedBuffer

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

func (*QueryOpenDisputesRequest) ProtoMessage

func (*QueryOpenDisputesRequest) ProtoMessage()

func (*QueryOpenDisputesRequest) Reset

func (m *QueryOpenDisputesRequest) Reset()

func (*QueryOpenDisputesRequest) Size

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

func (*QueryOpenDisputesRequest) String

func (m *QueryOpenDisputesRequest) String() string

func (*QueryOpenDisputesRequest) Unmarshal

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

func (*QueryOpenDisputesRequest) XXX_DiscardUnknown

func (m *QueryOpenDisputesRequest) XXX_DiscardUnknown()

func (*QueryOpenDisputesRequest) XXX_Marshal

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

func (*QueryOpenDisputesRequest) XXX_Merge

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

func (*QueryOpenDisputesRequest) XXX_Size

func (m *QueryOpenDisputesRequest) XXX_Size() int

func (*QueryOpenDisputesRequest) XXX_Unmarshal

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

type QueryOpenDisputesResponse

type QueryOpenDisputesResponse struct {
	OpenDisputes *OpenDisputes `protobuf:"bytes,1,opt,name=openDisputes,proto3" json:"openDisputes,omitempty"`
}

func (*QueryOpenDisputesResponse) Descriptor

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

func (*QueryOpenDisputesResponse) GetOpenDisputes

func (m *QueryOpenDisputesResponse) GetOpenDisputes() *OpenDisputes

func (*QueryOpenDisputesResponse) Marshal

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

func (*QueryOpenDisputesResponse) MarshalTo

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

func (*QueryOpenDisputesResponse) MarshalToSizedBuffer

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

func (*QueryOpenDisputesResponse) ProtoMessage

func (*QueryOpenDisputesResponse) ProtoMessage()

func (*QueryOpenDisputesResponse) Reset

func (m *QueryOpenDisputesResponse) Reset()

func (*QueryOpenDisputesResponse) Size

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

func (*QueryOpenDisputesResponse) String

func (m *QueryOpenDisputesResponse) String() string

func (*QueryOpenDisputesResponse) Unmarshal

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

func (*QueryOpenDisputesResponse) XXX_DiscardUnknown

func (m *QueryOpenDisputesResponse) XXX_DiscardUnknown()

func (*QueryOpenDisputesResponse) XXX_Marshal

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

func (*QueryOpenDisputesResponse) XXX_Merge

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

func (*QueryOpenDisputesResponse) XXX_Size

func (m *QueryOpenDisputesResponse) XXX_Size() int

func (*QueryOpenDisputesResponse) XXX_Unmarshal

func (m *QueryOpenDisputesResponse) 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 QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Reporters queries all the staked reporters.
	Disputes(context.Context, *QueryDisputesRequest) (*QueryDisputesResponse, error)
	// OpenDisputes queries all the open disputes.
	OpenDisputes(context.Context, *QueryOpenDisputesRequest) (*QueryOpenDisputesResponse, error)
	// team vote queries the team vote for a dispute.
	TeamVote(context.Context, *QueryTeamVoteRequest) (*QueryTeamVoteResponse, error)
	// team address queries the team address.
	TeamAddress(context.Context, *QueryTeamAddressRequest) (*QueryTeamAddressResponse, error)
	// Tally queries the vote count of a dispute
	Tally(context.Context, *QueryDisputesTallyRequest) (*QueryDisputesTallyResponse, error)
}

QueryServer is the server API for Query service.

type QueryTeamAddressRequest

type QueryTeamAddressRequest struct {
}

QueryTeamAddressRequest is request type for the Query/TeamAddress RPC method.

func (*QueryTeamAddressRequest) Descriptor

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

func (*QueryTeamAddressRequest) Marshal

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

func (*QueryTeamAddressRequest) MarshalTo

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

func (*QueryTeamAddressRequest) MarshalToSizedBuffer

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

func (*QueryTeamAddressRequest) ProtoMessage

func (*QueryTeamAddressRequest) ProtoMessage()

func (*QueryTeamAddressRequest) Reset

func (m *QueryTeamAddressRequest) Reset()

func (*QueryTeamAddressRequest) Size

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

func (*QueryTeamAddressRequest) String

func (m *QueryTeamAddressRequest) String() string

func (*QueryTeamAddressRequest) Unmarshal

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

func (*QueryTeamAddressRequest) XXX_DiscardUnknown

func (m *QueryTeamAddressRequest) XXX_DiscardUnknown()

func (*QueryTeamAddressRequest) XXX_Marshal

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

func (*QueryTeamAddressRequest) XXX_Merge

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

func (*QueryTeamAddressRequest) XXX_Size

func (m *QueryTeamAddressRequest) XXX_Size() int

func (*QueryTeamAddressRequest) XXX_Unmarshal

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

type QueryTeamAddressResponse

type QueryTeamAddressResponse struct {
	// teamAddress holds the team address.
	TeamAddress string `protobuf:"bytes,1,opt,name=team_address,json=teamAddress,proto3" json:"team_address,omitempty"`
}

QueryTeamAddressResponse is response type for the Query/TeamAddress RPC method.

func (*QueryTeamAddressResponse) Descriptor

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

func (*QueryTeamAddressResponse) GetTeamAddress

func (m *QueryTeamAddressResponse) GetTeamAddress() string

func (*QueryTeamAddressResponse) Marshal

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

func (*QueryTeamAddressResponse) MarshalTo

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

func (*QueryTeamAddressResponse) MarshalToSizedBuffer

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

func (*QueryTeamAddressResponse) ProtoMessage

func (*QueryTeamAddressResponse) ProtoMessage()

func (*QueryTeamAddressResponse) Reset

func (m *QueryTeamAddressResponse) Reset()

func (*QueryTeamAddressResponse) Size

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

func (*QueryTeamAddressResponse) String

func (m *QueryTeamAddressResponse) String() string

func (*QueryTeamAddressResponse) Unmarshal

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

func (*QueryTeamAddressResponse) XXX_DiscardUnknown

func (m *QueryTeamAddressResponse) XXX_DiscardUnknown()

func (*QueryTeamAddressResponse) XXX_Marshal

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

func (*QueryTeamAddressResponse) XXX_Merge

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

func (*QueryTeamAddressResponse) XXX_Size

func (m *QueryTeamAddressResponse) XXX_Size() int

func (*QueryTeamAddressResponse) XXX_Unmarshal

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

type QueryTeamVoteRequest

type QueryTeamVoteRequest struct {
	// disputeId defines the dispute id.
	DisputeId uint64 `protobuf:"varint,1,opt,name=dispute_id,json=disputeId,proto3" json:"dispute_id,omitempty"`
}

QueryTeamVoteRequest is request type for the Query/TeamVote RPC method.

func (*QueryTeamVoteRequest) Descriptor

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

func (*QueryTeamVoteRequest) GetDisputeId

func (m *QueryTeamVoteRequest) GetDisputeId() uint64

func (*QueryTeamVoteRequest) Marshal

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

func (*QueryTeamVoteRequest) MarshalTo

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

func (*QueryTeamVoteRequest) MarshalToSizedBuffer

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

func (*QueryTeamVoteRequest) ProtoMessage

func (*QueryTeamVoteRequest) ProtoMessage()

func (*QueryTeamVoteRequest) Reset

func (m *QueryTeamVoteRequest) Reset()

func (*QueryTeamVoteRequest) Size

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

func (*QueryTeamVoteRequest) String

func (m *QueryTeamVoteRequest) String() string

func (*QueryTeamVoteRequest) Unmarshal

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

func (*QueryTeamVoteRequest) XXX_DiscardUnknown

func (m *QueryTeamVoteRequest) XXX_DiscardUnknown()

func (*QueryTeamVoteRequest) XXX_Marshal

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

func (*QueryTeamVoteRequest) XXX_Merge

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

func (*QueryTeamVoteRequest) XXX_Size

func (m *QueryTeamVoteRequest) XXX_Size() int

func (*QueryTeamVoteRequest) XXX_Unmarshal

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

type QueryTeamVoteResponse

type QueryTeamVoteResponse struct {
	// teamVote holds the team voter info for a dispute.
	TeamVote Voter `protobuf:"bytes,1,opt,name=team_vote,json=teamVote,proto3" json:"team_vote"`
}

QueryTeamVoteResponse is response type for the Query/TeamVote RPC method.

func (*QueryTeamVoteResponse) Descriptor

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

func (*QueryTeamVoteResponse) GetTeamVote

func (m *QueryTeamVoteResponse) GetTeamVote() Voter

func (*QueryTeamVoteResponse) Marshal

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

func (*QueryTeamVoteResponse) MarshalTo

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

func (*QueryTeamVoteResponse) MarshalToSizedBuffer

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

func (*QueryTeamVoteResponse) ProtoMessage

func (*QueryTeamVoteResponse) ProtoMessage()

func (*QueryTeamVoteResponse) Reset

func (m *QueryTeamVoteResponse) Reset()

func (*QueryTeamVoteResponse) Size

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

func (*QueryTeamVoteResponse) String

func (m *QueryTeamVoteResponse) String() string

func (*QueryTeamVoteResponse) Unmarshal

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

func (*QueryTeamVoteResponse) XXX_DiscardUnknown

func (m *QueryTeamVoteResponse) XXX_DiscardUnknown()

func (*QueryTeamVoteResponse) XXX_Marshal

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

func (*QueryTeamVoteResponse) XXX_Merge

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

func (*QueryTeamVoteResponse) XXX_Size

func (m *QueryTeamVoteResponse) XXX_Size() int

func (*QueryTeamVoteResponse) XXX_Unmarshal

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

type ReporterKeeper

type ReporterKeeper interface {
	EscrowReporterStake(ctx context.Context, reporterAddr sdk.AccAddress, power, height uint64, amt math.Int, hashId []byte) error
	JailReporter(ctx context.Context, reporterAddr sdk.AccAddress, jailDuration uint64) error
	TotalReporterPower(ctx context.Context) (math.Int, error)
	FeefromReporterStake(ctx context.Context, reporterAddr sdk.AccAddress, amt math.Int, hashId []byte) error
	ReturnSlashedTokens(ctx context.Context, amt math.Int, hashId []byte) error
	AddAmountToStake(ctx context.Context, acc sdk.AccAddress, amt math.Int) error
	Delegation(ctx context.Context, delegator sdk.AccAddress) (reportertypes.Selection, error)
	GetReporterTokensAtBlock(ctx context.Context, reporter []byte, blockNumber uint64) (math.Int, error)
	GetDelegatorTokensAtBlock(ctx context.Context, delegator []byte, blockNumber uint64) (math.Int, error)
	FeeRefund(ctx context.Context, hashId []byte, amt math.Int) error
}

type StakeholderVoteCounts

type StakeholderVoteCounts struct {
	Users        VoteCounts `protobuf:"bytes,1,opt,name=users,proto3"`
	Reporters    VoteCounts `protobuf:"bytes,2,opt,name=reporters,proto3"`
	Tokenholders VoteCounts `protobuf:"bytes,3,opt,name=tokenholders,proto3"`
	Team         VoteCounts `protobuf:"bytes,4,opt,name=team,proto3"`
}

func (*StakeholderVoteCounts) ProtoMessage

func (*StakeholderVoteCounts) ProtoMessage()

ProtoMessage is a no-op method to satisfy the proto.Message interface

func (*StakeholderVoteCounts) Reset

func (*StakeholderVoteCounts) Reset()

Reset is a no-op method to satisfy the proto.Message interface

func (*StakeholderVoteCounts) String

func (m *StakeholderVoteCounts) String() string

String returns a string representation, satisfying the proto.Message interface

type Tally

type Tally struct {
	ForVotes     *VoterClasses `protobuf:"bytes,1,opt,name=forVotes,proto3" json:"forVotes,omitempty"`
	AgainstVotes *VoterClasses `protobuf:"bytes,2,opt,name=againstVotes,proto3" json:"againstVotes,omitempty"`
	Invalid      *VoterClasses `protobuf:"bytes,3,opt,name=Invalid,proto3" json:"Invalid,omitempty"`
}

func (*Tally) Descriptor

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

func (*Tally) GetAgainstVotes

func (m *Tally) GetAgainstVotes() *VoterClasses

func (*Tally) GetForVotes

func (m *Tally) GetForVotes() *VoterClasses

func (*Tally) GetInvalid

func (m *Tally) GetInvalid() *VoterClasses

func (*Tally) Marshal

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

func (*Tally) MarshalTo

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

func (*Tally) MarshalToSizedBuffer

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

func (*Tally) ProtoMessage

func (*Tally) ProtoMessage()

func (*Tally) Reset

func (m *Tally) Reset()

func (*Tally) Size

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

func (*Tally) String

func (m *Tally) String() string

func (*Tally) Unmarshal

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

func (*Tally) XXX_DiscardUnknown

func (m *Tally) XXX_DiscardUnknown()

func (*Tally) XXX_Marshal

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

func (*Tally) XXX_Merge

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

func (*Tally) XXX_Size

func (m *Tally) XXX_Size() int

func (*Tally) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddEvidence

func (*UnimplementedMsgServer) AddFeeToDispute

func (*UnimplementedMsgServer) ClaimReward

func (*UnimplementedMsgServer) ProposeDispute

func (*UnimplementedMsgServer) UpdateTeam

func (*UnimplementedMsgServer) Vote

func (*UnimplementedMsgServer) WithdrawFeeRefund

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Disputes

func (*UnimplementedQueryServer) OpenDisputes

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Tally

func (*UnimplementedQueryServer) TeamAddress

func (*UnimplementedQueryServer) TeamVote

type Vote

type Vote struct {
	Id         uint64     `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	VoteStart  time.Time  `protobuf:"bytes,2,opt,name=voteStart,proto3,stdtime" json:"voteStart"`
	VoteEnd    time.Time  `protobuf:"bytes,3,opt,name=voteEnd,proto3,stdtime" json:"voteEnd"`
	VoteResult VoteResult `protobuf:"varint,4,opt,name=voteResult,proto3,enum=layer.dispute.VoteResult" json:"voteResult,omitempty"`
	Executed   bool       `protobuf:"varint,5,opt,name=executed,proto3" json:"executed,omitempty"`
}

func (*Vote) Descriptor

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

func (*Vote) GetExecuted

func (m *Vote) GetExecuted() bool

func (*Vote) GetId

func (m *Vote) GetId() uint64

func (*Vote) GetVoteEnd

func (m *Vote) GetVoteEnd() time.Time

func (*Vote) GetVoteResult

func (m *Vote) GetVoteResult() VoteResult

func (*Vote) GetVoteStart

func (m *Vote) GetVoteStart() time.Time

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

type VoteCounts

type VoteCounts struct {
	Support uint64 `protobuf:"varint,1,opt,name=support,proto3" json:"support,omitempty"`
	Against uint64 `protobuf:"varint,2,opt,name=against,proto3" json:"against,omitempty"`
	Invalid uint64 `protobuf:"varint,3,opt,name=invalid,proto3" json:"invalid,omitempty"`
}

func (*VoteCounts) Descriptor

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

func (*VoteCounts) GetAgainst

func (m *VoteCounts) GetAgainst() uint64

func (*VoteCounts) GetInvalid

func (m *VoteCounts) GetInvalid() uint64

func (*VoteCounts) GetSupport

func (m *VoteCounts) GetSupport() uint64

func (*VoteCounts) Marshal

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

func (*VoteCounts) MarshalTo

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

func (*VoteCounts) MarshalToSizedBuffer

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

func (*VoteCounts) ProtoMessage

func (*VoteCounts) ProtoMessage()

func (*VoteCounts) Reset

func (m *VoteCounts) Reset()

func (*VoteCounts) Size

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

func (*VoteCounts) String

func (m *VoteCounts) String() string

func (*VoteCounts) Unmarshal

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

func (*VoteCounts) XXX_DiscardUnknown

func (m *VoteCounts) XXX_DiscardUnknown()

func (*VoteCounts) XXX_Marshal

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

func (*VoteCounts) XXX_Merge

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

func (*VoteCounts) XXX_Size

func (m *VoteCounts) XXX_Size() int

func (*VoteCounts) XXX_Unmarshal

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

type VoteEnum

type VoteEnum int32
const (
	VoteEnum_VOTE_INVALID VoteEnum = 0
	VoteEnum_VOTE_SUPPORT VoteEnum = 1
	VoteEnum_VOTE_AGAINST VoteEnum = 2
)

func (VoteEnum) EnumDescriptor

func (VoteEnum) EnumDescriptor() ([]byte, []int)

func (VoteEnum) String

func (x VoteEnum) String() string

type VoteGroup

type VoteGroup struct {
	Users        []byte `protobuf:"bytes,1,opt,name=users,proto3" json:"users,omitempty"`
	Reporters    []byte `protobuf:"bytes,2,opt,name=reporters,proto3" json:"reporters,omitempty"`
	TokenHolders []byte `protobuf:"bytes,3,opt,name=tokenHolders,proto3" json:"tokenHolders,omitempty"`
}

func (*VoteGroup) Descriptor

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

func (*VoteGroup) GetReporters

func (m *VoteGroup) GetReporters() []byte

func (*VoteGroup) GetTokenHolders

func (m *VoteGroup) GetTokenHolders() []byte

func (*VoteGroup) GetUsers

func (m *VoteGroup) GetUsers() []byte

func (*VoteGroup) Marshal

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

func (*VoteGroup) MarshalTo

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

func (*VoteGroup) MarshalToSizedBuffer

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

func (*VoteGroup) ProtoMessage

func (*VoteGroup) ProtoMessage()

func (*VoteGroup) Reset

func (m *VoteGroup) Reset()

func (*VoteGroup) Size

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

func (*VoteGroup) String

func (m *VoteGroup) String() string

func (*VoteGroup) Unmarshal

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

func (*VoteGroup) XXX_DiscardUnknown

func (m *VoteGroup) XXX_DiscardUnknown()

func (*VoteGroup) XXX_Marshal

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

func (*VoteGroup) XXX_Merge

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

func (*VoteGroup) XXX_Size

func (m *VoteGroup) XXX_Size() int

func (*VoteGroup) XXX_Unmarshal

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

type VoteResult

type VoteResult int32
const (
	VoteResult_NO_TALLY                   VoteResult = 0
	VoteResult_SUPPORT                    VoteResult = 1
	VoteResult_AGAINST                    VoteResult = 2
	VoteResult_INVALID                    VoteResult = 3
	VoteResult_NO_QUORUM_MAJORITY_SUPPORT VoteResult = 4
	VoteResult_NO_QUORUM_MAJORITY_AGAINST VoteResult = 5
	VoteResult_NO_QUORUM_MAJORITY_INVALID VoteResult = 6
)

func (VoteResult) EnumDescriptor

func (VoteResult) EnumDescriptor() ([]byte, []int)

func (VoteResult) String

func (x VoteResult) String() string

type Voter

type Voter struct {
	Vote             VoteEnum              `protobuf:"varint,1,opt,name=vote,proto3,enum=layer.dispute.VoteEnum" json:"vote,omitempty"`
	VoterPower       cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=voter_power,json=voterPower,proto3,customtype=cosmossdk.io/math.Int" json:"voter_power"`
	ReporterPower    cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=reporter_power,json=reporterPower,proto3,customtype=cosmossdk.io/math.Int" json:"reporter_power"`
	TokenholderPower cosmossdk_io_math.Int `` /* 132-byte string literal not displayed */
	RewardClaimed    bool                  `protobuf:"varint,5,opt,name=reward_claimed,json=rewardClaimed,proto3" json:"reward_claimed,omitempty"`
}

func (*Voter) Descriptor

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

func (*Voter) GetRewardClaimed

func (m *Voter) GetRewardClaimed() bool

func (*Voter) GetVote

func (m *Voter) GetVote() VoteEnum

func (*Voter) Marshal

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

func (*Voter) MarshalTo

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

func (*Voter) MarshalToSizedBuffer

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

func (*Voter) ProtoMessage

func (*Voter) ProtoMessage()

func (*Voter) Reset

func (m *Voter) Reset()

func (*Voter) Size

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

func (*Voter) String

func (m *Voter) String() string

func (*Voter) Unmarshal

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

func (*Voter) XXX_DiscardUnknown

func (m *Voter) XXX_DiscardUnknown()

func (*Voter) XXX_Marshal

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

func (*Voter) XXX_Merge

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

func (*Voter) XXX_Size

func (m *Voter) XXX_Size() int

func (*Voter) XXX_Unmarshal

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

type VoterClasses

type VoterClasses struct {
	Reporters    cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=reporters,proto3,customtype=cosmossdk.io/math.Int" json:"reporters"`
	TokenHolders cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=tokenHolders,proto3,customtype=cosmossdk.io/math.Int" json:"tokenHolders"`
	Users        cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=users,proto3,customtype=cosmossdk.io/math.Int" json:"users"`
	Team         cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=team,proto3,customtype=cosmossdk.io/math.Int" json:"team"`
}

func (*VoterClasses) Descriptor

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

func (*VoterClasses) Marshal

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

func (*VoterClasses) MarshalTo

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

func (*VoterClasses) MarshalToSizedBuffer

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

func (*VoterClasses) ProtoMessage

func (*VoterClasses) ProtoMessage()

func (*VoterClasses) Reset

func (m *VoterClasses) Reset()

func (*VoterClasses) Size

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

func (*VoterClasses) String

func (m *VoterClasses) String() string

func (*VoterClasses) Unmarshal

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

func (*VoterClasses) XXX_DiscardUnknown

func (m *VoterClasses) XXX_DiscardUnknown()

func (*VoterClasses) XXX_Marshal

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

func (*VoterClasses) XXX_Merge

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

func (*VoterClasses) XXX_Size

func (m *VoterClasses) XXX_Size() int

func (*VoterClasses) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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