Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func IsValidJwtToken(s string) error
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type BankKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetActivePubkeysChangeProposals() []PublicKeysChangeProposal
- func (m *GenesisState) GetFinishedPubkeysChangeProposals() []PublicKeysChangeFinishedProposal
- func (m *GenesisState) GetKeyVault() KeyVault
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetProposalStats() ProposalStats
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type KeyVault
- func (*KeyVault) Descriptor() ([]byte, []int)
- func (m *KeyVault) GetPublicKeys() []string
- func (m *KeyVault) Marshal() (dAtA []byte, err error)
- func (m *KeyVault) MarshalTo(dAtA []byte) (int, error)
- func (m *KeyVault) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*KeyVault) ProtoMessage()
- func (m *KeyVault) Reset()
- func (m *KeyVault) Size() (n int)
- func (m *KeyVault) String() string
- func (m *KeyVault) Unmarshal(dAtA []byte) error
- func (m *KeyVault) XXX_DiscardUnknown()
- func (m *KeyVault) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyVault) XXX_Merge(src proto.Message)
- func (m *KeyVault) XXX_Size() int
- func (m *KeyVault) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type MsgSubmitPubkeysChangeProposalRequest
- func (*MsgSubmitPubkeysChangeProposalRequest) Descriptor() ([]byte, []int)
- func (m *MsgSubmitPubkeysChangeProposalRequest) GetCreator() string
- func (msg *MsgSubmitPubkeysChangeProposalRequest) GetSignBytes() []byte
- func (msg *MsgSubmitPubkeysChangeProposalRequest) GetSigners() []sdk.AccAddress
- func (m *MsgSubmitPubkeysChangeProposalRequest) GetTicket() string
- func (m *MsgSubmitPubkeysChangeProposalRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgSubmitPubkeysChangeProposalRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSubmitPubkeysChangeProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSubmitPubkeysChangeProposalRequest) ProtoMessage()
- func (m *MsgSubmitPubkeysChangeProposalRequest) Reset()
- func (msg *MsgSubmitPubkeysChangeProposalRequest) Route() string
- func (m *MsgSubmitPubkeysChangeProposalRequest) Size() (n int)
- func (m *MsgSubmitPubkeysChangeProposalRequest) String() string
- func (msg *MsgSubmitPubkeysChangeProposalRequest) Type() string
- func (m *MsgSubmitPubkeysChangeProposalRequest) Unmarshal(dAtA []byte) error
- func (msg *MsgSubmitPubkeysChangeProposalRequest) ValidateBasic() error
- func (m *MsgSubmitPubkeysChangeProposalRequest) XXX_DiscardUnknown()
- func (m *MsgSubmitPubkeysChangeProposalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSubmitPubkeysChangeProposalRequest) XXX_Merge(src proto.Message)
- func (m *MsgSubmitPubkeysChangeProposalRequest) XXX_Size() int
- func (m *MsgSubmitPubkeysChangeProposalRequest) XXX_Unmarshal(b []byte) error
- type MsgSubmitPubkeysChangeProposalResponse
- func (*MsgSubmitPubkeysChangeProposalResponse) Descriptor() ([]byte, []int)
- func (m *MsgSubmitPubkeysChangeProposalResponse) GetSuccess() bool
- func (m *MsgSubmitPubkeysChangeProposalResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSubmitPubkeysChangeProposalResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSubmitPubkeysChangeProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSubmitPubkeysChangeProposalResponse) ProtoMessage()
- func (m *MsgSubmitPubkeysChangeProposalResponse) Reset()
- func (m *MsgSubmitPubkeysChangeProposalResponse) Size() (n int)
- func (m *MsgSubmitPubkeysChangeProposalResponse) String() string
- func (m *MsgSubmitPubkeysChangeProposalResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSubmitPubkeysChangeProposalResponse) XXX_DiscardUnknown()
- func (m *MsgSubmitPubkeysChangeProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSubmitPubkeysChangeProposalResponse) XXX_Merge(src proto.Message)
- func (m *MsgSubmitPubkeysChangeProposalResponse) XXX_Size() int
- func (m *MsgSubmitPubkeysChangeProposalResponse) XXX_Unmarshal(b []byte) error
- type MsgVotePubkeysChangeRequest
- func (*MsgVotePubkeysChangeRequest) Descriptor() ([]byte, []int)
- func (m *MsgVotePubkeysChangeRequest) GetCreator() string
- func (m *MsgVotePubkeysChangeRequest) GetPublicKey() string
- func (msg *MsgVotePubkeysChangeRequest) GetSignBytes() []byte
- func (msg *MsgVotePubkeysChangeRequest) GetSigners() []sdk.AccAddress
- func (m *MsgVotePubkeysChangeRequest) GetTicket() string
- func (m *MsgVotePubkeysChangeRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgVotePubkeysChangeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgVotePubkeysChangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgVotePubkeysChangeRequest) ProtoMessage()
- func (m *MsgVotePubkeysChangeRequest) Reset()
- func (msg *MsgVotePubkeysChangeRequest) Route() string
- func (m *MsgVotePubkeysChangeRequest) Size() (n int)
- func (m *MsgVotePubkeysChangeRequest) String() string
- func (msg *MsgVotePubkeysChangeRequest) Type() string
- func (m *MsgVotePubkeysChangeRequest) Unmarshal(dAtA []byte) error
- func (msg *MsgVotePubkeysChangeRequest) ValidateBasic() error
- func (m *MsgVotePubkeysChangeRequest) XXX_DiscardUnknown()
- func (m *MsgVotePubkeysChangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgVotePubkeysChangeRequest) XXX_Merge(src proto.Message)
- func (m *MsgVotePubkeysChangeRequest) XXX_Size() int
- func (m *MsgVotePubkeysChangeRequest) XXX_Unmarshal(b []byte) error
- type MsgVotePubkeysChangeResponse
- func (*MsgVotePubkeysChangeResponse) Descriptor() ([]byte, []int)
- func (m *MsgVotePubkeysChangeResponse) GetSuccess() bool
- func (m *MsgVotePubkeysChangeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgVotePubkeysChangeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgVotePubkeysChangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgVotePubkeysChangeResponse) ProtoMessage()
- func (m *MsgVotePubkeysChangeResponse) Reset()
- func (m *MsgVotePubkeysChangeResponse) Size() (n int)
- func (m *MsgVotePubkeysChangeResponse) String() string
- func (m *MsgVotePubkeysChangeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgVotePubkeysChangeResponse) XXX_DiscardUnknown()
- func (m *MsgVotePubkeysChangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgVotePubkeysChangeResponse) XXX_Merge(src proto.Message)
- func (m *MsgVotePubkeysChangeResponse) XXX_Size() int
- func (m *MsgVotePubkeysChangeResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type ProposalResult
- type ProposalStats
- func (*ProposalStats) Descriptor() ([]byte, []int)
- func (m *ProposalStats) GetPubkeysChangeCount() uint64
- func (m *ProposalStats) Marshal() (dAtA []byte, err error)
- func (m *ProposalStats) MarshalTo(dAtA []byte) (int, error)
- func (m *ProposalStats) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ProposalStats) ProtoMessage()
- func (m *ProposalStats) Reset()
- func (m *ProposalStats) Size() (n int)
- func (m *ProposalStats) String() string
- func (m *ProposalStats) Unmarshal(dAtA []byte) error
- func (m *ProposalStats) XXX_DiscardUnknown()
- func (m *ProposalStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProposalStats) XXX_Merge(src proto.Message)
- func (m *ProposalStats) XXX_Size() int
- func (m *ProposalStats) XXX_Unmarshal(b []byte) error
- type ProposalVote
- type ProposalVotePayload
- func (*ProposalVotePayload) Descriptor() ([]byte, []int)
- func (m *ProposalVotePayload) GetProposalId() uint64
- func (m *ProposalVotePayload) GetVote() ProposalVote
- func (m *ProposalVotePayload) Marshal() (dAtA []byte, err error)
- func (m *ProposalVotePayload) MarshalTo(dAtA []byte) (int, error)
- func (m *ProposalVotePayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ProposalVotePayload) ProtoMessage()
- func (m *ProposalVotePayload) Reset()
- func (m *ProposalVotePayload) Size() (n int)
- func (m *ProposalVotePayload) String() string
- func (m *ProposalVotePayload) Unmarshal(dAtA []byte) error
- func (m *ProposalVotePayload) XXX_DiscardUnknown()
- func (m *ProposalVotePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProposalVotePayload) XXX_Merge(src proto.Message)
- func (m *ProposalVotePayload) XXX_Size() int
- func (m *ProposalVotePayload) XXX_Unmarshal(b []byte) error
- type PubkeysChangeProposalPayload
- func (*PubkeysChangeProposalPayload) Descriptor() ([]byte, []int)
- func (m *PubkeysChangeProposalPayload) GetAdditions() []string
- func (m *PubkeysChangeProposalPayload) GetDeletions() []string
- func (m *PubkeysChangeProposalPayload) Marshal() (dAtA []byte, err error)
- func (m *PubkeysChangeProposalPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *PubkeysChangeProposalPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PubkeysChangeProposalPayload) ProtoMessage()
- func (m *PubkeysChangeProposalPayload) Reset()
- func (m *PubkeysChangeProposalPayload) Size() (n int)
- func (m *PubkeysChangeProposalPayload) String() string
- func (m *PubkeysChangeProposalPayload) Unmarshal(dAtA []byte) error
- func (payload *PubkeysChangeProposalPayload) Validate(keys []string) error
- func (m *PubkeysChangeProposalPayload) XXX_DiscardUnknown()
- func (m *PubkeysChangeProposalPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PubkeysChangeProposalPayload) XXX_Merge(src proto.Message)
- func (m *PubkeysChangeProposalPayload) XXX_Size() int
- func (m *PubkeysChangeProposalPayload) XXX_Unmarshal(b []byte) error
- type PublicKeysChangeFinishedProposal
- func (*PublicKeysChangeFinishedProposal) Descriptor() ([]byte, []int)
- func (m *PublicKeysChangeFinishedProposal) GetFinishTS() int64
- func (m *PublicKeysChangeFinishedProposal) GetProposal() PublicKeysChangeProposal
- func (m *PublicKeysChangeFinishedProposal) GetResult() ProposalResult
- func (m *PublicKeysChangeFinishedProposal) GetResultMeta() string
- func (m *PublicKeysChangeFinishedProposal) Marshal() (dAtA []byte, err error)
- func (m *PublicKeysChangeFinishedProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *PublicKeysChangeFinishedProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PublicKeysChangeFinishedProposal) ProtoMessage()
- func (m *PublicKeysChangeFinishedProposal) Reset()
- func (m *PublicKeysChangeFinishedProposal) Size() (n int)
- func (m *PublicKeysChangeFinishedProposal) String() string
- func (m *PublicKeysChangeFinishedProposal) Unmarshal(dAtA []byte) error
- func (m *PublicKeysChangeFinishedProposal) XXX_DiscardUnknown()
- func (m *PublicKeysChangeFinishedProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PublicKeysChangeFinishedProposal) XXX_Merge(src proto.Message)
- func (m *PublicKeysChangeFinishedProposal) XXX_Size() int
- func (m *PublicKeysChangeFinishedProposal) XXX_Unmarshal(b []byte) error
- type PublicKeysChangeProposal
- func (*PublicKeysChangeProposal) Descriptor() ([]byte, []int)
- func (m *PublicKeysChangeProposal) GetCreator() string
- func (m *PublicKeysChangeProposal) GetId() uint64
- func (m *PublicKeysChangeProposal) GetModifications() PubkeysChangeProposalPayload
- func (m *PublicKeysChangeProposal) GetStartTS() int64
- func (m *PublicKeysChangeProposal) GetVotes() []*Vote
- func (proposal *PublicKeysChangeProposal) IsExpired(blockTime int64) bool
- func (m *PublicKeysChangeProposal) Marshal() (dAtA []byte, err error)
- func (m *PublicKeysChangeProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *PublicKeysChangeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PublicKeysChangeProposal) ProtoMessage()
- func (m *PublicKeysChangeProposal) Reset()
- func (m *PublicKeysChangeProposal) Size() (n int)
- func (m *PublicKeysChangeProposal) String() string
- func (m *PublicKeysChangeProposal) Unmarshal(dAtA []byte) error
- func (m *PublicKeysChangeProposal) XXX_DiscardUnknown()
- func (m *PublicKeysChangeProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PublicKeysChangeProposal) XXX_Merge(src proto.Message)
- func (m *PublicKeysChangeProposal) XXX_Size() int
- func (m *PublicKeysChangeProposal) XXX_Unmarshal(b []byte) error
- type QueryActivePublicKeysChangeProposalRequest
- func (*QueryActivePublicKeysChangeProposalRequest) Descriptor() ([]byte, []int)
- func (m *QueryActivePublicKeysChangeProposalRequest) GetId() uint64
- func (m *QueryActivePublicKeysChangeProposalRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryActivePublicKeysChangeProposalRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryActivePublicKeysChangeProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryActivePublicKeysChangeProposalRequest) ProtoMessage()
- func (m *QueryActivePublicKeysChangeProposalRequest) Reset()
- func (m *QueryActivePublicKeysChangeProposalRequest) Size() (n int)
- func (m *QueryActivePublicKeysChangeProposalRequest) String() string
- func (m *QueryActivePublicKeysChangeProposalRequest) Unmarshal(dAtA []byte) error
- func (m *QueryActivePublicKeysChangeProposalRequest) XXX_DiscardUnknown()
- func (m *QueryActivePublicKeysChangeProposalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryActivePublicKeysChangeProposalRequest) XXX_Merge(src proto.Message)
- func (m *QueryActivePublicKeysChangeProposalRequest) XXX_Size() int
- func (m *QueryActivePublicKeysChangeProposalRequest) XXX_Unmarshal(b []byte) error
- type QueryActivePublicKeysChangeProposalResponse
- func (*QueryActivePublicKeysChangeProposalResponse) Descriptor() ([]byte, []int)
- func (m *QueryActivePublicKeysChangeProposalResponse) GetProposal() PublicKeysChangeProposal
- func (m *QueryActivePublicKeysChangeProposalResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryActivePublicKeysChangeProposalResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryActivePublicKeysChangeProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryActivePublicKeysChangeProposalResponse) ProtoMessage()
- func (m *QueryActivePublicKeysChangeProposalResponse) Reset()
- func (m *QueryActivePublicKeysChangeProposalResponse) Size() (n int)
- func (m *QueryActivePublicKeysChangeProposalResponse) String() string
- func (m *QueryActivePublicKeysChangeProposalResponse) Unmarshal(dAtA []byte) error
- func (m *QueryActivePublicKeysChangeProposalResponse) XXX_DiscardUnknown()
- func (m *QueryActivePublicKeysChangeProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryActivePublicKeysChangeProposalResponse) XXX_Merge(src proto.Message)
- func (m *QueryActivePublicKeysChangeProposalResponse) XXX_Size() int
- func (m *QueryActivePublicKeysChangeProposalResponse) XXX_Unmarshal(b []byte) error
- type QueryActivePublicKeysChangeProposalsRequest
- func (*QueryActivePublicKeysChangeProposalsRequest) Descriptor() ([]byte, []int)
- func (m *QueryActivePublicKeysChangeProposalsRequest) GetPagination() *query.PageRequest
- func (m *QueryActivePublicKeysChangeProposalsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryActivePublicKeysChangeProposalsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryActivePublicKeysChangeProposalsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryActivePublicKeysChangeProposalsRequest) ProtoMessage()
- func (m *QueryActivePublicKeysChangeProposalsRequest) Reset()
- func (m *QueryActivePublicKeysChangeProposalsRequest) Size() (n int)
- func (m *QueryActivePublicKeysChangeProposalsRequest) String() string
- func (m *QueryActivePublicKeysChangeProposalsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryActivePublicKeysChangeProposalsRequest) XXX_DiscardUnknown()
- func (m *QueryActivePublicKeysChangeProposalsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryActivePublicKeysChangeProposalsRequest) XXX_Merge(src proto.Message)
- func (m *QueryActivePublicKeysChangeProposalsRequest) XXX_Size() int
- func (m *QueryActivePublicKeysChangeProposalsRequest) XXX_Unmarshal(b []byte) error
- type QueryActivePublicKeysChangeProposalsResponse
- func (*QueryActivePublicKeysChangeProposalsResponse) Descriptor() ([]byte, []int)
- func (m *QueryActivePublicKeysChangeProposalsResponse) GetPagination() *query.PageResponse
- func (m *QueryActivePublicKeysChangeProposalsResponse) GetProposals() []PublicKeysChangeProposal
- func (m *QueryActivePublicKeysChangeProposalsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryActivePublicKeysChangeProposalsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryActivePublicKeysChangeProposalsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryActivePublicKeysChangeProposalsResponse) ProtoMessage()
- func (m *QueryActivePublicKeysChangeProposalsResponse) Reset()
- func (m *QueryActivePublicKeysChangeProposalsResponse) Size() (n int)
- func (m *QueryActivePublicKeysChangeProposalsResponse) String() string
- func (m *QueryActivePublicKeysChangeProposalsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryActivePublicKeysChangeProposalsResponse) XXX_DiscardUnknown()
- func (m *QueryActivePublicKeysChangeProposalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryActivePublicKeysChangeProposalsResponse) XXX_Merge(src proto.Message)
- func (m *QueryActivePublicKeysChangeProposalsResponse) XXX_Size() int
- func (m *QueryActivePublicKeysChangeProposalsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryFinishedPublicKeysChangeProposalRequest
- func (*QueryFinishedPublicKeysChangeProposalRequest) Descriptor() ([]byte, []int)
- func (m *QueryFinishedPublicKeysChangeProposalRequest) GetId() uint64
- func (m *QueryFinishedPublicKeysChangeProposalRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryFinishedPublicKeysChangeProposalRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFinishedPublicKeysChangeProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFinishedPublicKeysChangeProposalRequest) ProtoMessage()
- func (m *QueryFinishedPublicKeysChangeProposalRequest) Reset()
- func (m *QueryFinishedPublicKeysChangeProposalRequest) Size() (n int)
- func (m *QueryFinishedPublicKeysChangeProposalRequest) String() string
- func (m *QueryFinishedPublicKeysChangeProposalRequest) Unmarshal(dAtA []byte) error
- func (m *QueryFinishedPublicKeysChangeProposalRequest) XXX_DiscardUnknown()
- func (m *QueryFinishedPublicKeysChangeProposalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFinishedPublicKeysChangeProposalRequest) XXX_Merge(src proto.Message)
- func (m *QueryFinishedPublicKeysChangeProposalRequest) XXX_Size() int
- func (m *QueryFinishedPublicKeysChangeProposalRequest) XXX_Unmarshal(b []byte) error
- type QueryFinishedPublicKeysChangeProposalResponse
- func (*QueryFinishedPublicKeysChangeProposalResponse) Descriptor() ([]byte, []int)
- func (m *QueryFinishedPublicKeysChangeProposalResponse) GetProposal() PublicKeysChangeFinishedProposal
- func (m *QueryFinishedPublicKeysChangeProposalResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryFinishedPublicKeysChangeProposalResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFinishedPublicKeysChangeProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFinishedPublicKeysChangeProposalResponse) ProtoMessage()
- func (m *QueryFinishedPublicKeysChangeProposalResponse) Reset()
- func (m *QueryFinishedPublicKeysChangeProposalResponse) Size() (n int)
- func (m *QueryFinishedPublicKeysChangeProposalResponse) String() string
- func (m *QueryFinishedPublicKeysChangeProposalResponse) Unmarshal(dAtA []byte) error
- func (m *QueryFinishedPublicKeysChangeProposalResponse) XXX_DiscardUnknown()
- func (m *QueryFinishedPublicKeysChangeProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFinishedPublicKeysChangeProposalResponse) XXX_Merge(src proto.Message)
- func (m *QueryFinishedPublicKeysChangeProposalResponse) XXX_Size() int
- func (m *QueryFinishedPublicKeysChangeProposalResponse) XXX_Unmarshal(b []byte) error
- type QueryFinishedPublicKeysChangeProposalsRequest
- func (*QueryFinishedPublicKeysChangeProposalsRequest) Descriptor() ([]byte, []int)
- func (m *QueryFinishedPublicKeysChangeProposalsRequest) GetPagination() *query.PageRequest
- func (m *QueryFinishedPublicKeysChangeProposalsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryFinishedPublicKeysChangeProposalsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFinishedPublicKeysChangeProposalsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFinishedPublicKeysChangeProposalsRequest) ProtoMessage()
- func (m *QueryFinishedPublicKeysChangeProposalsRequest) Reset()
- func (m *QueryFinishedPublicKeysChangeProposalsRequest) Size() (n int)
- func (m *QueryFinishedPublicKeysChangeProposalsRequest) String() string
- func (m *QueryFinishedPublicKeysChangeProposalsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryFinishedPublicKeysChangeProposalsRequest) XXX_DiscardUnknown()
- func (m *QueryFinishedPublicKeysChangeProposalsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFinishedPublicKeysChangeProposalsRequest) XXX_Merge(src proto.Message)
- func (m *QueryFinishedPublicKeysChangeProposalsRequest) XXX_Size() int
- func (m *QueryFinishedPublicKeysChangeProposalsRequest) XXX_Unmarshal(b []byte) error
- type QueryFinishedPublicKeysChangeProposalsResponse
- func (*QueryFinishedPublicKeysChangeProposalsResponse) Descriptor() ([]byte, []int)
- func (m *QueryFinishedPublicKeysChangeProposalsResponse) GetPagination() *query.PageResponse
- func (m *QueryFinishedPublicKeysChangeProposalsResponse) GetProposals() []PublicKeysChangeFinishedProposal
- func (m *QueryFinishedPublicKeysChangeProposalsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryFinishedPublicKeysChangeProposalsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFinishedPublicKeysChangeProposalsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFinishedPublicKeysChangeProposalsResponse) ProtoMessage()
- func (m *QueryFinishedPublicKeysChangeProposalsResponse) Reset()
- func (m *QueryFinishedPublicKeysChangeProposalsResponse) Size() (n int)
- func (m *QueryFinishedPublicKeysChangeProposalsResponse) String() string
- func (m *QueryFinishedPublicKeysChangeProposalsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryFinishedPublicKeysChangeProposalsResponse) XXX_DiscardUnknown()
- func (m *QueryFinishedPublicKeysChangeProposalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFinishedPublicKeysChangeProposalsResponse) XXX_Merge(src proto.Message)
- func (m *QueryFinishedPublicKeysChangeProposalsResponse) XXX_Size() int
- func (m *QueryFinishedPublicKeysChangeProposalsResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- 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 (*QueryParamsRequest) ProtoMessage()
- 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 QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- 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 (*QueryParamsResponse) ProtoMessage()
- 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
- type QueryPubKeysRequest
- func (*QueryPubKeysRequest) Descriptor() ([]byte, []int)
- func (m *QueryPubKeysRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPubKeysRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPubKeysRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPubKeysRequest) ProtoMessage()
- func (m *QueryPubKeysRequest) Reset()
- func (m *QueryPubKeysRequest) Size() (n int)
- func (m *QueryPubKeysRequest) String() string
- func (m *QueryPubKeysRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPubKeysRequest) XXX_DiscardUnknown()
- func (m *QueryPubKeysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPubKeysRequest) XXX_Merge(src proto.Message)
- func (m *QueryPubKeysRequest) XXX_Size() int
- func (m *QueryPubKeysRequest) XXX_Unmarshal(b []byte) error
- type QueryPubKeysResponse
- func (*QueryPubKeysResponse) Descriptor() ([]byte, []int)
- func (m *QueryPubKeysResponse) GetList() []string
- func (m *QueryPubKeysResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPubKeysResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPubKeysResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPubKeysResponse) ProtoMessage()
- func (m *QueryPubKeysResponse) Reset()
- func (m *QueryPubKeysResponse) Size() (n int)
- func (m *QueryPubKeysResponse) String() string
- func (m *QueryPubKeysResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPubKeysResponse) XXX_DiscardUnknown()
- func (m *QueryPubKeysResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPubKeysResponse) XXX_Merge(src proto.Message)
- func (m *QueryPubKeysResponse) XXX_Size() int
- func (m *QueryPubKeysResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type Ticket
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) SubmitPubkeysChangeProposal(ctx context.Context, req *MsgSubmitPubkeysChangeProposalRequest) (*MsgSubmitPubkeysChangeProposalResponse, error)
- func (*UnimplementedMsgServer) VotePubkeysChange(ctx context.Context, req *MsgVotePubkeysChangeRequest) (*MsgVotePubkeysChangeResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) ActivePublicKeysChangeProposal(ctx context.Context, req *QueryActivePublicKeysChangeProposalRequest) (*QueryActivePublicKeysChangeProposalResponse, error)
- func (*UnimplementedQueryServer) ActivePublicKeysChangeProposals(ctx context.Context, req *QueryActivePublicKeysChangeProposalsRequest) (*QueryActivePublicKeysChangeProposalsResponse, error)
- func (*UnimplementedQueryServer) FinishedPublicKeysChangeProposal(ctx context.Context, req *QueryFinishedPublicKeysChangeProposalRequest) (*QueryFinishedPublicKeysChangeProposalResponse, error)
- func (*UnimplementedQueryServer) FinishedPublicKeysChangeProposals(ctx context.Context, req *QueryFinishedPublicKeysChangeProposalsRequest) (*QueryFinishedPublicKeysChangeProposalsResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) PubKeys(ctx context.Context, req *QueryPubKeysRequest) (*QueryPubKeysResponse, error)
- type Vote
- func (*Vote) Descriptor() ([]byte, []int)
- func (m *Vote) GetPublicKey() string
- func (m *Vote) GetVote() ProposalVote
- 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 (*Vote) ProtoMessage()
- func (m *Vote) Reset()
- func (m *Vote) Size() (n int)
- func (m *Vote) String() string
- 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
Constants ¶
const ( // JWTHeaderIndex is the index of the header in the JWT ticket JWTHeaderIndex = 0 // JWTPayloadIndex is the index of the payload in the JWT ticket JWTPayloadIndex = 1 // JWTSeparator is the separator character between JWT ticket parts JWTSeparator = "." // DefaultTimeWeight is the default weight of the time for JWT ticket expiration DefaultTimeWeight = 1 )
JWT constants
const ( // MinVoteCountForDecision is the minimum count of votes for a proposal // to be valid for making decision. MinVoteCountForDecision = 3 // MaxValidProposalMinutes is the maximum elapsed time in minutes since // the start time of a proposal to be acceptable. MaxValidProposalMinutes = 30 // MaxValidProposalSeconds is the maximum elapsed time in seconds since // the start time of a proposal to be acceptable. MaxValidProposalSeconds = MaxValidProposalMinutes * 60 // 30 minutes )
const ( // ModuleName defines the module name ModuleName = "dvm" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_dvm" )
module constants
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
const (
// ErrTextInvalidRequest is the error message for an invalid request
ErrTextInvalidRequest = "invalid signature"
)
Variables ¶
var ( // Amino is the legacy aminto codec Amino = codec.NewLegacyAmino() // ModuleCdc is the codec of the module ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( // ErrInvalidSignature in the case of signature do not match with any of the trusted public keys. ErrInvalidSignature = sdkerrors.Register(ModuleName, 4101, "invalid signature") // ErrInsufficientSignatures in the case of not enough signature. 2/3 of trusted public keys must sign the ticket. ErrInsufficientSignatures = sdkerrors.Register(ModuleName, 4102, "insufficient signatures for consensus") // ErrInvalidTicketFormat if the format of ticket is not correct. like XXX.YYY.ZZZ ErrInvalidTicketFormat = sdkerrors.Register(ModuleName, 4103, "invalid ticket format") // ErrExpirationRequired if the expiration field is not included in the signed ticket. ErrExpirationRequired = sdkerrors.Register(ModuleName, 4104, "ticket expiry must not be empty") // ErrTicketExpired if the ticket is expired. ErrTicketExpired = sdkerrors.Register(ModuleName, 4105, "ticket already expired") // ErrMismatchKeyType if the type of key which is going to be added is not a valid public key. ErrMismatchKeyType = sdkerrors.Register(ModuleName, 4106, "invalid public key") // ErrShortKeyLength if the length of public key is not long enough. ErrShortKeyLength = sdkerrors.Register(ModuleName, 4107, "insufficient key length") // ErrNoPublicKeysFound if public key is not found ErrNoPublicKeysFound = sdkerrors.Register(ModuleName, 4108, "key not found") )
x/dvm module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthKeyVault = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowKeyVault = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupKeyVault = fmt.Errorf("proto: unexpected end of group") )
var ( // PubKeysListKey is the key of the list of public keys in KV-Store which points to []string. PubKeysListKey = []byte{0x00} // ProposalStatsKey is the key for proposal statistics. ProposalStatsKey = []byte{0x01} // PubKeysChangeProposalListActivePrefix is the prefix of active pubkeys change proposal. PubKeysChangeProposalListActivePrefix = []byte{0x02} // FinishedPubKeysChangeProposalListPrefix is the prefix of pubkeys change proposal that is finished. FinishedPubKeysChangeProposalListPrefix = []byte{0x03} )
store prefixes and keys.
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthProposal = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProposal = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthStats = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowStats = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupStats = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTicket = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTicket = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTicket = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthVote = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowVote = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupVote = fmt.Errorf("proto: unexpected end of group") )
var ProposalResult_name = map[int32]string{
0: "PROPOSAL_RESULT_UNSPECIFIED",
1: "PROPOSAL_RESULT_APPROVED",
2: "PROPOSAL_RESULT_REJECTED",
3: "PROPOSAL_RESULT_EXPIRED",
}
var ProposalResult_value = map[string]int32{
"PROPOSAL_RESULT_UNSPECIFIED": 0,
"PROPOSAL_RESULT_APPROVED": 1,
"PROPOSAL_RESULT_REJECTED": 2,
"PROPOSAL_RESULT_EXPIRED": 3,
}
var ProposalVote_name = map[int32]string{
0: "PROPOSAL_VOTE_UNSPECIFIED",
1: "PROPOSAL_VOTE_NO",
2: "PROPOSAL_VOTE_YES",
}
var ProposalVote_value = map[string]int32{
"PROPOSAL_VOTE_UNSPECIFIED": 0,
"PROPOSAL_VOTE_NO": 1,
"PROPOSAL_VOTE_YES": 2,
}
Functions ¶
func IsValidJwtToken ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
RegisterCodec registers module codec to the app codec
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers the module interface types
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BankKeeper ¶
BankKeeper defines the expected interface needed to retrieve account balances.
type GenesisState ¶
type GenesisState struct { // params contains parameters of dvm module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // key_vault trusted keys from genesis file. KeyVault KeyVault `protobuf:"bytes,2,opt,name=key_vault,json=keyVault,proto3" json:"key_vault"` // active_pubkeys_change_proposals is the finished proposal list for the // public keys change. ActivePubkeysChangeProposals []PublicKeysChangeProposal `` /* 139-byte string literal not displayed */ // finished_pubkeys_change_proposals is the active proposal list for the // public keys change. FinishedPubkeysChangeProposals []PublicKeysChangeFinishedProposal `` /* 145-byte string literal not displayed */ // proposal_stats holds the proposal statistics. ProposalStats ProposalStats `protobuf:"bytes,5,opt,name=proposal_stats,json=proposalStats,proto3" json:"proposal_stats"` }
GenesisState defines the dvm module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetActivePubkeysChangeProposals ¶
func (m *GenesisState) GetActivePubkeysChangeProposals() []PublicKeysChangeProposal
func (*GenesisState) GetFinishedPubkeysChangeProposals ¶
func (m *GenesisState) GetFinishedPubkeysChangeProposals() []PublicKeysChangeFinishedProposal
func (*GenesisState) GetKeyVault ¶
func (m *GenesisState) GetKeyVault() KeyVault
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetProposalStats ¶
func (m *GenesisState) GetProposalStats() ProposalStats
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type KeyVault ¶
type KeyVault struct { // public_keys contains allowed public keys. PublicKeys []string `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` }
KeyVault is the information of important keys stored in dvm state.
func (*KeyVault) Descriptor ¶
func (*KeyVault) GetPublicKeys ¶
func (*KeyVault) MarshalToSizedBuffer ¶
func (*KeyVault) ProtoMessage ¶
func (*KeyVault) ProtoMessage()
func (*KeyVault) XXX_DiscardUnknown ¶
func (m *KeyVault) XXX_DiscardUnknown()
func (*KeyVault) XXX_Marshal ¶
func (*KeyVault) XXX_Unmarshal ¶
type MsgClient ¶
type MsgClient interface { // PubkeysChangeProposal defines a method to submit a proposal for changing // the allowed public keys. SubmitPubkeysChangeProposal(ctx context.Context, in *MsgSubmitPubkeysChangeProposalRequest, opts ...grpc.CallOption) (*MsgSubmitPubkeysChangeProposalResponse, error) // VotePubkeysChange defines a method to vote for a proposal for changing the // allowed public keys. VotePubkeysChange(ctx context.Context, in *MsgVotePubkeysChangeRequest, opts ...grpc.CallOption) (*MsgVotePubkeysChangeResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgServer ¶
type MsgServer interface { // PubkeysChangeProposal defines a method to submit a proposal for changing // the allowed public keys. SubmitPubkeysChangeProposal(context.Context, *MsgSubmitPubkeysChangeProposalRequest) (*MsgSubmitPubkeysChangeProposalResponse, error) // VotePubkeysChange defines a method to vote for a proposal for changing the // allowed public keys. VotePubkeysChange(context.Context, *MsgVotePubkeysChangeRequest) (*MsgVotePubkeysChangeResponse, error) }
MsgServer is the server API for Msg service.
type MsgSubmitPubkeysChangeProposalRequest ¶
type MsgSubmitPubkeysChangeProposalRequest struct { // creator is the account address of the creator. Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // ticket is the jwt ticket data. Ticket string `protobuf:"bytes,2,opt,name=ticket,proto3" json:"ticket,omitempty"` }
MsgPubkeysChangeProposalRequest is the type of request for modification of public keys.
func NewMsgPubkeysChangeProposalRequest ¶
func NewMsgPubkeysChangeProposalRequest(creator string, txs string) *MsgSubmitPubkeysChangeProposalRequest
MsgSubmitPubkeysChangeProposalRequest returns a MsgSubmitPubkeysChangeProposalRequest using given data
func (*MsgSubmitPubkeysChangeProposalRequest) Descriptor ¶
func (*MsgSubmitPubkeysChangeProposalRequest) Descriptor() ([]byte, []int)
func (*MsgSubmitPubkeysChangeProposalRequest) GetCreator ¶
func (m *MsgSubmitPubkeysChangeProposalRequest) GetCreator() string
func (*MsgSubmitPubkeysChangeProposalRequest) GetSignBytes ¶
func (msg *MsgSubmitPubkeysChangeProposalRequest) GetSignBytes() []byte
GetSignBytes returns sortJson form of its message
func (*MsgSubmitPubkeysChangeProposalRequest) GetSigners ¶
func (msg *MsgSubmitPubkeysChangeProposalRequest) GetSigners() []sdk.AccAddress
GetSigners returns the signers of its message
func (*MsgSubmitPubkeysChangeProposalRequest) GetTicket ¶
func (m *MsgSubmitPubkeysChangeProposalRequest) GetTicket() string
func (*MsgSubmitPubkeysChangeProposalRequest) Marshal ¶
func (m *MsgSubmitPubkeysChangeProposalRequest) Marshal() (dAtA []byte, err error)
func (*MsgSubmitPubkeysChangeProposalRequest) MarshalTo ¶
func (m *MsgSubmitPubkeysChangeProposalRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgSubmitPubkeysChangeProposalRequest) MarshalToSizedBuffer ¶
func (m *MsgSubmitPubkeysChangeProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSubmitPubkeysChangeProposalRequest) ProtoMessage ¶
func (*MsgSubmitPubkeysChangeProposalRequest) ProtoMessage()
func (*MsgSubmitPubkeysChangeProposalRequest) Reset ¶
func (m *MsgSubmitPubkeysChangeProposalRequest) Reset()
func (*MsgSubmitPubkeysChangeProposalRequest) Route ¶
func (msg *MsgSubmitPubkeysChangeProposalRequest) Route() string
Route returns the module's message router key.
func (*MsgSubmitPubkeysChangeProposalRequest) Size ¶
func (m *MsgSubmitPubkeysChangeProposalRequest) Size() (n int)
func (*MsgSubmitPubkeysChangeProposalRequest) String ¶
func (m *MsgSubmitPubkeysChangeProposalRequest) String() string
func (*MsgSubmitPubkeysChangeProposalRequest) Type ¶
func (msg *MsgSubmitPubkeysChangeProposalRequest) Type() string
Type returns type of its message
func (*MsgSubmitPubkeysChangeProposalRequest) Unmarshal ¶
func (m *MsgSubmitPubkeysChangeProposalRequest) Unmarshal(dAtA []byte) error
func (*MsgSubmitPubkeysChangeProposalRequest) ValidateBasic ¶
func (msg *MsgSubmitPubkeysChangeProposalRequest) ValidateBasic() error
ValidateBasic performs basic validations on its message
func (*MsgSubmitPubkeysChangeProposalRequest) XXX_DiscardUnknown ¶
func (m *MsgSubmitPubkeysChangeProposalRequest) XXX_DiscardUnknown()
func (*MsgSubmitPubkeysChangeProposalRequest) XXX_Marshal ¶
func (m *MsgSubmitPubkeysChangeProposalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSubmitPubkeysChangeProposalRequest) XXX_Merge ¶
func (m *MsgSubmitPubkeysChangeProposalRequest) XXX_Merge(src proto.Message)
func (*MsgSubmitPubkeysChangeProposalRequest) XXX_Size ¶
func (m *MsgSubmitPubkeysChangeProposalRequest) XXX_Size() int
func (*MsgSubmitPubkeysChangeProposalRequest) XXX_Unmarshal ¶
func (m *MsgSubmitPubkeysChangeProposalRequest) XXX_Unmarshal(b []byte) error
type MsgSubmitPubkeysChangeProposalResponse ¶
type MsgSubmitPubkeysChangeProposalResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
}
MsgPubkeysChangeProposalResponse is the type of response for modification of public keys.
func (*MsgSubmitPubkeysChangeProposalResponse) Descriptor ¶
func (*MsgSubmitPubkeysChangeProposalResponse) Descriptor() ([]byte, []int)
func (*MsgSubmitPubkeysChangeProposalResponse) GetSuccess ¶
func (m *MsgSubmitPubkeysChangeProposalResponse) GetSuccess() bool
func (*MsgSubmitPubkeysChangeProposalResponse) Marshal ¶
func (m *MsgSubmitPubkeysChangeProposalResponse) Marshal() (dAtA []byte, err error)
func (*MsgSubmitPubkeysChangeProposalResponse) MarshalTo ¶
func (m *MsgSubmitPubkeysChangeProposalResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSubmitPubkeysChangeProposalResponse) MarshalToSizedBuffer ¶
func (m *MsgSubmitPubkeysChangeProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSubmitPubkeysChangeProposalResponse) ProtoMessage ¶
func (*MsgSubmitPubkeysChangeProposalResponse) ProtoMessage()
func (*MsgSubmitPubkeysChangeProposalResponse) Reset ¶
func (m *MsgSubmitPubkeysChangeProposalResponse) Reset()
func (*MsgSubmitPubkeysChangeProposalResponse) Size ¶
func (m *MsgSubmitPubkeysChangeProposalResponse) Size() (n int)
func (*MsgSubmitPubkeysChangeProposalResponse) String ¶
func (m *MsgSubmitPubkeysChangeProposalResponse) String() string
func (*MsgSubmitPubkeysChangeProposalResponse) Unmarshal ¶
func (m *MsgSubmitPubkeysChangeProposalResponse) Unmarshal(dAtA []byte) error
func (*MsgSubmitPubkeysChangeProposalResponse) XXX_DiscardUnknown ¶
func (m *MsgSubmitPubkeysChangeProposalResponse) XXX_DiscardUnknown()
func (*MsgSubmitPubkeysChangeProposalResponse) XXX_Marshal ¶
func (m *MsgSubmitPubkeysChangeProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSubmitPubkeysChangeProposalResponse) XXX_Merge ¶
func (m *MsgSubmitPubkeysChangeProposalResponse) XXX_Merge(src proto.Message)
func (*MsgSubmitPubkeysChangeProposalResponse) XXX_Size ¶
func (m *MsgSubmitPubkeysChangeProposalResponse) XXX_Size() int
func (*MsgSubmitPubkeysChangeProposalResponse) XXX_Unmarshal ¶
func (m *MsgSubmitPubkeysChangeProposalResponse) XXX_Unmarshal(b []byte) error
type MsgVotePubkeysChangeRequest ¶
type MsgVotePubkeysChangeRequest struct { // creator is the account address of the creator. Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // ticket is the jwt ticket data. Ticket string `protobuf:"bytes,2,opt,name=ticket,proto3" json:"ticket,omitempty"` // public_key is the public key of the voter. PublicKey string `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` }
MsgVotePubkeysChangeRequest is the type of request to vote on the modification of public keys proposal.
func NewMsgVotePubkeysChangeRequest ¶
func NewMsgVotePubkeysChangeRequest(creator, ticket, pubkey string) *MsgVotePubkeysChangeRequest
MsgSubmitPubkeysChangeProposalRequest returns a MsgSubmitPubkeysChangeProposalRequest using given data
func (*MsgVotePubkeysChangeRequest) Descriptor ¶
func (*MsgVotePubkeysChangeRequest) Descriptor() ([]byte, []int)
func (*MsgVotePubkeysChangeRequest) GetCreator ¶
func (m *MsgVotePubkeysChangeRequest) GetCreator() string
func (*MsgVotePubkeysChangeRequest) GetPublicKey ¶
func (m *MsgVotePubkeysChangeRequest) GetPublicKey() string
func (*MsgVotePubkeysChangeRequest) GetSignBytes ¶
func (msg *MsgVotePubkeysChangeRequest) GetSignBytes() []byte
GetSignBytes returns sortJson form of its message
func (*MsgVotePubkeysChangeRequest) GetSigners ¶
func (msg *MsgVotePubkeysChangeRequest) GetSigners() []sdk.AccAddress
GetSigners returns the signers of its message
func (*MsgVotePubkeysChangeRequest) GetTicket ¶
func (m *MsgVotePubkeysChangeRequest) GetTicket() string
func (*MsgVotePubkeysChangeRequest) Marshal ¶
func (m *MsgVotePubkeysChangeRequest) Marshal() (dAtA []byte, err error)
func (*MsgVotePubkeysChangeRequest) MarshalTo ¶
func (m *MsgVotePubkeysChangeRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgVotePubkeysChangeRequest) MarshalToSizedBuffer ¶
func (m *MsgVotePubkeysChangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgVotePubkeysChangeRequest) ProtoMessage ¶
func (*MsgVotePubkeysChangeRequest) ProtoMessage()
func (*MsgVotePubkeysChangeRequest) Reset ¶
func (m *MsgVotePubkeysChangeRequest) Reset()
func (*MsgVotePubkeysChangeRequest) Route ¶
func (msg *MsgVotePubkeysChangeRequest) Route() string
Route returns the module's message router key.
func (*MsgVotePubkeysChangeRequest) Size ¶
func (m *MsgVotePubkeysChangeRequest) Size() (n int)
func (*MsgVotePubkeysChangeRequest) String ¶
func (m *MsgVotePubkeysChangeRequest) String() string
func (*MsgVotePubkeysChangeRequest) Type ¶
func (msg *MsgVotePubkeysChangeRequest) Type() string
Type returns type of its message
func (*MsgVotePubkeysChangeRequest) Unmarshal ¶
func (m *MsgVotePubkeysChangeRequest) Unmarshal(dAtA []byte) error
func (*MsgVotePubkeysChangeRequest) ValidateBasic ¶
func (msg *MsgVotePubkeysChangeRequest) ValidateBasic() error
ValidateBasic performs basic validations on its message
func (*MsgVotePubkeysChangeRequest) XXX_DiscardUnknown ¶
func (m *MsgVotePubkeysChangeRequest) XXX_DiscardUnknown()
func (*MsgVotePubkeysChangeRequest) XXX_Marshal ¶
func (m *MsgVotePubkeysChangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgVotePubkeysChangeRequest) XXX_Merge ¶
func (m *MsgVotePubkeysChangeRequest) XXX_Merge(src proto.Message)
func (*MsgVotePubkeysChangeRequest) XXX_Size ¶
func (m *MsgVotePubkeysChangeRequest) XXX_Size() int
func (*MsgVotePubkeysChangeRequest) XXX_Unmarshal ¶
func (m *MsgVotePubkeysChangeRequest) XXX_Unmarshal(b []byte) error
type MsgVotePubkeysChangeResponse ¶
type MsgVotePubkeysChangeResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
}
MsgVotePubkeysChangeResponse is the type of response vote for public keys modification.
func (*MsgVotePubkeysChangeResponse) Descriptor ¶
func (*MsgVotePubkeysChangeResponse) Descriptor() ([]byte, []int)
func (*MsgVotePubkeysChangeResponse) GetSuccess ¶
func (m *MsgVotePubkeysChangeResponse) GetSuccess() bool
func (*MsgVotePubkeysChangeResponse) Marshal ¶
func (m *MsgVotePubkeysChangeResponse) Marshal() (dAtA []byte, err error)
func (*MsgVotePubkeysChangeResponse) MarshalTo ¶
func (m *MsgVotePubkeysChangeResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgVotePubkeysChangeResponse) MarshalToSizedBuffer ¶
func (m *MsgVotePubkeysChangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgVotePubkeysChangeResponse) ProtoMessage ¶
func (*MsgVotePubkeysChangeResponse) ProtoMessage()
func (*MsgVotePubkeysChangeResponse) Reset ¶
func (m *MsgVotePubkeysChangeResponse) Reset()
func (*MsgVotePubkeysChangeResponse) Size ¶
func (m *MsgVotePubkeysChangeResponse) Size() (n int)
func (*MsgVotePubkeysChangeResponse) String ¶
func (m *MsgVotePubkeysChangeResponse) String() string
func (*MsgVotePubkeysChangeResponse) Unmarshal ¶
func (m *MsgVotePubkeysChangeResponse) Unmarshal(dAtA []byte) error
func (*MsgVotePubkeysChangeResponse) XXX_DiscardUnknown ¶
func (m *MsgVotePubkeysChangeResponse) XXX_DiscardUnknown()
func (*MsgVotePubkeysChangeResponse) XXX_Marshal ¶
func (m *MsgVotePubkeysChangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgVotePubkeysChangeResponse) XXX_Merge ¶
func (m *MsgVotePubkeysChangeResponse) XXX_Merge(src proto.Message)
func (*MsgVotePubkeysChangeResponse) XXX_Size ¶
func (m *MsgVotePubkeysChangeResponse) XXX_Size() int
func (*MsgVotePubkeysChangeResponse) XXX_Unmarshal ¶
func (m *MsgVotePubkeysChangeResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type ProposalResult ¶
type ProposalResult int32
ProposalResult is the enum type for the proposal result.
const ( // unchosen value ProposalResult_PROPOSAL_RESULT_UNSPECIFIED ProposalResult = 0 // approved ProposalResult_PROPOSAL_RESULT_APPROVED ProposalResult = 1 // rejected ProposalResult_PROPOSAL_RESULT_REJECTED ProposalResult = 2 // expired ProposalResult_PROPOSAL_RESULT_EXPIRED ProposalResult = 3 )
func (ProposalResult) EnumDescriptor ¶
func (ProposalResult) EnumDescriptor() ([]byte, []int)
func (ProposalResult) String ¶
func (x ProposalResult) String() string
type ProposalStats ¶
type ProposalStats struct { // pubkeys_change_count is the pubkeys change proposals count. PubkeysChangeCount uint64 `protobuf:"varint,1,opt,name=pubkeys_change_count,json=pubkeysChangeCount,proto3" json:"pubkeys_change_count,omitempty"` }
ProposalStats is the type for the proposal statistics.
func (*ProposalStats) Descriptor ¶
func (*ProposalStats) Descriptor() ([]byte, []int)
func (*ProposalStats) GetPubkeysChangeCount ¶
func (m *ProposalStats) GetPubkeysChangeCount() uint64
func (*ProposalStats) Marshal ¶
func (m *ProposalStats) Marshal() (dAtA []byte, err error)
func (*ProposalStats) MarshalToSizedBuffer ¶
func (m *ProposalStats) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ProposalStats) ProtoMessage ¶
func (*ProposalStats) ProtoMessage()
func (*ProposalStats) Reset ¶
func (m *ProposalStats) Reset()
func (*ProposalStats) Size ¶
func (m *ProposalStats) Size() (n int)
func (*ProposalStats) String ¶
func (m *ProposalStats) String() string
func (*ProposalStats) Unmarshal ¶
func (m *ProposalStats) Unmarshal(dAtA []byte) error
func (*ProposalStats) XXX_DiscardUnknown ¶
func (m *ProposalStats) XXX_DiscardUnknown()
func (*ProposalStats) XXX_Marshal ¶
func (m *ProposalStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProposalStats) XXX_Merge ¶
func (m *ProposalStats) XXX_Merge(src proto.Message)
func (*ProposalStats) XXX_Size ¶
func (m *ProposalStats) XXX_Size() int
func (*ProposalStats) XXX_Unmarshal ¶
func (m *ProposalStats) XXX_Unmarshal(b []byte) error
type ProposalVote ¶
type ProposalVote int32
ProposalVote is the enum type for the proposal vote.
const ( // unchosen value ProposalVote_PROPOSAL_VOTE_UNSPECIFIED ProposalVote = 0 // no ProposalVote_PROPOSAL_VOTE_NO ProposalVote = 1 // yes ProposalVote_PROPOSAL_VOTE_YES ProposalVote = 2 )
func (ProposalVote) EnumDescriptor ¶
func (ProposalVote) EnumDescriptor() ([]byte, []int)
func (ProposalVote) String ¶
func (x ProposalVote) String() string
type ProposalVotePayload ¶
type ProposalVotePayload struct { // proposal_id is the id of the proposal. ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` // vote is the chosen option for the vote. Vote ProposalVote `protobuf:"varint,2,opt,name=vote,proto3,enum=furyanetwork.furya.dvm.ProposalVote" json:"vote,omitempty"` }
ProposalVotePayload indicates vote data ticket.
func (*ProposalVotePayload) Descriptor ¶
func (*ProposalVotePayload) Descriptor() ([]byte, []int)
func (*ProposalVotePayload) GetProposalId ¶
func (m *ProposalVotePayload) GetProposalId() uint64
func (*ProposalVotePayload) GetVote ¶
func (m *ProposalVotePayload) GetVote() ProposalVote
func (*ProposalVotePayload) Marshal ¶
func (m *ProposalVotePayload) Marshal() (dAtA []byte, err error)
func (*ProposalVotePayload) MarshalTo ¶
func (m *ProposalVotePayload) MarshalTo(dAtA []byte) (int, error)
func (*ProposalVotePayload) MarshalToSizedBuffer ¶
func (m *ProposalVotePayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ProposalVotePayload) ProtoMessage ¶
func (*ProposalVotePayload) ProtoMessage()
func (*ProposalVotePayload) Reset ¶
func (m *ProposalVotePayload) Reset()
func (*ProposalVotePayload) Size ¶
func (m *ProposalVotePayload) Size() (n int)
func (*ProposalVotePayload) String ¶
func (m *ProposalVotePayload) String() string
func (*ProposalVotePayload) Unmarshal ¶
func (m *ProposalVotePayload) Unmarshal(dAtA []byte) error
func (*ProposalVotePayload) XXX_DiscardUnknown ¶
func (m *ProposalVotePayload) XXX_DiscardUnknown()
func (*ProposalVotePayload) XXX_Marshal ¶
func (m *ProposalVotePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProposalVotePayload) XXX_Merge ¶
func (m *ProposalVotePayload) XXX_Merge(src proto.Message)
func (*ProposalVotePayload) XXX_Size ¶
func (m *ProposalVotePayload) XXX_Size() int
func (*ProposalVotePayload) XXX_Unmarshal ¶
func (m *ProposalVotePayload) XXX_Unmarshal(b []byte) error
type PubkeysChangeProposalPayload ¶
type PubkeysChangeProposalPayload struct { // additions contain new pub keys to be added to public keys. Additions []string `protobuf:"bytes,1,rep,name=additions,proto3" json:"additions,omitempty"` // deletions contain old pub keys to be removed from public keys. Deletions []string `protobuf:"bytes,2,rep,name=deletions,proto3" json:"deletions,omitempty"` }
PubkeysChangeProposalPayload indicates data of public keys changes proposal ticket.
func (*PubkeysChangeProposalPayload) Descriptor ¶
func (*PubkeysChangeProposalPayload) Descriptor() ([]byte, []int)
func (*PubkeysChangeProposalPayload) GetAdditions ¶
func (m *PubkeysChangeProposalPayload) GetAdditions() []string
func (*PubkeysChangeProposalPayload) GetDeletions ¶
func (m *PubkeysChangeProposalPayload) GetDeletions() []string
func (*PubkeysChangeProposalPayload) Marshal ¶
func (m *PubkeysChangeProposalPayload) Marshal() (dAtA []byte, err error)
func (*PubkeysChangeProposalPayload) MarshalTo ¶
func (m *PubkeysChangeProposalPayload) MarshalTo(dAtA []byte) (int, error)
func (*PubkeysChangeProposalPayload) MarshalToSizedBuffer ¶
func (m *PubkeysChangeProposalPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PubkeysChangeProposalPayload) ProtoMessage ¶
func (*PubkeysChangeProposalPayload) ProtoMessage()
func (*PubkeysChangeProposalPayload) Reset ¶
func (m *PubkeysChangeProposalPayload) Reset()
func (*PubkeysChangeProposalPayload) Size ¶
func (m *PubkeysChangeProposalPayload) Size() (n int)
func (*PubkeysChangeProposalPayload) String ¶
func (m *PubkeysChangeProposalPayload) String() string
func (*PubkeysChangeProposalPayload) Unmarshal ¶
func (m *PubkeysChangeProposalPayload) Unmarshal(dAtA []byte) error
func (*PubkeysChangeProposalPayload) Validate ¶
func (payload *PubkeysChangeProposalPayload) Validate(keys []string) error
func (*PubkeysChangeProposalPayload) XXX_DiscardUnknown ¶
func (m *PubkeysChangeProposalPayload) XXX_DiscardUnknown()
func (*PubkeysChangeProposalPayload) XXX_Marshal ¶
func (m *PubkeysChangeProposalPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PubkeysChangeProposalPayload) XXX_Merge ¶
func (m *PubkeysChangeProposalPayload) XXX_Merge(src proto.Message)
func (*PubkeysChangeProposalPayload) XXX_Size ¶
func (m *PubkeysChangeProposalPayload) XXX_Size() int
func (*PubkeysChangeProposalPayload) XXX_Unmarshal ¶
func (m *PubkeysChangeProposalPayload) XXX_Unmarshal(b []byte) error
type PublicKeysChangeFinishedProposal ¶
type PublicKeysChangeFinishedProposal struct { // proposal is the proposal for additions and removals of pub keys. Proposal PublicKeysChangeProposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal"` // result is the result of the finished proposal. Result ProposalResult `protobuf:"varint,2,opt,name=result,proto3,enum=furyanetwork.furya.dvm.ProposalResult" json:"result,omitempty"` // result_meta is the metadata related to the result of the finished proposal. ResultMeta string `protobuf:"bytes,3,opt,name=result_meta,json=resultMeta,proto3" json:"result_meta,omitempty"` // finish_ts is the block time that the proposal is set as finished. FinishTS int64 `protobuf:"varint,4,opt,name=finish_ts,proto3" json:"finish_ts"` }
PublicKeysChangeFinishedProposal is the type used for the finished proposal for additions and removals of pub keys.
func NewFinishedPublicKeysChangeProposal ¶
func NewFinishedPublicKeysChangeProposal( proposal PublicKeysChangeProposal, result ProposalResult, resultMetadata string, finishTS int64, ) PublicKeysChangeFinishedProposal
func (*PublicKeysChangeFinishedProposal) Descriptor ¶
func (*PublicKeysChangeFinishedProposal) Descriptor() ([]byte, []int)
func (*PublicKeysChangeFinishedProposal) GetFinishTS ¶
func (m *PublicKeysChangeFinishedProposal) GetFinishTS() int64
func (*PublicKeysChangeFinishedProposal) GetProposal ¶
func (m *PublicKeysChangeFinishedProposal) GetProposal() PublicKeysChangeProposal
func (*PublicKeysChangeFinishedProposal) GetResult ¶
func (m *PublicKeysChangeFinishedProposal) GetResult() ProposalResult
func (*PublicKeysChangeFinishedProposal) GetResultMeta ¶
func (m *PublicKeysChangeFinishedProposal) GetResultMeta() string
func (*PublicKeysChangeFinishedProposal) Marshal ¶
func (m *PublicKeysChangeFinishedProposal) Marshal() (dAtA []byte, err error)
func (*PublicKeysChangeFinishedProposal) MarshalTo ¶
func (m *PublicKeysChangeFinishedProposal) MarshalTo(dAtA []byte) (int, error)
func (*PublicKeysChangeFinishedProposal) MarshalToSizedBuffer ¶
func (m *PublicKeysChangeFinishedProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PublicKeysChangeFinishedProposal) ProtoMessage ¶
func (*PublicKeysChangeFinishedProposal) ProtoMessage()
func (*PublicKeysChangeFinishedProposal) Reset ¶
func (m *PublicKeysChangeFinishedProposal) Reset()
func (*PublicKeysChangeFinishedProposal) Size ¶
func (m *PublicKeysChangeFinishedProposal) Size() (n int)
func (*PublicKeysChangeFinishedProposal) String ¶
func (m *PublicKeysChangeFinishedProposal) String() string
func (*PublicKeysChangeFinishedProposal) Unmarshal ¶
func (m *PublicKeysChangeFinishedProposal) Unmarshal(dAtA []byte) error
func (*PublicKeysChangeFinishedProposal) XXX_DiscardUnknown ¶
func (m *PublicKeysChangeFinishedProposal) XXX_DiscardUnknown()
func (*PublicKeysChangeFinishedProposal) XXX_Marshal ¶
func (m *PublicKeysChangeFinishedProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PublicKeysChangeFinishedProposal) XXX_Merge ¶
func (m *PublicKeysChangeFinishedProposal) XXX_Merge(src proto.Message)
func (*PublicKeysChangeFinishedProposal) XXX_Size ¶
func (m *PublicKeysChangeFinishedProposal) XXX_Size() int
func (*PublicKeysChangeFinishedProposal) XXX_Unmarshal ¶
func (m *PublicKeysChangeFinishedProposal) XXX_Unmarshal(b []byte) error
type PublicKeysChangeProposal ¶
type PublicKeysChangeProposal struct { // id is the sequential id of the proposal generated by the blockchain. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // creator is the account address of the proposal creator. Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` // modifications contain the ticket payload of the proposal. Modifications PubkeysChangeProposalPayload `protobuf:"bytes,3,opt,name=modifications,proto3" json:"modifications"` // votes contains the votes of the proposal. Votes []*Vote `protobuf:"bytes,4,rep,name=votes,proto3" json:"votes,omitempty"` // start_ts is the block time that the proposal is set. StartTS int64 `protobuf:"varint,5,opt,name=start_ts,proto3" json:"start_ts"` }
PublicKeysChangeProposal is the type for the proposal for additions and removals of pub keys.
func NewPublicKeysChangeProposal ¶
func NewPublicKeysChangeProposal( id uint64, creator string, modifications PubkeysChangeProposalPayload, startTS int64, ) PublicKeysChangeProposal
func (*PublicKeysChangeProposal) Descriptor ¶
func (*PublicKeysChangeProposal) Descriptor() ([]byte, []int)
func (*PublicKeysChangeProposal) GetCreator ¶
func (m *PublicKeysChangeProposal) GetCreator() string
func (*PublicKeysChangeProposal) GetId ¶
func (m *PublicKeysChangeProposal) GetId() uint64
func (*PublicKeysChangeProposal) GetModifications ¶
func (m *PublicKeysChangeProposal) GetModifications() PubkeysChangeProposalPayload
func (*PublicKeysChangeProposal) GetStartTS ¶
func (m *PublicKeysChangeProposal) GetStartTS() int64
func (*PublicKeysChangeProposal) GetVotes ¶
func (m *PublicKeysChangeProposal) GetVotes() []*Vote
func (*PublicKeysChangeProposal) IsExpired ¶
func (proposal *PublicKeysChangeProposal) IsExpired(blockTime int64) bool
func (*PublicKeysChangeProposal) Marshal ¶
func (m *PublicKeysChangeProposal) Marshal() (dAtA []byte, err error)
func (*PublicKeysChangeProposal) MarshalTo ¶
func (m *PublicKeysChangeProposal) MarshalTo(dAtA []byte) (int, error)
func (*PublicKeysChangeProposal) MarshalToSizedBuffer ¶
func (m *PublicKeysChangeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PublicKeysChangeProposal) ProtoMessage ¶
func (*PublicKeysChangeProposal) ProtoMessage()
func (*PublicKeysChangeProposal) Reset ¶
func (m *PublicKeysChangeProposal) Reset()
func (*PublicKeysChangeProposal) Size ¶
func (m *PublicKeysChangeProposal) Size() (n int)
func (*PublicKeysChangeProposal) String ¶
func (m *PublicKeysChangeProposal) String() string
func (*PublicKeysChangeProposal) Unmarshal ¶
func (m *PublicKeysChangeProposal) Unmarshal(dAtA []byte) error
func (*PublicKeysChangeProposal) XXX_DiscardUnknown ¶
func (m *PublicKeysChangeProposal) XXX_DiscardUnknown()
func (*PublicKeysChangeProposal) XXX_Marshal ¶
func (m *PublicKeysChangeProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PublicKeysChangeProposal) XXX_Merge ¶
func (m *PublicKeysChangeProposal) XXX_Merge(src proto.Message)
func (*PublicKeysChangeProposal) XXX_Size ¶
func (m *PublicKeysChangeProposal) XXX_Size() int
func (*PublicKeysChangeProposal) XXX_Unmarshal ¶
func (m *PublicKeysChangeProposal) XXX_Unmarshal(b []byte) error
type QueryActivePublicKeysChangeProposalRequest ¶
type QueryActivePublicKeysChangeProposalRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
QueryActivePublicKeysChangeProposalRequest is the request type for the Query/ActivePublicKeysChangeProposal RPC method.
func (*QueryActivePublicKeysChangeProposalRequest) Descriptor ¶
func (*QueryActivePublicKeysChangeProposalRequest) Descriptor() ([]byte, []int)
func (*QueryActivePublicKeysChangeProposalRequest) GetId ¶
func (m *QueryActivePublicKeysChangeProposalRequest) GetId() uint64
func (*QueryActivePublicKeysChangeProposalRequest) Marshal ¶
func (m *QueryActivePublicKeysChangeProposalRequest) Marshal() (dAtA []byte, err error)
func (*QueryActivePublicKeysChangeProposalRequest) MarshalTo ¶
func (m *QueryActivePublicKeysChangeProposalRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryActivePublicKeysChangeProposalRequest) MarshalToSizedBuffer ¶
func (m *QueryActivePublicKeysChangeProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryActivePublicKeysChangeProposalRequest) ProtoMessage ¶
func (*QueryActivePublicKeysChangeProposalRequest) ProtoMessage()
func (*QueryActivePublicKeysChangeProposalRequest) Reset ¶
func (m *QueryActivePublicKeysChangeProposalRequest) Reset()
func (*QueryActivePublicKeysChangeProposalRequest) Size ¶
func (m *QueryActivePublicKeysChangeProposalRequest) Size() (n int)
func (*QueryActivePublicKeysChangeProposalRequest) String ¶
func (m *QueryActivePublicKeysChangeProposalRequest) String() string
func (*QueryActivePublicKeysChangeProposalRequest) Unmarshal ¶
func (m *QueryActivePublicKeysChangeProposalRequest) Unmarshal(dAtA []byte) error
func (*QueryActivePublicKeysChangeProposalRequest) XXX_DiscardUnknown ¶
func (m *QueryActivePublicKeysChangeProposalRequest) XXX_DiscardUnknown()
func (*QueryActivePublicKeysChangeProposalRequest) XXX_Marshal ¶
func (m *QueryActivePublicKeysChangeProposalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryActivePublicKeysChangeProposalRequest) XXX_Merge ¶
func (m *QueryActivePublicKeysChangeProposalRequest) XXX_Merge(src proto.Message)
func (*QueryActivePublicKeysChangeProposalRequest) XXX_Size ¶
func (m *QueryActivePublicKeysChangeProposalRequest) XXX_Size() int
func (*QueryActivePublicKeysChangeProposalRequest) XXX_Unmarshal ¶
func (m *QueryActivePublicKeysChangeProposalRequest) XXX_Unmarshal(b []byte) error
type QueryActivePublicKeysChangeProposalResponse ¶
type QueryActivePublicKeysChangeProposalResponse struct { // proposal holds the active proposal. Proposal PublicKeysChangeProposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal"` }
QueryActivePublicKeysChangeProposalResponse is the response type for the Query/ActivePublicKeysChangeProposal RPC method.
func (*QueryActivePublicKeysChangeProposalResponse) Descriptor ¶
func (*QueryActivePublicKeysChangeProposalResponse) Descriptor() ([]byte, []int)
func (*QueryActivePublicKeysChangeProposalResponse) GetProposal ¶
func (m *QueryActivePublicKeysChangeProposalResponse) GetProposal() PublicKeysChangeProposal
func (*QueryActivePublicKeysChangeProposalResponse) Marshal ¶
func (m *QueryActivePublicKeysChangeProposalResponse) Marshal() (dAtA []byte, err error)
func (*QueryActivePublicKeysChangeProposalResponse) MarshalTo ¶
func (m *QueryActivePublicKeysChangeProposalResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryActivePublicKeysChangeProposalResponse) MarshalToSizedBuffer ¶
func (m *QueryActivePublicKeysChangeProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryActivePublicKeysChangeProposalResponse) ProtoMessage ¶
func (*QueryActivePublicKeysChangeProposalResponse) ProtoMessage()
func (*QueryActivePublicKeysChangeProposalResponse) Reset ¶
func (m *QueryActivePublicKeysChangeProposalResponse) Reset()
func (*QueryActivePublicKeysChangeProposalResponse) Size ¶
func (m *QueryActivePublicKeysChangeProposalResponse) Size() (n int)
func (*QueryActivePublicKeysChangeProposalResponse) String ¶
func (m *QueryActivePublicKeysChangeProposalResponse) String() string
func (*QueryActivePublicKeysChangeProposalResponse) Unmarshal ¶
func (m *QueryActivePublicKeysChangeProposalResponse) Unmarshal(dAtA []byte) error
func (*QueryActivePublicKeysChangeProposalResponse) XXX_DiscardUnknown ¶
func (m *QueryActivePublicKeysChangeProposalResponse) XXX_DiscardUnknown()
func (*QueryActivePublicKeysChangeProposalResponse) XXX_Marshal ¶
func (m *QueryActivePublicKeysChangeProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryActivePublicKeysChangeProposalResponse) XXX_Merge ¶
func (m *QueryActivePublicKeysChangeProposalResponse) XXX_Merge(src proto.Message)
func (*QueryActivePublicKeysChangeProposalResponse) XXX_Size ¶
func (m *QueryActivePublicKeysChangeProposalResponse) XXX_Size() int
func (*QueryActivePublicKeysChangeProposalResponse) XXX_Unmarshal ¶
func (m *QueryActivePublicKeysChangeProposalResponse) XXX_Unmarshal(b []byte) error
type QueryActivePublicKeysChangeProposalsRequest ¶
type QueryActivePublicKeysChangeProposalsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryActivePublicKeysChangeProposalsRequest is the request type for the Query/ActivePublicKeysChangeProposals RPC method.
func (*QueryActivePublicKeysChangeProposalsRequest) Descriptor ¶
func (*QueryActivePublicKeysChangeProposalsRequest) Descriptor() ([]byte, []int)
func (*QueryActivePublicKeysChangeProposalsRequest) GetPagination ¶
func (m *QueryActivePublicKeysChangeProposalsRequest) GetPagination() *query.PageRequest
func (*QueryActivePublicKeysChangeProposalsRequest) Marshal ¶
func (m *QueryActivePublicKeysChangeProposalsRequest) Marshal() (dAtA []byte, err error)
func (*QueryActivePublicKeysChangeProposalsRequest) MarshalTo ¶
func (m *QueryActivePublicKeysChangeProposalsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryActivePublicKeysChangeProposalsRequest) MarshalToSizedBuffer ¶
func (m *QueryActivePublicKeysChangeProposalsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryActivePublicKeysChangeProposalsRequest) ProtoMessage ¶
func (*QueryActivePublicKeysChangeProposalsRequest) ProtoMessage()
func (*QueryActivePublicKeysChangeProposalsRequest) Reset ¶
func (m *QueryActivePublicKeysChangeProposalsRequest) Reset()
func (*QueryActivePublicKeysChangeProposalsRequest) Size ¶
func (m *QueryActivePublicKeysChangeProposalsRequest) Size() (n int)
func (*QueryActivePublicKeysChangeProposalsRequest) String ¶
func (m *QueryActivePublicKeysChangeProposalsRequest) String() string
func (*QueryActivePublicKeysChangeProposalsRequest) Unmarshal ¶
func (m *QueryActivePublicKeysChangeProposalsRequest) Unmarshal(dAtA []byte) error
func (*QueryActivePublicKeysChangeProposalsRequest) XXX_DiscardUnknown ¶
func (m *QueryActivePublicKeysChangeProposalsRequest) XXX_DiscardUnknown()
func (*QueryActivePublicKeysChangeProposalsRequest) XXX_Marshal ¶
func (m *QueryActivePublicKeysChangeProposalsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryActivePublicKeysChangeProposalsRequest) XXX_Merge ¶
func (m *QueryActivePublicKeysChangeProposalsRequest) XXX_Merge(src proto.Message)
func (*QueryActivePublicKeysChangeProposalsRequest) XXX_Size ¶
func (m *QueryActivePublicKeysChangeProposalsRequest) XXX_Size() int
func (*QueryActivePublicKeysChangeProposalsRequest) XXX_Unmarshal ¶
func (m *QueryActivePublicKeysChangeProposalsRequest) XXX_Unmarshal(b []byte) error
type QueryActivePublicKeysChangeProposalsResponse ¶
type QueryActivePublicKeysChangeProposalsResponse struct { // proposals hold the active proposals. Proposals []PublicKeysChangeProposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryActivePublicKeysChangeProposalsResponse is the response type for the Query/ActivePublicKeysChangeProposals RPC method.
func (*QueryActivePublicKeysChangeProposalsResponse) Descriptor ¶
func (*QueryActivePublicKeysChangeProposalsResponse) Descriptor() ([]byte, []int)
func (*QueryActivePublicKeysChangeProposalsResponse) GetPagination ¶
func (m *QueryActivePublicKeysChangeProposalsResponse) GetPagination() *query.PageResponse
func (*QueryActivePublicKeysChangeProposalsResponse) GetProposals ¶
func (m *QueryActivePublicKeysChangeProposalsResponse) GetProposals() []PublicKeysChangeProposal
func (*QueryActivePublicKeysChangeProposalsResponse) Marshal ¶
func (m *QueryActivePublicKeysChangeProposalsResponse) Marshal() (dAtA []byte, err error)
func (*QueryActivePublicKeysChangeProposalsResponse) MarshalTo ¶
func (m *QueryActivePublicKeysChangeProposalsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryActivePublicKeysChangeProposalsResponse) MarshalToSizedBuffer ¶
func (m *QueryActivePublicKeysChangeProposalsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryActivePublicKeysChangeProposalsResponse) ProtoMessage ¶
func (*QueryActivePublicKeysChangeProposalsResponse) ProtoMessage()
func (*QueryActivePublicKeysChangeProposalsResponse) Reset ¶
func (m *QueryActivePublicKeysChangeProposalsResponse) Reset()
func (*QueryActivePublicKeysChangeProposalsResponse) Size ¶
func (m *QueryActivePublicKeysChangeProposalsResponse) Size() (n int)
func (*QueryActivePublicKeysChangeProposalsResponse) String ¶
func (m *QueryActivePublicKeysChangeProposalsResponse) String() string
func (*QueryActivePublicKeysChangeProposalsResponse) Unmarshal ¶
func (m *QueryActivePublicKeysChangeProposalsResponse) Unmarshal(dAtA []byte) error
func (*QueryActivePublicKeysChangeProposalsResponse) XXX_DiscardUnknown ¶
func (m *QueryActivePublicKeysChangeProposalsResponse) XXX_DiscardUnknown()
func (*QueryActivePublicKeysChangeProposalsResponse) XXX_Marshal ¶
func (m *QueryActivePublicKeysChangeProposalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryActivePublicKeysChangeProposalsResponse) XXX_Merge ¶
func (m *QueryActivePublicKeysChangeProposalsResponse) XXX_Merge(src proto.Message)
func (*QueryActivePublicKeysChangeProposalsResponse) XXX_Size ¶
func (m *QueryActivePublicKeysChangeProposalsResponse) XXX_Size() int
func (*QueryActivePublicKeysChangeProposalsResponse) XXX_Unmarshal ¶
func (m *QueryActivePublicKeysChangeProposalsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Params queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a list of PubKeys items. PubKeys(ctx context.Context, in *QueryPubKeysRequest, opts ...grpc.CallOption) (*QueryPubKeysResponse, error) // Queries an active proposal by id. ActivePublicKeysChangeProposal(ctx context.Context, in *QueryActivePublicKeysChangeProposalRequest, opts ...grpc.CallOption) (*QueryActivePublicKeysChangeProposalResponse, error) // Queries a list of active proposal items. ActivePublicKeysChangeProposals(ctx context.Context, in *QueryActivePublicKeysChangeProposalsRequest, opts ...grpc.CallOption) (*QueryActivePublicKeysChangeProposalsResponse, error) // Queries a finished proposal by id. FinishedPublicKeysChangeProposal(ctx context.Context, in *QueryFinishedPublicKeysChangeProposalRequest, opts ...grpc.CallOption) (*QueryFinishedPublicKeysChangeProposalResponse, error) // Queries a list of finished proposal items. FinishedPublicKeysChangeProposals(ctx context.Context, in *QueryFinishedPublicKeysChangeProposalsRequest, opts ...grpc.CallOption) (*QueryFinishedPublicKeysChangeProposalsResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryFinishedPublicKeysChangeProposalRequest ¶
type QueryFinishedPublicKeysChangeProposalRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
FinishedPublicKeysChangeProposal is the request type for the Query/FinishedPublicKeysChangeProposal RPC method.
func (*QueryFinishedPublicKeysChangeProposalRequest) Descriptor ¶
func (*QueryFinishedPublicKeysChangeProposalRequest) Descriptor() ([]byte, []int)
func (*QueryFinishedPublicKeysChangeProposalRequest) GetId ¶
func (m *QueryFinishedPublicKeysChangeProposalRequest) GetId() uint64
func (*QueryFinishedPublicKeysChangeProposalRequest) Marshal ¶
func (m *QueryFinishedPublicKeysChangeProposalRequest) Marshal() (dAtA []byte, err error)
func (*QueryFinishedPublicKeysChangeProposalRequest) MarshalTo ¶
func (m *QueryFinishedPublicKeysChangeProposalRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryFinishedPublicKeysChangeProposalRequest) MarshalToSizedBuffer ¶
func (m *QueryFinishedPublicKeysChangeProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFinishedPublicKeysChangeProposalRequest) ProtoMessage ¶
func (*QueryFinishedPublicKeysChangeProposalRequest) ProtoMessage()
func (*QueryFinishedPublicKeysChangeProposalRequest) Reset ¶
func (m *QueryFinishedPublicKeysChangeProposalRequest) Reset()
func (*QueryFinishedPublicKeysChangeProposalRequest) Size ¶
func (m *QueryFinishedPublicKeysChangeProposalRequest) Size() (n int)
func (*QueryFinishedPublicKeysChangeProposalRequest) String ¶
func (m *QueryFinishedPublicKeysChangeProposalRequest) String() string
func (*QueryFinishedPublicKeysChangeProposalRequest) Unmarshal ¶
func (m *QueryFinishedPublicKeysChangeProposalRequest) Unmarshal(dAtA []byte) error
func (*QueryFinishedPublicKeysChangeProposalRequest) XXX_DiscardUnknown ¶
func (m *QueryFinishedPublicKeysChangeProposalRequest) XXX_DiscardUnknown()
func (*QueryFinishedPublicKeysChangeProposalRequest) XXX_Marshal ¶
func (m *QueryFinishedPublicKeysChangeProposalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFinishedPublicKeysChangeProposalRequest) XXX_Merge ¶
func (m *QueryFinishedPublicKeysChangeProposalRequest) XXX_Merge(src proto.Message)
func (*QueryFinishedPublicKeysChangeProposalRequest) XXX_Size ¶
func (m *QueryFinishedPublicKeysChangeProposalRequest) XXX_Size() int
func (*QueryFinishedPublicKeysChangeProposalRequest) XXX_Unmarshal ¶
func (m *QueryFinishedPublicKeysChangeProposalRequest) XXX_Unmarshal(b []byte) error
type QueryFinishedPublicKeysChangeProposalResponse ¶
type QueryFinishedPublicKeysChangeProposalResponse struct { // proposal holds the finished proposal. Proposal PublicKeysChangeFinishedProposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal"` }
FinishedPublicKeysChangeProposal is the response type for the Query/FinishedPublicKeysChangeProposal RPC method.
func (*QueryFinishedPublicKeysChangeProposalResponse) Descriptor ¶
func (*QueryFinishedPublicKeysChangeProposalResponse) Descriptor() ([]byte, []int)
func (*QueryFinishedPublicKeysChangeProposalResponse) GetProposal ¶
func (m *QueryFinishedPublicKeysChangeProposalResponse) GetProposal() PublicKeysChangeFinishedProposal
func (*QueryFinishedPublicKeysChangeProposalResponse) Marshal ¶
func (m *QueryFinishedPublicKeysChangeProposalResponse) Marshal() (dAtA []byte, err error)
func (*QueryFinishedPublicKeysChangeProposalResponse) MarshalTo ¶
func (m *QueryFinishedPublicKeysChangeProposalResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryFinishedPublicKeysChangeProposalResponse) MarshalToSizedBuffer ¶
func (m *QueryFinishedPublicKeysChangeProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFinishedPublicKeysChangeProposalResponse) ProtoMessage ¶
func (*QueryFinishedPublicKeysChangeProposalResponse) ProtoMessage()
func (*QueryFinishedPublicKeysChangeProposalResponse) Reset ¶
func (m *QueryFinishedPublicKeysChangeProposalResponse) Reset()
func (*QueryFinishedPublicKeysChangeProposalResponse) Size ¶
func (m *QueryFinishedPublicKeysChangeProposalResponse) Size() (n int)
func (*QueryFinishedPublicKeysChangeProposalResponse) String ¶
func (m *QueryFinishedPublicKeysChangeProposalResponse) String() string
func (*QueryFinishedPublicKeysChangeProposalResponse) Unmarshal ¶
func (m *QueryFinishedPublicKeysChangeProposalResponse) Unmarshal(dAtA []byte) error
func (*QueryFinishedPublicKeysChangeProposalResponse) XXX_DiscardUnknown ¶
func (m *QueryFinishedPublicKeysChangeProposalResponse) XXX_DiscardUnknown()
func (*QueryFinishedPublicKeysChangeProposalResponse) XXX_Marshal ¶
func (m *QueryFinishedPublicKeysChangeProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFinishedPublicKeysChangeProposalResponse) XXX_Merge ¶
func (m *QueryFinishedPublicKeysChangeProposalResponse) XXX_Merge(src proto.Message)
func (*QueryFinishedPublicKeysChangeProposalResponse) XXX_Size ¶
func (m *QueryFinishedPublicKeysChangeProposalResponse) XXX_Size() int
func (*QueryFinishedPublicKeysChangeProposalResponse) XXX_Unmarshal ¶
func (m *QueryFinishedPublicKeysChangeProposalResponse) XXX_Unmarshal(b []byte) error
type QueryFinishedPublicKeysChangeProposalsRequest ¶
type QueryFinishedPublicKeysChangeProposalsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryFinishedPublicKeysChangeProposalsRequest is the request type for the Query/FinishedPublicKeysChangeProposals RPC method.
func (*QueryFinishedPublicKeysChangeProposalsRequest) Descriptor ¶
func (*QueryFinishedPublicKeysChangeProposalsRequest) Descriptor() ([]byte, []int)
func (*QueryFinishedPublicKeysChangeProposalsRequest) GetPagination ¶
func (m *QueryFinishedPublicKeysChangeProposalsRequest) GetPagination() *query.PageRequest
func (*QueryFinishedPublicKeysChangeProposalsRequest) Marshal ¶
func (m *QueryFinishedPublicKeysChangeProposalsRequest) Marshal() (dAtA []byte, err error)
func (*QueryFinishedPublicKeysChangeProposalsRequest) MarshalTo ¶
func (m *QueryFinishedPublicKeysChangeProposalsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryFinishedPublicKeysChangeProposalsRequest) MarshalToSizedBuffer ¶
func (m *QueryFinishedPublicKeysChangeProposalsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFinishedPublicKeysChangeProposalsRequest) ProtoMessage ¶
func (*QueryFinishedPublicKeysChangeProposalsRequest) ProtoMessage()
func (*QueryFinishedPublicKeysChangeProposalsRequest) Reset ¶
func (m *QueryFinishedPublicKeysChangeProposalsRequest) Reset()
func (*QueryFinishedPublicKeysChangeProposalsRequest) Size ¶
func (m *QueryFinishedPublicKeysChangeProposalsRequest) Size() (n int)
func (*QueryFinishedPublicKeysChangeProposalsRequest) String ¶
func (m *QueryFinishedPublicKeysChangeProposalsRequest) String() string
func (*QueryFinishedPublicKeysChangeProposalsRequest) Unmarshal ¶
func (m *QueryFinishedPublicKeysChangeProposalsRequest) Unmarshal(dAtA []byte) error
func (*QueryFinishedPublicKeysChangeProposalsRequest) XXX_DiscardUnknown ¶
func (m *QueryFinishedPublicKeysChangeProposalsRequest) XXX_DiscardUnknown()
func (*QueryFinishedPublicKeysChangeProposalsRequest) XXX_Marshal ¶
func (m *QueryFinishedPublicKeysChangeProposalsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFinishedPublicKeysChangeProposalsRequest) XXX_Merge ¶
func (m *QueryFinishedPublicKeysChangeProposalsRequest) XXX_Merge(src proto.Message)
func (*QueryFinishedPublicKeysChangeProposalsRequest) XXX_Size ¶
func (m *QueryFinishedPublicKeysChangeProposalsRequest) XXX_Size() int
func (*QueryFinishedPublicKeysChangeProposalsRequest) XXX_Unmarshal ¶
func (m *QueryFinishedPublicKeysChangeProposalsRequest) XXX_Unmarshal(b []byte) error
type QueryFinishedPublicKeysChangeProposalsResponse ¶
type QueryFinishedPublicKeysChangeProposalsResponse struct { // proposals hold the finished proposals. Proposals []PublicKeysChangeFinishedProposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryFinishedPublicKeysChangeProposalsResponse is the response type for the Query/FinishedPublicKeysChangeProposals RPC method.
func (*QueryFinishedPublicKeysChangeProposalsResponse) Descriptor ¶
func (*QueryFinishedPublicKeysChangeProposalsResponse) Descriptor() ([]byte, []int)
func (*QueryFinishedPublicKeysChangeProposalsResponse) GetPagination ¶
func (m *QueryFinishedPublicKeysChangeProposalsResponse) GetPagination() *query.PageResponse
func (*QueryFinishedPublicKeysChangeProposalsResponse) GetProposals ¶
func (m *QueryFinishedPublicKeysChangeProposalsResponse) GetProposals() []PublicKeysChangeFinishedProposal
func (*QueryFinishedPublicKeysChangeProposalsResponse) Marshal ¶
func (m *QueryFinishedPublicKeysChangeProposalsResponse) Marshal() (dAtA []byte, err error)
func (*QueryFinishedPublicKeysChangeProposalsResponse) MarshalTo ¶
func (m *QueryFinishedPublicKeysChangeProposalsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryFinishedPublicKeysChangeProposalsResponse) MarshalToSizedBuffer ¶
func (m *QueryFinishedPublicKeysChangeProposalsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFinishedPublicKeysChangeProposalsResponse) ProtoMessage ¶
func (*QueryFinishedPublicKeysChangeProposalsResponse) ProtoMessage()
func (*QueryFinishedPublicKeysChangeProposalsResponse) Reset ¶
func (m *QueryFinishedPublicKeysChangeProposalsResponse) Reset()
func (*QueryFinishedPublicKeysChangeProposalsResponse) Size ¶
func (m *QueryFinishedPublicKeysChangeProposalsResponse) Size() (n int)
func (*QueryFinishedPublicKeysChangeProposalsResponse) String ¶
func (m *QueryFinishedPublicKeysChangeProposalsResponse) String() string
func (*QueryFinishedPublicKeysChangeProposalsResponse) Unmarshal ¶
func (m *QueryFinishedPublicKeysChangeProposalsResponse) Unmarshal(dAtA []byte) error
func (*QueryFinishedPublicKeysChangeProposalsResponse) XXX_DiscardUnknown ¶
func (m *QueryFinishedPublicKeysChangeProposalsResponse) XXX_DiscardUnknown()
func (*QueryFinishedPublicKeysChangeProposalsResponse) XXX_Marshal ¶
func (m *QueryFinishedPublicKeysChangeProposalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFinishedPublicKeysChangeProposalsResponse) XXX_Merge ¶
func (m *QueryFinishedPublicKeysChangeProposalsResponse) XXX_Merge(src proto.Message)
func (*QueryFinishedPublicKeysChangeProposalsResponse) XXX_Size ¶
func (m *QueryFinishedPublicKeysChangeProposalsResponse) XXX_Size() int
func (*QueryFinishedPublicKeysChangeProposalsResponse) XXX_Unmarshal ¶
func (m *QueryFinishedPublicKeysChangeProposalsResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is the request type for the Query/Params RPC method. Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is the response type for the Query/Params RPC method. Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryPubKeysRequest ¶
type QueryPubKeysRequest struct { }
QueryPubKeysRequest is the request type for the public keys list query. Query/PubKeys RPC method.
func (*QueryPubKeysRequest) Descriptor ¶
func (*QueryPubKeysRequest) Descriptor() ([]byte, []int)
func (*QueryPubKeysRequest) Marshal ¶
func (m *QueryPubKeysRequest) Marshal() (dAtA []byte, err error)
func (*QueryPubKeysRequest) MarshalTo ¶
func (m *QueryPubKeysRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPubKeysRequest) MarshalToSizedBuffer ¶
func (m *QueryPubKeysRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPubKeysRequest) ProtoMessage ¶
func (*QueryPubKeysRequest) ProtoMessage()
func (*QueryPubKeysRequest) Reset ¶
func (m *QueryPubKeysRequest) Reset()
func (*QueryPubKeysRequest) Size ¶
func (m *QueryPubKeysRequest) Size() (n int)
func (*QueryPubKeysRequest) String ¶
func (m *QueryPubKeysRequest) String() string
func (*QueryPubKeysRequest) Unmarshal ¶
func (m *QueryPubKeysRequest) Unmarshal(dAtA []byte) error
func (*QueryPubKeysRequest) XXX_DiscardUnknown ¶
func (m *QueryPubKeysRequest) XXX_DiscardUnknown()
func (*QueryPubKeysRequest) XXX_Marshal ¶
func (m *QueryPubKeysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPubKeysRequest) XXX_Merge ¶
func (m *QueryPubKeysRequest) XXX_Merge(src proto.Message)
func (*QueryPubKeysRequest) XXX_Size ¶
func (m *QueryPubKeysRequest) XXX_Size() int
func (*QueryPubKeysRequest) XXX_Unmarshal ¶
func (m *QueryPubKeysRequest) XXX_Unmarshal(b []byte) error
type QueryPubKeysResponse ¶
type QueryPubKeysResponse struct { // list is the list of allowed public keys. List []string `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` }
QueryPubKeysResponse is the response type for the public keys list query. Query/PubKeys RPC method.
func (*QueryPubKeysResponse) Descriptor ¶
func (*QueryPubKeysResponse) Descriptor() ([]byte, []int)
func (*QueryPubKeysResponse) GetList ¶
func (m *QueryPubKeysResponse) GetList() []string
func (*QueryPubKeysResponse) Marshal ¶
func (m *QueryPubKeysResponse) Marshal() (dAtA []byte, err error)
func (*QueryPubKeysResponse) MarshalTo ¶
func (m *QueryPubKeysResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPubKeysResponse) MarshalToSizedBuffer ¶
func (m *QueryPubKeysResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPubKeysResponse) ProtoMessage ¶
func (*QueryPubKeysResponse) ProtoMessage()
func (*QueryPubKeysResponse) Reset ¶
func (m *QueryPubKeysResponse) Reset()
func (*QueryPubKeysResponse) Size ¶
func (m *QueryPubKeysResponse) Size() (n int)
func (*QueryPubKeysResponse) String ¶
func (m *QueryPubKeysResponse) String() string
func (*QueryPubKeysResponse) Unmarshal ¶
func (m *QueryPubKeysResponse) Unmarshal(dAtA []byte) error
func (*QueryPubKeysResponse) XXX_DiscardUnknown ¶
func (m *QueryPubKeysResponse) XXX_DiscardUnknown()
func (*QueryPubKeysResponse) XXX_Marshal ¶
func (m *QueryPubKeysResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPubKeysResponse) XXX_Merge ¶
func (m *QueryPubKeysResponse) XXX_Merge(src proto.Message)
func (*QueryPubKeysResponse) XXX_Size ¶
func (m *QueryPubKeysResponse) XXX_Size() int
func (*QueryPubKeysResponse) XXX_Unmarshal ¶
func (m *QueryPubKeysResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Params queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a list of PubKeys items. PubKeys(context.Context, *QueryPubKeysRequest) (*QueryPubKeysResponse, error) // Queries an active proposal by id. ActivePublicKeysChangeProposal(context.Context, *QueryActivePublicKeysChangeProposalRequest) (*QueryActivePublicKeysChangeProposalResponse, error) // Queries a list of active proposal items. ActivePublicKeysChangeProposals(context.Context, *QueryActivePublicKeysChangeProposalsRequest) (*QueryActivePublicKeysChangeProposalsResponse, error) // Queries a finished proposal by id. FinishedPublicKeysChangeProposal(context.Context, *QueryFinishedPublicKeysChangeProposalRequest) (*QueryFinishedPublicKeysChangeProposalResponse, error) // Queries a list of finished proposal items. FinishedPublicKeysChangeProposals(context.Context, *QueryFinishedPublicKeysChangeProposalsRequest) (*QueryFinishedPublicKeysChangeProposalsResponse, error) }
QueryServer is the server API for Query service.
type Ticket ¶
type Ticket interface { // Unmarshal unmarshals the information of the ticket to the v. v must be a pointer. Unmarshal(v interface{}) error // Verify verifies the ticket signature with the given public keys. If the ticket is verified by any // of the keys, then return nil else return invalid signature error Verify(pubKeys ...string) error // ValidateExpiry verifies that the ticket is not expired yet. ValidateExpiry(ctx sdk.Context) error }
Ticket is the Interface of ticket.
func NewJwtTicket ¶
NewJwtTicket create a new jwt ticket from the given ticket.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) SubmitPubkeysChangeProposal ¶
func (*UnimplementedMsgServer) SubmitPubkeysChangeProposal(ctx context.Context, req *MsgSubmitPubkeysChangeProposalRequest) (*MsgSubmitPubkeysChangeProposalResponse, error)
func (*UnimplementedMsgServer) VotePubkeysChange ¶
func (*UnimplementedMsgServer) VotePubkeysChange(ctx context.Context, req *MsgVotePubkeysChangeRequest) (*MsgVotePubkeysChangeResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) ActivePublicKeysChangeProposal ¶
func (*UnimplementedQueryServer) ActivePublicKeysChangeProposal(ctx context.Context, req *QueryActivePublicKeysChangeProposalRequest) (*QueryActivePublicKeysChangeProposalResponse, error)
func (*UnimplementedQueryServer) ActivePublicKeysChangeProposals ¶
func (*UnimplementedQueryServer) ActivePublicKeysChangeProposals(ctx context.Context, req *QueryActivePublicKeysChangeProposalsRequest) (*QueryActivePublicKeysChangeProposalsResponse, error)
func (*UnimplementedQueryServer) FinishedPublicKeysChangeProposal ¶
func (*UnimplementedQueryServer) FinishedPublicKeysChangeProposal(ctx context.Context, req *QueryFinishedPublicKeysChangeProposalRequest) (*QueryFinishedPublicKeysChangeProposalResponse, error)
func (*UnimplementedQueryServer) FinishedPublicKeysChangeProposals ¶
func (*UnimplementedQueryServer) FinishedPublicKeysChangeProposals(ctx context.Context, req *QueryFinishedPublicKeysChangeProposalsRequest) (*QueryFinishedPublicKeysChangeProposalsResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) PubKeys ¶
func (*UnimplementedQueryServer) PubKeys(ctx context.Context, req *QueryPubKeysRequest) (*QueryPubKeysResponse, error)
type Vote ¶
type Vote struct { // public_key is the public key of the voter. PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // vote is the vote enum value. Vote ProposalVote `protobuf:"varint,2,opt,name=vote,proto3,enum=furyanetwork.furya.dvm.ProposalVote" json:"vote,omitempty"` }
Vote is the type for the proposal vote.
func NewVote ¶
func NewVote(pubKey string, vote ProposalVote) *Vote
func (*Vote) Descriptor ¶
func (*Vote) GetPublicKey ¶
func (*Vote) GetVote ¶
func (m *Vote) GetVote() ProposalVote
func (*Vote) ProtoMessage ¶
func (*Vote) ProtoMessage()
func (*Vote) XXX_DiscardUnknown ¶
func (m *Vote) XXX_DiscardUnknown()
func (*Vote) XXX_Unmarshal ¶
Source Files ¶
- codec.go
- const.go
- consts.go
- errors.go
- expected_keepers.go
- genesis.go
- genesis.pb.go
- key_vault.pb.go
- keys.go
- message_pubkeys_proposal.go
- message_pubkeys_vote.go
- params.go
- params.pb.go
- proposal.go
- proposal.pb.go
- query.pb.go
- query.pb.gw.go
- stats.pb.go
- ticket.go
- ticket.pb.go
- ticket_jwt.go
- tx.pb.go
- vote.go
- vote.pb.go