Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetHistoricalInfoKey(height int64) []byte
- func GetNodeKey(id tmbytes.HexBytes) []byte
- func GetValidatorConsAddrKey(addr sdk.ConsAddress) []byte
- func GetValidatorIDKey(id tmbytes.HexBytes) []byte
- func GetValidatorNameKey(name string) []byte
- func GetValidatorUpdateQueueKey(pubkey string) []byte
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- 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)
- func ValidateCertificate(cert string) error
- func ValidateNodeID(id string) error
- func ValidateOperator(operator string) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetNodes() []Node
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetRootCert() string
- func (m *GenesisState) GetValidators() []Validator
- 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 (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 HistoricalInfo
- func (*HistoricalInfo) Descriptor() ([]byte, []int)
- func (m *HistoricalInfo) Marshal() (dAtA []byte, err error)
- func (m *HistoricalInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *HistoricalInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HistoricalInfo) ProtoMessage()
- func (m *HistoricalInfo) Reset()
- func (m *HistoricalInfo) Size() (n int)
- func (m *HistoricalInfo) String() string
- func (m *HistoricalInfo) Unmarshal(dAtA []byte) error
- func (m *HistoricalInfo) XXX_DiscardUnknown()
- func (m *HistoricalInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HistoricalInfo) XXX_Merge(src proto.Message)
- func (m *HistoricalInfo) XXX_Size() int
- func (m *HistoricalInfo) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateValidator
- func (*MsgCreateValidator) Descriptor() ([]byte, []int)
- func (this *MsgCreateValidator) Equal(that interface{}) bool
- func (m MsgCreateValidator) GetSignBytes() []byte
- func (m MsgCreateValidator) GetSigners() []sdk.AccAddress
- func (m *MsgCreateValidator) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateValidator) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateValidator) ProtoMessage()
- func (m *MsgCreateValidator) Reset()
- func (m MsgCreateValidator) Route() string
- func (m *MsgCreateValidator) Size() (n int)
- func (m *MsgCreateValidator) String() string
- func (m MsgCreateValidator) Type() string
- func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error
- func (m MsgCreateValidator) ValidateBasic() error
- func (m *MsgCreateValidator) XXX_DiscardUnknown()
- func (m *MsgCreateValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateValidator) XXX_Merge(src proto.Message)
- func (m *MsgCreateValidator) XXX_Size() int
- func (m *MsgCreateValidator) XXX_Unmarshal(b []byte) error
- type MsgCreateValidatorResponse
- func (*MsgCreateValidatorResponse) Descriptor() ([]byte, []int)
- func (this *MsgCreateValidatorResponse) Equal(that interface{}) bool
- func (m *MsgCreateValidatorResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateValidatorResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateValidatorResponse) ProtoMessage()
- func (m *MsgCreateValidatorResponse) Reset()
- func (m *MsgCreateValidatorResponse) Size() (n int)
- func (m *MsgCreateValidatorResponse) String() string
- func (m *MsgCreateValidatorResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateValidatorResponse) XXX_DiscardUnknown()
- func (m *MsgCreateValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateValidatorResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateValidatorResponse) XXX_Size() int
- func (m *MsgCreateValidatorResponse) XXX_Unmarshal(b []byte) error
- type MsgGrantNode
- func (*MsgGrantNode) Descriptor() ([]byte, []int)
- func (this *MsgGrantNode) Equal(that interface{}) bool
- func (msg MsgGrantNode) GetSignBytes() []byte
- func (msg MsgGrantNode) GetSigners() []sdk.AccAddress
- func (m *MsgGrantNode) Marshal() (dAtA []byte, err error)
- func (m *MsgGrantNode) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGrantNode) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGrantNode) ProtoMessage()
- func (m *MsgGrantNode) Reset()
- func (msg MsgGrantNode) Route() string
- func (m *MsgGrantNode) Size() (n int)
- func (m *MsgGrantNode) String() string
- func (msg MsgGrantNode) Type() string
- func (m *MsgGrantNode) Unmarshal(dAtA []byte) error
- func (msg MsgGrantNode) ValidateBasic() error
- func (m *MsgGrantNode) XXX_DiscardUnknown()
- func (m *MsgGrantNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGrantNode) XXX_Merge(src proto.Message)
- func (m *MsgGrantNode) XXX_Size() int
- func (m *MsgGrantNode) XXX_Unmarshal(b []byte) error
- type MsgGrantNodeResponse
- func (*MsgGrantNodeResponse) Descriptor() ([]byte, []int)
- func (this *MsgGrantNodeResponse) Equal(that interface{}) bool
- func (m *MsgGrantNodeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgGrantNodeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGrantNodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGrantNodeResponse) ProtoMessage()
- func (m *MsgGrantNodeResponse) Reset()
- func (m *MsgGrantNodeResponse) Size() (n int)
- func (m *MsgGrantNodeResponse) String() string
- func (m *MsgGrantNodeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgGrantNodeResponse) XXX_DiscardUnknown()
- func (m *MsgGrantNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGrantNodeResponse) XXX_Merge(src proto.Message)
- func (m *MsgGrantNodeResponse) XXX_Size() int
- func (m *MsgGrantNodeResponse) XXX_Unmarshal(b []byte) error
- type MsgRemoveValidator
- func (*MsgRemoveValidator) Descriptor() ([]byte, []int)
- func (this *MsgRemoveValidator) Equal(that interface{}) bool
- func (m MsgRemoveValidator) GetSignBytes() []byte
- func (m MsgRemoveValidator) GetSigners() []sdk.AccAddress
- func (m *MsgRemoveValidator) Marshal() (dAtA []byte, err error)
- func (m *MsgRemoveValidator) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRemoveValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRemoveValidator) ProtoMessage()
- func (m *MsgRemoveValidator) Reset()
- func (m MsgRemoveValidator) Route() string
- func (m *MsgRemoveValidator) Size() (n int)
- func (m *MsgRemoveValidator) String() string
- func (m MsgRemoveValidator) Type() string
- func (m *MsgRemoveValidator) Unmarshal(dAtA []byte) error
- func (m MsgRemoveValidator) ValidateBasic() error
- func (m *MsgRemoveValidator) XXX_DiscardUnknown()
- func (m *MsgRemoveValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRemoveValidator) XXX_Merge(src proto.Message)
- func (m *MsgRemoveValidator) XXX_Size() int
- func (m *MsgRemoveValidator) XXX_Unmarshal(b []byte) error
- type MsgRemoveValidatorResponse
- func (*MsgRemoveValidatorResponse) Descriptor() ([]byte, []int)
- func (m *MsgRemoveValidatorResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRemoveValidatorResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRemoveValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRemoveValidatorResponse) ProtoMessage()
- func (m *MsgRemoveValidatorResponse) Reset()
- func (m *MsgRemoveValidatorResponse) Size() (n int)
- func (m *MsgRemoveValidatorResponse) String() string
- func (m *MsgRemoveValidatorResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRemoveValidatorResponse) XXX_DiscardUnknown()
- func (m *MsgRemoveValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRemoveValidatorResponse) XXX_Merge(src proto.Message)
- func (m *MsgRemoveValidatorResponse) XXX_Size() int
- func (m *MsgRemoveValidatorResponse) XXX_Unmarshal(b []byte) error
- type MsgRevokeNode
- func (*MsgRevokeNode) Descriptor() ([]byte, []int)
- func (this *MsgRevokeNode) Equal(that interface{}) bool
- func (msg MsgRevokeNode) GetSignBytes() []byte
- func (msg MsgRevokeNode) GetSigners() []sdk.AccAddress
- func (m *MsgRevokeNode) Marshal() (dAtA []byte, err error)
- func (m *MsgRevokeNode) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRevokeNode) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRevokeNode) ProtoMessage()
- func (m *MsgRevokeNode) Reset()
- func (msg MsgRevokeNode) Route() string
- func (m *MsgRevokeNode) Size() (n int)
- func (m *MsgRevokeNode) String() string
- func (msg MsgRevokeNode) Type() string
- func (m *MsgRevokeNode) Unmarshal(dAtA []byte) error
- func (msg MsgRevokeNode) ValidateBasic() error
- func (m *MsgRevokeNode) XXX_DiscardUnknown()
- func (m *MsgRevokeNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRevokeNode) XXX_Merge(src proto.Message)
- func (m *MsgRevokeNode) XXX_Size() int
- func (m *MsgRevokeNode) XXX_Unmarshal(b []byte) error
- type MsgRevokeNodeResponse
- func (*MsgRevokeNodeResponse) Descriptor() ([]byte, []int)
- func (m *MsgRevokeNodeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRevokeNodeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRevokeNodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRevokeNodeResponse) ProtoMessage()
- func (m *MsgRevokeNodeResponse) Reset()
- func (m *MsgRevokeNodeResponse) Size() (n int)
- func (m *MsgRevokeNodeResponse) String() string
- func (m *MsgRevokeNodeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRevokeNodeResponse) XXX_DiscardUnknown()
- func (m *MsgRevokeNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRevokeNodeResponse) XXX_Merge(src proto.Message)
- func (m *MsgRevokeNodeResponse) XXX_Size() int
- func (m *MsgRevokeNodeResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateValidator
- func (*MsgUpdateValidator) Descriptor() ([]byte, []int)
- func (this *MsgUpdateValidator) Equal(that interface{}) bool
- func (m MsgUpdateValidator) GetSignBytes() []byte
- func (m MsgUpdateValidator) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateValidator) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateValidator) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateValidator) ProtoMessage()
- func (m *MsgUpdateValidator) Reset()
- func (m MsgUpdateValidator) Route() string
- func (m *MsgUpdateValidator) Size() (n int)
- func (m *MsgUpdateValidator) String() string
- func (m MsgUpdateValidator) Type() string
- func (m *MsgUpdateValidator) Unmarshal(dAtA []byte) error
- func (m MsgUpdateValidator) ValidateBasic() error
- func (m *MsgUpdateValidator) XXX_DiscardUnknown()
- func (m *MsgUpdateValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateValidator) XXX_Merge(src proto.Message)
- func (m *MsgUpdateValidator) XXX_Size() int
- func (m *MsgUpdateValidator) XXX_Unmarshal(b []byte) error
- type MsgUpdateValidatorResponse
- func (*MsgUpdateValidatorResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateValidatorResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateValidatorResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateValidatorResponse) ProtoMessage()
- func (m *MsgUpdateValidatorResponse) Reset()
- func (m *MsgUpdateValidatorResponse) Size() (n int)
- func (m *MsgUpdateValidatorResponse) String() string
- func (m *MsgUpdateValidatorResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateValidatorResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateValidatorResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateValidatorResponse) XXX_Size() int
- func (m *MsgUpdateValidatorResponse) XXX_Unmarshal(b []byte) error
- type Node
- func (*Node) Descriptor() ([]byte, []int)
- func (this *Node) Equal(that interface{}) bool
- func (m *Node) Marshal() (dAtA []byte, err error)
- func (m *Node) MarshalTo(dAtA []byte) (int, error)
- func (m *Node) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Node) ProtoMessage()
- func (m *Node) Reset()
- func (m *Node) Size() (n int)
- func (m *Node) String() string
- func (m *Node) Unmarshal(dAtA []byte) error
- func (n Node) Validate() error
- func (m *Node) XXX_DiscardUnknown()
- func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Node) XXX_Merge(src proto.Message)
- func (m *Node) XXX_Size() int
- func (m *Node) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- 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 (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) 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 QueryClient
- type QueryNodeParams
- type QueryNodeRequest
- func (*QueryNodeRequest) Descriptor() ([]byte, []int)
- func (m *QueryNodeRequest) GetId() string
- func (m *QueryNodeRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryNodeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNodeRequest) ProtoMessage()
- func (m *QueryNodeRequest) Reset()
- func (m *QueryNodeRequest) Size() (n int)
- func (m *QueryNodeRequest) String() string
- func (m *QueryNodeRequest) Unmarshal(dAtA []byte) error
- func (m *QueryNodeRequest) XXX_DiscardUnknown()
- func (m *QueryNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNodeRequest) XXX_Merge(src proto.Message)
- func (m *QueryNodeRequest) XXX_Size() int
- func (m *QueryNodeRequest) XXX_Unmarshal(b []byte) error
- type QueryNodeResponse
- func (*QueryNodeResponse) Descriptor() ([]byte, []int)
- func (m *QueryNodeResponse) GetNode() *Node
- func (m *QueryNodeResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryNodeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNodeResponse) ProtoMessage()
- func (m *QueryNodeResponse) Reset()
- func (m *QueryNodeResponse) Size() (n int)
- func (m *QueryNodeResponse) String() string
- func (m *QueryNodeResponse) Unmarshal(dAtA []byte) error
- func (m *QueryNodeResponse) XXX_DiscardUnknown()
- func (m *QueryNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNodeResponse) XXX_Merge(src proto.Message)
- func (m *QueryNodeResponse) XXX_Size() int
- func (m *QueryNodeResponse) XXX_Unmarshal(b []byte) error
- type QueryNodesParams
- type QueryNodesRequest
- func (*QueryNodesRequest) Descriptor() ([]byte, []int)
- func (m *QueryNodesRequest) GetPagination() *query.PageRequest
- func (m *QueryNodesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryNodesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNodesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNodesRequest) ProtoMessage()
- func (m *QueryNodesRequest) Reset()
- func (m *QueryNodesRequest) Size() (n int)
- func (m *QueryNodesRequest) String() string
- func (m *QueryNodesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryNodesRequest) XXX_DiscardUnknown()
- func (m *QueryNodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNodesRequest) XXX_Merge(src proto.Message)
- func (m *QueryNodesRequest) XXX_Size() int
- func (m *QueryNodesRequest) XXX_Unmarshal(b []byte) error
- type QueryNodesResponse
- func (*QueryNodesResponse) Descriptor() ([]byte, []int)
- func (m *QueryNodesResponse) GetNodes() []Node
- func (m *QueryNodesResponse) GetPagination() *query.PageResponse
- func (m *QueryNodesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryNodesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNodesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNodesResponse) ProtoMessage()
- func (m *QueryNodesResponse) Reset()
- func (m *QueryNodesResponse) Size() (n int)
- func (m *QueryNodesResponse) String() string
- func (m *QueryNodesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryNodesResponse) XXX_DiscardUnknown()
- func (m *QueryNodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNodesResponse) XXX_Merge(src proto.Message)
- func (m *QueryNodesResponse) XXX_Size() int
- func (m *QueryNodesResponse) 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 QueryServer
- type QueryValidatorParams
- type QueryValidatorRequest
- func (*QueryValidatorRequest) Descriptor() ([]byte, []int)
- func (m *QueryValidatorRequest) GetId() string
- func (m *QueryValidatorRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatorRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatorRequest) ProtoMessage()
- func (m *QueryValidatorRequest) Reset()
- func (m *QueryValidatorRequest) Size() (n int)
- func (m *QueryValidatorRequest) String() string
- func (m *QueryValidatorRequest) Unmarshal(dAtA []byte) error
- func (m *QueryValidatorRequest) XXX_DiscardUnknown()
- func (m *QueryValidatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatorRequest) XXX_Merge(src proto.Message)
- func (m *QueryValidatorRequest) XXX_Size() int
- func (m *QueryValidatorRequest) XXX_Unmarshal(b []byte) error
- type QueryValidatorResponse
- func (*QueryValidatorResponse) Descriptor() ([]byte, []int)
- func (m *QueryValidatorResponse) GetValidator() *Validator
- func (m *QueryValidatorResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatorResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatorResponse) ProtoMessage()
- func (m *QueryValidatorResponse) Reset()
- func (m *QueryValidatorResponse) Size() (n int)
- func (m *QueryValidatorResponse) String() string
- func (m *QueryValidatorResponse) Unmarshal(dAtA []byte) error
- func (m *QueryValidatorResponse) XXX_DiscardUnknown()
- func (m *QueryValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatorResponse) XXX_Merge(src proto.Message)
- func (m *QueryValidatorResponse) XXX_Size() int
- func (m *QueryValidatorResponse) XXX_Unmarshal(b []byte) error
- type QueryValidatorsParams
- type QueryValidatorsRequest
- func (*QueryValidatorsRequest) Descriptor() ([]byte, []int)
- func (m *QueryValidatorsRequest) GetPagination() *query.PageRequest
- func (m *QueryValidatorsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatorsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatorsRequest) ProtoMessage()
- func (m *QueryValidatorsRequest) Reset()
- func (m *QueryValidatorsRequest) Size() (n int)
- func (m *QueryValidatorsRequest) String() string
- func (m *QueryValidatorsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryValidatorsRequest) XXX_DiscardUnknown()
- func (m *QueryValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatorsRequest) XXX_Merge(src proto.Message)
- func (m *QueryValidatorsRequest) XXX_Size() int
- func (m *QueryValidatorsRequest) XXX_Unmarshal(b []byte) error
- type QueryValidatorsResponse
- func (*QueryValidatorsResponse) Descriptor() ([]byte, []int)
- func (m *QueryValidatorsResponse) GetPagination() *query.PageResponse
- func (m *QueryValidatorsResponse) GetValidators() []Validator
- func (m *QueryValidatorsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatorsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatorsResponse) ProtoMessage()
- func (m *QueryValidatorsResponse) Reset()
- func (m *QueryValidatorsResponse) Size() (n int)
- func (m *QueryValidatorsResponse) String() string
- func (m *QueryValidatorsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryValidatorsResponse) XXX_DiscardUnknown()
- func (m *QueryValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatorsResponse) XXX_Merge(src proto.Message)
- func (m *QueryValidatorsResponse) XXX_Size() int
- func (m *QueryValidatorsResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CreateValidator(ctx context.Context, req *MsgCreateValidator) (*MsgCreateValidatorResponse, error)
- func (*UnimplementedMsgServer) GrantNode(ctx context.Context, req *MsgGrantNode) (*MsgGrantNodeResponse, error)
- func (*UnimplementedMsgServer) RemoveValidator(ctx context.Context, req *MsgRemoveValidator) (*MsgRemoveValidatorResponse, error)
- func (*UnimplementedMsgServer) RevokeNode(ctx context.Context, req *MsgRevokeNode) (*MsgRevokeNodeResponse, error)
- func (*UnimplementedMsgServer) UpdateValidator(ctx context.Context, req *MsgUpdateValidator) (*MsgUpdateValidatorResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Node(ctx context.Context, req *QueryNodeRequest) (*QueryNodeResponse, error)
- func (*UnimplementedQueryServer) Nodes(ctx context.Context, req *QueryNodesRequest) (*QueryNodesResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) Validator(ctx context.Context, req *QueryValidatorRequest) (*QueryValidatorResponse, error)
- func (*UnimplementedQueryServer) Validators(ctx context.Context, req *QueryValidatorsRequest) (*QueryValidatorsResponse, error)
- type Validator
- func (v Validator) ConsPubKey() (pk cryptotypes.PubKey, err error)
- func (*Validator) Descriptor() ([]byte, []int)
- func (this *Validator) Equal(that interface{}) bool
- func (v Validator) GetBondedTokens() sdk.Int
- func (v Validator) GetCommission() sdk.Dec
- func (v Validator) GetConsAddr() (sdk.ConsAddress, error)
- func (v Validator) GetConsensusPower(_ sdk.Int) int64
- func (v Validator) GetDelegatorShares() sdk.Dec
- func (v Validator) GetMinSelfDelegation() sdk.Int
- func (v Validator) GetMoniker() string
- func (v Validator) GetOperator() sdk.ValAddress
- func (v Validator) GetStatus() stakingtypes.BondStatus
- func (v Validator) GetTokens() sdk.Int
- func (v Validator) IsBonded() bool
- func (v Validator) IsJailed() bool
- func (v Validator) IsUnbonded() bool
- func (v Validator) IsUnbonding() bool
- func (m *Validator) Marshal() (dAtA []byte, err error)
- func (m *Validator) MarshalTo(dAtA []byte) (int, error)
- func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Validator) ProtoMessage()
- func (m *Validator) Reset()
- func (v Validator) SharesFromTokens(amt sdk.Int) (sdk.Dec, error)
- func (v Validator) SharesFromTokensTruncated(amt sdk.Int) (sdk.Dec, error)
- func (m *Validator) Size() (n int)
- func (m *Validator) String() string
- func (v Validator) TmConsPublicKey() (tmprotocrypto.PublicKey, error)
- func (v Validator) TokensFromShares(dec sdk.Dec) sdk.Dec
- func (v Validator) TokensFromSharesRoundUp(dec sdk.Dec) sdk.Dec
- func (v Validator) TokensFromSharesTruncated(dec sdk.Dec) sdk.Dec
- func (m *Validator) Unmarshal(dAtA []byte) error
- func (m *Validator) XXX_DiscardUnknown()
- func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Validator) XXX_Merge(src proto.Message)
- func (m *Validator) XXX_Size() int
- func (m *Validator) XXX_Unmarshal(b []byte) error
- type Validators
Constants ¶
const ( EventTypeCreateValidator = "create_validator" EventTypeUpdateValidator = "update_validator" EventTypeRemoveValidator = "remove_validator" EventTypeGrantNode = "grant_node" EventTypeRevokeNode = "revoke_node" AttributeValueCategory = ModuleName AttributeKeyValidator = "validator" AttributeKeyPubkey = "pubkey" AttributeKeyID = "id" )
node module event types
const ( // ModuleName is the name of the node module ModuleName = "node" // StoreKey is the string store representation StoreKey = ModuleName // QuerierRoute is the querier route for the node module QuerierRoute = ModuleName // RouterKey is the msg router key for the node module RouterKey = ModuleName )
const ( TypeMsgCreateValidator = "create_validator" // type for MsgCreateValidator TypeMsgUpdateValidator = "update_validator" // type for MsgUpdateValidator TypeMsgRemoveValidator = "remove_validator" // type for MsgRemoveValidator TypeMsgGrantNode = "grant_node" // type for MsgGrantNode TypeMsgRevokeNode = "revoke_node" // type for MsgRevokeNode )
Node message types and params
const ( QueryValidators = "validators" QueryValidator = "validator" QueryNode = "node" // query node QueryNodes = "nodes" // query nodes QueryParameters = "parameters" )
query endpoints supported by the validator Querier
const ( // DefaultHistorical entries is 100. Apps that don't use IBC can ignore this // value by not adding the staking module to the application module manager's // SetOrderBeginBlockers. DefaultHistoricalEntries uint32 = 100 )
validator params default values
const DoNotModifyDesc = "[do-not-modify]"
DoNotModifyDesc used in flags to indicate that description field should not be updated
Variables ¶
var ( ErrInvalidRootCert = sdkerrors.Register(ModuleName, 2, "invalid root certificate") ErrValidatorNameExists = sdkerrors.Register(ModuleName, 3, "validator already exist for this validator name; must use new validator name") ErrValidatorPubkeyExists = sdkerrors.Register(ModuleName, 4, "validator already exist for this validator pubkey; must use new validator pubkey") ErrUnknownValidator = sdkerrors.Register(ModuleName, 5, "unknown validator") ErrInvalidCert = sdkerrors.Register(ModuleName, 6, "invalid certificate") ErrInvalidNodeID = sdkerrors.Register(ModuleName, 7, "invalid node ID") ErrNodeExists = sdkerrors.Register(ModuleName, 8, "node already exists") ErrUnknownNode = sdkerrors.Register(ModuleName, 9, "unknown node") ErrInvalidValidatorID = sdkerrors.Register(ModuleName, 10, "invalid validator id") )
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 ( // Keys for store prefixes RootCertKey = []byte{0x01} // prefix for root cert certificate ValidatorsKey = []byte{0x02} // prefix for each key to a validator id ValidatorsNameKey = []byte{0x03} // prefix for each key to a validator name ValidatorsByConsAddrKey = []byte{0x04} // prefix for each key to a validator index, by consensus addr ValidatorsUpdateQueueKey = []byte{0x05} // prefix for each key of a validator to be updated HistoricalInfoKey = []byte{0x06} // prefix for each key of a validator to be updated NodeKey = []byte{0x07} // prefix for node )
var ( ErrInvalidLengthNode = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowNode = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupNode = 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 ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
KeyHistoricalEntries = []byte("HistoricalEntries")
)
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func GetHistoricalInfoKey ¶
GetHistoricalInfoKey gets the key for the historical info
func GetNodeKey ¶
GetNodeKey gets the key for the node of the specified id VALUE: Node
func GetValidatorConsAddrKey ¶
func GetValidatorConsAddrKey(addr sdk.ConsAddress) []byte
GetValidatorConsAddrKey gets the key for the validator with cons address
func GetValidatorIDKey ¶
GetValidatorIDKey gets the key for the validator with id
func GetValidatorNameKey ¶
GetValidatorNameKey gets the key for the validator with name
func GetValidatorUpdateQueueKey ¶
GetValidatorUpdateQueueKey gets the key for the validator update queue
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary interfaces and concrete types on the provided Amino codec. These types are used for Amino JSON serialization.
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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func ValidateCertificate ¶
ValidateCertificate validates the node certificate
func ValidateOperator ¶
ValidateOperator validates the operator
Types ¶
type GenesisState ¶
type GenesisState struct { RootCert string `protobuf:"bytes,1,opt,name=root_cert,json=rootCert,proto3" json:"root_cert,omitempty" yaml:"root_cert"` Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` Validators []Validator `protobuf:"bytes,3,rep,name=validators,proto3" json:"validators"` Nodes []Node `protobuf:"bytes,4,rep,name=nodes,proto3" json:"nodes"` }
GenesisState defines the node module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState gets the raw genesis raw message for testing
func GetGenesisStateFromAppState ¶
func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) GenesisState
GetGenesisStateFromAppState returns modules/validator GenesisState given raw application genesis state.
func NewGenesisState ¶
func NewGenesisState(rootCert string, params Params, validators []Validator, nodes []Node) *GenesisState
NewGenesisState creates a new GenesisState instance
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetNodes ¶
func (m *GenesisState) GetNodes() []Node
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetRootCert ¶
func (m *GenesisState) GetRootCert() string
func (*GenesisState) GetValidators ¶
func (m *GenesisState) GetValidators() []Validator
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) 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 HistoricalInfo ¶
type HistoricalInfo struct { Header types.Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header"` Valset []Validator `protobuf:"bytes,2,rep,name=valset,proto3" json:"valset"` }
HistoricalInfo contains the historical information that gets stored at each height.
func NewHistoricalInfo ¶
func NewHistoricalInfo(header tmproto.Header, valSet Validators) HistoricalInfo
NewHistoricalInfo will create a historical information struct from header and valset it will first sort valset before inclusion into historical info
func (*HistoricalInfo) Descriptor ¶
func (*HistoricalInfo) Descriptor() ([]byte, []int)
func (*HistoricalInfo) Marshal ¶
func (m *HistoricalInfo) Marshal() (dAtA []byte, err error)
func (*HistoricalInfo) MarshalToSizedBuffer ¶
func (m *HistoricalInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HistoricalInfo) ProtoMessage ¶
func (*HistoricalInfo) ProtoMessage()
func (*HistoricalInfo) Reset ¶
func (m *HistoricalInfo) Reset()
func (*HistoricalInfo) Size ¶
func (m *HistoricalInfo) Size() (n int)
func (*HistoricalInfo) String ¶
func (m *HistoricalInfo) String() string
func (*HistoricalInfo) Unmarshal ¶
func (m *HistoricalInfo) Unmarshal(dAtA []byte) error
func (*HistoricalInfo) XXX_DiscardUnknown ¶
func (m *HistoricalInfo) XXX_DiscardUnknown()
func (*HistoricalInfo) XXX_Marshal ¶
func (m *HistoricalInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HistoricalInfo) XXX_Merge ¶
func (m *HistoricalInfo) XXX_Merge(src proto.Message)
func (*HistoricalInfo) XXX_Size ¶
func (m *HistoricalInfo) XXX_Size() int
func (*HistoricalInfo) XXX_Unmarshal ¶
func (m *HistoricalInfo) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // CreateValidator defines a method for creating a validator. CreateValidator(ctx context.Context, in *MsgCreateValidator, opts ...grpc.CallOption) (*MsgCreateValidatorResponse, error) // UpdateValidator defines a method for updating a validator. UpdateValidator(ctx context.Context, in *MsgUpdateValidator, opts ...grpc.CallOption) (*MsgUpdateValidatorResponse, error) // RemoveValidator defines a method for removing a validator. RemoveValidator(ctx context.Context, in *MsgRemoveValidator, opts ...grpc.CallOption) (*MsgRemoveValidatorResponse, error) // GrantNode defines a method for granting a node access. GrantNode(ctx context.Context, in *MsgGrantNode, opts ...grpc.CallOption) (*MsgGrantNodeResponse, error) // RevokeNode defines a method for revoking access from a node. RevokeNode(ctx context.Context, in *MsgRevokeNode, opts ...grpc.CallOption) (*MsgRevokeNodeResponse, 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 MsgCreateValidator ¶
type MsgCreateValidator struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Certificate string `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` Power int64 `protobuf:"varint,3,opt,name=power,proto3" json:"power,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Operator string `protobuf:"bytes,5,opt,name=operator,proto3" json:"operator,omitempty" yaml:"operator"` }
MsgCreateValidator defines an SDK message for creating a new validator.
func NewMsgCreateValidator ¶
func NewMsgCreateValidator( name, description string, cert string, power int64, operator sdk.AccAddress, ) *MsgCreateValidator
NewMsgCreateValidator creates a new MsgCreateValidator instance.
func (*MsgCreateValidator) Descriptor ¶
func (*MsgCreateValidator) Descriptor() ([]byte, []int)
func (*MsgCreateValidator) Equal ¶
func (this *MsgCreateValidator) Equal(that interface{}) bool
func (MsgCreateValidator) GetSignBytes ¶
func (m MsgCreateValidator) GetSignBytes() []byte
GetSignBytes implement sdk.Msg
func (MsgCreateValidator) GetSigners ¶
func (m MsgCreateValidator) GetSigners() []sdk.AccAddress
GetSigners implement sdk.Msg
func (*MsgCreateValidator) Marshal ¶
func (m *MsgCreateValidator) Marshal() (dAtA []byte, err error)
func (*MsgCreateValidator) MarshalTo ¶
func (m *MsgCreateValidator) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateValidator) MarshalToSizedBuffer ¶
func (m *MsgCreateValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateValidator) ProtoMessage ¶
func (*MsgCreateValidator) ProtoMessage()
func (*MsgCreateValidator) Reset ¶
func (m *MsgCreateValidator) Reset()
func (MsgCreateValidator) Route ¶
func (m MsgCreateValidator) Route() string
Route implement sdk.Msg
func (*MsgCreateValidator) Size ¶
func (m *MsgCreateValidator) Size() (n int)
func (*MsgCreateValidator) String ¶
func (m *MsgCreateValidator) String() string
func (*MsgCreateValidator) Unmarshal ¶
func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error
func (MsgCreateValidator) ValidateBasic ¶
func (m MsgCreateValidator) ValidateBasic() error
ValidateBasic implement sdk.Msg
func (*MsgCreateValidator) XXX_DiscardUnknown ¶
func (m *MsgCreateValidator) XXX_DiscardUnknown()
func (*MsgCreateValidator) XXX_Marshal ¶
func (m *MsgCreateValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateValidator) XXX_Merge ¶
func (m *MsgCreateValidator) XXX_Merge(src proto.Message)
func (*MsgCreateValidator) XXX_Size ¶
func (m *MsgCreateValidator) XXX_Size() int
func (*MsgCreateValidator) XXX_Unmarshal ¶
func (m *MsgCreateValidator) XXX_Unmarshal(b []byte) error
type MsgCreateValidatorResponse ¶
type MsgCreateValidatorResponse struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
MsgCreateValidatorResponse defines the Msg/CreateValidator response type.
func (*MsgCreateValidatorResponse) Descriptor ¶
func (*MsgCreateValidatorResponse) Descriptor() ([]byte, []int)
func (*MsgCreateValidatorResponse) Equal ¶
func (this *MsgCreateValidatorResponse) Equal(that interface{}) bool
func (*MsgCreateValidatorResponse) Marshal ¶
func (m *MsgCreateValidatorResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateValidatorResponse) MarshalTo ¶
func (m *MsgCreateValidatorResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateValidatorResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateValidatorResponse) ProtoMessage ¶
func (*MsgCreateValidatorResponse) ProtoMessage()
func (*MsgCreateValidatorResponse) Reset ¶
func (m *MsgCreateValidatorResponse) Reset()
func (*MsgCreateValidatorResponse) Size ¶
func (m *MsgCreateValidatorResponse) Size() (n int)
func (*MsgCreateValidatorResponse) String ¶
func (m *MsgCreateValidatorResponse) String() string
func (*MsgCreateValidatorResponse) Unmarshal ¶
func (m *MsgCreateValidatorResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateValidatorResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateValidatorResponse) XXX_DiscardUnknown()
func (*MsgCreateValidatorResponse) XXX_Marshal ¶
func (m *MsgCreateValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateValidatorResponse) XXX_Merge ¶
func (m *MsgCreateValidatorResponse) XXX_Merge(src proto.Message)
func (*MsgCreateValidatorResponse) XXX_Size ¶
func (m *MsgCreateValidatorResponse) XXX_Size() int
func (*MsgCreateValidatorResponse) XXX_Unmarshal ¶
func (m *MsgCreateValidatorResponse) XXX_Unmarshal(b []byte) error
type MsgGrantNode ¶
type MsgGrantNode struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Certificate string `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` }
MsgGrantNode defines a message to grant a node access
func NewMsgGrantNode ¶
func NewMsgGrantNode( name string, cert string, operator sdk.AccAddress, ) *MsgGrantNode
NewMsgGrantNode creates a new MsgGrantNode instance
func (*MsgGrantNode) Descriptor ¶
func (*MsgGrantNode) Descriptor() ([]byte, []int)
func (*MsgGrantNode) Equal ¶
func (this *MsgGrantNode) Equal(that interface{}) bool
func (MsgGrantNode) GetSignBytes ¶
func (msg MsgGrantNode) GetSignBytes() []byte
GetSignBytes implements Msg
func (MsgGrantNode) GetSigners ¶
func (msg MsgGrantNode) GetSigners() []sdk.AccAddress
GetSigners implements Msg
func (*MsgGrantNode) Marshal ¶
func (m *MsgGrantNode) Marshal() (dAtA []byte, err error)
func (*MsgGrantNode) MarshalToSizedBuffer ¶
func (m *MsgGrantNode) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGrantNode) ProtoMessage ¶
func (*MsgGrantNode) ProtoMessage()
func (*MsgGrantNode) Reset ¶
func (m *MsgGrantNode) Reset()
func (*MsgGrantNode) Size ¶
func (m *MsgGrantNode) Size() (n int)
func (*MsgGrantNode) String ¶
func (m *MsgGrantNode) String() string
func (*MsgGrantNode) Unmarshal ¶
func (m *MsgGrantNode) Unmarshal(dAtA []byte) error
func (MsgGrantNode) ValidateBasic ¶
func (msg MsgGrantNode) ValidateBasic() error
ValidateBasic implements Msg
func (*MsgGrantNode) XXX_DiscardUnknown ¶
func (m *MsgGrantNode) XXX_DiscardUnknown()
func (*MsgGrantNode) XXX_Marshal ¶
func (m *MsgGrantNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGrantNode) XXX_Merge ¶
func (m *MsgGrantNode) XXX_Merge(src proto.Message)
func (*MsgGrantNode) XXX_Size ¶
func (m *MsgGrantNode) XXX_Size() int
func (*MsgGrantNode) XXX_Unmarshal ¶
func (m *MsgGrantNode) XXX_Unmarshal(b []byte) error
type MsgGrantNodeResponse ¶
type MsgGrantNodeResponse struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
MsgGrantNodeResponse defines the Msg/GrantNode response type.
func (*MsgGrantNodeResponse) Descriptor ¶
func (*MsgGrantNodeResponse) Descriptor() ([]byte, []int)
func (*MsgGrantNodeResponse) Equal ¶
func (this *MsgGrantNodeResponse) Equal(that interface{}) bool
func (*MsgGrantNodeResponse) Marshal ¶
func (m *MsgGrantNodeResponse) Marshal() (dAtA []byte, err error)
func (*MsgGrantNodeResponse) MarshalTo ¶
func (m *MsgGrantNodeResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgGrantNodeResponse) MarshalToSizedBuffer ¶
func (m *MsgGrantNodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGrantNodeResponse) ProtoMessage ¶
func (*MsgGrantNodeResponse) ProtoMessage()
func (*MsgGrantNodeResponse) Reset ¶
func (m *MsgGrantNodeResponse) Reset()
func (*MsgGrantNodeResponse) Size ¶
func (m *MsgGrantNodeResponse) Size() (n int)
func (*MsgGrantNodeResponse) String ¶
func (m *MsgGrantNodeResponse) String() string
func (*MsgGrantNodeResponse) Unmarshal ¶
func (m *MsgGrantNodeResponse) Unmarshal(dAtA []byte) error
func (*MsgGrantNodeResponse) XXX_DiscardUnknown ¶
func (m *MsgGrantNodeResponse) XXX_DiscardUnknown()
func (*MsgGrantNodeResponse) XXX_Marshal ¶
func (m *MsgGrantNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGrantNodeResponse) XXX_Merge ¶
func (m *MsgGrantNodeResponse) XXX_Merge(src proto.Message)
func (*MsgGrantNodeResponse) XXX_Size ¶
func (m *MsgGrantNodeResponse) XXX_Size() int
func (*MsgGrantNodeResponse) XXX_Unmarshal ¶
func (m *MsgGrantNodeResponse) XXX_Unmarshal(b []byte) error
type MsgRemoveValidator ¶
type MsgRemoveValidator struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` }
MsgRemoveValidator defines an SDK message for removing an existing validator.
func NewMsgRemoveValidator ¶
func NewMsgRemoveValidator(id tmbytes.HexBytes, operator sdk.AccAddress) *MsgRemoveValidator
NewMsgRemoveValidator creates a new MsgRemoveValidator instance.
func (*MsgRemoveValidator) Descriptor ¶
func (*MsgRemoveValidator) Descriptor() ([]byte, []int)
func (*MsgRemoveValidator) Equal ¶
func (this *MsgRemoveValidator) Equal(that interface{}) bool
func (MsgRemoveValidator) GetSignBytes ¶
func (m MsgRemoveValidator) GetSignBytes() []byte
GetSignBytes implement sdk.Msg
func (MsgRemoveValidator) GetSigners ¶
func (m MsgRemoveValidator) GetSigners() []sdk.AccAddress
GetSigners implement sdk.Msg
func (*MsgRemoveValidator) Marshal ¶
func (m *MsgRemoveValidator) Marshal() (dAtA []byte, err error)
func (*MsgRemoveValidator) MarshalTo ¶
func (m *MsgRemoveValidator) MarshalTo(dAtA []byte) (int, error)
func (*MsgRemoveValidator) MarshalToSizedBuffer ¶
func (m *MsgRemoveValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRemoveValidator) ProtoMessage ¶
func (*MsgRemoveValidator) ProtoMessage()
func (*MsgRemoveValidator) Reset ¶
func (m *MsgRemoveValidator) Reset()
func (MsgRemoveValidator) Route ¶
func (m MsgRemoveValidator) Route() string
Route implement sdk.Msg
func (*MsgRemoveValidator) Size ¶
func (m *MsgRemoveValidator) Size() (n int)
func (*MsgRemoveValidator) String ¶
func (m *MsgRemoveValidator) String() string
func (*MsgRemoveValidator) Unmarshal ¶
func (m *MsgRemoveValidator) Unmarshal(dAtA []byte) error
func (MsgRemoveValidator) ValidateBasic ¶
func (m MsgRemoveValidator) ValidateBasic() error
ValidateBasic implement sdk.Msg
func (*MsgRemoveValidator) XXX_DiscardUnknown ¶
func (m *MsgRemoveValidator) XXX_DiscardUnknown()
func (*MsgRemoveValidator) XXX_Marshal ¶
func (m *MsgRemoveValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRemoveValidator) XXX_Merge ¶
func (m *MsgRemoveValidator) XXX_Merge(src proto.Message)
func (*MsgRemoveValidator) XXX_Size ¶
func (m *MsgRemoveValidator) XXX_Size() int
func (*MsgRemoveValidator) XXX_Unmarshal ¶
func (m *MsgRemoveValidator) XXX_Unmarshal(b []byte) error
type MsgRemoveValidatorResponse ¶
type MsgRemoveValidatorResponse struct { }
MsgRemoveValidatorResponse defines the Msg/RemoveValidator response type.
func (*MsgRemoveValidatorResponse) Descriptor ¶
func (*MsgRemoveValidatorResponse) Descriptor() ([]byte, []int)
func (*MsgRemoveValidatorResponse) Marshal ¶
func (m *MsgRemoveValidatorResponse) Marshal() (dAtA []byte, err error)
func (*MsgRemoveValidatorResponse) MarshalTo ¶
func (m *MsgRemoveValidatorResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRemoveValidatorResponse) MarshalToSizedBuffer ¶
func (m *MsgRemoveValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRemoveValidatorResponse) ProtoMessage ¶
func (*MsgRemoveValidatorResponse) ProtoMessage()
func (*MsgRemoveValidatorResponse) Reset ¶
func (m *MsgRemoveValidatorResponse) Reset()
func (*MsgRemoveValidatorResponse) Size ¶
func (m *MsgRemoveValidatorResponse) Size() (n int)
func (*MsgRemoveValidatorResponse) String ¶
func (m *MsgRemoveValidatorResponse) String() string
func (*MsgRemoveValidatorResponse) Unmarshal ¶
func (m *MsgRemoveValidatorResponse) Unmarshal(dAtA []byte) error
func (*MsgRemoveValidatorResponse) XXX_DiscardUnknown ¶
func (m *MsgRemoveValidatorResponse) XXX_DiscardUnknown()
func (*MsgRemoveValidatorResponse) XXX_Marshal ¶
func (m *MsgRemoveValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRemoveValidatorResponse) XXX_Merge ¶
func (m *MsgRemoveValidatorResponse) XXX_Merge(src proto.Message)
func (*MsgRemoveValidatorResponse) XXX_Size ¶
func (m *MsgRemoveValidatorResponse) XXX_Size() int
func (*MsgRemoveValidatorResponse) XXX_Unmarshal ¶
func (m *MsgRemoveValidatorResponse) XXX_Unmarshal(b []byte) error
type MsgRevokeNode ¶
type MsgRevokeNode struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` }
MsgRevokeNode defines a message to revoke access from a node
func NewMsgRevokeNode ¶
func NewMsgRevokeNode( id tmbytes.HexBytes, operator sdk.AccAddress, ) *MsgRevokeNode
NewMsgRevokeNode creates a new MsgRevokeNode instance
func (*MsgRevokeNode) Descriptor ¶
func (*MsgRevokeNode) Descriptor() ([]byte, []int)
func (*MsgRevokeNode) Equal ¶
func (this *MsgRevokeNode) Equal(that interface{}) bool
func (MsgRevokeNode) GetSignBytes ¶
func (msg MsgRevokeNode) GetSignBytes() []byte
GetSignBytes implements Msg.
func (MsgRevokeNode) GetSigners ¶
func (msg MsgRevokeNode) GetSigners() []sdk.AccAddress
GetSigners implements Msg.
func (*MsgRevokeNode) Marshal ¶
func (m *MsgRevokeNode) Marshal() (dAtA []byte, err error)
func (*MsgRevokeNode) MarshalToSizedBuffer ¶
func (m *MsgRevokeNode) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRevokeNode) ProtoMessage ¶
func (*MsgRevokeNode) ProtoMessage()
func (*MsgRevokeNode) Reset ¶
func (m *MsgRevokeNode) Reset()
func (*MsgRevokeNode) Size ¶
func (m *MsgRevokeNode) Size() (n int)
func (*MsgRevokeNode) String ¶
func (m *MsgRevokeNode) String() string
func (*MsgRevokeNode) Unmarshal ¶
func (m *MsgRevokeNode) Unmarshal(dAtA []byte) error
func (MsgRevokeNode) ValidateBasic ¶
func (msg MsgRevokeNode) ValidateBasic() error
ValidateBasic implements Msg.
func (*MsgRevokeNode) XXX_DiscardUnknown ¶
func (m *MsgRevokeNode) XXX_DiscardUnknown()
func (*MsgRevokeNode) XXX_Marshal ¶
func (m *MsgRevokeNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRevokeNode) XXX_Merge ¶
func (m *MsgRevokeNode) XXX_Merge(src proto.Message)
func (*MsgRevokeNode) XXX_Size ¶
func (m *MsgRevokeNode) XXX_Size() int
func (*MsgRevokeNode) XXX_Unmarshal ¶
func (m *MsgRevokeNode) XXX_Unmarshal(b []byte) error
type MsgRevokeNodeResponse ¶
type MsgRevokeNodeResponse struct { }
MsgRevokeNodeResponse defines the Msg/RevokeNode response type.
func (*MsgRevokeNodeResponse) Descriptor ¶
func (*MsgRevokeNodeResponse) Descriptor() ([]byte, []int)
func (*MsgRevokeNodeResponse) Marshal ¶
func (m *MsgRevokeNodeResponse) Marshal() (dAtA []byte, err error)
func (*MsgRevokeNodeResponse) MarshalTo ¶
func (m *MsgRevokeNodeResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRevokeNodeResponse) MarshalToSizedBuffer ¶
func (m *MsgRevokeNodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRevokeNodeResponse) ProtoMessage ¶
func (*MsgRevokeNodeResponse) ProtoMessage()
func (*MsgRevokeNodeResponse) Reset ¶
func (m *MsgRevokeNodeResponse) Reset()
func (*MsgRevokeNodeResponse) Size ¶
func (m *MsgRevokeNodeResponse) Size() (n int)
func (*MsgRevokeNodeResponse) String ¶
func (m *MsgRevokeNodeResponse) String() string
func (*MsgRevokeNodeResponse) Unmarshal ¶
func (m *MsgRevokeNodeResponse) Unmarshal(dAtA []byte) error
func (*MsgRevokeNodeResponse) XXX_DiscardUnknown ¶
func (m *MsgRevokeNodeResponse) XXX_DiscardUnknown()
func (*MsgRevokeNodeResponse) XXX_Marshal ¶
func (m *MsgRevokeNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRevokeNodeResponse) XXX_Merge ¶
func (m *MsgRevokeNodeResponse) XXX_Merge(src proto.Message)
func (*MsgRevokeNodeResponse) XXX_Size ¶
func (m *MsgRevokeNodeResponse) XXX_Size() int
func (*MsgRevokeNodeResponse) XXX_Unmarshal ¶
func (m *MsgRevokeNodeResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // CreateValidator defines a method for creating a validator. CreateValidator(context.Context, *MsgCreateValidator) (*MsgCreateValidatorResponse, error) // UpdateValidator defines a method for updating a validator. UpdateValidator(context.Context, *MsgUpdateValidator) (*MsgUpdateValidatorResponse, error) // RemoveValidator defines a method for removing a validator. RemoveValidator(context.Context, *MsgRemoveValidator) (*MsgRemoveValidatorResponse, error) // GrantNode defines a method for granting a node access. GrantNode(context.Context, *MsgGrantNode) (*MsgGrantNodeResponse, error) // RevokeNode defines a method for revoking access from a node. RevokeNode(context.Context, *MsgRevokeNode) (*MsgRevokeNodeResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateValidator ¶
type MsgUpdateValidator struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Certificate string `protobuf:"bytes,3,opt,name=certificate,proto3" json:"certificate,omitempty"` Power int64 `protobuf:"varint,4,opt,name=power,proto3" json:"power,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` Operator string `protobuf:"bytes,6,opt,name=operator,proto3" json:"operator,omitempty"` }
MsgUpdateValidator defines an SDK message for updating an existing validator.
func NewMsgUpdateValidator ¶
func NewMsgUpdateValidator( id tmbytes.HexBytes, name, description string, cert string, power int64, operator sdk.AccAddress, ) *MsgUpdateValidator
NewMsgUpdateValidator creates a new MsgUpdateValidator instance.
func (*MsgUpdateValidator) Descriptor ¶
func (*MsgUpdateValidator) Descriptor() ([]byte, []int)
func (*MsgUpdateValidator) Equal ¶
func (this *MsgUpdateValidator) Equal(that interface{}) bool
func (MsgUpdateValidator) GetSignBytes ¶
func (m MsgUpdateValidator) GetSignBytes() []byte
GetSignBytes implement sdk.Msg
func (MsgUpdateValidator) GetSigners ¶
func (m MsgUpdateValidator) GetSigners() []sdk.AccAddress
GetSigners implement sdk.Msg
func (*MsgUpdateValidator) Marshal ¶
func (m *MsgUpdateValidator) Marshal() (dAtA []byte, err error)
func (*MsgUpdateValidator) MarshalTo ¶
func (m *MsgUpdateValidator) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateValidator) MarshalToSizedBuffer ¶
func (m *MsgUpdateValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateValidator) ProtoMessage ¶
func (*MsgUpdateValidator) ProtoMessage()
func (*MsgUpdateValidator) Reset ¶
func (m *MsgUpdateValidator) Reset()
func (MsgUpdateValidator) Route ¶
func (m MsgUpdateValidator) Route() string
Route implement sdk.Msg
func (*MsgUpdateValidator) Size ¶
func (m *MsgUpdateValidator) Size() (n int)
func (*MsgUpdateValidator) String ¶
func (m *MsgUpdateValidator) String() string
func (*MsgUpdateValidator) Unmarshal ¶
func (m *MsgUpdateValidator) Unmarshal(dAtA []byte) error
func (MsgUpdateValidator) ValidateBasic ¶
func (m MsgUpdateValidator) ValidateBasic() error
ValidateBasic implement sdk.Msg
func (*MsgUpdateValidator) XXX_DiscardUnknown ¶
func (m *MsgUpdateValidator) XXX_DiscardUnknown()
func (*MsgUpdateValidator) XXX_Marshal ¶
func (m *MsgUpdateValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateValidator) XXX_Merge ¶
func (m *MsgUpdateValidator) XXX_Merge(src proto.Message)
func (*MsgUpdateValidator) XXX_Size ¶
func (m *MsgUpdateValidator) XXX_Size() int
func (*MsgUpdateValidator) XXX_Unmarshal ¶
func (m *MsgUpdateValidator) XXX_Unmarshal(b []byte) error
type MsgUpdateValidatorResponse ¶
type MsgUpdateValidatorResponse struct { }
MsgUpdateValidatorResponse defines the Msg/UpdateValidator response type.
func (*MsgUpdateValidatorResponse) Descriptor ¶
func (*MsgUpdateValidatorResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateValidatorResponse) Marshal ¶
func (m *MsgUpdateValidatorResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateValidatorResponse) MarshalTo ¶
func (m *MsgUpdateValidatorResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateValidatorResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateValidatorResponse) ProtoMessage ¶
func (*MsgUpdateValidatorResponse) ProtoMessage()
func (*MsgUpdateValidatorResponse) Reset ¶
func (m *MsgUpdateValidatorResponse) Reset()
func (*MsgUpdateValidatorResponse) Size ¶
func (m *MsgUpdateValidatorResponse) Size() (n int)
func (*MsgUpdateValidatorResponse) String ¶
func (m *MsgUpdateValidatorResponse) String() string
func (*MsgUpdateValidatorResponse) Unmarshal ¶
func (m *MsgUpdateValidatorResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateValidatorResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateValidatorResponse) XXX_DiscardUnknown()
func (*MsgUpdateValidatorResponse) XXX_Marshal ¶
func (m *MsgUpdateValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateValidatorResponse) XXX_Merge ¶
func (m *MsgUpdateValidatorResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateValidatorResponse) XXX_Size ¶
func (m *MsgUpdateValidatorResponse) XXX_Size() int
func (*MsgUpdateValidatorResponse) XXX_Unmarshal ¶
func (m *MsgUpdateValidatorResponse) XXX_Unmarshal(b []byte) error
type Node ¶
type Node struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Certificate string `protobuf:"bytes,3,opt,name=certificate,proto3" json:"certificate,omitempty"` }
Node defines a struct to represent a node identity
func (*Node) Descriptor ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) XXX_DiscardUnknown ¶
func (m *Node) XXX_DiscardUnknown()
func (*Node) XXX_Unmarshal ¶
type Params ¶
type Params struct {
HistoricalEntries uint32 `` /* 139-byte string literal not displayed */
}
Params defines the parameters for the node module.
func MustUnmarshalParams ¶
func MustUnmarshalParams(cdc *codec.LegacyAmino, value []byte) Params
unmarshal the current staking params value from store key or panic
func UnmarshalParams ¶
func UnmarshalParams(cdc *codec.LegacyAmino, value []byte) (params Params, err error)
unmarshal the current staking params value from store key
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
Implements 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 QueryClient ¶
type QueryClient interface { // Validator queries the validator by the given id Validator(ctx context.Context, in *QueryValidatorRequest, opts ...grpc.CallOption) (*QueryValidatorResponse, error) // Validators queries the validators Validators(ctx context.Context, in *QueryValidatorsRequest, opts ...grpc.CallOption) (*QueryValidatorsResponse, error) // Node queries the node by the given id Node(ctx context.Context, in *QueryNodeRequest, opts ...grpc.CallOption) (*QueryNodeResponse, error) // Nodes queries the nodes Nodes(ctx context.Context, in *QueryNodesRequest, opts ...grpc.CallOption) (*QueryNodesResponse, error) // Params queries the parameters of the node module Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 QueryNodeParams ¶
type QueryNodeParams struct {
ID string
}
QueryNodeParams defines the params to query a node
type QueryNodeRequest ¶
type QueryNodeRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
QueryNodeRequest is the request type for the Query/Node RPC method
func (*QueryNodeRequest) Descriptor ¶
func (*QueryNodeRequest) Descriptor() ([]byte, []int)
func (*QueryNodeRequest) GetId ¶
func (m *QueryNodeRequest) GetId() string
func (*QueryNodeRequest) Marshal ¶
func (m *QueryNodeRequest) Marshal() (dAtA []byte, err error)
func (*QueryNodeRequest) MarshalToSizedBuffer ¶
func (m *QueryNodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNodeRequest) ProtoMessage ¶
func (*QueryNodeRequest) ProtoMessage()
func (*QueryNodeRequest) Reset ¶
func (m *QueryNodeRequest) Reset()
func (*QueryNodeRequest) Size ¶
func (m *QueryNodeRequest) Size() (n int)
func (*QueryNodeRequest) String ¶
func (m *QueryNodeRequest) String() string
func (*QueryNodeRequest) Unmarshal ¶
func (m *QueryNodeRequest) Unmarshal(dAtA []byte) error
func (*QueryNodeRequest) XXX_DiscardUnknown ¶
func (m *QueryNodeRequest) XXX_DiscardUnknown()
func (*QueryNodeRequest) XXX_Marshal ¶
func (m *QueryNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNodeRequest) XXX_Merge ¶
func (m *QueryNodeRequest) XXX_Merge(src proto.Message)
func (*QueryNodeRequest) XXX_Size ¶
func (m *QueryNodeRequest) XXX_Size() int
func (*QueryNodeRequest) XXX_Unmarshal ¶
func (m *QueryNodeRequest) XXX_Unmarshal(b []byte) error
type QueryNodeResponse ¶
type QueryNodeResponse struct {
Node *Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
}
QueryNodeResponse is the response type for the Query/Node RPC method
func (*QueryNodeResponse) Descriptor ¶
func (*QueryNodeResponse) Descriptor() ([]byte, []int)
func (*QueryNodeResponse) GetNode ¶
func (m *QueryNodeResponse) GetNode() *Node
func (*QueryNodeResponse) Marshal ¶
func (m *QueryNodeResponse) Marshal() (dAtA []byte, err error)
func (*QueryNodeResponse) MarshalTo ¶
func (m *QueryNodeResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryNodeResponse) MarshalToSizedBuffer ¶
func (m *QueryNodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNodeResponse) ProtoMessage ¶
func (*QueryNodeResponse) ProtoMessage()
func (*QueryNodeResponse) Reset ¶
func (m *QueryNodeResponse) Reset()
func (*QueryNodeResponse) Size ¶
func (m *QueryNodeResponse) Size() (n int)
func (*QueryNodeResponse) String ¶
func (m *QueryNodeResponse) String() string
func (*QueryNodeResponse) Unmarshal ¶
func (m *QueryNodeResponse) Unmarshal(dAtA []byte) error
func (*QueryNodeResponse) XXX_DiscardUnknown ¶
func (m *QueryNodeResponse) XXX_DiscardUnknown()
func (*QueryNodeResponse) XXX_Marshal ¶
func (m *QueryNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNodeResponse) XXX_Merge ¶
func (m *QueryNodeResponse) XXX_Merge(src proto.Message)
func (*QueryNodeResponse) XXX_Size ¶
func (m *QueryNodeResponse) XXX_Size() int
func (*QueryNodeResponse) XXX_Unmarshal ¶
func (m *QueryNodeResponse) XXX_Unmarshal(b []byte) error
type QueryNodesParams ¶
QueryNodesParams defines the params to query nodes
type QueryNodesRequest ¶
type QueryNodesRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryNodesRequest is the request type for the Query/Nodes RPC method
func (*QueryNodesRequest) Descriptor ¶
func (*QueryNodesRequest) Descriptor() ([]byte, []int)
func (*QueryNodesRequest) GetPagination ¶
func (m *QueryNodesRequest) GetPagination() *query.PageRequest
func (*QueryNodesRequest) Marshal ¶
func (m *QueryNodesRequest) Marshal() (dAtA []byte, err error)
func (*QueryNodesRequest) MarshalTo ¶
func (m *QueryNodesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryNodesRequest) MarshalToSizedBuffer ¶
func (m *QueryNodesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNodesRequest) ProtoMessage ¶
func (*QueryNodesRequest) ProtoMessage()
func (*QueryNodesRequest) Reset ¶
func (m *QueryNodesRequest) Reset()
func (*QueryNodesRequest) Size ¶
func (m *QueryNodesRequest) Size() (n int)
func (*QueryNodesRequest) String ¶
func (m *QueryNodesRequest) String() string
func (*QueryNodesRequest) Unmarshal ¶
func (m *QueryNodesRequest) Unmarshal(dAtA []byte) error
func (*QueryNodesRequest) XXX_DiscardUnknown ¶
func (m *QueryNodesRequest) XXX_DiscardUnknown()
func (*QueryNodesRequest) XXX_Marshal ¶
func (m *QueryNodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNodesRequest) XXX_Merge ¶
func (m *QueryNodesRequest) XXX_Merge(src proto.Message)
func (*QueryNodesRequest) XXX_Size ¶
func (m *QueryNodesRequest) XXX_Size() int
func (*QueryNodesRequest) XXX_Unmarshal ¶
func (m *QueryNodesRequest) XXX_Unmarshal(b []byte) error
type QueryNodesResponse ¶
type QueryNodesResponse struct { Nodes []Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryNodesResponse is the response type for the Query/Nodes RPC method
func (*QueryNodesResponse) Descriptor ¶
func (*QueryNodesResponse) Descriptor() ([]byte, []int)
func (*QueryNodesResponse) GetNodes ¶
func (m *QueryNodesResponse) GetNodes() []Node
func (*QueryNodesResponse) GetPagination ¶
func (m *QueryNodesResponse) GetPagination() *query.PageResponse
func (*QueryNodesResponse) Marshal ¶
func (m *QueryNodesResponse) Marshal() (dAtA []byte, err error)
func (*QueryNodesResponse) MarshalTo ¶
func (m *QueryNodesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryNodesResponse) MarshalToSizedBuffer ¶
func (m *QueryNodesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNodesResponse) ProtoMessage ¶
func (*QueryNodesResponse) ProtoMessage()
func (*QueryNodesResponse) Reset ¶
func (m *QueryNodesResponse) Reset()
func (*QueryNodesResponse) Size ¶
func (m *QueryNodesResponse) Size() (n int)
func (*QueryNodesResponse) String ¶
func (m *QueryNodesResponse) String() string
func (*QueryNodesResponse) Unmarshal ¶
func (m *QueryNodesResponse) Unmarshal(dAtA []byte) error
func (*QueryNodesResponse) XXX_DiscardUnknown ¶
func (m *QueryNodesResponse) XXX_DiscardUnknown()
func (*QueryNodesResponse) XXX_Marshal ¶
func (m *QueryNodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNodesResponse) XXX_Merge ¶
func (m *QueryNodesResponse) XXX_Merge(src proto.Message)
func (*QueryNodesResponse) XXX_Size ¶
func (m *QueryNodesResponse) XXX_Size() int
func (*QueryNodesResponse) XXX_Unmarshal ¶
func (m *QueryNodesResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is the request type for the 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 Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse is the response type for the 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 QueryServer ¶
type QueryServer interface { // Validator queries the validator by the given id Validator(context.Context, *QueryValidatorRequest) (*QueryValidatorResponse, error) // Validators queries the validators Validators(context.Context, *QueryValidatorsRequest) (*QueryValidatorsResponse, error) // Node queries the node by the given id Node(context.Context, *QueryNodeRequest) (*QueryNodeResponse, error) // Nodes queries the nodes Nodes(context.Context, *QueryNodesRequest) (*QueryNodesResponse, error) // Params queries the parameters of the node module Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServer is the server API for Query service.
type QueryValidatorParams ¶
type QueryValidatorParams struct {
ID string
}
func NewQueryValidatorParams ¶
func NewQueryValidatorParams(id string) QueryValidatorParams
type QueryValidatorRequest ¶
type QueryValidatorRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
QueryValidatorRequest is the request type for the Query/Validator RPC method
func (*QueryValidatorRequest) Descriptor ¶
func (*QueryValidatorRequest) Descriptor() ([]byte, []int)
func (*QueryValidatorRequest) GetId ¶
func (m *QueryValidatorRequest) GetId() string
func (*QueryValidatorRequest) Marshal ¶
func (m *QueryValidatorRequest) Marshal() (dAtA []byte, err error)
func (*QueryValidatorRequest) MarshalTo ¶
func (m *QueryValidatorRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryValidatorRequest) MarshalToSizedBuffer ¶
func (m *QueryValidatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryValidatorRequest) ProtoMessage ¶
func (*QueryValidatorRequest) ProtoMessage()
func (*QueryValidatorRequest) Reset ¶
func (m *QueryValidatorRequest) Reset()
func (*QueryValidatorRequest) Size ¶
func (m *QueryValidatorRequest) Size() (n int)
func (*QueryValidatorRequest) String ¶
func (m *QueryValidatorRequest) String() string
func (*QueryValidatorRequest) Unmarshal ¶
func (m *QueryValidatorRequest) Unmarshal(dAtA []byte) error
func (*QueryValidatorRequest) XXX_DiscardUnknown ¶
func (m *QueryValidatorRequest) XXX_DiscardUnknown()
func (*QueryValidatorRequest) XXX_Marshal ¶
func (m *QueryValidatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryValidatorRequest) XXX_Merge ¶
func (m *QueryValidatorRequest) XXX_Merge(src proto.Message)
func (*QueryValidatorRequest) XXX_Size ¶
func (m *QueryValidatorRequest) XXX_Size() int
func (*QueryValidatorRequest) XXX_Unmarshal ¶
func (m *QueryValidatorRequest) XXX_Unmarshal(b []byte) error
type QueryValidatorResponse ¶
type QueryValidatorResponse struct {
Validator *Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
}
QueryValidatorResponse is the response type for the Query/Validator RPC method
func (*QueryValidatorResponse) Descriptor ¶
func (*QueryValidatorResponse) Descriptor() ([]byte, []int)
func (*QueryValidatorResponse) GetValidator ¶
func (m *QueryValidatorResponse) GetValidator() *Validator
func (*QueryValidatorResponse) Marshal ¶
func (m *QueryValidatorResponse) Marshal() (dAtA []byte, err error)
func (*QueryValidatorResponse) MarshalTo ¶
func (m *QueryValidatorResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryValidatorResponse) MarshalToSizedBuffer ¶
func (m *QueryValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryValidatorResponse) ProtoMessage ¶
func (*QueryValidatorResponse) ProtoMessage()
func (*QueryValidatorResponse) Reset ¶
func (m *QueryValidatorResponse) Reset()
func (*QueryValidatorResponse) Size ¶
func (m *QueryValidatorResponse) Size() (n int)
func (*QueryValidatorResponse) String ¶
func (m *QueryValidatorResponse) String() string
func (*QueryValidatorResponse) Unmarshal ¶
func (m *QueryValidatorResponse) Unmarshal(dAtA []byte) error
func (*QueryValidatorResponse) XXX_DiscardUnknown ¶
func (m *QueryValidatorResponse) XXX_DiscardUnknown()
func (*QueryValidatorResponse) XXX_Marshal ¶
func (m *QueryValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryValidatorResponse) XXX_Merge ¶
func (m *QueryValidatorResponse) XXX_Merge(src proto.Message)
func (*QueryValidatorResponse) XXX_Size ¶
func (m *QueryValidatorResponse) XXX_Size() int
func (*QueryValidatorResponse) XXX_Unmarshal ¶
func (m *QueryValidatorResponse) XXX_Unmarshal(b []byte) error
type QueryValidatorsParams ¶
func NewQueryValidatorsParams ¶
func NewQueryValidatorsParams(page, limit int, jailed string) QueryValidatorsParams
type QueryValidatorsRequest ¶
type QueryValidatorsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryValidatorsRequest is the request type for the Query/Validators RPC method
func (*QueryValidatorsRequest) Descriptor ¶
func (*QueryValidatorsRequest) Descriptor() ([]byte, []int)
func (*QueryValidatorsRequest) GetPagination ¶
func (m *QueryValidatorsRequest) GetPagination() *query.PageRequest
func (*QueryValidatorsRequest) Marshal ¶
func (m *QueryValidatorsRequest) Marshal() (dAtA []byte, err error)
func (*QueryValidatorsRequest) MarshalTo ¶
func (m *QueryValidatorsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryValidatorsRequest) MarshalToSizedBuffer ¶
func (m *QueryValidatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryValidatorsRequest) ProtoMessage ¶
func (*QueryValidatorsRequest) ProtoMessage()
func (*QueryValidatorsRequest) Reset ¶
func (m *QueryValidatorsRequest) Reset()
func (*QueryValidatorsRequest) Size ¶
func (m *QueryValidatorsRequest) Size() (n int)
func (*QueryValidatorsRequest) String ¶
func (m *QueryValidatorsRequest) String() string
func (*QueryValidatorsRequest) Unmarshal ¶
func (m *QueryValidatorsRequest) Unmarshal(dAtA []byte) error
func (*QueryValidatorsRequest) XXX_DiscardUnknown ¶
func (m *QueryValidatorsRequest) XXX_DiscardUnknown()
func (*QueryValidatorsRequest) XXX_Marshal ¶
func (m *QueryValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryValidatorsRequest) XXX_Merge ¶
func (m *QueryValidatorsRequest) XXX_Merge(src proto.Message)
func (*QueryValidatorsRequest) XXX_Size ¶
func (m *QueryValidatorsRequest) XXX_Size() int
func (*QueryValidatorsRequest) XXX_Unmarshal ¶
func (m *QueryValidatorsRequest) XXX_Unmarshal(b []byte) error
type QueryValidatorsResponse ¶
type QueryValidatorsResponse struct { Validators []Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryValidatorsResponse is the response type for the Query/Validators RPC method
func (*QueryValidatorsResponse) Descriptor ¶
func (*QueryValidatorsResponse) Descriptor() ([]byte, []int)
func (*QueryValidatorsResponse) GetPagination ¶
func (m *QueryValidatorsResponse) GetPagination() *query.PageResponse
func (*QueryValidatorsResponse) GetValidators ¶
func (m *QueryValidatorsResponse) GetValidators() []Validator
func (*QueryValidatorsResponse) Marshal ¶
func (m *QueryValidatorsResponse) Marshal() (dAtA []byte, err error)
func (*QueryValidatorsResponse) MarshalTo ¶
func (m *QueryValidatorsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryValidatorsResponse) MarshalToSizedBuffer ¶
func (m *QueryValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryValidatorsResponse) ProtoMessage ¶
func (*QueryValidatorsResponse) ProtoMessage()
func (*QueryValidatorsResponse) Reset ¶
func (m *QueryValidatorsResponse) Reset()
func (*QueryValidatorsResponse) Size ¶
func (m *QueryValidatorsResponse) Size() (n int)
func (*QueryValidatorsResponse) String ¶
func (m *QueryValidatorsResponse) String() string
func (*QueryValidatorsResponse) Unmarshal ¶
func (m *QueryValidatorsResponse) Unmarshal(dAtA []byte) error
func (*QueryValidatorsResponse) XXX_DiscardUnknown ¶
func (m *QueryValidatorsResponse) XXX_DiscardUnknown()
func (*QueryValidatorsResponse) XXX_Marshal ¶
func (m *QueryValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryValidatorsResponse) XXX_Merge ¶
func (m *QueryValidatorsResponse) XXX_Merge(src proto.Message)
func (*QueryValidatorsResponse) XXX_Size ¶
func (m *QueryValidatorsResponse) XXX_Size() int
func (*QueryValidatorsResponse) XXX_Unmarshal ¶
func (m *QueryValidatorsResponse) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CreateValidator ¶
func (*UnimplementedMsgServer) CreateValidator(ctx context.Context, req *MsgCreateValidator) (*MsgCreateValidatorResponse, error)
func (*UnimplementedMsgServer) GrantNode ¶
func (*UnimplementedMsgServer) GrantNode(ctx context.Context, req *MsgGrantNode) (*MsgGrantNodeResponse, error)
func (*UnimplementedMsgServer) RemoveValidator ¶
func (*UnimplementedMsgServer) RemoveValidator(ctx context.Context, req *MsgRemoveValidator) (*MsgRemoveValidatorResponse, error)
func (*UnimplementedMsgServer) RevokeNode ¶
func (*UnimplementedMsgServer) RevokeNode(ctx context.Context, req *MsgRevokeNode) (*MsgRevokeNodeResponse, error)
func (*UnimplementedMsgServer) UpdateValidator ¶
func (*UnimplementedMsgServer) UpdateValidator(ctx context.Context, req *MsgUpdateValidator) (*MsgUpdateValidatorResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Node ¶
func (*UnimplementedQueryServer) Node(ctx context.Context, req *QueryNodeRequest) (*QueryNodeResponse, error)
func (*UnimplementedQueryServer) Nodes ¶
func (*UnimplementedQueryServer) Nodes(ctx context.Context, req *QueryNodesRequest) (*QueryNodesResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Validator ¶
func (*UnimplementedQueryServer) Validator(ctx context.Context, req *QueryValidatorRequest) (*QueryValidatorResponse, error)
func (*UnimplementedQueryServer) Validators ¶
func (*UnimplementedQueryServer) Validators(ctx context.Context, req *QueryValidatorsRequest) (*QueryValidatorsResponse, error)
type Validator ¶
type Validator struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Pubkey string `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"` Certificate string `protobuf:"bytes,4,opt,name=certificate,proto3" json:"certificate,omitempty"` Power int64 `protobuf:"varint,5,opt,name=power,proto3" json:"power,omitempty"` Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` Jailed bool `protobuf:"varint,7,opt,name=jailed,proto3" json:"jailed,omitempty"` Operator string `protobuf:"bytes,8,opt,name=operator,proto3" json:"operator,omitempty"` }
Request defines a standard for validator. The validator will participate the blockchain consensus, power determines the probability of proposing a new block.
func NewValidator ¶
func NewValidator( id tmbytes.HexBytes, name string, description string, pubKey cryptotypes.PubKey, cert string, power int64, operator sdk.AccAddress, ) Validator
NewValidator creates a new MsgCreateValidator instance.
func (Validator) ConsPubKey ¶
func (v Validator) ConsPubKey() (pk cryptotypes.PubKey, err error)
ConsPubKey returns the validator PubKey as a cryptotypes.PubKey.
func (*Validator) Descriptor ¶
func (Validator) GetBondedTokens ¶
GetBondedTokens implement ValidatorI
func (Validator) GetCommission ¶
GetCommission implement ValidatorI
func (Validator) GetConsAddr ¶
func (v Validator) GetConsAddr() (sdk.ConsAddress, error)
GetConsAddr implement ValidatorI
func (Validator) GetConsensusPower ¶
GetConsensusPower implement ValidatorI
func (Validator) GetDelegatorShares ¶
GetDelegatorShares implement ValidatorI
func (Validator) GetMinSelfDelegation ¶
GetMinSelfDelegation implement ValidatorI
func (Validator) GetMoniker ¶
GetMoniker implement ValidatorI
func (Validator) GetOperator ¶
func (v Validator) GetOperator() sdk.ValAddress
GetOperator implement ValidatorI
func (Validator) GetStatus ¶
func (v Validator) GetStatus() stakingtypes.BondStatus
GetStatus implement ValidatorI
func (Validator) IsUnbonding ¶
IsUnbonding implement ValidatorI
func (*Validator) MarshalToSizedBuffer ¶
func (*Validator) ProtoMessage ¶
func (*Validator) ProtoMessage()
func (Validator) SharesFromTokens ¶
SharesFromTokens implement ValidatorI
func (Validator) SharesFromTokensTruncated ¶
SharesFromTokensTruncated implement ValidatorI
func (Validator) TmConsPublicKey ¶
func (v Validator) TmConsPublicKey() (tmprotocrypto.PublicKey, error)
TmConsPublicKey casts Validator.ConsensusPubkey to tmprotocrypto.PubKey.
func (Validator) TokensFromShares ¶
TokensFromShares implement ValidatorI
func (Validator) TokensFromSharesRoundUp ¶
TokensFromSharesRoundUp implement ValidatorI
func (Validator) TokensFromSharesTruncated ¶
TokensFromSharesTruncated implement ValidatorI
func (*Validator) XXX_DiscardUnknown ¶
func (m *Validator) XXX_DiscardUnknown()
func (*Validator) XXX_Marshal ¶
func (*Validator) XXX_Unmarshal ¶
type Validators ¶
type Validators []Validator
Validators is a collection of Validator
func (Validators) Sort ¶
func (v Validators) Sort()
Sort Validators sorts validator array in ascending operator address order