govv1

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 22 Imported by: 22

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

View Source
const (
	Query_Constitution_FullMethodName        = "/cosmos.gov.v1.Query/Constitution"
	Query_Proposal_FullMethodName            = "/cosmos.gov.v1.Query/Proposal"
	Query_Proposals_FullMethodName           = "/cosmos.gov.v1.Query/Proposals"
	Query_Vote_FullMethodName                = "/cosmos.gov.v1.Query/Vote"
	Query_Votes_FullMethodName               = "/cosmos.gov.v1.Query/Votes"
	Query_Params_FullMethodName              = "/cosmos.gov.v1.Query/Params"
	Query_Deposit_FullMethodName             = "/cosmos.gov.v1.Query/Deposit"
	Query_Deposits_FullMethodName            = "/cosmos.gov.v1.Query/Deposits"
	Query_TallyResult_FullMethodName         = "/cosmos.gov.v1.Query/TallyResult"
	Query_ProposalVoteOptions_FullMethodName = "/cosmos.gov.v1.Query/ProposalVoteOptions"
	Query_MessageBasedParams_FullMethodName  = "/cosmos.gov.v1.Query/MessageBasedParams"
)
View Source
const (
	Msg_SubmitProposal_FullMethodName               = "/cosmos.gov.v1.Msg/SubmitProposal"
	Msg_ExecLegacyContent_FullMethodName            = "/cosmos.gov.v1.Msg/ExecLegacyContent"
	Msg_Vote_FullMethodName                         = "/cosmos.gov.v1.Msg/Vote"
	Msg_VoteWeighted_FullMethodName                 = "/cosmos.gov.v1.Msg/VoteWeighted"
	Msg_Deposit_FullMethodName                      = "/cosmos.gov.v1.Msg/Deposit"
	Msg_UpdateParams_FullMethodName                 = "/cosmos.gov.v1.Msg/UpdateParams"
	Msg_CancelProposal_FullMethodName               = "/cosmos.gov.v1.Msg/CancelProposal"
	Msg_SubmitMultipleChoiceProposal_FullMethodName = "/cosmos.gov.v1.Msg/SubmitMultipleChoiceProposal"
	Msg_UpdateMessageParams_FullMethodName          = "/cosmos.gov.v1.Msg/UpdateMessageParams"
	Msg_SudoExec_FullMethodName                     = "/cosmos.gov.v1.Msg/SudoExec"
)

Variables

View Source
var (
	ProposalType_name = map[int32]string{
		0: "PROPOSAL_TYPE_UNSPECIFIED",
		1: "PROPOSAL_TYPE_STANDARD",
		2: "PROPOSAL_TYPE_MULTIPLE_CHOICE",
		3: "PROPOSAL_TYPE_OPTIMISTIC",
		4: "PROPOSAL_TYPE_EXPEDITED",
	}
	ProposalType_value = map[string]int32{
		"PROPOSAL_TYPE_UNSPECIFIED":     0,
		"PROPOSAL_TYPE_STANDARD":        1,
		"PROPOSAL_TYPE_MULTIPLE_CHOICE": 2,
		"PROPOSAL_TYPE_OPTIMISTIC":      3,
		"PROPOSAL_TYPE_EXPEDITED":       4,
	}
)

Enum value maps for ProposalType.

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

		5: "VOTE_OPTION_SPAM",
	}
	VoteOption_value = map[string]int32{
		"VOTE_OPTION_UNSPECIFIED":  0,
		"VOTE_OPTION_YES":          1,
		"VOTE_OPTION_ONE":          1,
		"VOTE_OPTION_ABSTAIN":      2,
		"VOTE_OPTION_TWO":          2,
		"VOTE_OPTION_NO":           3,
		"VOTE_OPTION_THREE":        3,
		"VOTE_OPTION_NO_WITH_VETO": 4,
		"VOTE_OPTION_FOUR":         4,
		"VOTE_OPTION_SPAM":         5,
	}
)

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_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_cosmos_gov_v1_gov_proto protoreflect.FileDescriptor
View Source
var File_cosmos_gov_v1_query_proto protoreflect.FileDescriptor
View Source
var File_cosmos_gov_v1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cosmos.gov.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SubmitProposal",
			Handler:    _Msg_SubmitProposal_Handler,
		},
		{
			MethodName: "ExecLegacyContent",
			Handler:    _Msg_ExecLegacyContent_Handler,
		},
		{
			MethodName: "Vote",
			Handler:    _Msg_Vote_Handler,
		},
		{
			MethodName: "VoteWeighted",
			Handler:    _Msg_VoteWeighted_Handler,
		},
		{
			MethodName: "Deposit",
			Handler:    _Msg_Deposit_Handler,
		},
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
		{
			MethodName: "CancelProposal",
			Handler:    _Msg_CancelProposal_Handler,
		},
		{
			MethodName: "SubmitMultipleChoiceProposal",
			Handler:    _Msg_SubmitMultipleChoiceProposal_Handler,
		},
		{
			MethodName: "UpdateMessageParams",
			Handler:    _Msg_UpdateMessageParams_Handler,
		},
		{
			MethodName: "SudoExec",
			Handler:    _Msg_SudoExec_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/gov/v1/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.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Constitution",
			Handler:    _Query_Constitution_Handler,
		},
		{
			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,
		},
		{
			MethodName: "ProposalVoteOptions",
			Handler:    _Query_ProposalVoteOptions_Handler,
		},
		{
			MethodName: "MessageBasedParams",
			Handler:    _Query_MessageBasedParams_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/gov/v1/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 {

	// 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"`
	// amount to be deposited by depositor.
	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 deprecated

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.

Deprecated: Do not use.

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"`
	// Deprecated: Prefer to use `params` instead.
	// deposit_params defines all the parameters of related to deposit.
	//
	// Deprecated: Do not use.
	DepositParams *DepositParams `protobuf:"bytes,5,opt,name=deposit_params,json=depositParams,proto3" json:"deposit_params,omitempty"`
	// Deprecated: Prefer to use `params` instead.
	// voting_params defines all the parameters of related to voting.
	//
	// Deprecated: Do not use.
	VotingParams *VotingParams `protobuf:"bytes,6,opt,name=voting_params,json=votingParams,proto3" json:"voting_params,omitempty"`
	// Deprecated: Prefer to use `params` instead.
	// tally_params defines all the parameters of related to tally.
	//
	// Deprecated: Do not use.
	TallyParams *TallyParams `protobuf:"bytes,7,opt,name=tally_params,json=tallyParams,proto3" json:"tally_params,omitempty"`
	// params defines all the parameters of x/gov module.
	Params *Params `protobuf:"bytes,8,opt,name=params,proto3" json:"params,omitempty"`
	// The constitution allows builders to lay a foundation and define purpose.
	// This is an immutable string set in genesis.
	// There are no amendments, to go outside of scope, just fork.
	// constitution is an immutable string in genesis for a chain builder to lay out their vision, ideas and ideals.
	Constitution string `protobuf:"bytes,9,opt,name=constitution,proto3" json:"constitution,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) GetConstitution added in v0.4.0

func (x *GenesisState) GetConstitution() string

func (*GenesisState) GetDepositParams deprecated

func (x *GenesisState) GetDepositParams() *DepositParams

Deprecated: Do not use.

func (*GenesisState) GetDeposits

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

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetProposals

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

func (*GenesisState) GetStartingProposalId

func (x *GenesisState) GetStartingProposalId() uint64

func (*GenesisState) GetTallyParams deprecated

func (x *GenesisState) GetTallyParams() *TallyParams

Deprecated: Do not use.

func (*GenesisState) GetVotes

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

func (*GenesisState) GetVotingParams deprecated

func (x *GenesisState) GetVotingParams() *VotingParams

Deprecated: Do not use.

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 MessageBasedParams added in v0.8.0

type MessageBasedParams struct {

	// Duration of the voting period.
	VotingPeriod *durationpb.Duration `protobuf:"bytes,1,opt,name=voting_period,json=votingPeriod,proto3" json:"voting_period,omitempty"`
	// Minimum percentage of total stake needed to vote for a result to be considered valid.
	Quorum string `protobuf:"bytes,2,opt,name=quorum,proto3" json:"quorum,omitempty"`
	// yes_quorum defines the minimum percentage of Yes votes in quorum for proposal to pass.
	// If zero then the yes_quorum is disabled.
	YesQuorum string `protobuf:"bytes,20,opt,name=yes_quorum,json=yesQuorum,proto3" json:"yes_quorum,omitempty"`
	// Minimum proportion of Yes votes for proposal to pass.
	Threshold string `protobuf:"bytes,3,opt,name=threshold,proto3" json:"threshold,omitempty"`
	// Minimum value of Veto votes to Total votes ratio for proposal to be vetoed.
	VetoThreshold string `protobuf:"bytes,4,opt,name=veto_threshold,json=vetoThreshold,proto3" json:"veto_threshold,omitempty"`
	// contains filtered or unexported fields
}

MessageBasedParams defines the parameters of specific messages in a proposal. It is used to define the parameters of a proposal that is based on a specific message. Once a message has message based params, it only supports a standard proposal type.

func (*MessageBasedParams) Descriptor deprecated added in v0.8.0

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

Deprecated: Use MessageBasedParams.ProtoReflect.Descriptor instead.

func (*MessageBasedParams) GetQuorum added in v0.8.0

func (x *MessageBasedParams) GetQuorum() string

func (*MessageBasedParams) GetThreshold added in v0.8.0

func (x *MessageBasedParams) GetThreshold() string

func (*MessageBasedParams) GetVetoThreshold added in v0.8.0

func (x *MessageBasedParams) GetVetoThreshold() string

func (*MessageBasedParams) GetVotingPeriod added in v0.8.0

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

func (*MessageBasedParams) GetYesQuorum added in v0.8.0

func (x *MessageBasedParams) GetYesQuorum() string

func (*MessageBasedParams) ProtoMessage added in v0.8.0

func (*MessageBasedParams) ProtoMessage()

func (*MessageBasedParams) ProtoReflect added in v0.8.0

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

func (*MessageBasedParams) Reset added in v0.8.0

func (x *MessageBasedParams) Reset()

func (*MessageBasedParams) String added in v0.8.0

func (x *MessageBasedParams) String() string

type MsgCancelProposal added in v0.3.0

type MsgCancelProposal 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"`
	// proposer is the account address of the proposer.
	Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"`
	// contains filtered or unexported fields
}

MsgCancelProposal is the Msg/CancelProposal request type.

func (*MsgCancelProposal) Descriptor deprecated added in v0.3.0

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

Deprecated: Use MsgCancelProposal.ProtoReflect.Descriptor instead.

func (*MsgCancelProposal) GetProposalId added in v0.3.0

func (x *MsgCancelProposal) GetProposalId() uint64

func (*MsgCancelProposal) GetProposer added in v0.3.0

func (x *MsgCancelProposal) GetProposer() string

func (*MsgCancelProposal) ProtoMessage added in v0.3.0

func (*MsgCancelProposal) ProtoMessage()

func (*MsgCancelProposal) ProtoReflect added in v0.3.0

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

func (*MsgCancelProposal) Reset added in v0.3.0

func (x *MsgCancelProposal) Reset()

func (*MsgCancelProposal) String added in v0.3.0

func (x *MsgCancelProposal) String() string

type MsgCancelProposalResponse added in v0.3.0

type MsgCancelProposalResponse 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"`
	// canceled_time is the time when proposal is canceled.
	CanceledTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=canceled_time,json=canceledTime,proto3" json:"canceled_time,omitempty"`
	// canceled_height defines the block height at which the proposal is canceled.
	CanceledHeight uint64 `protobuf:"varint,3,opt,name=canceled_height,json=canceledHeight,proto3" json:"canceled_height,omitempty"`
	// contains filtered or unexported fields
}

MsgCancelProposalResponse defines the response structure for executing a MsgCancelProposal message.

func (*MsgCancelProposalResponse) Descriptor deprecated added in v0.3.0

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

Deprecated: Use MsgCancelProposalResponse.ProtoReflect.Descriptor instead.

func (*MsgCancelProposalResponse) GetCanceledHeight added in v0.3.0

func (x *MsgCancelProposalResponse) GetCanceledHeight() uint64

func (*MsgCancelProposalResponse) GetCanceledTime added in v0.3.0

func (x *MsgCancelProposalResponse) GetCanceledTime() *timestamppb.Timestamp

func (*MsgCancelProposalResponse) GetProposalId added in v0.3.0

func (x *MsgCancelProposalResponse) GetProposalId() uint64

func (*MsgCancelProposalResponse) ProtoMessage added in v0.3.0

func (*MsgCancelProposalResponse) ProtoMessage()

func (*MsgCancelProposalResponse) ProtoReflect added in v0.3.0

func (*MsgCancelProposalResponse) Reset added in v0.3.0

func (x *MsgCancelProposalResponse) Reset()

func (*MsgCancelProposalResponse) String added in v0.3.0

func (x *MsgCancelProposalResponse) String() string

type MsgClient

type MsgClient interface {
	// SubmitProposal defines a method to create new proposal given the messages.
	SubmitProposal(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error)
	// ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal
	// to execute a legacy content-based proposal.
	ExecLegacyContent(ctx context.Context, in *MsgExecLegacyContent, opts ...grpc.CallOption) (*MsgExecLegacyContentResponse, 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.
	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)
	// UpdateParams defines a governance operation for updating the x/gov module
	// parameters. The authority is defined in the keeper.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	// CancelProposal defines a method to cancel governance proposal
	CancelProposal(ctx context.Context, in *MsgCancelProposal, opts ...grpc.CallOption) (*MsgCancelProposalResponse, error)
	// SubmitMultipleChoiceProposal defines a method to create new multiple choice proposal.
	SubmitMultipleChoiceProposal(ctx context.Context, in *MsgSubmitMultipleChoiceProposal, opts ...grpc.CallOption) (*MsgSubmitMultipleChoiceProposalResponse, error)
	// UpdateMessageParams defines a method to create or update message params when used in a governance proposal.
	UpdateMessageParams(ctx context.Context, in *MsgUpdateMessageParams, opts ...grpc.CallOption) (*MsgUpdateMessageParamsResponse, error)
	// SudoExec defines a method to execute an inner message as the governance module.
	// It permits to execute any message from a proposal, even if they weren't meant to be governance proposals.
	SudoExec(ctx context.Context, in *MsgSudoExec, opts ...grpc.CallOption) (*MsgSudoExecResponse, 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.

Msg defines the gov Msg service.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgDeposit

type MsgDeposit 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"`
	// amount to be deposited by depositor.
	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 MsgExecLegacyContent

type MsgExecLegacyContent struct {

	// content is the proposal's content.
	Content *anypb.Any `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	// authority must be the gov module address.
	Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"`
	// contains filtered or unexported fields
}

MsgExecLegacyContent is used to wrap the legacy content field into a message. This ensures backwards compatibility with v1beta1.MsgSubmitProposal.

func (*MsgExecLegacyContent) Descriptor deprecated

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

Deprecated: Use MsgExecLegacyContent.ProtoReflect.Descriptor instead.

func (*MsgExecLegacyContent) GetAuthority

func (x *MsgExecLegacyContent) GetAuthority() string

func (*MsgExecLegacyContent) GetContent

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

func (*MsgExecLegacyContent) ProtoMessage

func (*MsgExecLegacyContent) ProtoMessage()

func (*MsgExecLegacyContent) ProtoReflect

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

func (*MsgExecLegacyContent) Reset

func (x *MsgExecLegacyContent) Reset()

func (*MsgExecLegacyContent) String

func (x *MsgExecLegacyContent) String() string

type MsgExecLegacyContentResponse

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

MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type.

func (*MsgExecLegacyContentResponse) Descriptor deprecated

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

Deprecated: Use MsgExecLegacyContentResponse.ProtoReflect.Descriptor instead.

func (*MsgExecLegacyContentResponse) ProtoMessage

func (*MsgExecLegacyContentResponse) ProtoMessage()

func (*MsgExecLegacyContentResponse) ProtoReflect

func (*MsgExecLegacyContentResponse) Reset

func (x *MsgExecLegacyContentResponse) Reset()

func (*MsgExecLegacyContentResponse) String

type MsgServer

type MsgServer interface {
	// SubmitProposal defines a method to create new proposal given the messages.
	SubmitProposal(context.Context, *MsgSubmitProposal) (*MsgSubmitProposalResponse, error)
	// ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal
	// to execute a legacy content-based proposal.
	ExecLegacyContent(context.Context, *MsgExecLegacyContent) (*MsgExecLegacyContentResponse, 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.
	VoteWeighted(context.Context, *MsgVoteWeighted) (*MsgVoteWeightedResponse, error)
	// Deposit defines a method to add deposit on a specific proposal.
	Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error)
	// UpdateParams defines a governance operation for updating the x/gov module
	// parameters. The authority is defined in the keeper.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// CancelProposal defines a method to cancel governance proposal
	CancelProposal(context.Context, *MsgCancelProposal) (*MsgCancelProposalResponse, error)
	// SubmitMultipleChoiceProposal defines a method to create new multiple choice proposal.
	SubmitMultipleChoiceProposal(context.Context, *MsgSubmitMultipleChoiceProposal) (*MsgSubmitMultipleChoiceProposalResponse, error)
	// UpdateMessageParams defines a method to create or update message params when used in a governance proposal.
	UpdateMessageParams(context.Context, *MsgUpdateMessageParams) (*MsgUpdateMessageParamsResponse, error)
	// SudoExec defines a method to execute an inner message as the governance module.
	// It permits to execute any message from a proposal, even if they weren't meant to be governance proposals.
	SudoExec(context.Context, *MsgSudoExec) (*MsgSudoExecResponse, error)
	// contains filtered or unexported methods
}

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

Msg defines the gov Msg service.

type MsgSubmitMultipleChoiceProposal added in v0.8.0

type MsgSubmitMultipleChoiceProposal struct {

	// initial_deposit is the deposit value that must be paid at proposal submission.
	InitialDeposit []*v1beta1.Coin `protobuf:"bytes,1,rep,name=initial_deposit,json=initialDeposit,proto3" json:"initial_deposit,omitempty"`
	// proposer is the account address of the proposer.
	Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"`
	// metadata is any arbitrary metadata attached to the proposal.
	Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// title is the title of the proposal.
	Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
	// summary is the summary of the proposal
	Summary string `protobuf:"bytes,5,opt,name=summary,proto3" json:"summary,omitempty"`
	// vote_options defines the vote options for the proposal.
	VoteOptions *ProposalVoteOptions `protobuf:"bytes,6,opt,name=vote_options,json=voteOptions,proto3" json:"vote_options,omitempty"`
	// contains filtered or unexported fields
}

MsgSubmitMultipleChoiceProposal defines a message to submit a multiple choice proposal.

func (*MsgSubmitMultipleChoiceProposal) Descriptor deprecated added in v0.8.0

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

Deprecated: Use MsgSubmitMultipleChoiceProposal.ProtoReflect.Descriptor instead.

func (*MsgSubmitMultipleChoiceProposal) GetInitialDeposit added in v0.8.0

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

func (*MsgSubmitMultipleChoiceProposal) GetMetadata added in v0.8.0

func (x *MsgSubmitMultipleChoiceProposal) GetMetadata() string

func (*MsgSubmitMultipleChoiceProposal) GetProposer added in v0.8.0

func (x *MsgSubmitMultipleChoiceProposal) GetProposer() string

func (*MsgSubmitMultipleChoiceProposal) GetSummary added in v0.8.0

func (x *MsgSubmitMultipleChoiceProposal) GetSummary() string

func (*MsgSubmitMultipleChoiceProposal) GetTitle added in v0.8.0

func (*MsgSubmitMultipleChoiceProposal) GetVoteOptions added in v0.8.0

func (*MsgSubmitMultipleChoiceProposal) ProtoMessage added in v0.8.0

func (*MsgSubmitMultipleChoiceProposal) ProtoMessage()

func (*MsgSubmitMultipleChoiceProposal) ProtoReflect added in v0.8.0

func (*MsgSubmitMultipleChoiceProposal) Reset added in v0.8.0

func (*MsgSubmitMultipleChoiceProposal) String added in v0.8.0

type MsgSubmitMultipleChoiceProposalResponse added in v0.8.0

type MsgSubmitMultipleChoiceProposalResponse 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
}

MsgSubmitMultipleChoiceProposalResponse defines the Msg/SubmitMultipleChoiceProposal response type.

func (*MsgSubmitMultipleChoiceProposalResponse) Descriptor deprecated added in v0.8.0

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

Deprecated: Use MsgSubmitMultipleChoiceProposalResponse.ProtoReflect.Descriptor instead.

func (*MsgSubmitMultipleChoiceProposalResponse) GetProposalId added in v0.8.0

func (*MsgSubmitMultipleChoiceProposalResponse) ProtoMessage added in v0.8.0

func (*MsgSubmitMultipleChoiceProposalResponse) ProtoReflect added in v0.8.0

func (*MsgSubmitMultipleChoiceProposalResponse) Reset added in v0.8.0

func (*MsgSubmitMultipleChoiceProposalResponse) String added in v0.8.0

type MsgSubmitProposal

type MsgSubmitProposal struct {

	// messages are the arbitrary messages to be executed if proposal passes.
	Messages []*anypb.Any `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
	// initial_deposit is the deposit value that must be paid at proposal submission.
	InitialDeposit []*v1beta1.Coin `protobuf:"bytes,2,rep,name=initial_deposit,json=initialDeposit,proto3" json:"initial_deposit,omitempty"`
	// proposer is the account address of the proposer.
	Proposer string `protobuf:"bytes,3,opt,name=proposer,proto3" json:"proposer,omitempty"`
	// metadata is any arbitrary metadata attached to the proposal.
	Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// title is the title of the proposal.
	Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"`
	// summary is the summary of the proposal
	Summary string `protobuf:"bytes,6,opt,name=summary,proto3" json:"summary,omitempty"`
	// expedited defines if the proposal is expedited or not
	// Deprecated: Use the PROPOSAL_TYPE_EXPEDITED proposal type instead.
	// When this field is set and no proposal_type is set, the proposal_type
	// will be set to PROPOSAL_TYPE_EXPEDITED for backwards compatibility.
	//
	// Deprecated: Do not use.
	Expedited bool `protobuf:"varint,7,opt,name=expedited,proto3" json:"expedited,omitempty"`
	// proposal_type defines the type of proposal
	// When not set defaults to PROPOSAL_TYPE_STANDARD
	ProposalType ProposalType `` /* 130-byte string literal not displayed */
	// 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) GetExpedited deprecated added in v0.3.0

func (x *MsgSubmitProposal) GetExpedited() bool

Deprecated: Do not use.

func (*MsgSubmitProposal) GetInitialDeposit

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

func (*MsgSubmitProposal) GetMessages

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

func (*MsgSubmitProposal) GetMetadata

func (x *MsgSubmitProposal) GetMetadata() string

func (*MsgSubmitProposal) GetProposalType added in v0.8.0

func (x *MsgSubmitProposal) GetProposalType() ProposalType

func (*MsgSubmitProposal) GetProposer

func (x *MsgSubmitProposal) GetProposer() string

func (*MsgSubmitProposal) GetSummary added in v0.3.0

func (x *MsgSubmitProposal) GetSummary() string

func (*MsgSubmitProposal) GetTitle added in v0.3.0

func (x *MsgSubmitProposal) GetTitle() 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 {

	// 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
}

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 MsgSudoExec added in v0.8.0

type MsgSudoExec 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"`
	// msg is the arbitrary message to be executed.
	Msg *anypb.Any `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

MsgSudoExec defines a message to execute an inner message as the governance module.

func (*MsgSudoExec) Descriptor deprecated added in v0.8.0

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

Deprecated: Use MsgSudoExec.ProtoReflect.Descriptor instead.

func (*MsgSudoExec) GetAuthority added in v0.8.0

func (x *MsgSudoExec) GetAuthority() string

func (*MsgSudoExec) GetMsg added in v0.8.0

func (x *MsgSudoExec) GetMsg() *anypb.Any

func (*MsgSudoExec) ProtoMessage added in v0.8.0

func (*MsgSudoExec) ProtoMessage()

func (*MsgSudoExec) ProtoReflect added in v0.8.0

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

func (*MsgSudoExec) Reset added in v0.8.0

func (x *MsgSudoExec) Reset()

func (*MsgSudoExec) String added in v0.8.0

func (x *MsgSudoExec) String() string

type MsgSudoExecResponse added in v0.8.0

type MsgSudoExecResponse struct {

	// result is the response data from the executed message.
	Result []byte `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

MsgSudoExecResponse defines the Msg/SudoExec response type.

func (*MsgSudoExecResponse) Descriptor deprecated added in v0.8.0

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

Deprecated: Use MsgSudoExecResponse.ProtoReflect.Descriptor instead.

func (*MsgSudoExecResponse) GetResult added in v0.8.0

func (x *MsgSudoExecResponse) GetResult() []byte

func (*MsgSudoExecResponse) ProtoMessage added in v0.8.0

func (*MsgSudoExecResponse) ProtoMessage()

func (*MsgSudoExecResponse) ProtoReflect added in v0.8.0

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

func (*MsgSudoExecResponse) Reset added in v0.8.0

func (x *MsgSudoExecResponse) Reset()

func (*MsgSudoExecResponse) String added in v0.8.0

func (x *MsgSudoExecResponse) String() string

type MsgUpdateMessageParams added in v0.8.0

type MsgUpdateMessageParams 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"`
	// msg_url is the url of the message to be updated.
	MsgUrl string `protobuf:"bytes,2,opt,name=msg_url,json=msgUrl,proto3" json:"msg_url,omitempty"`
	// params are the new params to be set for the message.
	Params *MessageBasedParams `protobuf:"bytes,3,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateMessageParams defines the Msg/UpdateMessageParams response type.

func (*MsgUpdateMessageParams) Descriptor deprecated added in v0.8.0

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

Deprecated: Use MsgUpdateMessageParams.ProtoReflect.Descriptor instead.

func (*MsgUpdateMessageParams) GetAuthority added in v0.8.0

func (x *MsgUpdateMessageParams) GetAuthority() string

func (*MsgUpdateMessageParams) GetMsgUrl added in v0.8.0

func (x *MsgUpdateMessageParams) GetMsgUrl() string

func (*MsgUpdateMessageParams) GetParams added in v0.8.0

func (*MsgUpdateMessageParams) ProtoMessage added in v0.8.0

func (*MsgUpdateMessageParams) ProtoMessage()

func (*MsgUpdateMessageParams) ProtoReflect added in v0.8.0

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

func (*MsgUpdateMessageParams) Reset added in v0.8.0

func (x *MsgUpdateMessageParams) Reset()

func (*MsgUpdateMessageParams) String added in v0.8.0

func (x *MsgUpdateMessageParams) String() string

type MsgUpdateMessageParamsResponse added in v0.8.0

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

MsgUpdateMessageParamsResponse defines the Msg/UpdateMessageParams response type.

func (*MsgUpdateMessageParamsResponse) Descriptor deprecated added in v0.8.0

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

Deprecated: Use MsgUpdateMessageParamsResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateMessageParamsResponse) ProtoMessage added in v0.8.0

func (*MsgUpdateMessageParamsResponse) ProtoMessage()

func (*MsgUpdateMessageParamsResponse) ProtoReflect added in v0.8.0

func (*MsgUpdateMessageParamsResponse) Reset added in v0.8.0

func (x *MsgUpdateMessageParamsResponse) Reset()

func (*MsgUpdateMessageParamsResponse) String added in v0.8.0

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 defines the x/gov parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateParams is the Msg/UpdateParams request type.

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
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

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 {

	// 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 is the voter address for the proposal.
	Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
	// option defines the vote option.
	Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.gov.v1.VoteOption" json:"option,omitempty"`
	// metadata is any arbitrary metadata attached to the Vote.
	Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,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) GetMetadata

func (x *MsgVote) GetMetadata() string

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 {

	// 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 is the voter address for the proposal.
	Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
	// options defines the weighted vote options.
	Options []*WeightedVoteOption `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"`
	// metadata is any arbitrary metadata attached to the VoteWeighted.
	Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

MsgVoteWeighted defines a message to cast a vote.

func (*MsgVoteWeighted) Descriptor deprecated

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

Deprecated: Use MsgVoteWeighted.ProtoReflect.Descriptor instead.

func (*MsgVoteWeighted) GetMetadata

func (x *MsgVoteWeighted) GetMetadata() string

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.

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 Params

type Params 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 stake 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"`
	// Duration of the voting period.
	VotingPeriod *durationpb.Duration `protobuf:"bytes,3,opt,name=voting_period,json=votingPeriod,proto3" json:"voting_period,omitempty"`
	// Minimum percentage of total stake needed to vote for a result to be
	// considered valid.
	Quorum string `protobuf:"bytes,4,opt,name=quorum,proto3" json:"quorum,omitempty"`
	// Minimum proportion of Yes votes for proposal to pass. Default value: 0.5.
	Threshold string `protobuf:"bytes,5,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 string `protobuf:"bytes,6,opt,name=veto_threshold,json=vetoThreshold,proto3" json:"veto_threshold,omitempty"`
	// The ratio representing the proportion of the deposit value that must be paid at proposal submission.
	MinInitialDepositRatio string `` /* 131-byte string literal not displayed */
	// The cancel ratio which will not be returned back to the depositors when a proposal is cancelled.
	ProposalCancelRatio string `protobuf:"bytes,8,opt,name=proposal_cancel_ratio,json=proposalCancelRatio,proto3" json:"proposal_cancel_ratio,omitempty"`
	// The address which will receive (proposal_cancel_ratio * deposit) proposal deposits.
	// If empty, the (proposal_cancel_ratio * deposit) proposal deposits will be burned.
	ProposalCancelDest string `protobuf:"bytes,9,opt,name=proposal_cancel_dest,json=proposalCancelDest,proto3" json:"proposal_cancel_dest,omitempty"`
	// Duration of the voting period of an expedited proposal.
	ExpeditedVotingPeriod *durationpb.Duration `` /* 127-byte string literal not displayed */
	// Minimum proportion of Yes votes for proposal to pass. Default value: 0.67.
	ExpeditedThreshold string `protobuf:"bytes,11,opt,name=expedited_threshold,json=expeditedThreshold,proto3" json:"expedited_threshold,omitempty"`
	// Minimum expedited deposit for a proposal to enter voting period.
	ExpeditedMinDeposit []*v1beta1.Coin `protobuf:"bytes,12,rep,name=expedited_min_deposit,json=expeditedMinDeposit,proto3" json:"expedited_min_deposit,omitempty"`
	// burn deposits if a proposal does not meet quorum
	BurnVoteQuorum bool `protobuf:"varint,13,opt,name=burn_vote_quorum,json=burnVoteQuorum,proto3" json:"burn_vote_quorum,omitempty"`
	// burn deposits if the proposal does not enter voting period
	BurnProposalDepositPrevote bool `` /* 145-byte string literal not displayed */
	// burn deposits if quorum with vote type no_veto is met
	BurnVoteVeto bool `protobuf:"varint,15,opt,name=burn_vote_veto,json=burnVoteVeto,proto3" json:"burn_vote_veto,omitempty"`
	// The ratio representing the proportion of the deposit value minimum that must be met when making a deposit.
	// Default value: 0.01. Meaning that for a chain with a min_deposit of 100stake, a deposit of 1stake would be
	// required.
	MinDepositRatio string `protobuf:"bytes,16,opt,name=min_deposit_ratio,json=minDepositRatio,proto3" json:"min_deposit_ratio,omitempty"`
	// proposal_cancel_max_period defines how far in the voting period a proposer can cancel a proposal.
	// If the proposal is cancelled before the max cancel period, the deposit will be returned/burn to the
	// depositors, according to the proposal_cancel_ratio and proposal_cancel_dest parameters.
	// After the max cancel period, the proposal cannot be cancelled anymore.
	ProposalCancelMaxPeriod string `` /* 135-byte string literal not displayed */
	// optimistic_authorized_addresses is an optional governance parameter that limits the authorized accounts than can
	// submit optimistic proposals
	OptimisticAuthorizedAddresses []string `` /* 151-byte string literal not displayed */
	// optimistic rejected threshold defines at which percentage of NO votes, the optimistic proposal should fail and be
	// converted to a standard proposal. The threshold is expressed as a percentage of the total bonded tokens.
	OptimisticRejectedThreshold string `` /* 145-byte string literal not displayed */
	// yes_quorum defines the minimum percentage of Yes votes in quorum for proposal to pass.
	// Default value: 0 (disabled).
	YesQuorum string `protobuf:"bytes,20,opt,name=yes_quorum,json=yesQuorum,proto3" json:"yes_quorum,omitempty"`
	// Minimum percentage of total stake needed to vote for a result to be
	// considered valid for an expedited proposal.
	ExpeditedQuorum      string `protobuf:"bytes,21,opt,name=expedited_quorum,json=expeditedQuorum,proto3" json:"expedited_quorum,omitempty"`
	ProposalExecutionGas uint64 `protobuf:"varint,22,opt,name=proposal_execution_gas,json=proposalExecutionGas,proto3" json:"proposal_execution_gas,omitempty"`
	// contains filtered or unexported fields
}

Params defines the parameters for the x/gov module.

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetBurnProposalDepositPrevote added in v0.4.0

func (x *Params) GetBurnProposalDepositPrevote() bool

func (*Params) GetBurnVoteQuorum added in v0.4.0

func (x *Params) GetBurnVoteQuorum() bool

func (*Params) GetBurnVoteVeto added in v0.4.0

func (x *Params) GetBurnVoteVeto() bool

func (*Params) GetExpeditedMinDeposit added in v0.3.0

func (x *Params) GetExpeditedMinDeposit() []*v1beta1.Coin

func (*Params) GetExpeditedQuorum added in v0.8.0

func (x *Params) GetExpeditedQuorum() string

func (*Params) GetExpeditedThreshold added in v0.3.0

func (x *Params) GetExpeditedThreshold() string

func (*Params) GetExpeditedVotingPeriod added in v0.3.0

func (x *Params) GetExpeditedVotingPeriod() *durationpb.Duration

func (*Params) GetMaxDepositPeriod

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

func (*Params) GetMinDeposit

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

func (*Params) GetMinDepositRatio added in v0.7.3

func (x *Params) GetMinDepositRatio() string

func (*Params) GetMinInitialDepositRatio

func (x *Params) GetMinInitialDepositRatio() string

func (*Params) GetOptimisticAuthorizedAddresses added in v0.8.0

func (x *Params) GetOptimisticAuthorizedAddresses() []string

func (*Params) GetOptimisticRejectedThreshold added in v0.8.0

func (x *Params) GetOptimisticRejectedThreshold() string

func (*Params) GetProposalCancelDest added in v0.3.0

func (x *Params) GetProposalCancelDest() string

func (*Params) GetProposalCancelMaxPeriod added in v0.8.0

func (x *Params) GetProposalCancelMaxPeriod() string

func (*Params) GetProposalCancelRatio added in v0.3.0

func (x *Params) GetProposalCancelRatio() string

func (*Params) GetProposalExecutionGas added in v0.8.0

func (x *Params) GetProposalExecutionGas() uint64

func (*Params) GetQuorum

func (x *Params) GetQuorum() string

func (*Params) GetThreshold

func (x *Params) GetThreshold() string

func (*Params) GetVetoThreshold

func (x *Params) GetVetoThreshold() string

func (*Params) GetVotingPeriod

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

func (*Params) GetYesQuorum added in v0.8.0

func (x *Params) GetYesQuorum() string

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 Proposal

type Proposal struct {

	// id defines the unique id of the proposal.
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// messages are the arbitrary messages to be executed if the proposal passes.
	Messages []*anypb.Any `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"`
	// status defines the proposal status.
	Status ProposalStatus `protobuf:"varint,3,opt,name=status,proto3,enum=cosmos.gov.v1.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"`
	// submit_time is the time of proposal submission.
	SubmitTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"`
	// deposit_end_time is the end time for deposition.
	DepositEndTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=deposit_end_time,json=depositEndTime,proto3" json:"deposit_end_time,omitempty"`
	// total_deposit is the total deposit on the proposal.
	TotalDeposit []*v1beta1.Coin `protobuf:"bytes,7,rep,name=total_deposit,json=totalDeposit,proto3" json:"total_deposit,omitempty"`
	// voting_start_time is the starting time to vote on a proposal.
	VotingStartTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=voting_start_time,json=votingStartTime,proto3" json:"voting_start_time,omitempty"`
	// voting_end_time is the end time of voting on a proposal.
	VotingEndTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=voting_end_time,json=votingEndTime,proto3" json:"voting_end_time,omitempty"`
	// metadata is any arbitrary metadata attached to the proposal.
	// the recommended format of the metadata is to be found here:
	// https://docs.cosmos.network/v0.47/modules/gov#proposal-3
	Metadata string `protobuf:"bytes,10,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// title is the title of the proposal
	Title string `protobuf:"bytes,11,opt,name=title,proto3" json:"title,omitempty"`
	// summary is a short summary of the proposal
	Summary string `protobuf:"bytes,12,opt,name=summary,proto3" json:"summary,omitempty"`
	// proposer is the address of the proposal sumbitter
	Proposer string `protobuf:"bytes,13,opt,name=proposer,proto3" json:"proposer,omitempty"`
	// expedited defines if the proposal is expedited
	//
	// Deprecated: Use ProposalType instead.
	//
	// Deprecated: Do not use.
	Expedited bool `protobuf:"varint,14,opt,name=expedited,proto3" json:"expedited,omitempty"`
	// failed_reason defines the reason why the proposal failed
	FailedReason string `protobuf:"bytes,15,opt,name=failed_reason,json=failedReason,proto3" json:"failed_reason,omitempty"`
	// proposal_type defines the type of the proposal
	ProposalType ProposalType `` /* 131-byte string literal not displayed */
	// 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) GetDepositEndTime

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

func (*Proposal) GetExpedited deprecated added in v0.3.0

func (x *Proposal) GetExpedited() bool

Deprecated: Do not use.

func (*Proposal) GetFailedReason added in v0.6.1

func (x *Proposal) GetFailedReason() string

func (*Proposal) GetFinalTallyResult

func (x *Proposal) GetFinalTallyResult() *TallyResult

func (*Proposal) GetId

func (x *Proposal) GetId() uint64

func (*Proposal) GetMessages

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

func (*Proposal) GetMetadata

func (x *Proposal) GetMetadata() string

func (*Proposal) GetProposalType added in v0.8.0

func (x *Proposal) GetProposalType() ProposalType

func (*Proposal) GetProposer added in v0.3.0

func (x *Proposal) GetProposer() string

func (*Proposal) GetStatus

func (x *Proposal) GetStatus() ProposalStatus

func (*Proposal) GetSubmitTime

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

func (*Proposal) GetSummary added in v0.3.0

func (x *Proposal) GetSummary() string

func (*Proposal) GetTitle added in v0.3.0

func (x *Proposal) GetTitle() string

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 ProposalType added in v0.8.0

type ProposalType int32

ProposalType enumerates the valid proposal types. All proposal types are v1.Proposal which have different voting periods or tallying logic.

const (
	// PROPOSAL_TYPE_UNSPECIFIED defines no proposal type, which fallback to PROPOSAL_TYPE_STANDARD.
	ProposalType_PROPOSAL_TYPE_UNSPECIFIED ProposalType = 0
	// PROPOSAL_TYPE_STANDARD defines the type for a standard proposal.
	ProposalType_PROPOSAL_TYPE_STANDARD ProposalType = 1
	// PROPOSAL_TYPE_MULTIPLE_CHOICE defines the type for a multiple choice proposal.
	ProposalType_PROPOSAL_TYPE_MULTIPLE_CHOICE ProposalType = 2
	// PROPOSAL_TYPE_OPTIMISTIC defines the type for an optimistic proposal.
	ProposalType_PROPOSAL_TYPE_OPTIMISTIC ProposalType = 3
	// PROPOSAL_TYPE_EXPEDITED defines the type for an expedited proposal.
	ProposalType_PROPOSAL_TYPE_EXPEDITED ProposalType = 4
)

func (ProposalType) Descriptor added in v0.8.0

func (ProposalType) Enum added in v0.8.0

func (x ProposalType) Enum() *ProposalType

func (ProposalType) EnumDescriptor deprecated added in v0.8.0

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

Deprecated: Use ProposalType.Descriptor instead.

func (ProposalType) Number added in v0.8.0

func (ProposalType) String added in v0.8.0

func (x ProposalType) String() string

func (ProposalType) Type added in v0.8.0

type ProposalVoteOptions added in v0.8.0

type ProposalVoteOptions struct {

	// option_one is the first option of the proposal
	OptionOne string `protobuf:"bytes,1,opt,name=option_one,json=optionOne,proto3" json:"option_one,omitempty"`
	// option_two is the second option of the proposal
	OptionTwo string `protobuf:"bytes,2,opt,name=option_two,json=optionTwo,proto3" json:"option_two,omitempty"`
	// option_three is the third option of the proposal
	OptionThree string `protobuf:"bytes,3,opt,name=option_three,json=optionThree,proto3" json:"option_three,omitempty"`
	// option_four is the fourth option of the proposal
	OptionFour string `protobuf:"bytes,4,opt,name=option_four,json=optionFour,proto3" json:"option_four,omitempty"`
	// option_spam is always present for all proposals.
	OptionSpam string `protobuf:"bytes,5,opt,name=option_spam,json=optionSpam,proto3" json:"option_spam,omitempty"`
	// contains filtered or unexported fields
}

ProposalVoteOptions defines the stringified vote options for proposals. This allows to support multiple choice options for a given proposal.

func (*ProposalVoteOptions) Descriptor deprecated added in v0.8.0

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

Deprecated: Use ProposalVoteOptions.ProtoReflect.Descriptor instead.

func (*ProposalVoteOptions) GetOptionFour added in v0.8.0

func (x *ProposalVoteOptions) GetOptionFour() string

func (*ProposalVoteOptions) GetOptionOne added in v0.8.0

func (x *ProposalVoteOptions) GetOptionOne() string

func (*ProposalVoteOptions) GetOptionSpam added in v0.8.0

func (x *ProposalVoteOptions) GetOptionSpam() string

func (*ProposalVoteOptions) GetOptionThree added in v0.8.0

func (x *ProposalVoteOptions) GetOptionThree() string

func (*ProposalVoteOptions) GetOptionTwo added in v0.8.0

func (x *ProposalVoteOptions) GetOptionTwo() string

func (*ProposalVoteOptions) ProtoMessage added in v0.8.0

func (*ProposalVoteOptions) ProtoMessage()

func (*ProposalVoteOptions) ProtoReflect added in v0.8.0

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

func (*ProposalVoteOptions) Reset added in v0.8.0

func (x *ProposalVoteOptions) Reset()

func (*ProposalVoteOptions) String added in v0.8.0

func (x *ProposalVoteOptions) String() string

type QueryClient

type QueryClient interface {
	// Constitution queries the chain's constitution.
	Constitution(ctx context.Context, in *QueryConstitutionRequest, opts ...grpc.CallOption) (*QueryConstitutionResponse, error)
	// 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 on 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)
	// ProposalVoteOptions queries the valid voting options for a proposal.
	ProposalVoteOptions(ctx context.Context, in *QueryProposalVoteOptionsRequest, opts ...grpc.CallOption) (*QueryProposalVoteOptionsResponse, error)
	// MessageBasedParams queries the message specific governance params based on a msg url.
	MessageBasedParams(ctx context.Context, in *QueryMessageBasedParamsRequest, opts ...grpc.CallOption) (*QueryMessageBasedParamsResponse, 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.

Query defines the gRPC querier service for gov module

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryConstitutionRequest added in v0.4.0

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

QueryConstitutionRequest is the request type for the Query/Constitution RPC method

func (*QueryConstitutionRequest) Descriptor deprecated added in v0.4.0

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

Deprecated: Use QueryConstitutionRequest.ProtoReflect.Descriptor instead.

func (*QueryConstitutionRequest) ProtoMessage added in v0.4.0

func (*QueryConstitutionRequest) ProtoMessage()

func (*QueryConstitutionRequest) ProtoReflect added in v0.4.0

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

func (*QueryConstitutionRequest) Reset added in v0.4.0

func (x *QueryConstitutionRequest) Reset()

func (*QueryConstitutionRequest) String added in v0.4.0

func (x *QueryConstitutionRequest) String() string

type QueryConstitutionResponse added in v0.4.0

type QueryConstitutionResponse struct {
	Constitution string `protobuf:"bytes,1,opt,name=constitution,proto3" json:"constitution,omitempty"`
	// contains filtered or unexported fields
}

QueryConstitutionResponse is the response type for the Query/Constitution RPC method

func (*QueryConstitutionResponse) Descriptor deprecated added in v0.4.0

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

Deprecated: Use QueryConstitutionResponse.ProtoReflect.Descriptor instead.

func (*QueryConstitutionResponse) GetConstitution added in v0.4.0

func (x *QueryConstitutionResponse) GetConstitution() string

func (*QueryConstitutionResponse) ProtoMessage added in v0.4.0

func (*QueryConstitutionResponse) ProtoMessage()

func (*QueryConstitutionResponse) ProtoReflect added in v0.4.0

func (*QueryConstitutionResponse) Reset added in v0.4.0

func (x *QueryConstitutionResponse) Reset()

func (*QueryConstitutionResponse) String added in v0.4.0

func (x *QueryConstitutionResponse) String() string

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 defines the requested deposits.
	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 QueryMessageBasedParamsRequest added in v0.8.0

type QueryMessageBasedParamsRequest struct {
	MsgUrl string `protobuf:"bytes,1,opt,name=msg_url,json=msgUrl,proto3" json:"msg_url,omitempty"`
	// contains filtered or unexported fields
}

QueryMessageBasedParamsRequest is the request type for the Query/MessageBasedParams RPC method.

func (*QueryMessageBasedParamsRequest) Descriptor deprecated added in v0.8.0

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

Deprecated: Use QueryMessageBasedParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryMessageBasedParamsRequest) GetMsgUrl added in v0.8.0

func (x *QueryMessageBasedParamsRequest) GetMsgUrl() string

func (*QueryMessageBasedParamsRequest) ProtoMessage added in v0.8.0

func (*QueryMessageBasedParamsRequest) ProtoMessage()

func (*QueryMessageBasedParamsRequest) ProtoReflect added in v0.8.0

func (*QueryMessageBasedParamsRequest) Reset added in v0.8.0

func (x *QueryMessageBasedParamsRequest) Reset()

func (*QueryMessageBasedParamsRequest) String added in v0.8.0

type QueryMessageBasedParamsResponse added in v0.8.0

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

QueryMessageBasedParamsResponse is the response for the Query/MessageBasedParams RPC method.

func (*QueryMessageBasedParamsResponse) Descriptor deprecated added in v0.8.0

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

Deprecated: Use QueryMessageBasedParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryMessageBasedParamsResponse) GetParams added in v0.8.0

func (*QueryMessageBasedParamsResponse) ProtoMessage added in v0.8.0

func (*QueryMessageBasedParamsResponse) ProtoMessage()

func (*QueryMessageBasedParamsResponse) ProtoReflect added in v0.8.0

func (*QueryMessageBasedParamsResponse) Reset added in v0.8.0

func (*QueryMessageBasedParamsResponse) String added in v0.8.0

type QueryParamsRequest

type QueryParamsRequest struct {

	// params_type defines which parameters to query for, can be one of "voting",
	// "tallying" or "deposit".
	// Deprecated: all params are stored in Params.
	//
	// Deprecated: Do not use.
	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 deprecated

func (x *QueryParamsRequest) GetParamsType() string

Deprecated: Do not use.

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 {

	// Deprecated: Prefer to use `params` instead.
	// voting_params defines the parameters related to voting.
	//
	// Deprecated: Do not use.
	VotingParams *VotingParams `protobuf:"bytes,1,opt,name=voting_params,json=votingParams,proto3" json:"voting_params,omitempty"`
	// Deprecated: Prefer to use `params` instead.
	// deposit_params defines the parameters related to deposit.
	//
	// Deprecated: Do not use.
	DepositParams *DepositParams `protobuf:"bytes,2,opt,name=deposit_params,json=depositParams,proto3" json:"deposit_params,omitempty"`
	// Deprecated: Prefer to use `params` instead.
	// tally_params defines the parameters related to tally.
	//
	// Deprecated: Do not use.
	TallyParams *TallyParams `protobuf:"bytes,3,opt,name=tally_params,json=tallyParams,proto3" json:"tally_params,omitempty"`
	// params defines all the parameters of x/gov module.
	Params *Params `protobuf:"bytes,4,opt,name=params,proto3" json:"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 deprecated

func (x *QueryParamsResponse) GetDepositParams() *DepositParams

Deprecated: Do not use.

func (*QueryParamsResponse) GetParams

func (x *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) GetTallyParams deprecated

func (x *QueryParamsResponse) GetTallyParams() *TallyParams

Deprecated: Do not use.

func (*QueryParamsResponse) GetVotingParams deprecated

func (x *QueryParamsResponse) GetVotingParams() *VotingParams

Deprecated: Do not use.

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 is the requested governance proposal.
	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 QueryProposalVoteOptionsRequest added in v0.8.0

type QueryProposalVoteOptionsRequest 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
}

QueryProposalVoteOptionsRequest is the request type for the Query/ProposalVoteOptions RPC method.

func (*QueryProposalVoteOptionsRequest) Descriptor deprecated added in v0.8.0

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

Deprecated: Use QueryProposalVoteOptionsRequest.ProtoReflect.Descriptor instead.

func (*QueryProposalVoteOptionsRequest) GetProposalId added in v0.8.0

func (x *QueryProposalVoteOptionsRequest) GetProposalId() uint64

func (*QueryProposalVoteOptionsRequest) ProtoMessage added in v0.8.0

func (*QueryProposalVoteOptionsRequest) ProtoMessage()

func (*QueryProposalVoteOptionsRequest) ProtoReflect added in v0.8.0

func (*QueryProposalVoteOptionsRequest) Reset added in v0.8.0

func (*QueryProposalVoteOptionsRequest) String added in v0.8.0

type QueryProposalVoteOptionsResponse added in v0.8.0

type QueryProposalVoteOptionsResponse struct {

	// vote_options defines the valid voting options for a proposal.
	VoteOptions *ProposalVoteOptions `protobuf:"bytes,1,opt,name=vote_options,json=voteOptions,proto3" json:"vote_options,omitempty"`
	// contains filtered or unexported fields
}

QueryProposalVoteOptionsResponse is the response type for the Query/ProposalVoteOptions RPC method.

func (*QueryProposalVoteOptionsResponse) Descriptor deprecated added in v0.8.0

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

Deprecated: Use QueryProposalVoteOptionsResponse.ProtoReflect.Descriptor instead.

func (*QueryProposalVoteOptionsResponse) GetVoteOptions added in v0.8.0

func (*QueryProposalVoteOptionsResponse) ProtoMessage added in v0.8.0

func (*QueryProposalVoteOptionsResponse) ProtoMessage()

func (*QueryProposalVoteOptionsResponse) ProtoReflect added in v0.8.0

func (*QueryProposalVoteOptionsResponse) Reset added in v0.8.0

func (*QueryProposalVoteOptionsResponse) String added in v0.8.0

type QueryProposalsRequest

type QueryProposalsRequest struct {

	// proposal_status defines the status of the proposals.
	ProposalStatus ProposalStatus `` /* 138-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 defines all the requested governance proposals.
	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 {
	// Constitution queries the chain's constitution.
	Constitution(context.Context, *QueryConstitutionRequest) (*QueryConstitutionResponse, error)
	// 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 on 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)
	// ProposalVoteOptions queries the valid voting options for a proposal.
	ProposalVoteOptions(context.Context, *QueryProposalVoteOptionsRequest) (*QueryProposalVoteOptionsResponse, error)
	// MessageBasedParams queries the message specific governance params based on a msg url.
	MessageBasedParams(context.Context, *QueryMessageBasedParamsRequest) (*QueryMessageBasedParamsResponse, error)
	// contains filtered or unexported methods
}

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

Query defines the gRPC querier service for gov module

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 defines 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 defines 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 deprecated

type TallyParams struct {

	// Minimum percentage of total stake needed to vote for a result to be
	// considered valid.
	Quorum string `protobuf:"bytes,1,opt,name=quorum,proto3" json:"quorum,omitempty"`
	// Minimum proportion of Yes votes for proposal to pass. Default value: 0.5.
	Threshold string `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 string `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.

Deprecated: Do not use.

func (*TallyParams) Descriptor deprecated

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

Deprecated: Use TallyParams.ProtoReflect.Descriptor instead.

func (*TallyParams) GetQuorum

func (x *TallyParams) GetQuorum() string

func (*TallyParams) GetThreshold

func (x *TallyParams) GetThreshold() string

func (*TallyParams) GetVetoThreshold

func (x *TallyParams) GetVetoThreshold() string

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_count is the number of yes votes on a proposal.
	//
	// Deprecated: Do not use.
	YesCount string `protobuf:"bytes,1,opt,name=yes_count,json=yesCount,proto3" json:"yes_count,omitempty"` // option 1
	// abstain_count is the number of abstain votes on a proposal.
	//
	// Deprecated: Do not use.
	AbstainCount string `protobuf:"bytes,2,opt,name=abstain_count,json=abstainCount,proto3" json:"abstain_count,omitempty"` // option 2
	// no_count is the number of no votes on a proposal.
	//
	// Deprecated: Do not use.
	NoCount string `protobuf:"bytes,3,opt,name=no_count,json=noCount,proto3" json:"no_count,omitempty"` // option 3
	// no_with_veto_count is the number of no with veto votes on a proposal.
	//
	// Deprecated: Do not use.
	NoWithVetoCount string `protobuf:"bytes,4,opt,name=no_with_veto_count,json=noWithVetoCount,proto3" json:"no_with_veto_count,omitempty"` // option 4
	// option_one_count corresponds to the number of votes for option one (= yes_count for non multiple choice proposals).
	OptionOneCount string `protobuf:"bytes,5,opt,name=option_one_count,json=optionOneCount,proto3" json:"option_one_count,omitempty"`
	// option_two_count corresponds to the number of votes for option two (= abstain_count for non multiple choice
	// proposals).
	OptionTwoCount string `protobuf:"bytes,6,opt,name=option_two_count,json=optionTwoCount,proto3" json:"option_two_count,omitempty"`
	// option_three_count corresponds to the number of votes for option three (= no_count for non multiple choice
	// proposals).
	OptionThreeCount string `protobuf:"bytes,7,opt,name=option_three_count,json=optionThreeCount,proto3" json:"option_three_count,omitempty"`
	// option_four_count corresponds to the number of votes for option four (= no_with_veto_count for non multiple choice
	// proposals).
	OptionFourCount string `protobuf:"bytes,8,opt,name=option_four_count,json=optionFourCount,proto3" json:"option_four_count,omitempty"`
	// spam_count is the number of spam votes on a proposal.
	SpamCount string `protobuf:"bytes,9,opt,name=spam_count,json=spamCount,proto3" json:"spam_count,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) GetAbstainCount deprecated

func (x *TallyResult) GetAbstainCount() string

Deprecated: Do not use.

func (*TallyResult) GetNoCount deprecated

func (x *TallyResult) GetNoCount() string

Deprecated: Do not use.

func (*TallyResult) GetNoWithVetoCount deprecated

func (x *TallyResult) GetNoWithVetoCount() string

Deprecated: Do not use.

func (*TallyResult) GetOptionFourCount added in v0.8.0

func (x *TallyResult) GetOptionFourCount() string

func (*TallyResult) GetOptionOneCount added in v0.8.0

func (x *TallyResult) GetOptionOneCount() string

func (*TallyResult) GetOptionThreeCount added in v0.8.0

func (x *TallyResult) GetOptionThreeCount() string

func (*TallyResult) GetOptionTwoCount added in v0.8.0

func (x *TallyResult) GetOptionTwoCount() string

func (*TallyResult) GetSpamCount added in v0.8.0

func (x *TallyResult) GetSpamCount() string

func (*TallyResult) GetYesCount deprecated

func (x *TallyResult) GetYesCount() string

Deprecated: Do not use.

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 UnimplementedMsgServer

type UnimplementedMsgServer struct{}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedMsgServer) CancelProposal added in v0.3.0

func (UnimplementedMsgServer) Deposit

func (UnimplementedMsgServer) SubmitMultipleChoiceProposal added in v0.8.0

func (UnimplementedMsgServer) SubmitProposal

func (UnimplementedMsgServer) SudoExec added in v0.8.0

func (UnimplementedMsgServer) UpdateMessageParams added in v0.8.0

func (UnimplementedMsgServer) UpdateParams

func (UnimplementedMsgServer) Vote

func (UnimplementedMsgServer) VoteWeighted

type UnimplementedQueryServer

type UnimplementedQueryServer struct{}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedQueryServer) Constitution added in v0.4.0

func (UnimplementedQueryServer) Deposit

func (UnimplementedQueryServer) Deposits

func (UnimplementedQueryServer) MessageBasedParams added in v0.8.0

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) Proposal

func (UnimplementedQueryServer) ProposalVoteOptions added in v0.8.0

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 {

	// 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 is the voter address of the proposal.
	Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
	// options is the weighted vote options.
	Options []*WeightedVoteOption `protobuf:"bytes,4,rep,name=options,proto3" json:"options,omitempty"`
	// metadata is any arbitrary metadata attached to the vote.
	// the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/gov#vote-5
	Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,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) GetMetadata

func (x *Vote) GetMetadata() string

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 the yes proposal vote option.
	VoteOption_VOTE_OPTION_YES VoteOption = 1
	// VOTE_OPTION_ONE defines the first proposal vote option.
	VoteOption_VOTE_OPTION_ONE VoteOption = 1
	// VOTE_OPTION_ABSTAIN defines the abstain proposal vote option.
	VoteOption_VOTE_OPTION_ABSTAIN VoteOption = 2
	// VOTE_OPTION_TWO defines the second proposal vote option.
	VoteOption_VOTE_OPTION_TWO VoteOption = 2
	// VOTE_OPTION_NO defines the no proposal vote option.
	VoteOption_VOTE_OPTION_NO VoteOption = 3
	// VOTE_OPTION_THREE defines the third proposal vote option.
	VoteOption_VOTE_OPTION_THREE VoteOption = 3
	// VOTE_OPTION_NO_WITH_VETO defines the no with veto proposal vote option.
	VoteOption_VOTE_OPTION_NO_WITH_VETO VoteOption = 4
	// VOTE_OPTION_FOUR defines the fourth proposal vote option.
	VoteOption_VOTE_OPTION_FOUR VoteOption = 4
	// VOTE_OPTION_SPAM defines the spam proposal vote option.
	VoteOption_VOTE_OPTION_SPAM VoteOption = 5
)

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 deprecated

type VotingParams struct {

	// Duration 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.

Deprecated: Do not use.

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 defines the valid vote options, it must not contain duplicate vote options.
	Option VoteOption `protobuf:"varint,1,opt,name=option,proto3,enum=cosmos.gov.v1.VoteOption" json:"option,omitempty"`
	// weight is the vote weight associated with the vote option.
	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.

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