dispute

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	DisputeCategory_name = map[int32]string{
		0: "DISPUTE_CATEGORY_UNSPECIFIED",
		1: "DISPUTE_CATEGORY_WARNING",
		2: "DISPUTE_CATEGORY_MINOR",
		3: "DISPUTE_CATEGORY_MAJOR",
	}
	DisputeCategory_value = map[string]int32{
		"DISPUTE_CATEGORY_UNSPECIFIED": 0,
		"DISPUTE_CATEGORY_WARNING":     1,
		"DISPUTE_CATEGORY_MINOR":       2,
		"DISPUTE_CATEGORY_MAJOR":       3,
	}
)

Enum value maps for DisputeCategory.

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",
	}
	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,
	}
)

Enum value maps for DisputeStatus.

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",
	}
	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,
	}
)

Enum value maps for VoteResult.

View Source
var (
	VoteEnum_name = map[int32]string{
		0: "VOTE_INVALID",
		1: "VOTE_SUPPORT",
		2: "VOTE_AGAINST",
	}
	VoteEnum_value = map[string]int32{
		"VOTE_INVALID": 0,
		"VOTE_SUPPORT": 1,
		"VOTE_AGAINST": 2,
	}
)

Enum value maps for VoteEnum.

View Source
var File_layer_dispute_dispute_params_proto protoreflect.FileDescriptor
View Source
var File_layer_dispute_dispute_proto protoreflect.FileDescriptor
View Source
var File_layer_dispute_genesis_proto protoreflect.FileDescriptor
View Source
var File_layer_dispute_open_disputes_proto protoreflect.FileDescriptor
View Source
var File_layer_dispute_params_proto protoreflect.FileDescriptor
View Source
var File_layer_dispute_query_proto protoreflect.FileDescriptor
View Source
var File_layer_dispute_tally_proto protoreflect.FileDescriptor
View Source
var File_layer_dispute_tx_proto protoreflect.FileDescriptor
View Source
var File_layer_dispute_vote_proto protoreflect.FileDescriptor
View Source
var File_layer_dispute_voter_classes_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "layer.dispute.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ProposeDispute",
			Handler:    _Msg_ProposeDispute_Handler,
		},
		{
			MethodName: "AddFeeToDispute",
			Handler:    _Msg_AddFeeToDispute_Handler,
		},
		{
			MethodName: "Vote",
			Handler:    _Msg_Vote_Handler,
		},
		{
			MethodName: "UpdateTeam",
			Handler:    _Msg_UpdateTeam_Handler,
		},
		{
			MethodName: "WithdrawFeeRefund",
			Handler:    _Msg_WithdrawFeeRefund_Handler,
		},
		{
			MethodName: "AddEvidence",
			Handler:    _Msg_AddEvidence_Handler,
		},
		{
			MethodName: "ClaimReward",
			Handler:    _Msg_ClaimReward_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "layer/dispute/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "layer.dispute.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "Disputes",
			Handler:    _Query_Disputes_Handler,
		},
		{
			MethodName: "OpenDisputes",
			Handler:    _Query_OpenDisputes_Handler,
		},
		{
			MethodName: "TeamVote",
			Handler:    _Query_TeamVote_Handler,
		},
		{
			MethodName: "TeamAddress",
			Handler:    _Query_TeamAddress_Handler,
		},
		{
			MethodName: "Tally",
			Handler:    _Query_Tally_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "layer/dispute/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type BlockInfo

type BlockInfo struct {

	// total reporter power at block
	TotalReporterPower string `protobuf:"bytes,1,opt,name=total_reporter_power,json=totalReporterPower,proto3" json:"total_reporter_power,omitempty"`
	// total user tips at block
	TotalUserTips string `protobuf:"bytes,2,opt,name=total_user_tips,json=totalUserTips,proto3" json:"total_user_tips,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockInfo) Descriptor deprecated

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

Deprecated: Use BlockInfo.ProtoReflect.Descriptor instead.

func (*BlockInfo) GetTotalReporterPower

func (x *BlockInfo) GetTotalReporterPower() string

func (*BlockInfo) GetTotalUserTips

func (x *BlockInfo) GetTotalUserTips() string

func (*BlockInfo) ProtoMessage

func (*BlockInfo) ProtoMessage()

func (*BlockInfo) ProtoReflect

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

func (*BlockInfo) Reset

func (x *BlockInfo) Reset()

func (*BlockInfo) String

func (x *BlockInfo) String() string

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 string `protobuf:"bytes,4,opt,name=dispute_fee,json=disputeFee,proto3" json:"dispute_fee,omitempty"`
	// 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 *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=dispute_start_time,json=disputeStartTime,proto3" json:"dispute_start_time,omitempty"`
	// end time that the dispute stop taking votes and creating new rounds
	DisputeEndTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=dispute_end_time,json=disputeEndTime,proto3" json:"dispute_end_time,omitempty"`
	// 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 string `protobuf:"bytes,10,opt,name=slash_amount,json=slashAmount,proto3" json:"slash_amount,omitempty"`
	// burn amount that will be divided in half and paid to voters and the other half burned
	BurnAmount string `protobuf:"bytes,11,opt,name=burn_amount,json=burnAmount,proto3" json:"burn_amount,omitempty"`
	// initial single report evidence to be disputed
	InitialEvidence *oracle.MicroReport `protobuf:"bytes,12,opt,name=initial_evidence,json=initialEvidence,proto3" json:"initial_evidence,omitempty"`
	// 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 string `protobuf:"bytes,13,opt,name=fee_total,json=feeTotal,proto3" json:"fee_total,omitempty"`
	// 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 []*oracle.MicroReport `protobuf:"bytes,17,rep,name=additional_evidence,json=additionalEvidence,proto3" json:"additional_evidence,omitempty"`
	// total tokens allocated to voters
	VoterReward string `protobuf:"bytes,18,opt,name=voter_reward,json=voterReward,proto3" json:"voter_reward,omitempty"`
	// 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"`
	// contains filtered or unexported fields
}

Dispute defines a dispute.

func (*Dispute) Descriptor deprecated

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

Deprecated: Use Dispute.ProtoReflect.Descriptor instead.

func (*Dispute) GetAdditionalEvidence

func (x *Dispute) GetAdditionalEvidence() []*oracle.MicroReport

func (*Dispute) GetBlockNumber

func (x *Dispute) GetBlockNumber() uint64

func (*Dispute) GetBurnAmount

func (x *Dispute) GetBurnAmount() string

func (*Dispute) GetDisputeCategory

func (x *Dispute) GetDisputeCategory() DisputeCategory

func (*Dispute) GetDisputeEndTime

func (x *Dispute) GetDisputeEndTime() *timestamppb.Timestamp

func (*Dispute) GetDisputeFee

func (x *Dispute) GetDisputeFee() string

func (*Dispute) GetDisputeId

func (x *Dispute) GetDisputeId() uint64

func (*Dispute) GetDisputeRound

func (x *Dispute) GetDisputeRound() uint64

func (*Dispute) GetDisputeStartBlock

func (x *Dispute) GetDisputeStartBlock() uint64

func (*Dispute) GetDisputeStartTime

func (x *Dispute) GetDisputeStartTime() *timestamppb.Timestamp

func (*Dispute) GetDisputeStatus

func (x *Dispute) GetDisputeStatus() DisputeStatus

func (*Dispute) GetFeeTotal

func (x *Dispute) GetFeeTotal() string

func (*Dispute) GetHashId

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

func (*Dispute) GetInitialEvidence

func (x *Dispute) GetInitialEvidence() *oracle.MicroReport

func (*Dispute) GetOpen

func (x *Dispute) GetOpen() bool

func (*Dispute) GetPendingExecution

func (x *Dispute) GetPendingExecution() bool

func (*Dispute) GetPrevDisputeIds

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

func (*Dispute) GetSlashAmount

func (x *Dispute) GetSlashAmount() string

func (*Dispute) GetVoterReward

func (x *Dispute) GetVoterReward() string

func (*Dispute) ProtoMessage

func (*Dispute) ProtoMessage()

func (*Dispute) ProtoReflect

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

func (*Dispute) Reset

func (x *Dispute) Reset()

func (*Dispute) String

func (x *Dispute) String() string

type DisputeCategory

type DisputeCategory int32

DisputeCategory defines the severity of a dispute.

const (
	// UNSPECIFIED defines an invalid dispute category.
	DisputeCategory_DISPUTE_CATEGORY_UNSPECIFIED DisputeCategory = 0
	// WARNING defines a 1 percent slashing.
	DisputeCategory_DISPUTE_CATEGORY_WARNING DisputeCategory = 1
	// MINOR defines a 5 percent slashing.
	DisputeCategory_DISPUTE_CATEGORY_MINOR DisputeCategory = 2
	// MAJOR defines a 100 percent slashing.
	DisputeCategory_DISPUTE_CATEGORY_MAJOR DisputeCategory = 3
)

func (DisputeCategory) Descriptor

func (DisputeCategory) Enum

func (x DisputeCategory) Enum() *DisputeCategory

func (DisputeCategory) EnumDescriptor deprecated

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

Deprecated: Use DisputeCategory.Descriptor instead.

func (DisputeCategory) Number

func (DisputeCategory) String

func (x DisputeCategory) String() string

func (DisputeCategory) Type

type DisputeParams

type DisputeParams struct {
	Report   *oracle.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"`
	// contains filtered or unexported fields
}

func (*DisputeParams) Descriptor deprecated

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

Deprecated: Use DisputeParams.ProtoReflect.Descriptor instead.

func (*DisputeParams) GetCategory

func (x *DisputeParams) GetCategory() DisputeCategory

func (*DisputeParams) GetReport

func (x *DisputeParams) GetReport() *oracle.MicroReport

func (*DisputeParams) ProtoMessage

func (*DisputeParams) ProtoMessage()

func (*DisputeParams) ProtoReflect

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

func (*DisputeParams) Reset

func (x *DisputeParams) Reset()

func (*DisputeParams) String

func (x *DisputeParams) String() string

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).
	DisputeStatus_DISPUTE_STATUS_PREVOTE DisputeStatus = 0
	// VOTING defines a dispute that has been funded and is in voting.
	DisputeStatus_DISPUTE_STATUS_VOTING DisputeStatus = 1
	// RESOLVED defines a dispute that has completed voting and reached quroum
	DisputeStatus_DISPUTE_STATUS_RESOLVED DisputeStatus = 2
	// UNRESOLVED defines a dispute that has completed voting and but hasn't reached quroum
	DisputeStatus_DISPUTE_STATUS_UNRESOLVED DisputeStatus = 3
	// FAILED defines a dispute that failed to pay the dispute fee to start vote.
	DisputeStatus_DISPUTE_STATUS_FAILED DisputeStatus = 4
)

func (DisputeStatus) Descriptor

func (DisputeStatus) Enum

func (x DisputeStatus) Enum() *DisputeStatus

func (DisputeStatus) EnumDescriptor deprecated

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

Deprecated: Use DisputeStatus.Descriptor instead.

func (DisputeStatus) Number

func (DisputeStatus) String

func (x DisputeStatus) String() string

func (DisputeStatus) Type

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"`
	// contains filtered or unexported fields
}

func (*Disputes) Descriptor deprecated

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

Deprecated: Use Disputes.ProtoReflect.Descriptor instead.

func (*Disputes) GetDisputeId

func (x *Disputes) GetDisputeId() uint64

func (*Disputes) GetMetadata

func (x *Disputes) GetMetadata() *Dispute

func (*Disputes) ProtoMessage

func (*Disputes) ProtoMessage()

func (*Disputes) ProtoReflect

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

func (*Disputes) Reset

func (x *Disputes) Reset()

func (*Disputes) String

func (x *Disputes) String() string

type GenesisState

type GenesisState struct {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the dispute module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

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

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type 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"`
	// contains filtered or unexported fields
}

func (*GroupTally) Descriptor deprecated

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

Deprecated: Use GroupTally.ProtoReflect.Descriptor instead.

func (*GroupTally) GetTotalGroupPower

func (x *GroupTally) GetTotalGroupPower() uint64

func (*GroupTally) GetTotalPowerVoted

func (x *GroupTally) GetTotalPowerVoted() uint64

func (*GroupTally) GetVoteCount

func (x *GroupTally) GetVoteCount() *VoteCounts

func (*GroupTally) ProtoMessage

func (*GroupTally) ProtoMessage()

func (*GroupTally) ProtoReflect

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

func (*GroupTally) Reset

func (x *GroupTally) Reset()

func (*GroupTally) String

func (x *GroupTally) String() string

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       []*oracle.MicroReport `protobuf:"bytes,3,rep,name=reports,proto3" json:"reports,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgAddEvidence) Descriptor deprecated

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

Deprecated: Use MsgAddEvidence.ProtoReflect.Descriptor instead.

func (*MsgAddEvidence) GetCallerAddress

func (x *MsgAddEvidence) GetCallerAddress() string

func (*MsgAddEvidence) GetDisputeId

func (x *MsgAddEvidence) GetDisputeId() uint64

func (*MsgAddEvidence) GetReports

func (x *MsgAddEvidence) GetReports() []*oracle.MicroReport

func (*MsgAddEvidence) ProtoMessage

func (*MsgAddEvidence) ProtoMessage()

func (*MsgAddEvidence) ProtoReflect

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

func (*MsgAddEvidence) Reset

func (x *MsgAddEvidence) Reset()

func (*MsgAddEvidence) String

func (x *MsgAddEvidence) String() string

type MsgAddEvidenceResponse

type MsgAddEvidenceResponse struct {
	// contains filtered or unexported fields
}

func (*MsgAddEvidenceResponse) Descriptor deprecated

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

Deprecated: Use MsgAddEvidenceResponse.ProtoReflect.Descriptor instead.

func (*MsgAddEvidenceResponse) ProtoMessage

func (*MsgAddEvidenceResponse) ProtoMessage()

func (*MsgAddEvidenceResponse) ProtoReflect

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

func (*MsgAddEvidenceResponse) Reset

func (x *MsgAddEvidenceResponse) Reset()

func (*MsgAddEvidenceResponse) String

func (x *MsgAddEvidenceResponse) String() string

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      *v1beta1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	PayFromBond bool          `protobuf:"varint,4,opt,name=pay_from_bond,json=payFromBond,proto3" json:"pay_from_bond,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgAddFeeToDispute) Descriptor deprecated

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

Deprecated: Use MsgAddFeeToDispute.ProtoReflect.Descriptor instead.

func (*MsgAddFeeToDispute) GetAmount

func (x *MsgAddFeeToDispute) GetAmount() *v1beta1.Coin

func (*MsgAddFeeToDispute) GetCreator

func (x *MsgAddFeeToDispute) GetCreator() string

func (*MsgAddFeeToDispute) GetDisputeId

func (x *MsgAddFeeToDispute) GetDisputeId() uint64

func (*MsgAddFeeToDispute) GetPayFromBond

func (x *MsgAddFeeToDispute) GetPayFromBond() bool

func (*MsgAddFeeToDispute) ProtoMessage

func (*MsgAddFeeToDispute) ProtoMessage()

func (*MsgAddFeeToDispute) ProtoReflect

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

func (*MsgAddFeeToDispute) Reset

func (x *MsgAddFeeToDispute) Reset()

func (*MsgAddFeeToDispute) String

func (x *MsgAddFeeToDispute) String() string

type MsgAddFeeToDisputeResponse

type MsgAddFeeToDisputeResponse struct {
	// contains filtered or unexported fields
}

func (*MsgAddFeeToDisputeResponse) Descriptor deprecated

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

Deprecated: Use MsgAddFeeToDisputeResponse.ProtoReflect.Descriptor instead.

func (*MsgAddFeeToDisputeResponse) ProtoMessage

func (*MsgAddFeeToDisputeResponse) ProtoMessage()

func (*MsgAddFeeToDisputeResponse) ProtoReflect

func (*MsgAddFeeToDisputeResponse) Reset

func (x *MsgAddFeeToDisputeResponse) Reset()

func (*MsgAddFeeToDisputeResponse) String

func (x *MsgAddFeeToDisputeResponse) String() string

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"`
	// contains filtered or unexported fields
}

func (*MsgClaimReward) Descriptor deprecated

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

Deprecated: Use MsgClaimReward.ProtoReflect.Descriptor instead.

func (*MsgClaimReward) GetCallerAddress

func (x *MsgClaimReward) GetCallerAddress() string

func (*MsgClaimReward) GetDisputeId

func (x *MsgClaimReward) GetDisputeId() uint64

func (*MsgClaimReward) ProtoMessage

func (*MsgClaimReward) ProtoMessage()

func (*MsgClaimReward) ProtoReflect

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

func (*MsgClaimReward) Reset

func (x *MsgClaimReward) Reset()

func (*MsgClaimReward) String

func (x *MsgClaimReward) String() string

type MsgClaimRewardResponse

type MsgClaimRewardResponse struct {
	// contains filtered or unexported fields
}

func (*MsgClaimRewardResponse) Descriptor deprecated

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

Deprecated: Use MsgClaimRewardResponse.ProtoReflect.Descriptor instead.

func (*MsgClaimRewardResponse) ProtoMessage

func (*MsgClaimRewardResponse) ProtoMessage()

func (*MsgClaimRewardResponse) ProtoReflect

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

func (*MsgClaimRewardResponse) Reset

func (x *MsgClaimRewardResponse) Reset()

func (*MsgClaimRewardResponse) String

func (x *MsgClaimRewardResponse) String() string

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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgProposeDispute

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

func (*MsgProposeDispute) Descriptor deprecated

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

Deprecated: Use MsgProposeDispute.ProtoReflect.Descriptor instead.

func (*MsgProposeDispute) GetCreator

func (x *MsgProposeDispute) GetCreator() string

func (*MsgProposeDispute) GetDisputeCategory

func (x *MsgProposeDispute) GetDisputeCategory() DisputeCategory

func (*MsgProposeDispute) GetFee

func (x *MsgProposeDispute) GetFee() *v1beta1.Coin

func (*MsgProposeDispute) GetPayFromBond

func (x *MsgProposeDispute) GetPayFromBond() bool

func (*MsgProposeDispute) GetReport

func (x *MsgProposeDispute) GetReport() *oracle.MicroReport

func (*MsgProposeDispute) ProtoMessage

func (*MsgProposeDispute) ProtoMessage()

func (*MsgProposeDispute) ProtoReflect

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

func (*MsgProposeDispute) Reset

func (x *MsgProposeDispute) Reset()

func (*MsgProposeDispute) String

func (x *MsgProposeDispute) String() string

type MsgProposeDisputeResponse

type MsgProposeDisputeResponse struct {
	// contains filtered or unexported fields
}

func (*MsgProposeDisputeResponse) Descriptor deprecated

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

Deprecated: Use MsgProposeDisputeResponse.ProtoReflect.Descriptor instead.

func (*MsgProposeDisputeResponse) ProtoMessage

func (*MsgProposeDisputeResponse) ProtoMessage()

func (*MsgProposeDisputeResponse) ProtoReflect

func (*MsgProposeDisputeResponse) Reset

func (x *MsgProposeDisputeResponse) Reset()

func (*MsgProposeDisputeResponse) String

func (x *MsgProposeDisputeResponse) String() string

type MsgServer

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

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"`
	// contains filtered or unexported fields
}

func (*MsgUpdateTeam) Descriptor deprecated

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

Deprecated: Use MsgUpdateTeam.ProtoReflect.Descriptor instead.

func (*MsgUpdateTeam) GetCurrentTeamAddress

func (x *MsgUpdateTeam) GetCurrentTeamAddress() string

func (*MsgUpdateTeam) GetNewTeamAddress

func (x *MsgUpdateTeam) GetNewTeamAddress() string

func (*MsgUpdateTeam) ProtoMessage

func (*MsgUpdateTeam) ProtoMessage()

func (*MsgUpdateTeam) ProtoReflect

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

func (*MsgUpdateTeam) Reset

func (x *MsgUpdateTeam) Reset()

func (*MsgUpdateTeam) String

func (x *MsgUpdateTeam) String() string

type MsgUpdateTeamResponse

type MsgUpdateTeamResponse struct {
	// contains filtered or unexported fields
}

func (*MsgUpdateTeamResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateTeamResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateTeamResponse) ProtoMessage

func (*MsgUpdateTeamResponse) ProtoMessage()

func (*MsgUpdateTeamResponse) ProtoReflect

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

func (*MsgUpdateTeamResponse) Reset

func (x *MsgUpdateTeamResponse) Reset()

func (*MsgUpdateTeamResponse) String

func (x *MsgUpdateTeamResponse) String() string

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"`
	// contains filtered or unexported fields
}

func (*MsgVote) Descriptor deprecated

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

Deprecated: Use MsgVote.ProtoReflect.Descriptor instead.

func (*MsgVote) GetId

func (x *MsgVote) GetId() uint64

func (*MsgVote) GetVote

func (x *MsgVote) GetVote() VoteEnum

func (*MsgVote) GetVoter

func (x *MsgVote) GetVoter() string

func (*MsgVote) ProtoMessage

func (*MsgVote) ProtoMessage()

func (*MsgVote) ProtoReflect

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

func (*MsgVote) Reset

func (x *MsgVote) Reset()

func (*MsgVote) String

func (x *MsgVote) String() string

type MsgVoteResponse

type MsgVoteResponse struct {
	// contains filtered or unexported fields
}

func (*MsgVoteResponse) Descriptor deprecated

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

Deprecated: Use MsgVoteResponse.ProtoReflect.Descriptor instead.

func (*MsgVoteResponse) ProtoMessage

func (*MsgVoteResponse) ProtoMessage()

func (*MsgVoteResponse) ProtoReflect

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

func (*MsgVoteResponse) Reset

func (x *MsgVoteResponse) Reset()

func (*MsgVoteResponse) String

func (x *MsgVoteResponse) String() string

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"`
	// contains filtered or unexported fields
}

func (*MsgWithdrawFeeRefund) Descriptor deprecated

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

Deprecated: Use MsgWithdrawFeeRefund.ProtoReflect.Descriptor instead.

func (*MsgWithdrawFeeRefund) GetCallerAddress

func (x *MsgWithdrawFeeRefund) GetCallerAddress() string

func (*MsgWithdrawFeeRefund) GetId

func (x *MsgWithdrawFeeRefund) GetId() uint64

func (*MsgWithdrawFeeRefund) GetPayerAddress

func (x *MsgWithdrawFeeRefund) GetPayerAddress() string

func (*MsgWithdrawFeeRefund) ProtoMessage

func (*MsgWithdrawFeeRefund) ProtoMessage()

func (*MsgWithdrawFeeRefund) ProtoReflect

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

func (*MsgWithdrawFeeRefund) Reset

func (x *MsgWithdrawFeeRefund) Reset()

func (*MsgWithdrawFeeRefund) String

func (x *MsgWithdrawFeeRefund) String() string

type MsgWithdrawFeeRefundResponse

type MsgWithdrawFeeRefundResponse struct {
	// contains filtered or unexported fields
}

func (*MsgWithdrawFeeRefundResponse) Descriptor deprecated

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

Deprecated: Use MsgWithdrawFeeRefundResponse.ProtoReflect.Descriptor instead.

func (*MsgWithdrawFeeRefundResponse) ProtoMessage

func (*MsgWithdrawFeeRefundResponse) ProtoMessage()

func (*MsgWithdrawFeeRefundResponse) ProtoReflect

func (*MsgWithdrawFeeRefundResponse) Reset

func (x *MsgWithdrawFeeRefundResponse) Reset()

func (*MsgWithdrawFeeRefundResponse) String

type OpenDisputes

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

func (*OpenDisputes) Descriptor deprecated

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

Deprecated: Use OpenDisputes.ProtoReflect.Descriptor instead.

func (*OpenDisputes) GetIds

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

func (*OpenDisputes) ProtoMessage

func (*OpenDisputes) ProtoMessage()

func (*OpenDisputes) ProtoReflect

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

func (*OpenDisputes) Reset

func (x *OpenDisputes) Reset()

func (*OpenDisputes) String

func (x *OpenDisputes) String() string

type Params

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

Params defines the parameters for the module.

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetTeamAddress

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

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

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type PayerInfo

type PayerInfo struct {

	// amount paid
	Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// 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"`
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use PayerInfo.ProtoReflect.Descriptor instead.

func (*PayerInfo) GetAmount

func (x *PayerInfo) GetAmount() string

func (*PayerInfo) GetFromBond

func (x *PayerInfo) GetFromBond() bool

func (*PayerInfo) ProtoMessage

func (*PayerInfo) ProtoMessage()

func (*PayerInfo) ProtoReflect

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

func (*PayerInfo) Reset

func (x *PayerInfo) Reset()

func (*PayerInfo) String

func (x *PayerInfo) String() string

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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryDisputesRequest

type QueryDisputesRequest struct {

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

func (*QueryDisputesRequest) Descriptor deprecated

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

Deprecated: Use QueryDisputesRequest.ProtoReflect.Descriptor instead.

func (*QueryDisputesRequest) GetPagination

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

func (*QueryDisputesRequest) ProtoMessage

func (*QueryDisputesRequest) ProtoMessage()

func (*QueryDisputesRequest) ProtoReflect

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

func (*QueryDisputesRequest) Reset

func (x *QueryDisputesRequest) Reset()

func (*QueryDisputesRequest) String

func (x *QueryDisputesRequest) String() string

type QueryDisputesResponse

type QueryDisputesResponse struct {

	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Disputes   []*Disputes           `protobuf:"bytes,2,rep,name=disputes,proto3" json:"disputes,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryDisputesResponse) Descriptor deprecated

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

Deprecated: Use QueryDisputesResponse.ProtoReflect.Descriptor instead.

func (*QueryDisputesResponse) GetDisputes

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

func (*QueryDisputesResponse) GetPagination

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

func (*QueryDisputesResponse) ProtoMessage

func (*QueryDisputesResponse) ProtoMessage()

func (*QueryDisputesResponse) ProtoReflect

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

func (*QueryDisputesResponse) Reset

func (x *QueryDisputesResponse) Reset()

func (*QueryDisputesResponse) String

func (x *QueryDisputesResponse) String() string

type QueryDisputesTallyRequest

type QueryDisputesTallyRequest struct {
	DisputeId uint64 `protobuf:"varint,1,opt,name=dispute_id,json=disputeId,proto3" json:"dispute_id,omitempty"`
	// contains filtered or unexported fields
}

Request the current vote count for a dispute

func (*QueryDisputesTallyRequest) Descriptor deprecated

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

Deprecated: Use QueryDisputesTallyRequest.ProtoReflect.Descriptor instead.

func (*QueryDisputesTallyRequest) GetDisputeId

func (x *QueryDisputesTallyRequest) GetDisputeId() uint64

func (*QueryDisputesTallyRequest) ProtoMessage

func (*QueryDisputesTallyRequest) ProtoMessage()

func (*QueryDisputesTallyRequest) ProtoReflect

func (*QueryDisputesTallyRequest) Reset

func (x *QueryDisputesTallyRequest) Reset()

func (*QueryDisputesTallyRequest) String

func (x *QueryDisputesTallyRequest) String() string

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"`
	// contains filtered or unexported fields
}

func (*QueryDisputesTallyResponse) Descriptor deprecated

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

Deprecated: Use QueryDisputesTallyResponse.ProtoReflect.Descriptor instead.

func (*QueryDisputesTallyResponse) GetReporters

func (x *QueryDisputesTallyResponse) GetReporters() *GroupTally

func (*QueryDisputesTallyResponse) GetTeam

func (x *QueryDisputesTallyResponse) GetTeam() *VoteCounts

func (*QueryDisputesTallyResponse) GetTokenholders

func (x *QueryDisputesTallyResponse) GetTokenholders() *GroupTally

func (*QueryDisputesTallyResponse) GetUsers

func (x *QueryDisputesTallyResponse) GetUsers() *GroupTally

func (*QueryDisputesTallyResponse) ProtoMessage

func (*QueryDisputesTallyResponse) ProtoMessage()

func (*QueryDisputesTallyResponse) ProtoReflect

func (*QueryDisputesTallyResponse) Reset

func (x *QueryDisputesTallyResponse) Reset()

func (*QueryDisputesTallyResponse) String

func (x *QueryDisputesTallyResponse) String() string

type QueryOpenDisputesRequest

type QueryOpenDisputesRequest struct {
	// contains filtered or unexported fields
}

func (*QueryOpenDisputesRequest) Descriptor deprecated

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

Deprecated: Use QueryOpenDisputesRequest.ProtoReflect.Descriptor instead.

func (*QueryOpenDisputesRequest) ProtoMessage

func (*QueryOpenDisputesRequest) ProtoMessage()

func (*QueryOpenDisputesRequest) ProtoReflect

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

func (*QueryOpenDisputesRequest) Reset

func (x *QueryOpenDisputesRequest) Reset()

func (*QueryOpenDisputesRequest) String

func (x *QueryOpenDisputesRequest) String() string

type QueryOpenDisputesResponse

type QueryOpenDisputesResponse struct {
	OpenDisputes *OpenDisputes `protobuf:"bytes,1,opt,name=openDisputes,proto3" json:"openDisputes,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryOpenDisputesResponse) Descriptor deprecated

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

Deprecated: Use QueryOpenDisputesResponse.ProtoReflect.Descriptor instead.

func (*QueryOpenDisputesResponse) GetOpenDisputes

func (x *QueryOpenDisputesResponse) GetOpenDisputes() *OpenDisputes

func (*QueryOpenDisputesResponse) ProtoMessage

func (*QueryOpenDisputesResponse) ProtoMessage()

func (*QueryOpenDisputesResponse) ProtoReflect

func (*QueryOpenDisputesResponse) Reset

func (x *QueryOpenDisputesResponse) Reset()

func (*QueryOpenDisputesResponse) String

func (x *QueryOpenDisputesResponse) String() string

type QueryParamsRequest

type QueryParamsRequest struct {
	// contains filtered or unexported fields
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor deprecated

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

Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) ProtoReflect

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

func (*QueryParamsRequest) Reset

func (x *QueryParamsRequest) Reset()

func (*QueryParamsRequest) String

func (x *QueryParamsRequest) String() string

type QueryParamsResponse

type QueryParamsResponse struct {

	// params holds all the parameters of this module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor deprecated

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

Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryParamsResponse) GetParams

func (x *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) ProtoReflect

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

func (*QueryParamsResponse) Reset

func (x *QueryParamsResponse) Reset()

func (*QueryParamsResponse) String

func (x *QueryParamsResponse) String() string

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)
	// contains filtered or unexported methods
}

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

type QueryTeamAddressRequest

type QueryTeamAddressRequest struct {
	// contains filtered or unexported fields
}

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

func (*QueryTeamAddressRequest) Descriptor deprecated

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

Deprecated: Use QueryTeamAddressRequest.ProtoReflect.Descriptor instead.

func (*QueryTeamAddressRequest) ProtoMessage

func (*QueryTeamAddressRequest) ProtoMessage()

func (*QueryTeamAddressRequest) ProtoReflect

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

func (*QueryTeamAddressRequest) Reset

func (x *QueryTeamAddressRequest) Reset()

func (*QueryTeamAddressRequest) String

func (x *QueryTeamAddressRequest) String() string

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"`
	// contains filtered or unexported fields
}

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

func (*QueryTeamAddressResponse) Descriptor deprecated

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

Deprecated: Use QueryTeamAddressResponse.ProtoReflect.Descriptor instead.

func (*QueryTeamAddressResponse) GetTeamAddress

func (x *QueryTeamAddressResponse) GetTeamAddress() string

func (*QueryTeamAddressResponse) ProtoMessage

func (*QueryTeamAddressResponse) ProtoMessage()

func (*QueryTeamAddressResponse) ProtoReflect

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

func (*QueryTeamAddressResponse) Reset

func (x *QueryTeamAddressResponse) Reset()

func (*QueryTeamAddressResponse) String

func (x *QueryTeamAddressResponse) String() string

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"`
	// contains filtered or unexported fields
}

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

func (*QueryTeamVoteRequest) Descriptor deprecated

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

Deprecated: Use QueryTeamVoteRequest.ProtoReflect.Descriptor instead.

func (*QueryTeamVoteRequest) GetDisputeId

func (x *QueryTeamVoteRequest) GetDisputeId() uint64

func (*QueryTeamVoteRequest) ProtoMessage

func (*QueryTeamVoteRequest) ProtoMessage()

func (*QueryTeamVoteRequest) ProtoReflect

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

func (*QueryTeamVoteRequest) Reset

func (x *QueryTeamVoteRequest) Reset()

func (*QueryTeamVoteRequest) String

func (x *QueryTeamVoteRequest) String() string

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,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryTeamVoteResponse) Descriptor deprecated

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

Deprecated: Use QueryTeamVoteResponse.ProtoReflect.Descriptor instead.

func (*QueryTeamVoteResponse) GetTeamVote

func (x *QueryTeamVoteResponse) GetTeamVote() *Voter

func (*QueryTeamVoteResponse) ProtoMessage

func (*QueryTeamVoteResponse) ProtoMessage()

func (*QueryTeamVoteResponse) ProtoReflect

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

func (*QueryTeamVoteResponse) Reset

func (x *QueryTeamVoteResponse) Reset()

func (*QueryTeamVoteResponse) String

func (x *QueryTeamVoteResponse) String() string

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"`
	// contains filtered or unexported fields
}

func (*Tally) Descriptor deprecated

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

Deprecated: Use Tally.ProtoReflect.Descriptor instead.

func (*Tally) GetAgainstVotes

func (x *Tally) GetAgainstVotes() *VoterClasses

func (*Tally) GetForVotes

func (x *Tally) GetForVotes() *VoterClasses

func (*Tally) GetInvalid

func (x *Tally) GetInvalid() *VoterClasses

func (*Tally) ProtoMessage

func (*Tally) ProtoMessage()

func (*Tally) ProtoReflect

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

func (*Tally) Reset

func (x *Tally) Reset()

func (*Tally) String

func (x *Tally) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must 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

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Disputes

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) TeamVote

type UnsafeMsgServer

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

type UnsafeQueryServer

type UnsafeQueryServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.

type Vote

type Vote struct {
	Id         uint64                 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	VoteStart  *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=voteStart,proto3" json:"voteStart,omitempty"`
	VoteEnd    *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=voteEnd,proto3" json:"voteEnd,omitempty"`
	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"`
	// contains filtered or unexported fields
}

func (*Vote) Descriptor deprecated

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

Deprecated: Use Vote.ProtoReflect.Descriptor instead.

func (*Vote) GetExecuted

func (x *Vote) GetExecuted() bool

func (*Vote) GetId

func (x *Vote) GetId() uint64

func (*Vote) GetVoteEnd

func (x *Vote) GetVoteEnd() *timestamppb.Timestamp

func (*Vote) GetVoteResult

func (x *Vote) GetVoteResult() VoteResult

func (*Vote) GetVoteStart

func (x *Vote) GetVoteStart() *timestamppb.Timestamp

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) ProtoReflect

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

func (*Vote) Reset

func (x *Vote) Reset()

func (*Vote) String

func (x *Vote) String() string

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"`
	// contains filtered or unexported fields
}

func (*VoteCounts) Descriptor deprecated

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

Deprecated: Use VoteCounts.ProtoReflect.Descriptor instead.

func (*VoteCounts) GetAgainst

func (x *VoteCounts) GetAgainst() uint64

func (*VoteCounts) GetInvalid

func (x *VoteCounts) GetInvalid() uint64

func (*VoteCounts) GetSupport

func (x *VoteCounts) GetSupport() uint64

func (*VoteCounts) ProtoMessage

func (*VoteCounts) ProtoMessage()

func (*VoteCounts) ProtoReflect

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

func (*VoteCounts) Reset

func (x *VoteCounts) Reset()

func (*VoteCounts) String

func (x *VoteCounts) String() string

type VoteEnum

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

func (VoteEnum) Descriptor

func (VoteEnum) Descriptor() protoreflect.EnumDescriptor

func (VoteEnum) Enum

func (x VoteEnum) Enum() *VoteEnum

func (VoteEnum) EnumDescriptor deprecated

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

Deprecated: Use VoteEnum.Descriptor instead.

func (VoteEnum) Number

func (x VoteEnum) Number() protoreflect.EnumNumber

func (VoteEnum) String

func (x VoteEnum) String() string

func (VoteEnum) Type

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"`
	// contains filtered or unexported fields
}

func (*VoteGroup) Descriptor deprecated

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

Deprecated: Use VoteGroup.ProtoReflect.Descriptor instead.

func (*VoteGroup) GetReporters

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

func (*VoteGroup) GetTokenHolders

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

func (*VoteGroup) GetUsers

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

func (*VoteGroup) ProtoMessage

func (*VoteGroup) ProtoMessage()

func (*VoteGroup) ProtoReflect

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

func (*VoteGroup) Reset

func (x *VoteGroup) Reset()

func (*VoteGroup) String

func (x *VoteGroup) String() string

type VoteResult

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

func (VoteResult) Descriptor

func (VoteResult) Descriptor() protoreflect.EnumDescriptor

func (VoteResult) Enum

func (x VoteResult) Enum() *VoteResult

func (VoteResult) EnumDescriptor deprecated

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

Deprecated: Use VoteResult.Descriptor instead.

func (VoteResult) Number

func (x VoteResult) Number() protoreflect.EnumNumber

func (VoteResult) String

func (x VoteResult) String() string

func (VoteResult) Type

type Voter

type Voter struct {
	Vote             VoteEnum `protobuf:"varint,1,opt,name=vote,proto3,enum=layer.dispute.VoteEnum" json:"vote,omitempty"`
	VoterPower       string   `protobuf:"bytes,2,opt,name=voter_power,json=voterPower,proto3" json:"voter_power,omitempty"`
	ReporterPower    string   `protobuf:"bytes,3,opt,name=reporter_power,json=reporterPower,proto3" json:"reporter_power,omitempty"`
	TokenholderPower string   `protobuf:"bytes,4,opt,name=tokenholder_power,json=tokenholderPower,proto3" json:"tokenholder_power,omitempty"`
	RewardClaimed    bool     `protobuf:"varint,5,opt,name=reward_claimed,json=rewardClaimed,proto3" json:"reward_claimed,omitempty"`
	// contains filtered or unexported fields
}

func (*Voter) Descriptor deprecated

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

Deprecated: Use Voter.ProtoReflect.Descriptor instead.

func (*Voter) GetReporterPower

func (x *Voter) GetReporterPower() string

func (*Voter) GetRewardClaimed

func (x *Voter) GetRewardClaimed() bool

func (*Voter) GetTokenholderPower

func (x *Voter) GetTokenholderPower() string

func (*Voter) GetVote

func (x *Voter) GetVote() VoteEnum

func (*Voter) GetVoterPower

func (x *Voter) GetVoterPower() string

func (*Voter) ProtoMessage

func (*Voter) ProtoMessage()

func (*Voter) ProtoReflect

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

func (*Voter) Reset

func (x *Voter) Reset()

func (*Voter) String

func (x *Voter) String() string

type VoterClasses

type VoterClasses struct {
	Reporters    string `protobuf:"bytes,1,opt,name=reporters,proto3" json:"reporters,omitempty"`
	TokenHolders string `protobuf:"bytes,2,opt,name=tokenHolders,proto3" json:"tokenHolders,omitempty"`
	Users        string `protobuf:"bytes,3,opt,name=users,proto3" json:"users,omitempty"`
	Team         string `protobuf:"bytes,4,opt,name=team,proto3" json:"team,omitempty"`
	// contains filtered or unexported fields
}

func (*VoterClasses) Descriptor deprecated

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

Deprecated: Use VoterClasses.ProtoReflect.Descriptor instead.

func (*VoterClasses) GetReporters

func (x *VoterClasses) GetReporters() string

func (*VoterClasses) GetTeam

func (x *VoterClasses) GetTeam() string

func (*VoterClasses) GetTokenHolders

func (x *VoterClasses) GetTokenHolders() string

func (*VoterClasses) GetUsers

func (x *VoterClasses) GetUsers() string

func (*VoterClasses) ProtoMessage

func (*VoterClasses) ProtoMessage()

func (*VoterClasses) ProtoReflect

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

func (*VoterClasses) Reset

func (x *VoterClasses) Reset()

func (*VoterClasses) String

func (x *VoterClasses) String() string

Directories

Path Synopsis
Code generated by protoc-gen-go-pulsar.
Code generated by protoc-gen-go-pulsar.

Jump to

Keyboard shortcuts

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