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 ¶
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type BlockInfo
- func (*BlockInfo) Descriptor() ([]byte, []int)deprecated
- func (x *BlockInfo) GetTotalReporterPower() string
- func (x *BlockInfo) GetTotalUserTips() string
- func (*BlockInfo) ProtoMessage()
- func (x *BlockInfo) ProtoReflect() protoreflect.Message
- func (x *BlockInfo) Reset()
- func (x *BlockInfo) String() string
- type Dispute
- func (*Dispute) Descriptor() ([]byte, []int)deprecated
- func (x *Dispute) GetAdditionalEvidence() []*oracle.MicroReport
- func (x *Dispute) GetBlockNumber() uint64
- func (x *Dispute) GetBurnAmount() string
- func (x *Dispute) GetDisputeCategory() DisputeCategory
- func (x *Dispute) GetDisputeEndTime() *timestamppb.Timestamp
- func (x *Dispute) GetDisputeFee() string
- func (x *Dispute) GetDisputeId() uint64
- func (x *Dispute) GetDisputeRound() uint64
- func (x *Dispute) GetDisputeStartBlock() uint64
- func (x *Dispute) GetDisputeStartTime() *timestamppb.Timestamp
- func (x *Dispute) GetDisputeStatus() DisputeStatus
- func (x *Dispute) GetFeeTotal() string
- func (x *Dispute) GetHashId() []byte
- func (x *Dispute) GetInitialEvidence() *oracle.MicroReport
- func (x *Dispute) GetOpen() bool
- func (x *Dispute) GetPendingExecution() bool
- func (x *Dispute) GetPrevDisputeIds() []uint64
- func (x *Dispute) GetSlashAmount() string
- func (x *Dispute) GetVoterReward() string
- func (*Dispute) ProtoMessage()
- func (x *Dispute) ProtoReflect() protoreflect.Message
- func (x *Dispute) Reset()
- func (x *Dispute) String() string
- type DisputeCategory
- func (DisputeCategory) Descriptor() protoreflect.EnumDescriptor
- func (x DisputeCategory) Enum() *DisputeCategory
- func (DisputeCategory) EnumDescriptor() ([]byte, []int)deprecated
- func (x DisputeCategory) Number() protoreflect.EnumNumber
- func (x DisputeCategory) String() string
- func (DisputeCategory) Type() protoreflect.EnumType
- type DisputeParams
- func (*DisputeParams) Descriptor() ([]byte, []int)deprecated
- func (x *DisputeParams) GetCategory() DisputeCategory
- func (x *DisputeParams) GetReport() *oracle.MicroReport
- func (*DisputeParams) ProtoMessage()
- func (x *DisputeParams) ProtoReflect() protoreflect.Message
- func (x *DisputeParams) Reset()
- func (x *DisputeParams) String() string
- type DisputeStatus
- func (DisputeStatus) Descriptor() protoreflect.EnumDescriptor
- func (x DisputeStatus) Enum() *DisputeStatus
- func (DisputeStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x DisputeStatus) Number() protoreflect.EnumNumber
- func (x DisputeStatus) String() string
- func (DisputeStatus) Type() protoreflect.EnumType
- type Disputes
- type GenesisState
- type GroupTally
- func (*GroupTally) Descriptor() ([]byte, []int)deprecated
- func (x *GroupTally) GetTotalGroupPower() uint64
- func (x *GroupTally) GetTotalPowerVoted() uint64
- func (x *GroupTally) GetVoteCount() *VoteCounts
- func (*GroupTally) ProtoMessage()
- func (x *GroupTally) ProtoReflect() protoreflect.Message
- func (x *GroupTally) Reset()
- func (x *GroupTally) String() string
- type MsgAddEvidence
- func (*MsgAddEvidence) Descriptor() ([]byte, []int)deprecated
- func (x *MsgAddEvidence) GetCallerAddress() string
- func (x *MsgAddEvidence) GetDisputeId() uint64
- func (x *MsgAddEvidence) GetReports() []*oracle.MicroReport
- func (*MsgAddEvidence) ProtoMessage()
- func (x *MsgAddEvidence) ProtoReflect() protoreflect.Message
- func (x *MsgAddEvidence) Reset()
- func (x *MsgAddEvidence) String() string
- type MsgAddEvidenceResponse
- type MsgAddFeeToDispute
- func (*MsgAddFeeToDispute) Descriptor() ([]byte, []int)deprecated
- func (x *MsgAddFeeToDispute) GetAmount() *v1beta1.Coin
- func (x *MsgAddFeeToDispute) GetCreator() string
- func (x *MsgAddFeeToDispute) GetDisputeId() uint64
- func (x *MsgAddFeeToDispute) GetPayFromBond() bool
- func (*MsgAddFeeToDispute) ProtoMessage()
- func (x *MsgAddFeeToDispute) ProtoReflect() protoreflect.Message
- func (x *MsgAddFeeToDispute) Reset()
- func (x *MsgAddFeeToDispute) String() string
- type MsgAddFeeToDisputeResponse
- type MsgClaimReward
- func (*MsgClaimReward) Descriptor() ([]byte, []int)deprecated
- func (x *MsgClaimReward) GetCallerAddress() string
- func (x *MsgClaimReward) GetDisputeId() uint64
- func (*MsgClaimReward) ProtoMessage()
- func (x *MsgClaimReward) ProtoReflect() protoreflect.Message
- func (x *MsgClaimReward) Reset()
- func (x *MsgClaimReward) String() string
- type MsgClaimRewardResponse
- type MsgClient
- type MsgProposeDispute
- func (*MsgProposeDispute) Descriptor() ([]byte, []int)deprecated
- func (x *MsgProposeDispute) GetCreator() string
- func (x *MsgProposeDispute) GetDisputeCategory() DisputeCategory
- func (x *MsgProposeDispute) GetFee() *v1beta1.Coin
- func (x *MsgProposeDispute) GetPayFromBond() bool
- func (x *MsgProposeDispute) GetReport() *oracle.MicroReport
- func (*MsgProposeDispute) ProtoMessage()
- func (x *MsgProposeDispute) ProtoReflect() protoreflect.Message
- func (x *MsgProposeDispute) Reset()
- func (x *MsgProposeDispute) String() string
- type MsgProposeDisputeResponse
- type MsgServer
- type MsgUpdateTeam
- func (*MsgUpdateTeam) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateTeam) GetCurrentTeamAddress() string
- func (x *MsgUpdateTeam) GetNewTeamAddress() string
- func (*MsgUpdateTeam) ProtoMessage()
- func (x *MsgUpdateTeam) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateTeam) Reset()
- func (x *MsgUpdateTeam) String() string
- type MsgUpdateTeamResponse
- type MsgVote
- func (*MsgVote) Descriptor() ([]byte, []int)deprecated
- func (x *MsgVote) GetId() uint64
- func (x *MsgVote) GetVote() VoteEnum
- func (x *MsgVote) GetVoter() string
- func (*MsgVote) ProtoMessage()
- func (x *MsgVote) ProtoReflect() protoreflect.Message
- func (x *MsgVote) Reset()
- func (x *MsgVote) String() string
- type MsgVoteResponse
- type MsgWithdrawFeeRefund
- func (*MsgWithdrawFeeRefund) Descriptor() ([]byte, []int)deprecated
- func (x *MsgWithdrawFeeRefund) GetCallerAddress() string
- func (x *MsgWithdrawFeeRefund) GetId() uint64
- func (x *MsgWithdrawFeeRefund) GetPayerAddress() string
- func (*MsgWithdrawFeeRefund) ProtoMessage()
- func (x *MsgWithdrawFeeRefund) ProtoReflect() protoreflect.Message
- func (x *MsgWithdrawFeeRefund) Reset()
- func (x *MsgWithdrawFeeRefund) String() string
- type MsgWithdrawFeeRefundResponse
- func (*MsgWithdrawFeeRefundResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgWithdrawFeeRefundResponse) ProtoMessage()
- func (x *MsgWithdrawFeeRefundResponse) ProtoReflect() protoreflect.Message
- func (x *MsgWithdrawFeeRefundResponse) Reset()
- func (x *MsgWithdrawFeeRefundResponse) String() string
- type OpenDisputes
- type Params
- type PayerInfo
- type QueryClient
- type QueryDisputesRequest
- func (*QueryDisputesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDisputesRequest) GetPagination() *v1beta1.PageRequest
- func (*QueryDisputesRequest) ProtoMessage()
- func (x *QueryDisputesRequest) ProtoReflect() protoreflect.Message
- func (x *QueryDisputesRequest) Reset()
- func (x *QueryDisputesRequest) String() string
- type QueryDisputesResponse
- func (*QueryDisputesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDisputesResponse) GetDisputes() []*Disputes
- func (x *QueryDisputesResponse) GetPagination() *v1beta1.PageResponse
- func (*QueryDisputesResponse) ProtoMessage()
- func (x *QueryDisputesResponse) ProtoReflect() protoreflect.Message
- func (x *QueryDisputesResponse) Reset()
- func (x *QueryDisputesResponse) String() string
- type QueryDisputesTallyRequest
- func (*QueryDisputesTallyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDisputesTallyRequest) GetDisputeId() uint64
- func (*QueryDisputesTallyRequest) ProtoMessage()
- func (x *QueryDisputesTallyRequest) ProtoReflect() protoreflect.Message
- func (x *QueryDisputesTallyRequest) Reset()
- func (x *QueryDisputesTallyRequest) String() string
- type QueryDisputesTallyResponse
- func (*QueryDisputesTallyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDisputesTallyResponse) GetReporters() *GroupTally
- func (x *QueryDisputesTallyResponse) GetTeam() *VoteCounts
- func (x *QueryDisputesTallyResponse) GetTokenholders() *GroupTally
- func (x *QueryDisputesTallyResponse) GetUsers() *GroupTally
- func (*QueryDisputesTallyResponse) ProtoMessage()
- func (x *QueryDisputesTallyResponse) ProtoReflect() protoreflect.Message
- func (x *QueryDisputesTallyResponse) Reset()
- func (x *QueryDisputesTallyResponse) String() string
- type QueryOpenDisputesRequest
- type QueryOpenDisputesResponse
- func (*QueryOpenDisputesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryOpenDisputesResponse) GetOpenDisputes() *OpenDisputes
- func (*QueryOpenDisputesResponse) ProtoMessage()
- func (x *QueryOpenDisputesResponse) ProtoReflect() protoreflect.Message
- func (x *QueryOpenDisputesResponse) Reset()
- func (x *QueryOpenDisputesResponse) String() string
- type QueryParamsRequest
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryParamsResponse) GetParams() *Params
- func (*QueryParamsResponse) ProtoMessage()
- func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryParamsResponse) Reset()
- func (x *QueryParamsResponse) String() string
- type QueryServer
- type QueryTeamAddressRequest
- type QueryTeamAddressResponse
- func (*QueryTeamAddressResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTeamAddressResponse) GetTeamAddress() string
- func (*QueryTeamAddressResponse) ProtoMessage()
- func (x *QueryTeamAddressResponse) ProtoReflect() protoreflect.Message
- func (x *QueryTeamAddressResponse) Reset()
- func (x *QueryTeamAddressResponse) String() string
- type QueryTeamVoteRequest
- func (*QueryTeamVoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTeamVoteRequest) GetDisputeId() uint64
- func (*QueryTeamVoteRequest) ProtoMessage()
- func (x *QueryTeamVoteRequest) ProtoReflect() protoreflect.Message
- func (x *QueryTeamVoteRequest) Reset()
- func (x *QueryTeamVoteRequest) String() string
- type QueryTeamVoteResponse
- func (*QueryTeamVoteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTeamVoteResponse) GetTeamVote() *Voter
- func (*QueryTeamVoteResponse) ProtoMessage()
- func (x *QueryTeamVoteResponse) ProtoReflect() protoreflect.Message
- func (x *QueryTeamVoteResponse) Reset()
- func (x *QueryTeamVoteResponse) String() string
- type Tally
- func (*Tally) Descriptor() ([]byte, []int)deprecated
- func (x *Tally) GetAgainstVotes() *VoterClasses
- func (x *Tally) GetForVotes() *VoterClasses
- func (x *Tally) GetInvalid() *VoterClasses
- func (*Tally) ProtoMessage()
- func (x *Tally) ProtoReflect() protoreflect.Message
- func (x *Tally) Reset()
- func (x *Tally) String() string
- type UnimplementedMsgServer
- func (UnimplementedMsgServer) AddEvidence(context.Context, *MsgAddEvidence) (*MsgAddEvidenceResponse, error)
- func (UnimplementedMsgServer) AddFeeToDispute(context.Context, *MsgAddFeeToDispute) (*MsgAddFeeToDisputeResponse, error)
- func (UnimplementedMsgServer) ClaimReward(context.Context, *MsgClaimReward) (*MsgClaimRewardResponse, error)
- func (UnimplementedMsgServer) ProposeDispute(context.Context, *MsgProposeDispute) (*MsgProposeDisputeResponse, error)
- func (UnimplementedMsgServer) UpdateTeam(context.Context, *MsgUpdateTeam) (*MsgUpdateTeamResponse, error)
- func (UnimplementedMsgServer) Vote(context.Context, *MsgVote) (*MsgVoteResponse, error)
- func (UnimplementedMsgServer) WithdrawFeeRefund(context.Context, *MsgWithdrawFeeRefund) (*MsgWithdrawFeeRefundResponse, error)
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) Disputes(context.Context, *QueryDisputesRequest) (*QueryDisputesResponse, error)
- func (UnimplementedQueryServer) OpenDisputes(context.Context, *QueryOpenDisputesRequest) (*QueryOpenDisputesResponse, error)
- func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
- func (UnimplementedQueryServer) Tally(context.Context, *QueryDisputesTallyRequest) (*QueryDisputesTallyResponse, error)
- func (UnimplementedQueryServer) TeamAddress(context.Context, *QueryTeamAddressRequest) (*QueryTeamAddressResponse, error)
- func (UnimplementedQueryServer) TeamVote(context.Context, *QueryTeamVoteRequest) (*QueryTeamVoteResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
- type Vote
- func (*Vote) Descriptor() ([]byte, []int)deprecated
- func (x *Vote) GetExecuted() bool
- func (x *Vote) GetId() uint64
- func (x *Vote) GetVoteEnd() *timestamppb.Timestamp
- func (x *Vote) GetVoteResult() VoteResult
- func (x *Vote) GetVoteStart() *timestamppb.Timestamp
- func (*Vote) ProtoMessage()
- func (x *Vote) ProtoReflect() protoreflect.Message
- func (x *Vote) Reset()
- func (x *Vote) String() string
- type VoteCounts
- func (*VoteCounts) Descriptor() ([]byte, []int)deprecated
- func (x *VoteCounts) GetAgainst() uint64
- func (x *VoteCounts) GetInvalid() uint64
- func (x *VoteCounts) GetSupport() uint64
- func (*VoteCounts) ProtoMessage()
- func (x *VoteCounts) ProtoReflect() protoreflect.Message
- func (x *VoteCounts) Reset()
- func (x *VoteCounts) String() string
- type VoteEnum
- type VoteGroup
- func (*VoteGroup) Descriptor() ([]byte, []int)deprecated
- func (x *VoteGroup) GetReporters() []byte
- func (x *VoteGroup) GetTokenHolders() []byte
- func (x *VoteGroup) GetUsers() []byte
- func (*VoteGroup) ProtoMessage()
- func (x *VoteGroup) ProtoReflect() protoreflect.Message
- func (x *VoteGroup) Reset()
- func (x *VoteGroup) String() string
- type VoteResult
- type Voter
- func (*Voter) Descriptor() ([]byte, []int)deprecated
- func (x *Voter) GetReporterPower() string
- func (x *Voter) GetRewardClaimed() bool
- func (x *Voter) GetTokenholderPower() string
- func (x *Voter) GetVote() VoteEnum
- func (x *Voter) GetVoterPower() string
- func (*Voter) ProtoMessage()
- func (x *Voter) ProtoReflect() protoreflect.Message
- func (x *Voter) Reset()
- func (x *Voter) String() string
- type VoterClasses
- func (*VoterClasses) Descriptor() ([]byte, []int)deprecated
- func (x *VoterClasses) GetReporters() string
- func (x *VoterClasses) GetTeam() string
- func (x *VoterClasses) GetTokenHolders() string
- func (x *VoterClasses) GetUsers() string
- func (*VoterClasses) ProtoMessage()
- func (x *VoterClasses) ProtoReflect() protoreflect.Message
- func (x *VoterClasses) Reset()
- func (x *VoterClasses) String() string
Constants ¶
This section is empty.
Variables ¶
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.
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.
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.
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.
var File_layer_dispute_dispute_params_proto protoreflect.FileDescriptor
var File_layer_dispute_dispute_proto protoreflect.FileDescriptor
var File_layer_dispute_genesis_proto protoreflect.FileDescriptor
var File_layer_dispute_open_disputes_proto protoreflect.FileDescriptor
var File_layer_dispute_params_proto protoreflect.FileDescriptor
var File_layer_dispute_query_proto protoreflect.FileDescriptor
var File_layer_dispute_tally_proto protoreflect.FileDescriptor
var File_layer_dispute_tx_proto protoreflect.FileDescriptor
var File_layer_dispute_vote_proto protoreflect.FileDescriptor
var File_layer_dispute_voter_classes_proto protoreflect.FileDescriptor
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)
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) GetTotalReporterPower ¶
func (*BlockInfo) GetTotalUserTips ¶
func (*BlockInfo) ProtoMessage ¶
func (*BlockInfo) ProtoMessage()
func (*BlockInfo) ProtoReflect ¶
func (x *BlockInfo) ProtoReflect() protoreflect.Message
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) GetAdditionalEvidence ¶
func (x *Dispute) GetAdditionalEvidence() []*oracle.MicroReport
func (*Dispute) GetBlockNumber ¶
func (*Dispute) GetBurnAmount ¶
func (*Dispute) GetDisputeCategory ¶
func (x *Dispute) GetDisputeCategory() DisputeCategory
func (*Dispute) GetDisputeEndTime ¶
func (x *Dispute) GetDisputeEndTime() *timestamppb.Timestamp
func (*Dispute) GetDisputeFee ¶
func (*Dispute) GetDisputeId ¶
func (*Dispute) GetDisputeRound ¶
func (*Dispute) GetDisputeStartBlock ¶
func (*Dispute) GetDisputeStartTime ¶
func (x *Dispute) GetDisputeStartTime() *timestamppb.Timestamp
func (*Dispute) GetDisputeStatus ¶
func (x *Dispute) GetDisputeStatus() DisputeStatus
func (*Dispute) GetFeeTotal ¶
func (*Dispute) GetInitialEvidence ¶
func (x *Dispute) GetInitialEvidence() *oracle.MicroReport
func (*Dispute) GetPendingExecution ¶
func (*Dispute) GetPrevDisputeIds ¶
func (*Dispute) GetSlashAmount ¶
func (*Dispute) GetVoterReward ¶
func (*Dispute) ProtoMessage ¶
func (*Dispute) ProtoMessage()
func (*Dispute) ProtoReflect ¶
func (x *Dispute) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
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 (x DisputeCategory) Number() protoreflect.EnumNumber
func (DisputeCategory) String ¶
func (x DisputeCategory) String() string
func (DisputeCategory) Type ¶
func (DisputeCategory) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
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 (x DisputeStatus) Number() protoreflect.EnumNumber
func (DisputeStatus) String ¶
func (x DisputeStatus) String() string
func (DisputeStatus) Type ¶
func (DisputeStatus) Type() protoreflect.EnumType
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) GetDisputeId ¶
func (*Disputes) GetMetadata ¶
func (*Disputes) ProtoMessage ¶
func (*Disputes) ProtoMessage()
func (*Disputes) ProtoReflect ¶
func (x *Disputes) ProtoReflect() protoreflect.Message
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 (x *MsgAddFeeToDisputeResponse) ProtoReflect() protoreflect.Message
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 (x *MsgProposeDisputeResponse) ProtoReflect() protoreflect.Message
func (*MsgProposeDisputeResponse) Reset ¶
func (x *MsgProposeDisputeResponse) Reset()
func (*MsgProposeDisputeResponse) String ¶
func (x *MsgProposeDisputeResponse) String() string
type MsgServer ¶
type MsgServer interface { ProposeDispute(context.Context, *MsgProposeDispute) (*MsgProposeDisputeResponse, error) AddFeeToDispute(context.Context, *MsgAddFeeToDispute) (*MsgAddFeeToDisputeResponse, error) Vote(context.Context, *MsgVote) (*MsgVoteResponse, error) UpdateTeam(context.Context, *MsgUpdateTeam) (*MsgUpdateTeamResponse, error) WithdrawFeeRefund(context.Context, *MsgWithdrawFeeRefund) (*MsgWithdrawFeeRefundResponse, error) AddEvidence(context.Context, *MsgAddEvidence) (*MsgAddEvidenceResponse, error) ClaimReward(context.Context, *MsgClaimReward) (*MsgClaimRewardResponse, error) // contains filtered or unexported methods }
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) ProtoMessage ¶
func (*MsgVote) ProtoMessage()
func (*MsgVote) ProtoReflect ¶
func (x *MsgVote) ProtoReflect() protoreflect.Message
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 (x *MsgWithdrawFeeRefundResponse) ProtoReflect() protoreflect.Message
func (*MsgWithdrawFeeRefundResponse) Reset ¶
func (x *MsgWithdrawFeeRefundResponse) Reset()
func (*MsgWithdrawFeeRefundResponse) String ¶
func (x *MsgWithdrawFeeRefundResponse) String() 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) GetTeamAddress ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
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) GetFromBond ¶
func (*PayerInfo) ProtoMessage ¶
func (*PayerInfo) ProtoMessage()
func (*PayerInfo) ProtoReflect ¶
func (x *PayerInfo) ProtoReflect() protoreflect.Message
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 (x *QueryDisputesTallyRequest) ProtoReflect() protoreflect.Message
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 (x *QueryDisputesTallyResponse) ProtoReflect() protoreflect.Message
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 (x *QueryOpenDisputesResponse) ProtoReflect() protoreflect.Message
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) 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
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) AddEvidence ¶
func (UnimplementedMsgServer) AddEvidence(context.Context, *MsgAddEvidence) (*MsgAddEvidenceResponse, error)
func (UnimplementedMsgServer) AddFeeToDispute ¶
func (UnimplementedMsgServer) AddFeeToDispute(context.Context, *MsgAddFeeToDispute) (*MsgAddFeeToDisputeResponse, error)
func (UnimplementedMsgServer) ClaimReward ¶
func (UnimplementedMsgServer) ClaimReward(context.Context, *MsgClaimReward) (*MsgClaimRewardResponse, error)
func (UnimplementedMsgServer) ProposeDispute ¶
func (UnimplementedMsgServer) ProposeDispute(context.Context, *MsgProposeDispute) (*MsgProposeDisputeResponse, error)
func (UnimplementedMsgServer) UpdateTeam ¶
func (UnimplementedMsgServer) UpdateTeam(context.Context, *MsgUpdateTeam) (*MsgUpdateTeamResponse, error)
func (UnimplementedMsgServer) Vote ¶
func (UnimplementedMsgServer) Vote(context.Context, *MsgVote) (*MsgVoteResponse, error)
func (UnimplementedMsgServer) WithdrawFeeRefund ¶
func (UnimplementedMsgServer) WithdrawFeeRefund(context.Context, *MsgWithdrawFeeRefund) (*MsgWithdrawFeeRefundResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) Disputes ¶
func (UnimplementedQueryServer) Disputes(context.Context, *QueryDisputesRequest) (*QueryDisputesResponse, error)
func (UnimplementedQueryServer) OpenDisputes ¶
func (UnimplementedQueryServer) OpenDisputes(context.Context, *QueryOpenDisputesRequest) (*QueryOpenDisputesResponse, error)
func (UnimplementedQueryServer) Params ¶
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
func (UnimplementedQueryServer) Tally ¶
func (UnimplementedQueryServer) Tally(context.Context, *QueryDisputesTallyRequest) (*QueryDisputesTallyResponse, error)
func (UnimplementedQueryServer) TeamAddress ¶
func (UnimplementedQueryServer) TeamAddress(context.Context, *QueryTeamAddressRequest) (*QueryTeamAddressResponse, error)
func (UnimplementedQueryServer) TeamVote ¶
func (UnimplementedQueryServer) TeamVote(context.Context, *QueryTeamVoteRequest) (*QueryTeamVoteResponse, error)
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) GetExecuted ¶
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
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
func (VoteEnum) Descriptor ¶
func (VoteEnum) Descriptor() protoreflect.EnumDescriptor
func (VoteEnum) EnumDescriptor
deprecated
func (VoteEnum) Number ¶
func (x VoteEnum) Number() protoreflect.EnumNumber
func (VoteEnum) Type ¶
func (VoteEnum) Type() protoreflect.EnumType
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) GetReporters ¶
func (*VoteGroup) GetTokenHolders ¶
func (*VoteGroup) ProtoMessage ¶
func (*VoteGroup) ProtoMessage()
func (*VoteGroup) ProtoReflect ¶
func (x *VoteGroup) ProtoReflect() protoreflect.Message
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 ¶
func (VoteResult) Type() protoreflect.EnumType
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) GetReporterPower ¶
func (*Voter) GetRewardClaimed ¶
func (*Voter) GetTokenholderPower ¶
func (*Voter) GetVoterPower ¶
func (*Voter) ProtoMessage ¶
func (*Voter) ProtoMessage()
func (*Voter) ProtoReflect ¶
func (x *Voter) ProtoReflect() protoreflect.Message
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