votev1beta1

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 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.

Index

Constants

View Source
const (
	Query_History_FullMethodName     = "/axiome.vote.v1beta1.Query/History"
	Query_Government_FullMethodName  = "/axiome.vote.v1beta1.Query/Government"
	Query_Current_FullMethodName     = "/axiome.vote.v1beta1.Query/Current"
	Query_Params_FullMethodName      = "/axiome.vote.v1beta1.Query/Params"
	Query_Poll_FullMethodName        = "/axiome.vote.v1beta1.Query/Poll"
	Query_PollHistory_FullMethodName = "/axiome.vote.v1beta1.Query/PollHistory"
)
View Source
const (
	Msg_Propose_FullMethodName        = "/axiome.vote.v1beta1.Msg/Propose"
	Msg_Vote_FullMethodName           = "/axiome.vote.v1beta1.Msg/Vote"
	Msg_StartPoll_FullMethodName      = "/axiome.vote.v1beta1.Msg/StartPoll"
	Msg_AnswerPoll_FullMethodName     = "/axiome.vote.v1beta1.Msg/AnswerPoll"
	Msg_UpdateParams_FullMethodName   = "/axiome.vote.v1beta1.Msg/UpdateParams"
	Msg_AddGovernor_FullMethodName    = "/axiome.vote.v1beta1.Msg/AddGovernor"
	Msg_RemoveGovernor_FullMethodName = "/axiome.vote.v1beta1.Msg/RemoveGovernor"
)

Variables

View Source
var (
	Decision_name = map[int32]string{
		0: "DECISION_UNSPECIFIED",
		1: "DECISION_POSITIVE",
		2: "DECISION_NEGATIVE",
	}
	Decision_value = map[string]int32{
		"DECISION_UNSPECIFIED": 0,
		"DECISION_POSITIVE":    1,
		"DECISION_NEGATIVE":    2,
	}
)

Enum value maps for Decision.

View Source
var File_axiome_vote_v1beta1_events_proto protoreflect.FileDescriptor
View Source
var File_axiome_vote_v1beta1_genesis_proto protoreflect.FileDescriptor
View Source
var File_axiome_vote_v1beta1_params_proto protoreflect.FileDescriptor
View Source
var File_axiome_vote_v1beta1_query_proto protoreflect.FileDescriptor
View Source
var File_axiome_vote_v1beta1_tx_proto protoreflect.FileDescriptor
View Source
var File_axiome_vote_v1beta1_types_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "axiome.vote.v1beta1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Propose",
			Handler:    _Msg_Propose_Handler,
		},
		{
			MethodName: "Vote",
			Handler:    _Msg_Vote_Handler,
		},
		{
			MethodName: "StartPoll",
			Handler:    _Msg_StartPoll_Handler,
		},
		{
			MethodName: "AnswerPoll",
			Handler:    _Msg_AnswerPoll_Handler,
		},
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
		{
			MethodName: "AddGovernor",
			Handler:    _Msg_AddGovernor_Handler,
		},
		{
			MethodName: "RemoveGovernor",
			Handler:    _Msg_RemoveGovernor_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "axiome/vote/v1beta1/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: "axiome.vote.v1beta1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "History",
			Handler:    _Query_History_Handler,
		},
		{
			MethodName: "Government",
			Handler:    _Query_Government_Handler,
		},
		{
			MethodName: "Current",
			Handler:    _Query_Current_Handler,
		},
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "Poll",
			Handler:    _Query_Poll_Handler,
		},
		{
			MethodName: "PollHistory",
			Handler:    _Query_PollHistory_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "axiome/vote/v1beta1/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 CurrentRequest

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

func (*CurrentRequest) Descriptor deprecated

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

Deprecated: Use CurrentRequest.ProtoReflect.Descriptor instead.

func (*CurrentRequest) ProtoMessage

func (*CurrentRequest) ProtoMessage()

func (*CurrentRequest) ProtoReflect

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

func (*CurrentRequest) Reset

func (x *CurrentRequest) Reset()

func (*CurrentRequest) String

func (x *CurrentRequest) String() string

type CurrentResponse

type CurrentResponse struct {
	Proposal   *Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
	Government []string  `protobuf:"bytes,2,rep,name=government,proto3" json:"government,omitempty"`
	Agreed     []string  `protobuf:"bytes,3,rep,name=agreed,proto3" json:"agreed,omitempty"`
	Disagreed  []string  `protobuf:"bytes,4,rep,name=disagreed,proto3" json:"disagreed,omitempty"`
	// contains filtered or unexported fields
}

func (*CurrentResponse) Descriptor deprecated

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

Deprecated: Use CurrentResponse.ProtoReflect.Descriptor instead.

func (*CurrentResponse) GetAgreed

func (x *CurrentResponse) GetAgreed() []string

func (*CurrentResponse) GetDisagreed

func (x *CurrentResponse) GetDisagreed() []string

func (*CurrentResponse) GetGovernment

func (x *CurrentResponse) GetGovernment() []string

func (*CurrentResponse) GetProposal

func (x *CurrentResponse) GetProposal() *Proposal

func (*CurrentResponse) ProtoMessage

func (*CurrentResponse) ProtoMessage()

func (*CurrentResponse) ProtoReflect

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

func (*CurrentResponse) Reset

func (x *CurrentResponse) Reset()

func (*CurrentResponse) String

func (x *CurrentResponse) String() string

type Decision

type Decision int32
const (
	Decision_DECISION_UNSPECIFIED Decision = 0
	Decision_DECISION_POSITIVE    Decision = 1
	Decision_DECISION_NEGATIVE    Decision = 2
)

func (Decision) Descriptor

func (Decision) Descriptor() protoreflect.EnumDescriptor

func (Decision) Enum

func (x Decision) Enum() *Decision

func (Decision) EnumDescriptor deprecated

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

Deprecated: Use Decision.Descriptor instead.

func (Decision) Number

func (x Decision) Number() protoreflect.EnumNumber

func (Decision) String

func (x Decision) String() string

func (Decision) Type

type EventPollFinished

type EventPollFinished struct {
	Name     string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Yes      uint64   `protobuf:"varint,2,opt,name=yes,proto3" json:"yes,omitempty"`
	No       uint64   `protobuf:"varint,3,opt,name=no,proto3" json:"no,omitempty"`
	Decision Decision `protobuf:"varint,4,opt,name=decision,proto3,enum=axiome.vote.v1beta1.Decision" json:"decision,omitempty"`
	// contains filtered or unexported fields
}

func (*EventPollFinished) Descriptor deprecated

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

Deprecated: Use EventPollFinished.ProtoReflect.Descriptor instead.

func (*EventPollFinished) GetDecision

func (x *EventPollFinished) GetDecision() Decision

func (*EventPollFinished) GetName

func (x *EventPollFinished) GetName() string

func (*EventPollFinished) GetNo

func (x *EventPollFinished) GetNo() uint64

func (*EventPollFinished) GetYes

func (x *EventPollFinished) GetYes() uint64

func (*EventPollFinished) ProtoMessage

func (*EventPollFinished) ProtoMessage()

func (*EventPollFinished) ProtoReflect

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

func (*EventPollFinished) Reset

func (x *EventPollFinished) Reset()

func (*EventPollFinished) String

func (x *EventPollFinished) String() string

type EventProposalCreated

type EventProposalCreated struct {
	Name   string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Author string `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`
	// contains filtered or unexported fields
}

func (*EventProposalCreated) Descriptor deprecated

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

Deprecated: Use EventProposalCreated.ProtoReflect.Descriptor instead.

func (*EventProposalCreated) GetAuthor

func (x *EventProposalCreated) GetAuthor() string

func (*EventProposalCreated) GetName

func (x *EventProposalCreated) GetName() string

func (*EventProposalCreated) ProtoMessage

func (*EventProposalCreated) ProtoMessage()

func (*EventProposalCreated) ProtoReflect

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

func (*EventProposalCreated) Reset

func (x *EventProposalCreated) Reset()

func (*EventProposalCreated) String

func (x *EventProposalCreated) String() string

type EventProposalVote

type EventProposalVote struct {
	Voter  string `protobuf:"bytes,1,opt,name=voter,proto3" json:"voter,omitempty"`
	Agreed bool   `protobuf:"varint,2,opt,name=agreed,proto3" json:"agreed,omitempty"`
	// contains filtered or unexported fields
}

func (*EventProposalVote) Descriptor deprecated

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

Deprecated: Use EventProposalVote.ProtoReflect.Descriptor instead.

func (*EventProposalVote) GetAgreed

func (x *EventProposalVote) GetAgreed() bool

func (*EventProposalVote) GetVoter

func (x *EventProposalVote) GetVoter() string

func (*EventProposalVote) ProtoMessage

func (*EventProposalVote) ProtoMessage()

func (*EventProposalVote) ProtoReflect

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

func (*EventProposalVote) Reset

func (x *EventProposalVote) Reset()

func (*EventProposalVote) String

func (x *EventProposalVote) String() string

type EventvoteFinished

type EventvoteFinished struct {
	Name   string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Agreed bool   `protobuf:"varint,2,opt,name=agreed,proto3" json:"agreed,omitempty"`
	// contains filtered or unexported fields
}

func (*EventvoteFinished) Descriptor deprecated

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

Deprecated: Use EventvoteFinished.ProtoReflect.Descriptor instead.

func (*EventvoteFinished) GetAgreed

func (x *EventvoteFinished) GetAgreed() bool

func (*EventvoteFinished) GetName

func (x *EventvoteFinished) GetName() string

func (*EventvoteFinished) ProtoMessage

func (*EventvoteFinished) ProtoMessage()

func (*EventvoteFinished) ProtoReflect

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

func (*EventvoteFinished) Reset

func (x *EventvoteFinished) Reset()

func (*EventvoteFinished) String

func (x *EventvoteFinished) String() string

type GenesisState

type GenesisState struct {
	Government      []string                 `protobuf:"bytes,1,rep,name=government,proto3" json:"government,omitempty"`
	Params          *Params                  `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	CurrentProposal *Proposal                `protobuf:"bytes,3,opt,name=current_proposal,json=currentProposal,proto3" json:"current_proposal,omitempty"`
	StartBlock      int64                    `protobuf:"varint,4,opt,name=start_block,json=startBlock,proto3" json:"start_block,omitempty"`
	Agreed          []string                 `protobuf:"bytes,5,rep,name=agreed,proto3" json:"agreed,omitempty"`
	Disagreed       []string                 `protobuf:"bytes,6,rep,name=disagreed,proto3" json:"disagreed,omitempty"`
	History         []*ProposalHistoryRecord `protobuf:"bytes,7,rep,name=history,proto3" json:"history,omitempty"`
	CurrentPoll     *Poll                    `protobuf:"bytes,8,opt,name=current_poll,json=currentPoll,proto3" json:"current_poll,omitempty"`
	PollAnswers     []*PollAnswer            `protobuf:"bytes,9,rep,name=poll_answers,json=pollAnswers,proto3" json:"poll_answers,omitempty"`
	PollHistory     []*PollHistoryItem       `protobuf:"bytes,10,rep,name=poll_history,json=pollHistory,proto3" json:"poll_history,omitempty"`
	// contains filtered or unexported fields
}

GenesisState - all vote state that must be provided at genesis

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetAgreed

func (x *GenesisState) GetAgreed() []string

func (*GenesisState) GetCurrentPoll

func (x *GenesisState) GetCurrentPoll() *Poll

func (*GenesisState) GetCurrentProposal

func (x *GenesisState) GetCurrentProposal() *Proposal

func (*GenesisState) GetDisagreed

func (x *GenesisState) GetDisagreed() []string

func (*GenesisState) GetGovernment

func (x *GenesisState) GetGovernment() []string

func (*GenesisState) GetHistory

func (x *GenesisState) GetHistory() []*ProposalHistoryRecord

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetPollAnswers

func (x *GenesisState) GetPollAnswers() []*PollAnswer

func (*GenesisState) GetPollHistory

func (x *GenesisState) GetPollHistory() []*PollHistoryItem

func (*GenesisState) GetStartBlock

func (x *GenesisState) GetStartBlock() int64

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 Government

type Government struct {
	Members []string `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
	// contains filtered or unexported fields
}

Government is a list of accounts.

For the optimization sake, it's better not to use it as a part of a more complex data struct, using simple `repeated string` instead.

func (*Government) Descriptor deprecated

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

Deprecated: Use Government.ProtoReflect.Descriptor instead.

func (*Government) GetMembers

func (x *Government) GetMembers() []string

func (*Government) ProtoMessage

func (*Government) ProtoMessage()

func (*Government) ProtoReflect

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

func (*Government) Reset

func (x *Government) Reset()

func (*Government) String

func (x *Government) String() string

type GovernmentRequest

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

func (*GovernmentRequest) Descriptor deprecated

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

Deprecated: Use GovernmentRequest.ProtoReflect.Descriptor instead.

func (*GovernmentRequest) ProtoMessage

func (*GovernmentRequest) ProtoMessage()

func (*GovernmentRequest) ProtoReflect

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

func (*GovernmentRequest) Reset

func (x *GovernmentRequest) Reset()

func (*GovernmentRequest) String

func (x *GovernmentRequest) String() string

type GovernmentResponse

type GovernmentResponse struct {
	Members []string `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
	// contains filtered or unexported fields
}

func (*GovernmentResponse) Descriptor deprecated

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

Deprecated: Use GovernmentResponse.ProtoReflect.Descriptor instead.

func (*GovernmentResponse) GetMembers

func (x *GovernmentResponse) GetMembers() []string

func (*GovernmentResponse) ProtoMessage

func (*GovernmentResponse) ProtoMessage()

func (*GovernmentResponse) ProtoReflect

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

func (*GovernmentResponse) Reset

func (x *GovernmentResponse) Reset()

func (*GovernmentResponse) String

func (x *GovernmentResponse) String() string

type HistoryRequest

type HistoryRequest struct {
	Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	Page  int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*HistoryRequest) Descriptor deprecated

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

Deprecated: Use HistoryRequest.ProtoReflect.Descriptor instead.

func (*HistoryRequest) GetLimit

func (x *HistoryRequest) GetLimit() int32

func (*HistoryRequest) GetPage

func (x *HistoryRequest) GetPage() int32

func (*HistoryRequest) ProtoMessage

func (*HistoryRequest) ProtoMessage()

func (*HistoryRequest) ProtoReflect

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

func (*HistoryRequest) Reset

func (x *HistoryRequest) Reset()

func (*HistoryRequest) String

func (x *HistoryRequest) String() string

type HistoryResponse

type HistoryResponse struct {
	History []*ProposalHistoryRecord `protobuf:"bytes,1,rep,name=history,proto3" json:"history,omitempty"`
	// contains filtered or unexported fields
}

func (*HistoryResponse) Descriptor deprecated

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

Deprecated: Use HistoryResponse.ProtoReflect.Descriptor instead.

func (*HistoryResponse) GetHistory

func (x *HistoryResponse) GetHistory() []*ProposalHistoryRecord

func (*HistoryResponse) ProtoMessage

func (*HistoryResponse) ProtoMessage()

func (*HistoryResponse) ProtoReflect

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

func (*HistoryResponse) Reset

func (x *HistoryResponse) Reset()

func (*HistoryResponse) String

func (x *HistoryResponse) String() string

type MsgAddGovernor

type MsgAddGovernor struct {
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Governor  string `protobuf:"bytes,2,opt,name=governor,proto3" json:"governor,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgAddGovernor) Descriptor deprecated

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

Deprecated: Use MsgAddGovernor.ProtoReflect.Descriptor instead.

func (*MsgAddGovernor) GetAuthority

func (x *MsgAddGovernor) GetAuthority() string

func (*MsgAddGovernor) GetGovernor

func (x *MsgAddGovernor) GetGovernor() string

func (*MsgAddGovernor) ProtoMessage

func (*MsgAddGovernor) ProtoMessage()

func (*MsgAddGovernor) ProtoReflect

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

func (*MsgAddGovernor) Reset

func (x *MsgAddGovernor) Reset()

func (*MsgAddGovernor) String

func (x *MsgAddGovernor) String() string

type MsgAddGovernorResponse

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

func (*MsgAddGovernorResponse) Descriptor deprecated

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

Deprecated: Use MsgAddGovernorResponse.ProtoReflect.Descriptor instead.

func (*MsgAddGovernorResponse) ProtoMessage

func (*MsgAddGovernorResponse) ProtoMessage()

func (*MsgAddGovernorResponse) ProtoReflect

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

func (*MsgAddGovernorResponse) Reset

func (x *MsgAddGovernorResponse) Reset()

func (*MsgAddGovernorResponse) String

func (x *MsgAddGovernorResponse) String() string

type MsgAnswerPoll

type MsgAnswerPoll struct {
	Respondent string `protobuf:"bytes,1,opt,name=respondent,proto3" json:"respondent,omitempty"`
	Yes        bool   `protobuf:"varint,2,opt,name=yes,proto3" json:"yes,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgAnswerPoll) Descriptor deprecated

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

Deprecated: Use MsgAnswerPoll.ProtoReflect.Descriptor instead.

func (*MsgAnswerPoll) GetRespondent

func (x *MsgAnswerPoll) GetRespondent() string

func (*MsgAnswerPoll) GetYes

func (x *MsgAnswerPoll) GetYes() bool

func (*MsgAnswerPoll) ProtoMessage

func (*MsgAnswerPoll) ProtoMessage()

func (*MsgAnswerPoll) ProtoReflect

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

func (*MsgAnswerPoll) Reset

func (x *MsgAnswerPoll) Reset()

func (*MsgAnswerPoll) String

func (x *MsgAnswerPoll) String() string

type MsgAnswerPollResponse

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

func (*MsgAnswerPollResponse) Descriptor deprecated

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

Deprecated: Use MsgAnswerPollResponse.ProtoReflect.Descriptor instead.

func (*MsgAnswerPollResponse) ProtoMessage

func (*MsgAnswerPollResponse) ProtoMessage()

func (*MsgAnswerPollResponse) ProtoReflect

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

func (*MsgAnswerPollResponse) Reset

func (x *MsgAnswerPollResponse) Reset()

func (*MsgAnswerPollResponse) String

func (x *MsgAnswerPollResponse) String() string

type MsgClient

type MsgClient interface {
	Propose(ctx context.Context, in *MsgPropose, opts ...grpc.CallOption) (*MsgProposeResponse, error)
	Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error)
	StartPoll(ctx context.Context, in *MsgStartPoll, opts ...grpc.CallOption) (*MsgStartPollResponse, error)
	AnswerPoll(ctx context.Context, in *MsgAnswerPoll, opts ...grpc.CallOption) (*MsgAnswerPollResponse, error)
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	AddGovernor(ctx context.Context, in *MsgAddGovernor, opts ...grpc.CallOption) (*MsgAddGovernorResponse, error)
	RemoveGovernor(ctx context.Context, in *MsgRemoveGovernor, opts ...grpc.CallOption) (*MsgRemoveGovernorResponse, 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 MsgPropose

type MsgPropose struct {
	Messages []*anypb.Any `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
	Author   string       `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`
	Name     string       `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgPropose) Descriptor deprecated

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

Deprecated: Use MsgPropose.ProtoReflect.Descriptor instead.

func (*MsgPropose) GetAuthor

func (x *MsgPropose) GetAuthor() string

func (*MsgPropose) GetMessages

func (x *MsgPropose) GetMessages() []*anypb.Any

func (*MsgPropose) GetName

func (x *MsgPropose) GetName() string

func (*MsgPropose) ProtoMessage

func (*MsgPropose) ProtoMessage()

func (*MsgPropose) ProtoReflect

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

func (*MsgPropose) Reset

func (x *MsgPropose) Reset()

func (*MsgPropose) String

func (x *MsgPropose) String() string

type MsgProposeResponse

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

func (*MsgProposeResponse) Descriptor deprecated

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

Deprecated: Use MsgProposeResponse.ProtoReflect.Descriptor instead.

func (*MsgProposeResponse) ProtoMessage

func (*MsgProposeResponse) ProtoMessage()

func (*MsgProposeResponse) ProtoReflect

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

func (*MsgProposeResponse) Reset

func (x *MsgProposeResponse) Reset()

func (*MsgProposeResponse) String

func (x *MsgProposeResponse) String() string

type MsgRemoveGovernor

type MsgRemoveGovernor struct {
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Governor  string `protobuf:"bytes,2,opt,name=governor,proto3" json:"governor,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgRemoveGovernor) Descriptor deprecated

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

Deprecated: Use MsgRemoveGovernor.ProtoReflect.Descriptor instead.

func (*MsgRemoveGovernor) GetAuthority

func (x *MsgRemoveGovernor) GetAuthority() string

func (*MsgRemoveGovernor) GetGovernor

func (x *MsgRemoveGovernor) GetGovernor() string

func (*MsgRemoveGovernor) ProtoMessage

func (*MsgRemoveGovernor) ProtoMessage()

func (*MsgRemoveGovernor) ProtoReflect

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

func (*MsgRemoveGovernor) Reset

func (x *MsgRemoveGovernor) Reset()

func (*MsgRemoveGovernor) String

func (x *MsgRemoveGovernor) String() string

type MsgRemoveGovernorResponse

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

func (*MsgRemoveGovernorResponse) Descriptor deprecated

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

Deprecated: Use MsgRemoveGovernorResponse.ProtoReflect.Descriptor instead.

func (*MsgRemoveGovernorResponse) ProtoMessage

func (*MsgRemoveGovernorResponse) ProtoMessage()

func (*MsgRemoveGovernorResponse) ProtoReflect

func (*MsgRemoveGovernorResponse) Reset

func (x *MsgRemoveGovernorResponse) Reset()

func (*MsgRemoveGovernorResponse) String

func (x *MsgRemoveGovernorResponse) String() string

type MsgServer

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

type MsgStartPoll

type MsgStartPoll struct {
	Poll *Poll `protobuf:"bytes,1,opt,name=poll,proto3" json:"poll,omitempty"`
	// Author is the poll creator's SDK address.
	Author string `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgStartPoll) Descriptor deprecated

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

Deprecated: Use MsgStartPoll.ProtoReflect.Descriptor instead.

func (*MsgStartPoll) GetAuthor

func (x *MsgStartPoll) GetAuthor() string

func (*MsgStartPoll) GetPoll

func (x *MsgStartPoll) GetPoll() *Poll

func (*MsgStartPoll) ProtoMessage

func (*MsgStartPoll) ProtoMessage()

func (*MsgStartPoll) ProtoReflect

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

func (*MsgStartPoll) Reset

func (x *MsgStartPoll) Reset()

func (*MsgStartPoll) String

func (x *MsgStartPoll) String() string

type MsgStartPollResponse

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

func (*MsgStartPollResponse) Descriptor deprecated

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

Deprecated: Use MsgStartPollResponse.ProtoReflect.Descriptor instead.

func (*MsgStartPollResponse) ProtoMessage

func (*MsgStartPollResponse) ProtoMessage()

func (*MsgStartPollResponse) ProtoReflect

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

func (*MsgStartPollResponse) Reset

func (x *MsgStartPollResponse) Reset()

func (*MsgStartPollResponse) String

func (x *MsgStartPollResponse) String() string

type MsgUpdateParams

type MsgUpdateParams struct {

	// authority is the address that controls the module (defaults to x/gov unless
	// overwritten).
	Authority string  `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Params    *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgUpdateParams) Descriptor deprecated

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

Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.

func (*MsgUpdateParams) GetAuthority

func (x *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (x *MsgUpdateParams) GetParams() *Params

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) ProtoReflect

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

func (*MsgUpdateParams) Reset

func (x *MsgUpdateParams) Reset()

func (*MsgUpdateParams) String

func (x *MsgUpdateParams) String() string

type MsgUpdateParamsResponse

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

func (*MsgUpdateParamsResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) ProtoReflect

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

func (*MsgUpdateParamsResponse) Reset

func (x *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) String

func (x *MsgUpdateParamsResponse) String() string

type MsgVote

type MsgVote struct {
	Voter string `protobuf:"bytes,1,opt,name=voter,proto3" json:"voter,omitempty"`
	Agree bool   `protobuf:"varint,2,opt,name=agree,proto3" json:"agree,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgVote) Descriptor deprecated

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

Deprecated: Use MsgVote.ProtoReflect.Descriptor instead.

func (*MsgVote) GetAgree

func (x *MsgVote) GetAgree() bool

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 Params

type Params struct {

	// Time in hours
	VotePeriod int32 `protobuf:"varint,1,opt,name=vote_period,json=votePeriod,proto3" json:"vote_period,omitempty"`
	// PollPeriod is a number of hours a poll finishes after
	PollPeriod int32 `protobuf:"varint,2,opt,name=poll_period,json=pollPeriod,proto3" json:"poll_period,omitempty"`
	// contains filtered or unexported fields
}

Params - used for initializing default parameter for vote at genesis

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetPollPeriod

func (x *Params) GetPollPeriod() int32

func (*Params) GetVotePeriod

func (x *Params) GetVotePeriod() int32

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 ParamsRequest

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

func (*ParamsRequest) Descriptor deprecated

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

Deprecated: Use ParamsRequest.ProtoReflect.Descriptor instead.

func (*ParamsRequest) ProtoMessage

func (*ParamsRequest) ProtoMessage()

func (*ParamsRequest) ProtoReflect

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

func (*ParamsRequest) Reset

func (x *ParamsRequest) Reset()

func (*ParamsRequest) String

func (x *ParamsRequest) String() string

type ParamsResponse

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

func (*ParamsResponse) Descriptor deprecated

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

Deprecated: Use ParamsResponse.ProtoReflect.Descriptor instead.

func (*ParamsResponse) GetParams

func (x *ParamsResponse) GetParams() *Params

func (*ParamsResponse) ProtoMessage

func (*ParamsResponse) ProtoMessage()

func (*ParamsResponse) ProtoReflect

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

func (*ParamsResponse) Reset

func (x *ParamsResponse) Reset()

func (*ParamsResponse) String

func (x *ParamsResponse) String() string

type Poll

type Poll struct {

	// Name is a title of the poll. Optional.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Author is the poll creator's SDK address.
	Author string `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`
	// Question is the poll formulation.
	Question string `protobuf:"bytes,3,opt,name=question,proto3" json:"question,omitempty"`
	// StartTime denotes when the poll was created.
	// Set by the keeper itself, MUST be omitted in messages.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// EndTime is time when the poll is finished and votes are counted.
	// Set by the kepper itself, MUST be omitted in messages.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// Quorum is the share of 'yes' from the total number of votes required for
	// positive decision. Quorum 0 means that only 1 'yes' is sufficient.
	// Optional. Should be omitted if the poll is totally informational and not
	// intended for any decision making.
	Quorum string `protobuf:"bytes,6,opt,name=quorum,proto3" json:"quorum,omitempty"`
	// Types that are assignable to Requirements:
	//
	//	*Poll_CanValidate
	//	*Poll_MinStatus
	Requirements isPoll_Requirements `protobuf_oneof:"requirements"`
	// contains filtered or unexported fields
}

Poll is like Proposal, but it's specified by plain text and has no automatic decision execution engine encoded in the blockchain. Also, a wider range of people can vote for/against it.

func (*Poll) Descriptor deprecated

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

Deprecated: Use Poll.ProtoReflect.Descriptor instead.

func (*Poll) GetAuthor

func (x *Poll) GetAuthor() string

func (*Poll) GetCanValidate

func (x *Poll) GetCanValidate() *Poll_Unit

func (*Poll) GetEndTime

func (x *Poll) GetEndTime() *timestamppb.Timestamp

func (*Poll) GetMinStatus

func (x *Poll) GetMinStatus() v1beta1.Status

func (*Poll) GetName

func (x *Poll) GetName() string

func (*Poll) GetQuestion

func (x *Poll) GetQuestion() string

func (*Poll) GetQuorum

func (x *Poll) GetQuorum() string

func (*Poll) GetRequirements

func (x *Poll) GetRequirements() isPoll_Requirements

func (*Poll) GetStartTime

func (x *Poll) GetStartTime() *timestamppb.Timestamp

func (*Poll) ProtoMessage

func (*Poll) ProtoMessage()

func (*Poll) ProtoReflect

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

func (*Poll) Reset

func (x *Poll) Reset()

func (*Poll) String

func (x *Poll) String() string

type PollAnswer

type PollAnswer struct {
	Acc string `protobuf:"bytes,1,opt,name=acc,proto3" json:"acc,omitempty"`
	Ans bool   `protobuf:"varint,2,opt,name=ans,proto3" json:"ans,omitempty"`
	// contains filtered or unexported fields
}

func (*PollAnswer) Descriptor deprecated

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

Deprecated: Use PollAnswer.ProtoReflect.Descriptor instead.

func (*PollAnswer) GetAcc

func (x *PollAnswer) GetAcc() string

func (*PollAnswer) GetAns

func (x *PollAnswer) GetAns() bool

func (*PollAnswer) ProtoMessage

func (*PollAnswer) ProtoMessage()

func (*PollAnswer) ProtoReflect

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

func (*PollAnswer) Reset

func (x *PollAnswer) Reset()

func (*PollAnswer) String

func (x *PollAnswer) String() string

type PollHistoryItem

type PollHistoryItem struct {
	Poll     *Poll    `protobuf:"bytes,1,opt,name=poll,proto3" json:"poll,omitempty"`
	Yes      uint64   `protobuf:"varint,2,opt,name=yes,proto3" json:"yes,omitempty"`
	No       uint64   `protobuf:"varint,3,opt,name=no,proto3" json:"no,omitempty"`
	Decision Decision `protobuf:"varint,4,opt,name=decision,proto3,enum=axiome.vote.v1beta1.Decision" json:"decision,omitempty"`
	// contains filtered or unexported fields
}

func (*PollHistoryItem) Descriptor deprecated

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

Deprecated: Use PollHistoryItem.ProtoReflect.Descriptor instead.

func (*PollHistoryItem) GetDecision

func (x *PollHistoryItem) GetDecision() Decision

func (*PollHistoryItem) GetNo

func (x *PollHistoryItem) GetNo() uint64

func (*PollHistoryItem) GetPoll

func (x *PollHistoryItem) GetPoll() *Poll

func (*PollHistoryItem) GetYes

func (x *PollHistoryItem) GetYes() uint64

func (*PollHistoryItem) ProtoMessage

func (*PollHistoryItem) ProtoMessage()

func (*PollHistoryItem) ProtoReflect

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

func (*PollHistoryItem) Reset

func (x *PollHistoryItem) Reset()

func (*PollHistoryItem) String

func (x *PollHistoryItem) String() string

type PollHistoryRequest

type PollHistoryRequest struct {
	Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	Page  int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*PollHistoryRequest) Descriptor deprecated

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

Deprecated: Use PollHistoryRequest.ProtoReflect.Descriptor instead.

func (*PollHistoryRequest) GetLimit

func (x *PollHistoryRequest) GetLimit() int32

func (*PollHistoryRequest) GetPage

func (x *PollHistoryRequest) GetPage() int32

func (*PollHistoryRequest) ProtoMessage

func (*PollHistoryRequest) ProtoMessage()

func (*PollHistoryRequest) ProtoReflect

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

func (*PollHistoryRequest) Reset

func (x *PollHistoryRequest) Reset()

func (*PollHistoryRequest) String

func (x *PollHistoryRequest) String() string

type PollHistoryResponse

type PollHistoryResponse struct {
	History []*PollHistoryItem `protobuf:"bytes,1,rep,name=history,proto3" json:"history,omitempty"`
	// contains filtered or unexported fields
}

func (*PollHistoryResponse) Descriptor deprecated

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

Deprecated: Use PollHistoryResponse.ProtoReflect.Descriptor instead.

func (*PollHistoryResponse) GetHistory

func (x *PollHistoryResponse) GetHistory() []*PollHistoryItem

func (*PollHistoryResponse) ProtoMessage

func (*PollHistoryResponse) ProtoMessage()

func (*PollHistoryResponse) ProtoReflect

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

func (*PollHistoryResponse) Reset

func (x *PollHistoryResponse) Reset()

func (*PollHistoryResponse) String

func (x *PollHistoryResponse) String() string

type PollRequest

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

func (*PollRequest) Descriptor deprecated

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

Deprecated: Use PollRequest.ProtoReflect.Descriptor instead.

func (*PollRequest) ProtoMessage

func (*PollRequest) ProtoMessage()

func (*PollRequest) ProtoReflect

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

func (*PollRequest) Reset

func (x *PollRequest) Reset()

func (*PollRequest) String

func (x *PollRequest) String() string

type PollResponse

type PollResponse struct {
	Poll *Poll  `protobuf:"bytes,1,opt,name=poll,proto3" json:"poll,omitempty"`
	Yes  uint64 `protobuf:"varint,2,opt,name=yes,proto3" json:"yes,omitempty"`
	No   uint64 `protobuf:"varint,3,opt,name=no,proto3" json:"no,omitempty"`
	// contains filtered or unexported fields
}

func (*PollResponse) Descriptor deprecated

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

Deprecated: Use PollResponse.ProtoReflect.Descriptor instead.

func (*PollResponse) GetNo

func (x *PollResponse) GetNo() uint64

func (*PollResponse) GetPoll

func (x *PollResponse) GetPoll() *Poll

func (*PollResponse) GetYes

func (x *PollResponse) GetYes() uint64

func (*PollResponse) ProtoMessage

func (*PollResponse) ProtoMessage()

func (*PollResponse) ProtoReflect

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

func (*PollResponse) Reset

func (x *PollResponse) Reset()

func (*PollResponse) String

func (x *PollResponse) String() string

type Poll_CanValidate

type Poll_CanValidate struct {
	// CanValidate denotes that only those who can validate can answer the poll.
	CanValidate *Poll_Unit `protobuf:"bytes,7,opt,name=can_validate,json=canValidate,proto3,oneof"`
}

type Poll_MinStatus

type Poll_MinStatus struct {
	// MinStatus is the minimal referral status required to answer the poll.
	MinStatus v1beta1.Status `protobuf:"varint,8,opt,name=min_status,json=minStatus,proto3,enum=axiome.referral.v1beta1.Status,oneof"`
}

type Poll_Unit

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

func (*Poll_Unit) Descriptor deprecated

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

Deprecated: Use Poll_Unit.ProtoReflect.Descriptor instead.

func (*Poll_Unit) ProtoMessage

func (*Poll_Unit) ProtoMessage()

func (*Poll_Unit) ProtoReflect

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

func (*Poll_Unit) Reset

func (x *Poll_Unit) Reset()

func (*Poll_Unit) String

func (x *Poll_Unit) String() string

type Proposal

type Proposal struct {
	Name     string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Author   string                 `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`
	Messages []*anypb.Any           `protobuf:"bytes,3,rep,name=messages,proto3" json:"messages,omitempty"`
	EndTime  *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

func (*Proposal) Descriptor deprecated

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

Deprecated: Use Proposal.ProtoReflect.Descriptor instead.

func (*Proposal) GetAuthor

func (x *Proposal) GetAuthor() string

func (*Proposal) GetEndTime

func (x *Proposal) GetEndTime() *timestamppb.Timestamp

func (*Proposal) GetMessages

func (x *Proposal) GetMessages() []*anypb.Any

func (*Proposal) GetName

func (x *Proposal) GetName() string

func (*Proposal) ProtoMessage

func (*Proposal) ProtoMessage()

func (*Proposal) ProtoReflect

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

func (*Proposal) Reset

func (x *Proposal) Reset()

func (*Proposal) String

func (x *Proposal) String() string

type ProposalHistoryRecord

type ProposalHistoryRecord struct {
	Proposal   *Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
	Government []string  `protobuf:"bytes,2,rep,name=government,proto3" json:"government,omitempty"`
	Agreed     []string  `protobuf:"bytes,3,rep,name=agreed,proto3" json:"agreed,omitempty"`
	Disagreed  []string  `protobuf:"bytes,4,rep,name=disagreed,proto3" json:"disagreed,omitempty"`
	Started    int64     `protobuf:"varint,5,opt,name=started,proto3" json:"started,omitempty"`
	Finished   int64     `protobuf:"varint,6,opt,name=finished,proto3" json:"finished,omitempty"`
	// contains filtered or unexported fields
}

func (*ProposalHistoryRecord) Descriptor deprecated

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

Deprecated: Use ProposalHistoryRecord.ProtoReflect.Descriptor instead.

func (*ProposalHistoryRecord) GetAgreed

func (x *ProposalHistoryRecord) GetAgreed() []string

func (*ProposalHistoryRecord) GetDisagreed

func (x *ProposalHistoryRecord) GetDisagreed() []string

func (*ProposalHistoryRecord) GetFinished

func (x *ProposalHistoryRecord) GetFinished() int64

func (*ProposalHistoryRecord) GetGovernment

func (x *ProposalHistoryRecord) GetGovernment() []string

func (*ProposalHistoryRecord) GetProposal

func (x *ProposalHistoryRecord) GetProposal() *Proposal

func (*ProposalHistoryRecord) GetStarted

func (x *ProposalHistoryRecord) GetStarted() int64

func (*ProposalHistoryRecord) ProtoMessage

func (*ProposalHistoryRecord) ProtoMessage()

func (*ProposalHistoryRecord) ProtoReflect

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

func (*ProposalHistoryRecord) Reset

func (x *ProposalHistoryRecord) Reset()

func (*ProposalHistoryRecord) String

func (x *ProposalHistoryRecord) String() string

type QueryClient

type QueryClient interface {
	History(ctx context.Context, in *HistoryRequest, opts ...grpc.CallOption) (*HistoryResponse, error)
	Government(ctx context.Context, in *GovernmentRequest, opts ...grpc.CallOption) (*GovernmentResponse, error)
	Current(ctx context.Context, in *CurrentRequest, opts ...grpc.CallOption) (*CurrentResponse, error)
	Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error)
	Poll(ctx context.Context, in *PollRequest, opts ...grpc.CallOption) (*PollResponse, error)
	PollHistory(ctx context.Context, in *PollHistoryRequest, opts ...grpc.CallOption) (*PollHistoryResponse, 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 QueryServer

type QueryServer interface {
	History(context.Context, *HistoryRequest) (*HistoryResponse, error)
	Government(context.Context, *GovernmentRequest) (*GovernmentResponse, error)
	Current(context.Context, *CurrentRequest) (*CurrentResponse, error)
	Params(context.Context, *ParamsRequest) (*ParamsResponse, error)
	Poll(context.Context, *PollRequest) (*PollResponse, error)
	PollHistory(context.Context, *PollHistoryRequest) (*PollHistoryResponse, error)
	// contains filtered or unexported methods
}

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) AddGovernor

func (UnimplementedMsgServer) AnswerPoll

func (UnimplementedMsgServer) Propose

func (UnimplementedMsgServer) RemoveGovernor

func (UnimplementedMsgServer) StartPoll

func (UnimplementedMsgServer) UpdateParams

func (UnimplementedMsgServer) Vote

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Current

func (UnimplementedQueryServer) Government

func (UnimplementedQueryServer) History

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) Poll

func (UnimplementedQueryServer) PollHistory

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.

Jump to

Keyboard shortcuts

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