Versions in this module Expand all Collapse all v0 v0.1.2 Feb 11, 2022 Changes in this version + const AttributeKeyProposalId + const DefaultStartingProposalID + const MaxDescriptionLength + const MaxTitleLength + const ModuleName + const ProposalTypeText + var ErrIntOverflowGov = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthGov = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") + var ModuleCdc = codec.NewAminoCodec(amino) + var ProposalStatus_name = map[int32]string + var ProposalStatus_value = map[string]int32 + var VoteOption_name = map[int32]string + var VoteOption_value = map[string]int32 + func IsValidProposalType(ty string) bool + func RegisterInterfaces(registry types.InterfaceRegistry) + func RegisterMsgServer(s grpc1.Server, srv MsgServer) + func RegisterProposalType(ty string) + func RegisterQueryServer(s grpc1.Server, srv QueryServer) + func ValidProposalStatus(status ProposalStatus) bool + func ValidVoteOption(option VoteOption) bool + type Client interface + Deposit func(request DepositRequest, baseTx sdk.BaseTx) (sdk.ResultTx, sdk.Error) + QueryDeposit func(proposalId uint64, depositor string) (QueryDepositResp, sdk.Error) + QueryDeposits func(proposalId uint64) ([]QueryDepositResp, sdk.Error) + QueryParams func(paramsType string) (QueryParamsResp, sdk.Error) + QueryProposal func(proposalId uint64) (QueryProposalResp, sdk.Error) + QueryProposals func(proposalStatus string) ([]QueryProposalResp, sdk.Error) + QueryTallyResult func(proposalId uint64) (QueryTallyResultResp, sdk.Error) + QueryVote func(proposalId uint64, voter string) (QueryVoteResp, sdk.Error) + QueryVotes func(proposalId uint64) ([]QueryVoteResp, sdk.Error) + SubmitProposal func(request SubmitProposalRequest, baseTx sdk.BaseTx) (uint64, sdk.ResultTx, sdk.Error) + Vote func(request VoteRequest, baseTx sdk.BaseTx) (sdk.ResultTx, sdk.Error) + func NewClient(baseClient sdk.BaseClient, marshaler codec.Marshaler) Client + type Content interface + GetDescription func() string + GetTitle func() string + ProposalRoute func() string + ProposalType func() string + String func() string + ValidateBasic func() error + func ContentFromProposalType(title, desc, ty string) Content + func NewTextProposal(title, description string) Content + type Deposit struct + Amount plugchain_sdk_types.Coins + Depositor string + ProposalId uint64 + func (*Deposit) Descriptor() ([]byte, []int) + func (*Deposit) ProtoMessage() + func (d Deposit) Convert() interface{} + func (d Deposit) String() string + func (m *Deposit) Marshal() (dAtA []byte, err error) + func (m *Deposit) MarshalTo(dAtA []byte) (int, error) + func (m *Deposit) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Deposit) Reset() + func (m *Deposit) Size() (n int) + func (m *Deposit) Unmarshal(dAtA []byte) error + func (m *Deposit) XXX_DiscardUnknown() + func (m *Deposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Deposit) XXX_Merge(src proto.Message) + func (m *Deposit) XXX_Size() int + func (m *Deposit) XXX_Unmarshal(b []byte) error + type DepositParams struct + MaxDepositPeriod time.Duration + MinDeposit plugchain_sdk_types.Coins + func (*DepositParams) Descriptor() ([]byte, []int) + func (*DepositParams) ProtoMessage() + func (dp DepositParams) String() string + func (m *DepositParams) Marshal() (dAtA []byte, err error) + func (m *DepositParams) MarshalTo(dAtA []byte) (int, error) + func (m *DepositParams) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *DepositParams) Reset() + func (m *DepositParams) Size() (n int) + func (m *DepositParams) Unmarshal(dAtA []byte) error + func (m *DepositParams) XXX_DiscardUnknown() + func (m *DepositParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *DepositParams) XXX_Merge(src proto.Message) + func (m *DepositParams) XXX_Size() int + func (m *DepositParams) XXX_Unmarshal(b []byte) error + type DepositRequest struct + Amount sdk.DecCoins + ProposalId uint64 + type Deposits []Deposit + func (ds Deposits) Convert() interface{} + type MsgClient interface + Deposit func(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error) + SubmitProposal func(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error) + Vote func(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error) + func NewMsgClient(cc grpc1.ClientConn) MsgClient + type MsgDeposit struct + Amount plugchain_sdk_types.Coins + Depositor string + ProposalId uint64 + func (*MsgDeposit) Descriptor() ([]byte, []int) + func (*MsgDeposit) ProtoMessage() + func (m *MsgDeposit) Marshal() (dAtA []byte, err error) + func (m *MsgDeposit) MarshalTo(dAtA []byte) (int, error) + func (m *MsgDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgDeposit) Reset() + func (m *MsgDeposit) Size() (n int) + func (m *MsgDeposit) Unmarshal(dAtA []byte) error + func (m *MsgDeposit) XXX_DiscardUnknown() + func (m *MsgDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgDeposit) XXX_Merge(src proto.Message) + func (m *MsgDeposit) XXX_Size() int + func (m *MsgDeposit) XXX_Unmarshal(b []byte) error + func (msg MsgDeposit) GetSignBytes() []byte + func (msg MsgDeposit) GetSigners() []sdk.AccAddress + func (msg MsgDeposit) Route() string + func (msg MsgDeposit) String() string + func (msg MsgDeposit) Type() string + func (msg MsgDeposit) ValidateBasic() error + type MsgDepositResponse struct + func (*MsgDepositResponse) Descriptor() ([]byte, []int) + func (*MsgDepositResponse) ProtoMessage() + func (m *MsgDepositResponse) Marshal() (dAtA []byte, err error) + func (m *MsgDepositResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgDepositResponse) Reset() + func (m *MsgDepositResponse) Size() (n int) + func (m *MsgDepositResponse) String() string + func (m *MsgDepositResponse) Unmarshal(dAtA []byte) error + func (m *MsgDepositResponse) XXX_DiscardUnknown() + func (m *MsgDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgDepositResponse) XXX_Merge(src proto.Message) + func (m *MsgDepositResponse) XXX_Size() int + func (m *MsgDepositResponse) XXX_Unmarshal(b []byte) error + type MsgServer interface + Deposit func(context.Context, *MsgDeposit) (*MsgDepositResponse, error) + SubmitProposal func(context.Context, *MsgSubmitProposal) (*MsgSubmitProposalResponse, error) + Vote func(context.Context, *MsgVote) (*MsgVoteResponse, error) + type MsgSubmitProposal struct + Content *types.Any + InitialDeposit plugchain_sdk_types.Coins + Proposer string + func NewMsgSubmitProposal(content Content, initialDeposit sdk.Coins, proposer sdk.AccAddress) (*MsgSubmitProposal, error) + func (*MsgSubmitProposal) Descriptor() ([]byte, []int) + func (*MsgSubmitProposal) ProtoMessage() + func (m *MsgSubmitProposal) GetContent() Content + func (m *MsgSubmitProposal) GetInitialDeposit() sdk.Coins + func (m *MsgSubmitProposal) GetProposer() sdk.AccAddress + func (m *MsgSubmitProposal) Marshal() (dAtA []byte, err error) + func (m *MsgSubmitProposal) MarshalTo(dAtA []byte) (int, error) + func (m *MsgSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgSubmitProposal) Reset() + func (m *MsgSubmitProposal) SetContent(content Content) error + func (m *MsgSubmitProposal) Size() (n int) + func (m *MsgSubmitProposal) Unmarshal(dAtA []byte) error + func (m *MsgSubmitProposal) XXX_DiscardUnknown() + func (m *MsgSubmitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgSubmitProposal) XXX_Merge(src proto.Message) + func (m *MsgSubmitProposal) XXX_Size() int + func (m *MsgSubmitProposal) XXX_Unmarshal(b []byte) error + func (m MsgSubmitProposal) GetSignBytes() []byte + func (m MsgSubmitProposal) GetSigners() []sdk.AccAddress + func (m MsgSubmitProposal) Route() string + func (m MsgSubmitProposal) String() string + func (m MsgSubmitProposal) Type() string + func (m MsgSubmitProposal) UnpackInterfaces(unpacker types.AnyUnpacker) error + func (m MsgSubmitProposal) ValidateBasic() error + type MsgSubmitProposalResponse struct + ProposalId uint64 + func (*MsgSubmitProposalResponse) Descriptor() ([]byte, []int) + func (*MsgSubmitProposalResponse) ProtoMessage() + func (m *MsgSubmitProposalResponse) GetProposalId() uint64 + func (m *MsgSubmitProposalResponse) Marshal() (dAtA []byte, err error) + func (m *MsgSubmitProposalResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgSubmitProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgSubmitProposalResponse) Reset() + func (m *MsgSubmitProposalResponse) Size() (n int) + func (m *MsgSubmitProposalResponse) String() string + func (m *MsgSubmitProposalResponse) Unmarshal(dAtA []byte) error + func (m *MsgSubmitProposalResponse) XXX_DiscardUnknown() + func (m *MsgSubmitProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgSubmitProposalResponse) XXX_Merge(src proto.Message) + func (m *MsgSubmitProposalResponse) XXX_Size() int + func (m *MsgSubmitProposalResponse) XXX_Unmarshal(b []byte) error + type MsgVote struct + Option VoteOption + ProposalId uint64 + Voter string + func (*MsgVote) Descriptor() ([]byte, []int) + func (*MsgVote) ProtoMessage() + func (m *MsgVote) Marshal() (dAtA []byte, err error) + func (m *MsgVote) MarshalTo(dAtA []byte) (int, error) + func (m *MsgVote) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgVote) Reset() + func (m *MsgVote) Size() (n int) + func (m *MsgVote) Unmarshal(dAtA []byte) error + func (m *MsgVote) XXX_DiscardUnknown() + func (m *MsgVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgVote) XXX_Merge(src proto.Message) + func (m *MsgVote) XXX_Size() int + func (m *MsgVote) XXX_Unmarshal(b []byte) error + func (msg MsgVote) GetSignBytes() []byte + func (msg MsgVote) GetSigners() []sdk.AccAddress + func (msg MsgVote) Route() string + func (msg MsgVote) String() string + func (msg MsgVote) Type() string + func (msg MsgVote) ValidateBasic() error + type MsgVoteResponse struct + func (*MsgVoteResponse) Descriptor() ([]byte, []int) + func (*MsgVoteResponse) ProtoMessage() + func (m *MsgVoteResponse) Marshal() (dAtA []byte, err error) + func (m *MsgVoteResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgVoteResponse) Reset() + func (m *MsgVoteResponse) Size() (n int) + func (m *MsgVoteResponse) String() string + func (m *MsgVoteResponse) Unmarshal(dAtA []byte) error + func (m *MsgVoteResponse) XXX_DiscardUnknown() + func (m *MsgVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgVoteResponse) XXX_Merge(src proto.Message) + func (m *MsgVoteResponse) XXX_Size() int + func (m *MsgVoteResponse) XXX_Unmarshal(b []byte) error + type Proposal struct + Content *types1.Any + DepositEndTime time.Time + FinalTallyResult TallyResult + ProposalId uint64 + Status ProposalStatus + SubmitTime time.Time + TotalDeposit plugchain_sdk_types.Coins + VotingEndTime time.Time + VotingStartTime time.Time + func NewProposal(content Content, id uint64, submitTime, depositEndTime time.Time) (Proposal, error) + func (*Proposal) Descriptor() ([]byte, []int) + func (*Proposal) ProtoMessage() + func (m *Proposal) Marshal() (dAtA []byte, err error) + func (m *Proposal) MarshalTo(dAtA []byte) (int, error) + func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Proposal) Reset() + func (m *Proposal) Size() (n int) + func (m *Proposal) Unmarshal(dAtA []byte) error + func (m *Proposal) XXX_DiscardUnknown() + func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Proposal) XXX_Merge(src proto.Message) + func (m *Proposal) XXX_Size() int + func (m *Proposal) XXX_Unmarshal(b []byte) error + func (p Proposal) GetContent() Content + func (p Proposal) GetTitle() string + func (p Proposal) ProposalRoute() string + func (p Proposal) ProposalType() string + func (p Proposal) String() string + func (p Proposal) UnpackInterfaces(unpacker types.AnyUnpacker) error + func (q Proposal) Convert() interface{} + func (this *Proposal) Equal(that interface{}) bool + type ProposalQueue []uint64 + type ProposalStatus int32 + const StatusDepositPeriod + const StatusFailed + const StatusNil + const StatusPassed + const StatusRejected + const StatusVotingPeriod + func ProposalStatusFromString(str string) (ProposalStatus, error) + func (ProposalStatus) EnumDescriptor() ([]byte, []int) + func (status *ProposalStatus) Unmarshal(data []byte) error + func (status ProposalStatus) Format(s fmt.State, verb rune) + func (status ProposalStatus) Marshal() ([]byte, error) + func (x ProposalStatus) String() string + type Proposals []Proposal + func (p Proposals) Equal(other Proposals) bool + func (p Proposals) String() string + func (p Proposals) UnpackInterfaces(unpacker types.AnyUnpacker) error + func (qs Proposals) Convert() interface{} + type QueryClient interface + Deposit func(ctx context.Context, in *QueryDepositRequest, opts ...grpc.CallOption) (*QueryDepositResponse, error) + Deposits func(ctx context.Context, in *QueryDepositsRequest, opts ...grpc.CallOption) (*QueryDepositsResponse, error) + Params func(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + Proposal func(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error) + Proposals func(ctx context.Context, in *QueryProposalsRequest, opts ...grpc.CallOption) (*QueryProposalsResponse, error) + TallyResult func(ctx context.Context, in *QueryTallyResultRequest, opts ...grpc.CallOption) (*QueryTallyResultResponse, error) + Vote func(ctx context.Context, in *QueryVoteRequest, opts ...grpc.CallOption) (*QueryVoteResponse, error) + Votes func(ctx context.Context, in *QueryVotesRequest, opts ...grpc.CallOption) (*QueryVotesResponse, error) + func NewQueryClient(cc grpc1.ClientConn) QueryClient + type QueryDepositRequest struct + Depositor string + ProposalId uint64 + func (*QueryDepositRequest) Descriptor() ([]byte, []int) + func (*QueryDepositRequest) ProtoMessage() + func (m *QueryDepositRequest) Marshal() (dAtA []byte, err error) + func (m *QueryDepositRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryDepositRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryDepositRequest) Reset() + func (m *QueryDepositRequest) Size() (n int) + func (m *QueryDepositRequest) String() string + func (m *QueryDepositRequest) Unmarshal(dAtA []byte) error + func (m *QueryDepositRequest) XXX_DiscardUnknown() + func (m *QueryDepositRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryDepositRequest) XXX_Merge(src proto.Message) + func (m *QueryDepositRequest) XXX_Size() int + func (m *QueryDepositRequest) XXX_Unmarshal(b []byte) error + type QueryDepositResp struct + Amount sdk.Coins + Depositor string + ProposalId uint64 + type QueryDepositResponse struct + Deposit Deposit + func (*QueryDepositResponse) Descriptor() ([]byte, []int) + func (*QueryDepositResponse) ProtoMessage() + func (m *QueryDepositResponse) GetDeposit() Deposit + func (m *QueryDepositResponse) Marshal() (dAtA []byte, err error) + func (m *QueryDepositResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryDepositResponse) Reset() + func (m *QueryDepositResponse) Size() (n int) + func (m *QueryDepositResponse) String() string + func (m *QueryDepositResponse) Unmarshal(dAtA []byte) error + func (m *QueryDepositResponse) XXX_DiscardUnknown() + func (m *QueryDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryDepositResponse) XXX_Merge(src proto.Message) + func (m *QueryDepositResponse) XXX_Size() int + func (m *QueryDepositResponse) XXX_Unmarshal(b []byte) error + type QueryDepositsRequest struct + Pagination *query.PageRequest + ProposalId uint64 + func (*QueryDepositsRequest) Descriptor() ([]byte, []int) + func (*QueryDepositsRequest) ProtoMessage() + func (m *QueryDepositsRequest) GetPagination() *query.PageRequest + func (m *QueryDepositsRequest) GetProposalId() uint64 + func (m *QueryDepositsRequest) Marshal() (dAtA []byte, err error) + func (m *QueryDepositsRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryDepositsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryDepositsRequest) Reset() + func (m *QueryDepositsRequest) Size() (n int) + func (m *QueryDepositsRequest) String() string + func (m *QueryDepositsRequest) Unmarshal(dAtA []byte) error + func (m *QueryDepositsRequest) XXX_DiscardUnknown() + func (m *QueryDepositsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryDepositsRequest) XXX_Merge(src proto.Message) + func (m *QueryDepositsRequest) XXX_Size() int + func (m *QueryDepositsRequest) XXX_Unmarshal(b []byte) error + type QueryDepositsResponse struct + Deposits []Deposit + Pagination *query.PageResponse + func (*QueryDepositsResponse) Descriptor() ([]byte, []int) + func (*QueryDepositsResponse) ProtoMessage() + func (m *QueryDepositsResponse) GetDeposits() []Deposit + func (m *QueryDepositsResponse) GetPagination() *query.PageResponse + func (m *QueryDepositsResponse) Marshal() (dAtA []byte, err error) + func (m *QueryDepositsResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryDepositsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryDepositsResponse) Reset() + func (m *QueryDepositsResponse) Size() (n int) + func (m *QueryDepositsResponse) String() string + func (m *QueryDepositsResponse) Unmarshal(dAtA []byte) error + func (m *QueryDepositsResponse) XXX_DiscardUnknown() + func (m *QueryDepositsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryDepositsResponse) XXX_Merge(src proto.Message) + func (m *QueryDepositsResponse) XXX_Size() int + func (m *QueryDepositsResponse) XXX_Unmarshal(b []byte) error + type QueryParamsRequest struct + ParamsType string + func (*QueryParamsRequest) Descriptor() ([]byte, []int) + func (*QueryParamsRequest) ProtoMessage() + func (m *QueryParamsRequest) GetParamsType() string + func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) + func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryParamsRequest) Reset() + func (m *QueryParamsRequest) Size() (n int) + func (m *QueryParamsRequest) String() string + func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error + func (m *QueryParamsRequest) XXX_DiscardUnknown() + func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryParamsRequest) XXX_Merge(src proto.Message) + func (m *QueryParamsRequest) XXX_Size() int + func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error + type QueryParamsResp struct + DepositParams depositParams + TallyParams tallyParams + VotingParams votingParams + type QueryParamsResponse struct + DepositParams DepositParams + TallyParams TallyParams + VotingParams VotingParams + func (*QueryParamsResponse) Descriptor() ([]byte, []int) + func (*QueryParamsResponse) ProtoMessage() + func (m *QueryParamsResponse) GetDepositParams() DepositParams + func (m *QueryParamsResponse) GetTallyParams() TallyParams + func (m *QueryParamsResponse) GetVotingParams() VotingParams + func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) + func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryParamsResponse) Reset() + func (m *QueryParamsResponse) Size() (n int) + func (m *QueryParamsResponse) String() string + func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error + func (m *QueryParamsResponse) XXX_DiscardUnknown() + func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryParamsResponse) XXX_Merge(src proto.Message) + func (m *QueryParamsResponse) XXX_Size() int + func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error + func (q QueryParamsResponse) Convert() interface{} + type QueryProposalRequest struct + ProposalId uint64 + func (*QueryProposalRequest) Descriptor() ([]byte, []int) + func (*QueryProposalRequest) ProtoMessage() + func (m *QueryProposalRequest) GetProposalId() uint64 + func (m *QueryProposalRequest) Marshal() (dAtA []byte, err error) + func (m *QueryProposalRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryProposalRequest) Reset() + func (m *QueryProposalRequest) Size() (n int) + func (m *QueryProposalRequest) String() string + func (m *QueryProposalRequest) Unmarshal(dAtA []byte) error + func (m *QueryProposalRequest) XXX_DiscardUnknown() + func (m *QueryProposalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryProposalRequest) XXX_Merge(src proto.Message) + func (m *QueryProposalRequest) XXX_Size() int + func (m *QueryProposalRequest) XXX_Unmarshal(b []byte) error + type QueryProposalResp struct + Content Content + DepositEndTime time.Time + FinalTallyResult QueryTallyResultResp + ProposalId uint64 + Status string + SubmitTime time.Time + TotalDeposit sdk.Coins + VotingEndTime time.Time + VotingStartTime time.Time + type QueryProposalResponse struct + Proposal Proposal + func (*QueryProposalResponse) Descriptor() ([]byte, []int) + func (*QueryProposalResponse) ProtoMessage() + func (m *QueryProposalResponse) GetProposal() Proposal + func (m *QueryProposalResponse) Marshal() (dAtA []byte, err error) + func (m *QueryProposalResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryProposalResponse) Reset() + func (m *QueryProposalResponse) Size() (n int) + func (m *QueryProposalResponse) String() string + func (m *QueryProposalResponse) Unmarshal(dAtA []byte) error + func (m *QueryProposalResponse) XXX_DiscardUnknown() + func (m *QueryProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryProposalResponse) XXX_Merge(src proto.Message) + func (m *QueryProposalResponse) XXX_Size() int + func (m *QueryProposalResponse) XXX_Unmarshal(b []byte) error + type QueryProposalsRequest struct + Depositor string + Pagination *query.PageRequest + ProposalStatus ProposalStatus + Voter string + func (*QueryProposalsRequest) Descriptor() ([]byte, []int) + func (*QueryProposalsRequest) ProtoMessage() + func (m *QueryProposalsRequest) Marshal() (dAtA []byte, err error) + func (m *QueryProposalsRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryProposalsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryProposalsRequest) Reset() + func (m *QueryProposalsRequest) Size() (n int) + func (m *QueryProposalsRequest) String() string + func (m *QueryProposalsRequest) Unmarshal(dAtA []byte) error + func (m *QueryProposalsRequest) XXX_DiscardUnknown() + func (m *QueryProposalsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryProposalsRequest) XXX_Merge(src proto.Message) + func (m *QueryProposalsRequest) XXX_Size() int + func (m *QueryProposalsRequest) XXX_Unmarshal(b []byte) error + type QueryProposalsResponse struct + Pagination *query.PageResponse + Proposals []Proposal + func (*QueryProposalsResponse) Descriptor() ([]byte, []int) + func (*QueryProposalsResponse) ProtoMessage() + func (m *QueryProposalsResponse) GetPagination() *query.PageResponse + func (m *QueryProposalsResponse) GetProposals() []Proposal + func (m *QueryProposalsResponse) Marshal() (dAtA []byte, err error) + func (m *QueryProposalsResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryProposalsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryProposalsResponse) Reset() + func (m *QueryProposalsResponse) Size() (n int) + func (m *QueryProposalsResponse) String() string + func (m *QueryProposalsResponse) Unmarshal(dAtA []byte) error + func (m *QueryProposalsResponse) XXX_DiscardUnknown() + func (m *QueryProposalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryProposalsResponse) XXX_Merge(src proto.Message) + func (m *QueryProposalsResponse) XXX_Size() int + func (m *QueryProposalsResponse) XXX_Unmarshal(b []byte) error + type QueryServer interface + Deposit func(context.Context, *QueryDepositRequest) (*QueryDepositResponse, error) + Deposits func(context.Context, *QueryDepositsRequest) (*QueryDepositsResponse, error) + Params func(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + Proposal func(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error) + Proposals func(context.Context, *QueryProposalsRequest) (*QueryProposalsResponse, error) + TallyResult func(context.Context, *QueryTallyResultRequest) (*QueryTallyResultResponse, error) + Vote func(context.Context, *QueryVoteRequest) (*QueryVoteResponse, error) + Votes func(context.Context, *QueryVotesRequest) (*QueryVotesResponse, error) + type QueryTallyResultRequest struct + ProposalId uint64 + func (*QueryTallyResultRequest) Descriptor() ([]byte, []int) + func (*QueryTallyResultRequest) ProtoMessage() + func (m *QueryTallyResultRequest) GetProposalId() uint64 + func (m *QueryTallyResultRequest) Marshal() (dAtA []byte, err error) + func (m *QueryTallyResultRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryTallyResultRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryTallyResultRequest) Reset() + func (m *QueryTallyResultRequest) Size() (n int) + func (m *QueryTallyResultRequest) String() string + func (m *QueryTallyResultRequest) Unmarshal(dAtA []byte) error + func (m *QueryTallyResultRequest) XXX_DiscardUnknown() + func (m *QueryTallyResultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryTallyResultRequest) XXX_Merge(src proto.Message) + func (m *QueryTallyResultRequest) XXX_Size() int + func (m *QueryTallyResultRequest) XXX_Unmarshal(b []byte) error + type QueryTallyResultResp struct + Abstain sdk.Int + No sdk.Int + NoWithVeto sdk.Int + Yes sdk.Int + type QueryTallyResultResponse struct + Tally TallyResult + func (*QueryTallyResultResponse) Descriptor() ([]byte, []int) + func (*QueryTallyResultResponse) ProtoMessage() + func (m *QueryTallyResultResponse) GetTally() TallyResult + func (m *QueryTallyResultResponse) Marshal() (dAtA []byte, err error) + func (m *QueryTallyResultResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryTallyResultResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryTallyResultResponse) Reset() + func (m *QueryTallyResultResponse) Size() (n int) + func (m *QueryTallyResultResponse) String() string + func (m *QueryTallyResultResponse) Unmarshal(dAtA []byte) error + func (m *QueryTallyResultResponse) XXX_DiscardUnknown() + func (m *QueryTallyResultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryTallyResultResponse) XXX_Merge(src proto.Message) + func (m *QueryTallyResultResponse) XXX_Size() int + func (m *QueryTallyResultResponse) XXX_Unmarshal(b []byte) error + type QueryVoteRequest struct + ProposalId uint64 + Voter string + func (*QueryVoteRequest) Descriptor() ([]byte, []int) + func (*QueryVoteRequest) ProtoMessage() + func (m *QueryVoteRequest) Marshal() (dAtA []byte, err error) + func (m *QueryVoteRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryVoteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryVoteRequest) Reset() + func (m *QueryVoteRequest) Size() (n int) + func (m *QueryVoteRequest) String() string + func (m *QueryVoteRequest) Unmarshal(dAtA []byte) error + func (m *QueryVoteRequest) XXX_DiscardUnknown() + func (m *QueryVoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryVoteRequest) XXX_Merge(src proto.Message) + func (m *QueryVoteRequest) XXX_Size() int + func (m *QueryVoteRequest) XXX_Unmarshal(b []byte) error + type QueryVoteResp struct + Option int32 + ProposalId uint64 + Voter string + type QueryVoteResponse struct + Vote Vote + func (*QueryVoteResponse) Descriptor() ([]byte, []int) + func (*QueryVoteResponse) ProtoMessage() + func (m *QueryVoteResponse) GetVote() Vote + func (m *QueryVoteResponse) Marshal() (dAtA []byte, err error) + func (m *QueryVoteResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryVoteResponse) Reset() + func (m *QueryVoteResponse) Size() (n int) + func (m *QueryVoteResponse) String() string + func (m *QueryVoteResponse) Unmarshal(dAtA []byte) error + func (m *QueryVoteResponse) XXX_DiscardUnknown() + func (m *QueryVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryVoteResponse) XXX_Merge(src proto.Message) + func (m *QueryVoteResponse) XXX_Size() int + func (m *QueryVoteResponse) XXX_Unmarshal(b []byte) error + type QueryVotesRequest struct + Pagination *query.PageRequest + ProposalId uint64 + func (*QueryVotesRequest) Descriptor() ([]byte, []int) + func (*QueryVotesRequest) ProtoMessage() + func (m *QueryVotesRequest) GetPagination() *query.PageRequest + func (m *QueryVotesRequest) GetProposalId() uint64 + func (m *QueryVotesRequest) Marshal() (dAtA []byte, err error) + func (m *QueryVotesRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryVotesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryVotesRequest) Reset() + func (m *QueryVotesRequest) Size() (n int) + func (m *QueryVotesRequest) String() string + func (m *QueryVotesRequest) Unmarshal(dAtA []byte) error + func (m *QueryVotesRequest) XXX_DiscardUnknown() + func (m *QueryVotesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryVotesRequest) XXX_Merge(src proto.Message) + func (m *QueryVotesRequest) XXX_Size() int + func (m *QueryVotesRequest) XXX_Unmarshal(b []byte) error + type QueryVotesResponse struct + Pagination *query.PageResponse + Votes []Vote + func (*QueryVotesResponse) Descriptor() ([]byte, []int) + func (*QueryVotesResponse) ProtoMessage() + func (m *QueryVotesResponse) GetPagination() *query.PageResponse + func (m *QueryVotesResponse) GetVotes() []Vote + func (m *QueryVotesResponse) Marshal() (dAtA []byte, err error) + func (m *QueryVotesResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryVotesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryVotesResponse) Reset() + func (m *QueryVotesResponse) Size() (n int) + func (m *QueryVotesResponse) String() string + func (m *QueryVotesResponse) Unmarshal(dAtA []byte) error + func (m *QueryVotesResponse) XXX_DiscardUnknown() + func (m *QueryVotesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryVotesResponse) XXX_Merge(src proto.Message) + func (m *QueryVotesResponse) XXX_Size() int + func (m *QueryVotesResponse) XXX_Unmarshal(b []byte) error + type SubmitProposalRequest struct + Description string + InitialDeposit sdk.DecCoins + Title string + Type string + type TallyParams struct + Quorum plugchain_sdk_types.Dec + Threshold plugchain_sdk_types.Dec + VetoThreshold plugchain_sdk_types.Dec + func (*TallyParams) Descriptor() ([]byte, []int) + func (*TallyParams) ProtoMessage() + func (m *TallyParams) Marshal() (dAtA []byte, err error) + func (m *TallyParams) MarshalTo(dAtA []byte) (int, error) + func (m *TallyParams) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *TallyParams) Reset() + func (m *TallyParams) Size() (n int) + func (m *TallyParams) Unmarshal(dAtA []byte) error + func (m *TallyParams) XXX_DiscardUnknown() + func (m *TallyParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TallyParams) XXX_Merge(src proto.Message) + func (m *TallyParams) XXX_Size() int + func (m *TallyParams) XXX_Unmarshal(b []byte) error + func (tp TallyParams) String() string + type TallyResult struct + Abstain plugchain_sdk_types.Int + No plugchain_sdk_types.Int + NoWithVeto plugchain_sdk_types.Int + Yes plugchain_sdk_types.Int + func (*TallyResult) Descriptor() ([]byte, []int) + func (*TallyResult) ProtoMessage() + func (m *TallyResult) Marshal() (dAtA []byte, err error) + func (m *TallyResult) MarshalTo(dAtA []byte) (int, error) + func (m *TallyResult) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *TallyResult) Reset() + func (m *TallyResult) Size() (n int) + func (m *TallyResult) Unmarshal(dAtA []byte) error + func (m *TallyResult) XXX_DiscardUnknown() + func (m *TallyResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TallyResult) XXX_Merge(src proto.Message) + func (m *TallyResult) XXX_Size() int + func (m *TallyResult) XXX_Unmarshal(b []byte) error + func (t TallyResult) Convert() interface{} + func (this *TallyResult) Equal(that interface{}) bool + func (tr TallyResult) String() string + type TextProposal struct + Description string + Title string + func (*TextProposal) Descriptor() ([]byte, []int) + func (*TextProposal) ProtoMessage() + func (m *TextProposal) Marshal() (dAtA []byte, err error) + func (m *TextProposal) MarshalTo(dAtA []byte) (int, error) + func (m *TextProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *TextProposal) Reset() + func (m *TextProposal) Size() (n int) + func (m *TextProposal) Unmarshal(dAtA []byte) error + func (m *TextProposal) XXX_DiscardUnknown() + func (m *TextProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TextProposal) XXX_Merge(src proto.Message) + func (m *TextProposal) XXX_Size() int + func (m *TextProposal) XXX_Unmarshal(b []byte) error + func (this *TextProposal) Equal(that interface{}) bool + func (tp *TextProposal) GetDescription() string + func (tp *TextProposal) GetTitle() string + func (tp *TextProposal) ProposalRoute() string + func (tp *TextProposal) ProposalType() string + func (tp *TextProposal) ValidateBasic() error + func (tp TextProposal) String() string + type UnimplementedMsgServer struct + func (*UnimplementedMsgServer) Deposit(ctx context.Context, req *MsgDeposit) (*MsgDepositResponse, error) + func (*UnimplementedMsgServer) SubmitProposal(ctx context.Context, req *MsgSubmitProposal) (*MsgSubmitProposalResponse, error) + func (*UnimplementedMsgServer) Vote(ctx context.Context, req *MsgVote) (*MsgVoteResponse, error) + type UnimplementedQueryServer struct + func (*UnimplementedQueryServer) Deposit(ctx context.Context, req *QueryDepositRequest) (*QueryDepositResponse, error) + func (*UnimplementedQueryServer) Deposits(ctx context.Context, req *QueryDepositsRequest) (*QueryDepositsResponse, error) + func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) + func (*UnimplementedQueryServer) Proposal(ctx context.Context, req *QueryProposalRequest) (*QueryProposalResponse, error) + func (*UnimplementedQueryServer) Proposals(ctx context.Context, req *QueryProposalsRequest) (*QueryProposalsResponse, error) + func (*UnimplementedQueryServer) TallyResult(ctx context.Context, req *QueryTallyResultRequest) (*QueryTallyResultResponse, error) + func (*UnimplementedQueryServer) Vote(ctx context.Context, req *QueryVoteRequest) (*QueryVoteResponse, error) + func (*UnimplementedQueryServer) Votes(ctx context.Context, req *QueryVotesRequest) (*QueryVotesResponse, error) + type Vote struct + Option VoteOption + ProposalId uint64 + Voter string + func (*Vote) Descriptor() ([]byte, []int) + func (*Vote) ProtoMessage() + func (m *Vote) Marshal() (dAtA []byte, err error) + func (m *Vote) MarshalTo(dAtA []byte) (int, error) + func (m *Vote) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Vote) Reset() + func (m *Vote) Size() (n int) + func (m *Vote) Unmarshal(dAtA []byte) error + func (m *Vote) XXX_DiscardUnknown() + func (m *Vote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Vote) XXX_Merge(src proto.Message) + func (m *Vote) XXX_Size() int + func (m *Vote) XXX_Unmarshal(b []byte) error + func (v Vote) Convert() interface{} + func (v Vote) String() string + type VoteOption int32 + const OptionAbstain + const OptionEmpty + const OptionNo + const OptionNoWithVeto + const OptionYes + func (VoteOption) EnumDescriptor() ([]byte, []int) + func (x VoteOption) String() string + type VoteRequest struct + Option string + ProposalId uint64 + type Votes []Vote + func (vs Votes) Convert() interface{} + type VotingParams struct + VotingPeriod time.Duration + func (*VotingParams) Descriptor() ([]byte, []int) + func (*VotingParams) ProtoMessage() + func (m *VotingParams) Marshal() (dAtA []byte, err error) + func (m *VotingParams) MarshalTo(dAtA []byte) (int, error) + func (m *VotingParams) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *VotingParams) Reset() + func (m *VotingParams) Size() (n int) + func (m *VotingParams) Unmarshal(dAtA []byte) error + func (m *VotingParams) XXX_DiscardUnknown() + func (m *VotingParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *VotingParams) XXX_Merge(src proto.Message) + func (m *VotingParams) XXX_Size() int + func (m *VotingParams) XXX_Unmarshal(b []byte) error + func (vp VotingParams) String() string