Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type Client
- type CreateValidatorRequest
- type GrantNodeRequest
- 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 (m MsgGrantNode) GetSignBytes() []byte
- func (m 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 (m MsgGrantNode) Route() string
- func (m *MsgGrantNode) Size() (n int)
- func (m *MsgGrantNode) String() string
- func (m MsgGrantNode) Type() string
- func (m *MsgGrantNode) Unmarshal(dAtA []byte) error
- func (m 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 (m MsgRevokeNode) GetSignBytes() []byte
- func (m 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 (m MsgRevokeNode) Route() string
- func (m *MsgRevokeNode) Size() (n int)
- func (m *MsgRevokeNode) String() string
- func (m MsgRevokeNode) Type() string
- func (m *MsgRevokeNode) Unmarshal(dAtA []byte) error
- func (m 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 (n Node) Convert() interface{}
- 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 (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 (p Params) Convert() interface{}
- 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 (*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 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 QueryNodeResp
- 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 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 QueryParamsResp
- 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 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 QueryValidatorResp
- 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 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 UpdateValidatorRequest
- type Validator
- func (v Validator) Convert() interface{}
- func (*Validator) Descriptor() ([]byte, []int)
- func (this *Validator) Equal(that interface{}) 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 (m *Validator) Size() (n int)
- func (m *Validator) String() string
- 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
Constants ¶
const CodeSpace = ModuleName
const (
ModuleName = "node"
)
Variables ¶
var ( ErrQueryAddress = sdk.Wrapf(CodeSpace, 1, "query address error") ErrBuildAndSend = sdk.Wrapf(CodeSpace, 2, "BuildAndSend error") ErrValidateBasic = sdk.Wrapf(CodeSpace, 3, "ValidateBasic fail") ErrQueryNode = sdk.Wrapf(CodeSpace, 4, "QueryNode error") ErrGenConn = sdk.Wrapf(CodeSpace, 5, "generate conn error") ErrHex = sdk.Wrapf(CodeSpace, 6, "hex fail") )
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 (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type Client ¶
type Client interface { sdk.Module CreateValidator(request CreateValidatorRequest, baseTx sdk.BaseTx) (sdk.ResultTx, error) UpdateValidator(request UpdateValidatorRequest, baseTx sdk.BaseTx) (sdk.ResultTx, error) RemoveValidator(id string, baseTx sdk.BaseTx) (sdk.ResultTx, error) GrantNode(request GrantNodeRequest, baseTx sdk.BaseTx) (sdk.ResultTx, error) RevokeNode(nodeId string, baseTx sdk.BaseTx) (sdk.ResultTx, error) QueryValidators(pageReq *query.PageRequest) ([]QueryValidatorResp, error) QueryValidator(id string) (QueryValidatorResp, error) QueryNodes(pageReq *query.PageRequest) ([]QueryNodeResp, error) QueryNode(id string) (QueryNodeResp, error) QueryParams() (QueryParamsResp, error) }
expose Record module api for user
type CreateValidatorRequest ¶
type GrantNodeRequest ¶
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 (*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 (*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
func (MsgCreateValidator) GetSigners ¶
func (m MsgCreateValidator) GetSigners() []sdk.AccAddress
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
func (*MsgCreateValidator) Size ¶
func (m *MsgCreateValidator) Size() (n int)
func (*MsgCreateValidator) String ¶
func (m *MsgCreateValidator) String() string
func (MsgCreateValidator) Type ¶
func (m MsgCreateValidator) Type() string
func (*MsgCreateValidator) Unmarshal ¶
func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error
func (MsgCreateValidator) ValidateBasic ¶
func (m MsgCreateValidator) ValidateBasic() error
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 (*MsgGrantNode) Descriptor ¶
func (*MsgGrantNode) Descriptor() ([]byte, []int)
func (*MsgGrantNode) Equal ¶
func (this *MsgGrantNode) Equal(that interface{}) bool
func (MsgGrantNode) GetSignBytes ¶
func (m MsgGrantNode) GetSignBytes() []byte
func (MsgGrantNode) GetSigners ¶
func (m MsgGrantNode) GetSigners() []sdk.AccAddress
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) Route ¶
func (m MsgGrantNode) Route() string
func (*MsgGrantNode) Size ¶
func (m *MsgGrantNode) Size() (n int)
func (*MsgGrantNode) String ¶
func (m *MsgGrantNode) String() string
func (MsgGrantNode) Type ¶
func (m MsgGrantNode) Type() string
func (*MsgGrantNode) Unmarshal ¶
func (m *MsgGrantNode) Unmarshal(dAtA []byte) error
func (MsgGrantNode) ValidateBasic ¶
func (m MsgGrantNode) ValidateBasic() error
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 (*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
func (MsgRemoveValidator) GetSigners ¶
func (m MsgRemoveValidator) GetSigners() []sdk.AccAddress
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
func (*MsgRemoveValidator) Size ¶
func (m *MsgRemoveValidator) Size() (n int)
func (*MsgRemoveValidator) String ¶
func (m *MsgRemoveValidator) String() string
func (MsgRemoveValidator) Type ¶
func (m MsgRemoveValidator) Type() string
func (*MsgRemoveValidator) Unmarshal ¶
func (m *MsgRemoveValidator) Unmarshal(dAtA []byte) error
func (MsgRemoveValidator) ValidateBasic ¶
func (m MsgRemoveValidator) ValidateBasic() error
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 (*MsgRevokeNode) Descriptor ¶
func (*MsgRevokeNode) Descriptor() ([]byte, []int)
func (*MsgRevokeNode) Equal ¶
func (this *MsgRevokeNode) Equal(that interface{}) bool
func (MsgRevokeNode) GetSignBytes ¶
func (m MsgRevokeNode) GetSignBytes() []byte
func (MsgRevokeNode) GetSigners ¶
func (m MsgRevokeNode) GetSigners() []sdk.AccAddress
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) Route ¶
func (m MsgRevokeNode) Route() string
func (*MsgRevokeNode) Size ¶
func (m *MsgRevokeNode) Size() (n int)
func (*MsgRevokeNode) String ¶
func (m *MsgRevokeNode) String() string
func (MsgRevokeNode) Type ¶
func (m MsgRevokeNode) Type() string
func (*MsgRevokeNode) Unmarshal ¶
func (m *MsgRevokeNode) Unmarshal(dAtA []byte) error
func (MsgRevokeNode) ValidateBasic ¶
func (m MsgRevokeNode) ValidateBasic() error
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 (*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
func (MsgUpdateValidator) GetSigners ¶
func (m MsgUpdateValidator) GetSigners() []sdk.AccAddress
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
func (*MsgUpdateValidator) Size ¶
func (m *MsgUpdateValidator) Size() (n int)
func (*MsgUpdateValidator) String ¶
func (m *MsgUpdateValidator) String() string
func (MsgUpdateValidator) Type ¶
func (m MsgUpdateValidator) Type() string
func (*MsgUpdateValidator) Unmarshal ¶
func (m *MsgUpdateValidator) Unmarshal(dAtA []byte) error
func (MsgUpdateValidator) ValidateBasic ¶
func (m MsgUpdateValidator) ValidateBasic() error
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 (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
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 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 QueryNodeResp ¶
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 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 QueryParamsResp ¶
type QueryParamsResp struct {
HistoricalEntries uint32 `json:"historical_entries"`
}
token params
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 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 QueryValidatorResp ¶
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 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 UpdateValidatorRequest ¶
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 (*Validator) Descriptor ¶
func (*Validator) MarshalToSizedBuffer ¶
func (*Validator) ProtoMessage ¶
func (*Validator) ProtoMessage()
func (*Validator) XXX_DiscardUnknown ¶
func (m *Validator) XXX_DiscardUnknown()