govv1beta1

package
v0.0.0-...-891b8cb Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 21 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.

Index

Constants

This section is empty.

Variables

View Source
var (
	VoteOption_name = map[int32]string{
		0: "VOTE_OPTION_UNSPECIFIED",
		1: "VOTE_OPTION_YES",
		2: "VOTE_OPTION_ABSTAIN",
		3: "VOTE_OPTION_NO",
		4: "VOTE_OPTION_NO_WITH_VETO",
	}
	VoteOption_value = map[string]int32{
		"VOTE_OPTION_UNSPECIFIED":  0,
		"VOTE_OPTION_YES":          1,
		"VOTE_OPTION_ABSTAIN":      2,
		"VOTE_OPTION_NO":           3,
		"VOTE_OPTION_NO_WITH_VETO": 4,
	}
)

Enum value maps for VoteOption.

View Source
var (
	ProposalStatus_name = map[int32]string{
		0: "PROPOSAL_STATUS_UNSPECIFIED",
		1: "PROPOSAL_STATUS_DEPOSIT_PERIOD",
		2: "PROPOSAL_STATUS_VOTING_PERIOD",
		3: "PROPOSAL_STATUS_PASSED",
		4: "PROPOSAL_STATUS_REJECTED",
		5: "PROPOSAL_STATUS_FAILED",
	}
	ProposalStatus_value = map[string]int32{
		"PROPOSAL_STATUS_UNSPECIFIED":    0,
		"PROPOSAL_STATUS_DEPOSIT_PERIOD": 1,
		"PROPOSAL_STATUS_VOTING_PERIOD":  2,
		"PROPOSAL_STATUS_PASSED":         3,
		"PROPOSAL_STATUS_REJECTED":       4,
		"PROPOSAL_STATUS_FAILED":         5,
	}
)

Enum value maps for ProposalStatus.

View Source
var File_cosmos_gov_v1beta1_genesis_proto protoreflect.FileDescriptor
View Source
var File_cosmos_gov_v1beta1_gov_proto protoreflect.FileDescriptor
View Source
var File_cosmos_gov_v1beta1_query_proto protoreflect.FileDescriptor
View Source
var File_cosmos_gov_v1beta1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cosmos.gov.v1beta1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SubmitProposal",
			Handler:    _Msg_SubmitProposal_Handler,
		},
		{
			MethodName: "Vote",
			Handler:    _Msg_Vote_Handler,
		},
		{
			MethodName: "VoteWeighted",
			Handler:    _Msg_VoteWeighted_Handler,
		},
		{
			MethodName: "Deposit",
			Handler:    _Msg_Deposit_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/gov/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: "cosmos.gov.v1beta1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Proposal",
			Handler:    _Query_Proposal_Handler,
		},
		{
			MethodName: "Proposals",
			Handler:    _Query_Proposals_Handler,
		},
		{
			MethodName: "Vote",
			Handler:    _Query_Vote_Handler,
		},
		{
			MethodName: "Votes",
			Handler:    _Query_Votes_Handler,
		},
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "Deposit",
			Handler:    _Query_Deposit_Handler,
		},
		{
			MethodName: "Deposits",
			Handler:    _Query_Deposits_Handler,
		},
		{
			MethodName: "TallyResult",
			Handler:    _Query_TallyResult_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/gov/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 Deposit

type Deposit struct {
	ProposalId uint64          `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	Depositor  string          `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"`
	Amount     []*v1beta1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

Deposit defines an amount deposited by an account address to an active proposal.

func (*Deposit) Descriptor deprecated

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

Deprecated: Use Deposit.ProtoReflect.Descriptor instead.

func (*Deposit) GetAmount

func (x *Deposit) GetAmount() []*v1beta1.Coin

func (*Deposit) GetDepositor

func (x *Deposit) GetDepositor() string

func (*Deposit) GetProposalId

func (x *Deposit) GetProposalId() uint64

func (*Deposit) ProtoMessage

func (*Deposit) ProtoMessage()

func (*Deposit) ProtoReflect

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

func (*Deposit) Reset

func (x *Deposit) Reset()

func (*Deposit) String

func (x *Deposit) String() string

type DepositParams

type DepositParams struct {

	//  Minimum deposit for a proposal to enter voting period.
	MinDeposit []*v1beta1.Coin `protobuf:"bytes,1,rep,name=min_deposit,json=minDeposit,proto3" json:"min_deposit,omitempty"`
	//  Maximum period for Atom holders to deposit on a proposal. Initial value: 2
	//  months.
	MaxDepositPeriod *durationpb.Duration `protobuf:"bytes,2,opt,name=max_deposit_period,json=maxDepositPeriod,proto3" json:"max_deposit_period,omitempty"`
	// contains filtered or unexported fields
}

DepositParams defines the params for deposits on governance proposals.

func (*DepositParams) Descriptor deprecated

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

Deprecated: Use DepositParams.ProtoReflect.Descriptor instead.

func (*DepositParams) GetMaxDepositPeriod

func (x *DepositParams) GetMaxDepositPeriod() *durationpb.Duration

func (*DepositParams) GetMinDeposit

func (x *DepositParams) GetMinDeposit() []*v1beta1.Coin

func (*DepositParams) ProtoMessage

func (*DepositParams) ProtoMessage()

func (*DepositParams) ProtoReflect

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

func (*DepositParams) Reset

func (x *DepositParams) Reset()

func (*DepositParams) String

func (x *DepositParams) String() string

type GenesisState

type GenesisState struct {

	// starting_proposal_id is the ID of the starting proposal.
	StartingProposalId uint64 `protobuf:"varint,1,opt,name=starting_proposal_id,json=startingProposalId,proto3" json:"starting_proposal_id,omitempty"`
	// deposits defines all the deposits present at genesis.
	Deposits []*Deposit `protobuf:"bytes,2,rep,name=deposits,proto3" json:"deposits,omitempty"`
	// votes defines all the votes present at genesis.
	Votes []*Vote `protobuf:"bytes,3,rep,name=votes,proto3" json:"votes,omitempty"`
	// proposals defines all the proposals present at genesis.
	Proposals []*Proposal `protobuf:"bytes,4,rep,name=proposals,proto3" json:"proposals,omitempty"`
	// params defines all the paramaters of related to deposit.
	DepositParams *DepositParams `protobuf:"bytes,5,opt,name=deposit_params,json=depositParams,proto3" json:"deposit_params,omitempty"`
	// params defines all the paramaters of related to voting.
	VotingParams *VotingParams `protobuf:"bytes,6,opt,name=voting_params,json=votingParams,proto3" json:"voting_params,omitempty"`
	// params defines all the paramaters of related to tally.
	TallyParams *TallyParams `protobuf:"bytes,7,opt,name=tally_params,json=tallyParams,proto3" json:"tally_params,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the gov module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetDepositParams

func (x *GenesisState) GetDepositParams() *DepositParams

func (*GenesisState) GetDeposits

func (x *GenesisState) GetDeposits() []*Deposit

func (*GenesisState) GetProposals

func (x *GenesisState) GetProposals() []*Proposal

func (*GenesisState) GetStartingProposalId

func (x *GenesisState) GetStartingProposalId() uint64

func (*GenesisState) GetTallyParams

func (x *GenesisState) GetTallyParams() *TallyParams

func (*GenesisState) GetVotes

func (x *GenesisState) GetVotes() []*Vote

func (*GenesisState) GetVotingParams

func (x *GenesisState) GetVotingParams() *VotingParams

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 MsgClient

type MsgClient interface {
	// SubmitProposal defines a method to create new proposal given a content.
	SubmitProposal(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error)
	// Vote defines a method to add a vote on a specific proposal.
	Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error)
	// VoteWeighted defines a method to add a weighted vote on a specific proposal.
	//
	// Since: cosmos-sdk 0.43
	VoteWeighted(ctx context.Context, in *MsgVoteWeighted, opts ...grpc.CallOption) (*MsgVoteWeightedResponse, error)
	// Deposit defines a method to add deposit on a specific proposal.
	Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, 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 MsgDeposit

type MsgDeposit struct {
	ProposalId uint64          `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	Depositor  string          `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"`
	Amount     []*v1beta1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

MsgDeposit defines a message to submit a deposit to an existing proposal.

func (*MsgDeposit) Descriptor deprecated

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

Deprecated: Use MsgDeposit.ProtoReflect.Descriptor instead.

func (*MsgDeposit) GetAmount

func (x *MsgDeposit) GetAmount() []*v1beta1.Coin

func (*MsgDeposit) GetDepositor

func (x *MsgDeposit) GetDepositor() string

func (*MsgDeposit) GetProposalId

func (x *MsgDeposit) GetProposalId() uint64

func (*MsgDeposit) ProtoMessage

func (*MsgDeposit) ProtoMessage()

func (*MsgDeposit) ProtoReflect

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

func (*MsgDeposit) Reset

func (x *MsgDeposit) Reset()

func (*MsgDeposit) String

func (x *MsgDeposit) String() string

type MsgDepositResponse

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

MsgDepositResponse defines the Msg/Deposit response type.

func (*MsgDepositResponse) Descriptor deprecated

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

Deprecated: Use MsgDepositResponse.ProtoReflect.Descriptor instead.

func (*MsgDepositResponse) ProtoMessage

func (*MsgDepositResponse) ProtoMessage()

func (*MsgDepositResponse) ProtoReflect

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

func (*MsgDepositResponse) Reset

func (x *MsgDepositResponse) Reset()

func (*MsgDepositResponse) String

func (x *MsgDepositResponse) String() string

type MsgServer

type MsgServer interface {
	// SubmitProposal defines a method to create new proposal given a content.
	SubmitProposal(context.Context, *MsgSubmitProposal) (*MsgSubmitProposalResponse, error)
	// Vote defines a method to add a vote on a specific proposal.
	Vote(context.Context, *MsgVote) (*MsgVoteResponse, error)
	// VoteWeighted defines a method to add a weighted vote on a specific proposal.
	//
	// Since: cosmos-sdk 0.43
	VoteWeighted(context.Context, *MsgVoteWeighted) (*MsgVoteWeightedResponse, error)
	// Deposit defines a method to add deposit on a specific proposal.
	Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error)
	// contains filtered or unexported methods
}

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

type MsgSubmitProposal

type MsgSubmitProposal struct {
	Content        *anypb.Any      `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	InitialDeposit []*v1beta1.Coin `protobuf:"bytes,2,rep,name=initial_deposit,json=initialDeposit,proto3" json:"initial_deposit,omitempty"`
	Proposer       string          `protobuf:"bytes,3,opt,name=proposer,proto3" json:"proposer,omitempty"`
	// contains filtered or unexported fields
}

MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary proposal Content.

func (*MsgSubmitProposal) Descriptor deprecated

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

Deprecated: Use MsgSubmitProposal.ProtoReflect.Descriptor instead.

func (*MsgSubmitProposal) GetContent

func (x *MsgSubmitProposal) GetContent() *anypb.Any

func (*MsgSubmitProposal) GetInitialDeposit

func (x *MsgSubmitProposal) GetInitialDeposit() []*v1beta1.Coin

func (*MsgSubmitProposal) GetProposer

func (x *MsgSubmitProposal) GetProposer() string

func (*MsgSubmitProposal) ProtoMessage

func (*MsgSubmitProposal) ProtoMessage()

func (*MsgSubmitProposal) ProtoReflect

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

func (*MsgSubmitProposal) Reset

func (x *MsgSubmitProposal) Reset()

func (*MsgSubmitProposal) String

func (x *MsgSubmitProposal) String() string

type MsgSubmitProposalResponse

type MsgSubmitProposalResponse struct {
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// contains filtered or unexported fields
}

MsgSubmitProposalResponse defines the Msg/SubmitProposal response type.

func (*MsgSubmitProposalResponse) Descriptor deprecated

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

Deprecated: Use MsgSubmitProposalResponse.ProtoReflect.Descriptor instead.

func (*MsgSubmitProposalResponse) GetProposalId

func (x *MsgSubmitProposalResponse) GetProposalId() uint64

func (*MsgSubmitProposalResponse) ProtoMessage

func (*MsgSubmitProposalResponse) ProtoMessage()

func (*MsgSubmitProposalResponse) ProtoReflect

func (*MsgSubmitProposalResponse) Reset

func (x *MsgSubmitProposalResponse) Reset()

func (*MsgSubmitProposalResponse) String

func (x *MsgSubmitProposalResponse) String() string

type MsgVote

type MsgVote struct {
	ProposalId uint64     `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	Voter      string     `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
	Option     VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.gov.v1beta1.VoteOption" json:"option,omitempty"`
	// contains filtered or unexported fields
}

MsgVote defines a message to cast a vote.

func (*MsgVote) Descriptor deprecated

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

Deprecated: Use MsgVote.ProtoReflect.Descriptor instead.

func (*MsgVote) GetOption

func (x *MsgVote) GetOption() VoteOption

func (*MsgVote) GetProposalId

func (x *MsgVote) GetProposalId() uint64

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
}

MsgVoteResponse defines the Msg/Vote response type.

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 MsgVoteWeighted

type MsgVoteWeighted struct {
	ProposalId uint64                `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	Voter      string                `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
	Options    []*WeightedVoteOption `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

MsgVoteWeighted defines a message to cast a vote.

Since: cosmos-sdk 0.43

func (*MsgVoteWeighted) Descriptor deprecated

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

Deprecated: Use MsgVoteWeighted.ProtoReflect.Descriptor instead.

func (*MsgVoteWeighted) GetOptions

func (x *MsgVoteWeighted) GetOptions() []*WeightedVoteOption

func (*MsgVoteWeighted) GetProposalId

func (x *MsgVoteWeighted) GetProposalId() uint64

func (*MsgVoteWeighted) GetVoter

func (x *MsgVoteWeighted) GetVoter() string

func (*MsgVoteWeighted) ProtoMessage

func (*MsgVoteWeighted) ProtoMessage()

func (*MsgVoteWeighted) ProtoReflect

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

func (*MsgVoteWeighted) Reset

func (x *MsgVoteWeighted) Reset()

func (*MsgVoteWeighted) String

func (x *MsgVoteWeighted) String() string

type MsgVoteWeightedResponse

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

MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.

Since: cosmos-sdk 0.43

func (*MsgVoteWeightedResponse) Descriptor deprecated

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

Deprecated: Use MsgVoteWeightedResponse.ProtoReflect.Descriptor instead.

func (*MsgVoteWeightedResponse) ProtoMessage

func (*MsgVoteWeightedResponse) ProtoMessage()

func (*MsgVoteWeightedResponse) ProtoReflect

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

func (*MsgVoteWeightedResponse) Reset

func (x *MsgVoteWeightedResponse) Reset()

func (*MsgVoteWeightedResponse) String

func (x *MsgVoteWeightedResponse) String() string

type Proposal

type Proposal struct {
	ProposalId uint64         `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	Content    *anypb.Any     `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	Status     ProposalStatus `protobuf:"varint,3,opt,name=status,proto3,enum=cosmos.gov.v1beta1.ProposalStatus" json:"status,omitempty"`
	// final_tally_result is the final tally result of the proposal. When
	// querying a proposal via gRPC, this field is not populated until the
	// proposal's voting period has ended.
	FinalTallyResult *TallyResult           `protobuf:"bytes,4,opt,name=final_tally_result,json=finalTallyResult,proto3" json:"final_tally_result,omitempty"`
	SubmitTime       *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"`
	DepositEndTime   *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=deposit_end_time,json=depositEndTime,proto3" json:"deposit_end_time,omitempty"`
	TotalDeposit     []*v1beta1.Coin        `protobuf:"bytes,7,rep,name=total_deposit,json=totalDeposit,proto3" json:"total_deposit,omitempty"`
	VotingStartTime  *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=voting_start_time,json=votingStartTime,proto3" json:"voting_start_time,omitempty"`
	VotingEndTime    *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=voting_end_time,json=votingEndTime,proto3" json:"voting_end_time,omitempty"`
	// contains filtered or unexported fields
}

Proposal defines the core field members of a governance proposal.

func (*Proposal) Descriptor deprecated

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

Deprecated: Use Proposal.ProtoReflect.Descriptor instead.

func (*Proposal) GetContent

func (x *Proposal) GetContent() *anypb.Any

func (*Proposal) GetDepositEndTime

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

func (*Proposal) GetFinalTallyResult

func (x *Proposal) GetFinalTallyResult() *TallyResult

func (*Proposal) GetProposalId

func (x *Proposal) GetProposalId() uint64

func (*Proposal) GetStatus

func (x *Proposal) GetStatus() ProposalStatus

func (*Proposal) GetSubmitTime

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

func (*Proposal) GetTotalDeposit

func (x *Proposal) GetTotalDeposit() []*v1beta1.Coin

func (*Proposal) GetVotingEndTime

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

func (*Proposal) GetVotingStartTime

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

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 ProposalStatus

type ProposalStatus int32

ProposalStatus enumerates the valid statuses of a proposal.

const (
	// PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status.
	ProposalStatus_PROPOSAL_STATUS_UNSPECIFIED ProposalStatus = 0
	// PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
	// period.
	ProposalStatus_PROPOSAL_STATUS_DEPOSIT_PERIOD ProposalStatus = 1
	// PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
	// period.
	ProposalStatus_PROPOSAL_STATUS_VOTING_PERIOD ProposalStatus = 2
	// PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
	// passed.
	ProposalStatus_PROPOSAL_STATUS_PASSED ProposalStatus = 3
	// PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
	// been rejected.
	ProposalStatus_PROPOSAL_STATUS_REJECTED ProposalStatus = 4
	// PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
	// failed.
	ProposalStatus_PROPOSAL_STATUS_FAILED ProposalStatus = 5
)

func (ProposalStatus) Descriptor

func (ProposalStatus) Enum

func (x ProposalStatus) Enum() *ProposalStatus

func (ProposalStatus) EnumDescriptor deprecated

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

Deprecated: Use ProposalStatus.Descriptor instead.

func (ProposalStatus) Number

func (ProposalStatus) String

func (x ProposalStatus) String() string

func (ProposalStatus) Type

type QueryClient

type QueryClient interface {
	// Proposal queries proposal details based on ProposalID.
	Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error)
	// Proposals queries all proposals based on given status.
	Proposals(ctx context.Context, in *QueryProposalsRequest, opts ...grpc.CallOption) (*QueryProposalsResponse, error)
	// Vote queries voted information based on proposalID, voterAddr.
	Vote(ctx context.Context, in *QueryVoteRequest, opts ...grpc.CallOption) (*QueryVoteResponse, error)
	// Votes queries votes of a given proposal.
	Votes(ctx context.Context, in *QueryVotesRequest, opts ...grpc.CallOption) (*QueryVotesResponse, error)
	// Params queries all parameters of the gov module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Deposit queries single deposit information based proposalID, depositAddr.
	Deposit(ctx context.Context, in *QueryDepositRequest, opts ...grpc.CallOption) (*QueryDepositResponse, error)
	// Deposits queries all deposits of a single proposal.
	Deposits(ctx context.Context, in *QueryDepositsRequest, opts ...grpc.CallOption) (*QueryDepositsResponse, error)
	// TallyResult queries the tally of a proposal vote.
	TallyResult(ctx context.Context, in *QueryTallyResultRequest, opts ...grpc.CallOption) (*QueryTallyResultResponse, 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 QueryDepositRequest

type QueryDepositRequest struct {

	// proposal_id defines the unique id of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// depositor defines the deposit addresses from the proposals.
	Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"`
	// contains filtered or unexported fields
}

QueryDepositRequest is the request type for the Query/Deposit RPC method.

func (*QueryDepositRequest) Descriptor deprecated

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

Deprecated: Use QueryDepositRequest.ProtoReflect.Descriptor instead.

func (*QueryDepositRequest) GetDepositor

func (x *QueryDepositRequest) GetDepositor() string

func (*QueryDepositRequest) GetProposalId

func (x *QueryDepositRequest) GetProposalId() uint64

func (*QueryDepositRequest) ProtoMessage

func (*QueryDepositRequest) ProtoMessage()

func (*QueryDepositRequest) ProtoReflect

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

func (*QueryDepositRequest) Reset

func (x *QueryDepositRequest) Reset()

func (*QueryDepositRequest) String

func (x *QueryDepositRequest) String() string

type QueryDepositResponse

type QueryDepositResponse struct {

	// deposit defines the requested deposit.
	Deposit *Deposit `protobuf:"bytes,1,opt,name=deposit,proto3" json:"deposit,omitempty"`
	// contains filtered or unexported fields
}

QueryDepositResponse is the response type for the Query/Deposit RPC method.

func (*QueryDepositResponse) Descriptor deprecated

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

Deprecated: Use QueryDepositResponse.ProtoReflect.Descriptor instead.

func (*QueryDepositResponse) GetDeposit

func (x *QueryDepositResponse) GetDeposit() *Deposit

func (*QueryDepositResponse) ProtoMessage

func (*QueryDepositResponse) ProtoMessage()

func (*QueryDepositResponse) ProtoReflect

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

func (*QueryDepositResponse) Reset

func (x *QueryDepositResponse) Reset()

func (*QueryDepositResponse) String

func (x *QueryDepositResponse) String() string

type QueryDepositsRequest

type QueryDepositsRequest struct {

	// proposal_id defines the unique id of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryDepositsRequest is the request type for the Query/Deposits RPC method.

func (*QueryDepositsRequest) Descriptor deprecated

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

Deprecated: Use QueryDepositsRequest.ProtoReflect.Descriptor instead.

func (*QueryDepositsRequest) GetPagination

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

func (*QueryDepositsRequest) GetProposalId

func (x *QueryDepositsRequest) GetProposalId() uint64

func (*QueryDepositsRequest) ProtoMessage

func (*QueryDepositsRequest) ProtoMessage()

func (*QueryDepositsRequest) ProtoReflect

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

func (*QueryDepositsRequest) Reset

func (x *QueryDepositsRequest) Reset()

func (*QueryDepositsRequest) String

func (x *QueryDepositsRequest) String() string

type QueryDepositsResponse

type QueryDepositsResponse struct {
	Deposits []*Deposit `protobuf:"bytes,1,rep,name=deposits,proto3" json:"deposits,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryDepositsResponse is the response type for the Query/Deposits RPC method.

func (*QueryDepositsResponse) Descriptor deprecated

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

Deprecated: Use QueryDepositsResponse.ProtoReflect.Descriptor instead.

func (*QueryDepositsResponse) GetDeposits

func (x *QueryDepositsResponse) GetDeposits() []*Deposit

func (*QueryDepositsResponse) GetPagination

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

func (*QueryDepositsResponse) ProtoMessage

func (*QueryDepositsResponse) ProtoMessage()

func (*QueryDepositsResponse) ProtoReflect

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

func (*QueryDepositsResponse) Reset

func (x *QueryDepositsResponse) Reset()

func (*QueryDepositsResponse) String

func (x *QueryDepositsResponse) String() string

type QueryParamsRequest

type QueryParamsRequest struct {

	// params_type defines which parameters to query for, can be one of "voting",
	// "tallying" or "deposit".
	ParamsType string `protobuf:"bytes,1,opt,name=params_type,json=paramsType,proto3" json:"params_type,omitempty"`
	// contains filtered or unexported fields
}

QueryParamsRequest is the 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) GetParamsType

func (x *QueryParamsRequest) GetParamsType() string

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 {

	// voting_params defines the parameters related to voting.
	VotingParams *VotingParams `protobuf:"bytes,1,opt,name=voting_params,json=votingParams,proto3" json:"voting_params,omitempty"`
	// deposit_params defines the parameters related to deposit.
	DepositParams *DepositParams `protobuf:"bytes,2,opt,name=deposit_params,json=depositParams,proto3" json:"deposit_params,omitempty"`
	// tally_params defines the parameters related to tally.
	TallyParams *TallyParams `protobuf:"bytes,3,opt,name=tally_params,json=tallyParams,proto3" json:"tally_params,omitempty"`
	// contains filtered or unexported fields
}

QueryParamsResponse is the 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) GetDepositParams

func (x *QueryParamsResponse) GetDepositParams() *DepositParams

func (*QueryParamsResponse) GetTallyParams

func (x *QueryParamsResponse) GetTallyParams() *TallyParams

func (*QueryParamsResponse) GetVotingParams

func (x *QueryParamsResponse) GetVotingParams() *VotingParams

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 QueryProposalRequest

type QueryProposalRequest struct {

	// proposal_id defines the unique id of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// contains filtered or unexported fields
}

QueryProposalRequest is the request type for the Query/Proposal RPC method.

func (*QueryProposalRequest) Descriptor deprecated

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

Deprecated: Use QueryProposalRequest.ProtoReflect.Descriptor instead.

func (*QueryProposalRequest) GetProposalId

func (x *QueryProposalRequest) GetProposalId() uint64

func (*QueryProposalRequest) ProtoMessage

func (*QueryProposalRequest) ProtoMessage()

func (*QueryProposalRequest) ProtoReflect

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

func (*QueryProposalRequest) Reset

func (x *QueryProposalRequest) Reset()

func (*QueryProposalRequest) String

func (x *QueryProposalRequest) String() string

type QueryProposalResponse

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

QueryProposalResponse is the response type for the Query/Proposal RPC method.

func (*QueryProposalResponse) Descriptor deprecated

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

Deprecated: Use QueryProposalResponse.ProtoReflect.Descriptor instead.

func (*QueryProposalResponse) GetProposal

func (x *QueryProposalResponse) GetProposal() *Proposal

func (*QueryProposalResponse) ProtoMessage

func (*QueryProposalResponse) ProtoMessage()

func (*QueryProposalResponse) ProtoReflect

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

func (*QueryProposalResponse) Reset

func (x *QueryProposalResponse) Reset()

func (*QueryProposalResponse) String

func (x *QueryProposalResponse) String() string

type QueryProposalsRequest

type QueryProposalsRequest struct {

	// proposal_status defines the status of the proposals.
	ProposalStatus ProposalStatus `` /* 143-byte string literal not displayed */
	// voter defines the voter address for the proposals.
	Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
	// depositor defines the deposit addresses from the proposals.
	Depositor string `protobuf:"bytes,3,opt,name=depositor,proto3" json:"depositor,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryProposalsRequest is the request type for the Query/Proposals RPC method.

func (*QueryProposalsRequest) Descriptor deprecated

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

Deprecated: Use QueryProposalsRequest.ProtoReflect.Descriptor instead.

func (*QueryProposalsRequest) GetDepositor

func (x *QueryProposalsRequest) GetDepositor() string

func (*QueryProposalsRequest) GetPagination

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

func (*QueryProposalsRequest) GetProposalStatus

func (x *QueryProposalsRequest) GetProposalStatus() ProposalStatus

func (*QueryProposalsRequest) GetVoter

func (x *QueryProposalsRequest) GetVoter() string

func (*QueryProposalsRequest) ProtoMessage

func (*QueryProposalsRequest) ProtoMessage()

func (*QueryProposalsRequest) ProtoReflect

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

func (*QueryProposalsRequest) Reset

func (x *QueryProposalsRequest) Reset()

func (*QueryProposalsRequest) String

func (x *QueryProposalsRequest) String() string

type QueryProposalsResponse

type QueryProposalsResponse struct {
	Proposals []*Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryProposalsResponse is the response type for the Query/Proposals RPC method.

func (*QueryProposalsResponse) Descriptor deprecated

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

Deprecated: Use QueryProposalsResponse.ProtoReflect.Descriptor instead.

func (*QueryProposalsResponse) GetPagination

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

func (*QueryProposalsResponse) GetProposals

func (x *QueryProposalsResponse) GetProposals() []*Proposal

func (*QueryProposalsResponse) ProtoMessage

func (*QueryProposalsResponse) ProtoMessage()

func (*QueryProposalsResponse) ProtoReflect

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

func (*QueryProposalsResponse) Reset

func (x *QueryProposalsResponse) Reset()

func (*QueryProposalsResponse) String

func (x *QueryProposalsResponse) String() string

type QueryServer

type QueryServer interface {
	// Proposal queries proposal details based on ProposalID.
	Proposal(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error)
	// Proposals queries all proposals based on given status.
	Proposals(context.Context, *QueryProposalsRequest) (*QueryProposalsResponse, error)
	// Vote queries voted information based on proposalID, voterAddr.
	Vote(context.Context, *QueryVoteRequest) (*QueryVoteResponse, error)
	// Votes queries votes of a given proposal.
	Votes(context.Context, *QueryVotesRequest) (*QueryVotesResponse, error)
	// Params queries all parameters of the gov module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Deposit queries single deposit information based proposalID, depositAddr.
	Deposit(context.Context, *QueryDepositRequest) (*QueryDepositResponse, error)
	// Deposits queries all deposits of a single proposal.
	Deposits(context.Context, *QueryDepositsRequest) (*QueryDepositsResponse, error)
	// TallyResult queries the tally of a proposal vote.
	TallyResult(context.Context, *QueryTallyResultRequest) (*QueryTallyResultResponse, error)
	// contains filtered or unexported methods
}

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

type QueryTallyResultRequest

type QueryTallyResultRequest struct {

	// proposal_id defines the unique id of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// contains filtered or unexported fields
}

QueryTallyResultRequest is the request type for the Query/Tally RPC method.

func (*QueryTallyResultRequest) Descriptor deprecated

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

Deprecated: Use QueryTallyResultRequest.ProtoReflect.Descriptor instead.

func (*QueryTallyResultRequest) GetProposalId

func (x *QueryTallyResultRequest) GetProposalId() uint64

func (*QueryTallyResultRequest) ProtoMessage

func (*QueryTallyResultRequest) ProtoMessage()

func (*QueryTallyResultRequest) ProtoReflect

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

func (*QueryTallyResultRequest) Reset

func (x *QueryTallyResultRequest) Reset()

func (*QueryTallyResultRequest) String

func (x *QueryTallyResultRequest) String() string

type QueryTallyResultResponse

type QueryTallyResultResponse struct {

	// tally defines the requested tally.
	Tally *TallyResult `protobuf:"bytes,1,opt,name=tally,proto3" json:"tally,omitempty"`
	// contains filtered or unexported fields
}

QueryTallyResultResponse is the response type for the Query/Tally RPC method.

func (*QueryTallyResultResponse) Descriptor deprecated

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

Deprecated: Use QueryTallyResultResponse.ProtoReflect.Descriptor instead.

func (*QueryTallyResultResponse) GetTally

func (x *QueryTallyResultResponse) GetTally() *TallyResult

func (*QueryTallyResultResponse) ProtoMessage

func (*QueryTallyResultResponse) ProtoMessage()

func (*QueryTallyResultResponse) ProtoReflect

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

func (*QueryTallyResultResponse) Reset

func (x *QueryTallyResultResponse) Reset()

func (*QueryTallyResultResponse) String

func (x *QueryTallyResultResponse) String() string

type QueryVoteRequest

type QueryVoteRequest struct {

	// proposal_id defines the unique id of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// voter defines the voter address for the proposals.
	Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
	// contains filtered or unexported fields
}

QueryVoteRequest is the request type for the Query/Vote RPC method.

func (*QueryVoteRequest) Descriptor deprecated

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

Deprecated: Use QueryVoteRequest.ProtoReflect.Descriptor instead.

func (*QueryVoteRequest) GetProposalId

func (x *QueryVoteRequest) GetProposalId() uint64

func (*QueryVoteRequest) GetVoter

func (x *QueryVoteRequest) GetVoter() string

func (*QueryVoteRequest) ProtoMessage

func (*QueryVoteRequest) ProtoMessage()

func (*QueryVoteRequest) ProtoReflect

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

func (*QueryVoteRequest) Reset

func (x *QueryVoteRequest) Reset()

func (*QueryVoteRequest) String

func (x *QueryVoteRequest) String() string

type QueryVoteResponse

type QueryVoteResponse struct {

	// vote defined the queried vote.
	Vote *Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote,omitempty"`
	// contains filtered or unexported fields
}

QueryVoteResponse is the response type for the Query/Vote RPC method.

func (*QueryVoteResponse) Descriptor deprecated

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

Deprecated: Use QueryVoteResponse.ProtoReflect.Descriptor instead.

func (*QueryVoteResponse) GetVote

func (x *QueryVoteResponse) GetVote() *Vote

func (*QueryVoteResponse) ProtoMessage

func (*QueryVoteResponse) ProtoMessage()

func (*QueryVoteResponse) ProtoReflect

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

func (*QueryVoteResponse) Reset

func (x *QueryVoteResponse) Reset()

func (*QueryVoteResponse) String

func (x *QueryVoteResponse) String() string

type QueryVotesRequest

type QueryVotesRequest struct {

	// proposal_id defines the unique id of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryVotesRequest is the request type for the Query/Votes RPC method.

func (*QueryVotesRequest) Descriptor deprecated

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

Deprecated: Use QueryVotesRequest.ProtoReflect.Descriptor instead.

func (*QueryVotesRequest) GetPagination

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

func (*QueryVotesRequest) GetProposalId

func (x *QueryVotesRequest) GetProposalId() uint64

func (*QueryVotesRequest) ProtoMessage

func (*QueryVotesRequest) ProtoMessage()

func (*QueryVotesRequest) ProtoReflect

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

func (*QueryVotesRequest) Reset

func (x *QueryVotesRequest) Reset()

func (*QueryVotesRequest) String

func (x *QueryVotesRequest) String() string

type QueryVotesResponse

type QueryVotesResponse struct {

	// votes defined the queried votes.
	Votes []*Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryVotesResponse is the response type for the Query/Votes RPC method.

func (*QueryVotesResponse) Descriptor deprecated

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

Deprecated: Use QueryVotesResponse.ProtoReflect.Descriptor instead.

func (*QueryVotesResponse) GetPagination

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

func (*QueryVotesResponse) GetVotes

func (x *QueryVotesResponse) GetVotes() []*Vote

func (*QueryVotesResponse) ProtoMessage

func (*QueryVotesResponse) ProtoMessage()

func (*QueryVotesResponse) ProtoReflect

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

func (*QueryVotesResponse) Reset

func (x *QueryVotesResponse) Reset()

func (*QueryVotesResponse) String

func (x *QueryVotesResponse) String() string

type TallyParams

type TallyParams struct {

	//  Minimum percentage of total stake needed to vote for a result to be
	//  considered valid.
	Quorum []byte `protobuf:"bytes,1,opt,name=quorum,proto3" json:"quorum,omitempty"`
	//  Minimum proportion of Yes votes for proposal to pass. Default value: 0.5.
	Threshold []byte `protobuf:"bytes,2,opt,name=threshold,proto3" json:"threshold,omitempty"`
	//  Minimum value of Veto votes to Total votes ratio for proposal to be
	//  vetoed. Default value: 1/3.
	VetoThreshold []byte `protobuf:"bytes,3,opt,name=veto_threshold,json=vetoThreshold,proto3" json:"veto_threshold,omitempty"`
	// contains filtered or unexported fields
}

TallyParams defines the params for tallying votes on governance proposals.

func (*TallyParams) Descriptor deprecated

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

Deprecated: Use TallyParams.ProtoReflect.Descriptor instead.

func (*TallyParams) GetQuorum

func (x *TallyParams) GetQuorum() []byte

func (*TallyParams) GetThreshold

func (x *TallyParams) GetThreshold() []byte

func (*TallyParams) GetVetoThreshold

func (x *TallyParams) GetVetoThreshold() []byte

func (*TallyParams) ProtoMessage

func (*TallyParams) ProtoMessage()

func (*TallyParams) ProtoReflect

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

func (*TallyParams) Reset

func (x *TallyParams) Reset()

func (*TallyParams) String

func (x *TallyParams) String() string

type TallyResult

type TallyResult struct {
	Yes        string `protobuf:"bytes,1,opt,name=yes,proto3" json:"yes,omitempty"`
	Abstain    string `protobuf:"bytes,2,opt,name=abstain,proto3" json:"abstain,omitempty"`
	No         string `protobuf:"bytes,3,opt,name=no,proto3" json:"no,omitempty"`
	NoWithVeto string `protobuf:"bytes,4,opt,name=no_with_veto,json=noWithVeto,proto3" json:"no_with_veto,omitempty"`
	// contains filtered or unexported fields
}

TallyResult defines a standard tally for a governance proposal.

func (*TallyResult) Descriptor deprecated

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

Deprecated: Use TallyResult.ProtoReflect.Descriptor instead.

func (*TallyResult) GetAbstain

func (x *TallyResult) GetAbstain() string

func (*TallyResult) GetNo

func (x *TallyResult) GetNo() string

func (*TallyResult) GetNoWithVeto

func (x *TallyResult) GetNoWithVeto() string

func (*TallyResult) GetYes

func (x *TallyResult) GetYes() string

func (*TallyResult) ProtoMessage

func (*TallyResult) ProtoMessage()

func (*TallyResult) ProtoReflect

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

func (*TallyResult) Reset

func (x *TallyResult) Reset()

func (*TallyResult) String

func (x *TallyResult) String() string

type TextProposal

type TextProposal struct {
	Title       string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

TextProposal defines a standard text proposal whose changes need to be manually updated in case of approval.

func (*TextProposal) Descriptor deprecated

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

Deprecated: Use TextProposal.ProtoReflect.Descriptor instead.

func (*TextProposal) GetDescription

func (x *TextProposal) GetDescription() string

func (*TextProposal) GetTitle

func (x *TextProposal) GetTitle() string

func (*TextProposal) ProtoMessage

func (*TextProposal) ProtoMessage()

func (*TextProposal) ProtoReflect

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

func (*TextProposal) Reset

func (x *TextProposal) Reset()

func (*TextProposal) String

func (x *TextProposal) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) Deposit

func (UnimplementedMsgServer) SubmitProposal

func (UnimplementedMsgServer) Vote

func (UnimplementedMsgServer) VoteWeighted

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Deposit

func (UnimplementedQueryServer) Deposits

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) Proposal

func (UnimplementedQueryServer) Proposals

func (UnimplementedQueryServer) Vote

func (UnimplementedQueryServer) Votes

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 {
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	Voter      string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
	// Deprecated: Prefer to use `options` instead. This field is set in queries
	// if and only if `len(options) == 1` and that option has weight 1. In all
	// other cases, this field will default to VOTE_OPTION_UNSPECIFIED.
	//
	// Deprecated: Do not use.
	Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.gov.v1beta1.VoteOption" json:"option,omitempty"`
	// Since: cosmos-sdk 0.43
	Options []*WeightedVoteOption `protobuf:"bytes,4,rep,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

Vote defines a vote on a governance proposal. A Vote consists of a proposal ID, the voter, and the vote option.

func (*Vote) Descriptor deprecated

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

Deprecated: Use Vote.ProtoReflect.Descriptor instead.

func (*Vote) GetOption deprecated

func (x *Vote) GetOption() VoteOption

Deprecated: Do not use.

func (*Vote) GetOptions

func (x *Vote) GetOptions() []*WeightedVoteOption

func (*Vote) GetProposalId

func (x *Vote) GetProposalId() uint64

func (*Vote) GetVoter

func (x *Vote) GetVoter() string

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) ProtoReflect

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

func (*Vote) Reset

func (x *Vote) Reset()

func (*Vote) String

func (x *Vote) String() string

type VoteOption

type VoteOption int32

VoteOption enumerates the valid vote options for a given governance proposal.

const (
	// VOTE_OPTION_UNSPECIFIED defines a no-op vote option.
	VoteOption_VOTE_OPTION_UNSPECIFIED VoteOption = 0
	// VOTE_OPTION_YES defines a yes vote option.
	VoteOption_VOTE_OPTION_YES VoteOption = 1
	// VOTE_OPTION_ABSTAIN defines an abstain vote option.
	VoteOption_VOTE_OPTION_ABSTAIN VoteOption = 2
	// VOTE_OPTION_NO defines a no vote option.
	VoteOption_VOTE_OPTION_NO VoteOption = 3
	// VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
	VoteOption_VOTE_OPTION_NO_WITH_VETO VoteOption = 4
)

func (VoteOption) Descriptor

func (VoteOption) Descriptor() protoreflect.EnumDescriptor

func (VoteOption) Enum

func (x VoteOption) Enum() *VoteOption

func (VoteOption) EnumDescriptor deprecated

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

Deprecated: Use VoteOption.Descriptor instead.

func (VoteOption) Number

func (x VoteOption) Number() protoreflect.EnumNumber

func (VoteOption) String

func (x VoteOption) String() string

func (VoteOption) Type

type VotingParams

type VotingParams struct {

	//  Length of the voting period.
	VotingPeriod *durationpb.Duration `protobuf:"bytes,1,opt,name=voting_period,json=votingPeriod,proto3" json:"voting_period,omitempty"`
	// contains filtered or unexported fields
}

VotingParams defines the params for voting on governance proposals.

func (*VotingParams) Descriptor deprecated

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

Deprecated: Use VotingParams.ProtoReflect.Descriptor instead.

func (*VotingParams) GetVotingPeriod

func (x *VotingParams) GetVotingPeriod() *durationpb.Duration

func (*VotingParams) ProtoMessage

func (*VotingParams) ProtoMessage()

func (*VotingParams) ProtoReflect

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

func (*VotingParams) Reset

func (x *VotingParams) Reset()

func (*VotingParams) String

func (x *VotingParams) String() string

type WeightedVoteOption

type WeightedVoteOption struct {
	Option VoteOption `protobuf:"varint,1,opt,name=option,proto3,enum=cosmos.gov.v1beta1.VoteOption" json:"option,omitempty"`
	Weight string     `protobuf:"bytes,2,opt,name=weight,proto3" json:"weight,omitempty"`
	// contains filtered or unexported fields
}

WeightedVoteOption defines a unit of vote for vote split.

Since: cosmos-sdk 0.43

func (*WeightedVoteOption) Descriptor deprecated

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

Deprecated: Use WeightedVoteOption.ProtoReflect.Descriptor instead.

func (*WeightedVoteOption) GetOption

func (x *WeightedVoteOption) GetOption() VoteOption

func (*WeightedVoteOption) GetWeight

func (x *WeightedVoteOption) GetWeight() string

func (*WeightedVoteOption) ProtoMessage

func (*WeightedVoteOption) ProtoMessage()

func (*WeightedVoteOption) ProtoReflect

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

func (*WeightedVoteOption) Reset

func (x *WeightedVoteOption) Reset()

func (*WeightedVoteOption) String

func (x *WeightedVoteOption) String() string

Jump to

Keyboard shortcuts

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