Documentation ¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetNodes() []*Node
- func (x *GenesisState) GetParams() *Params
- func (x *GenesisState) GetRootCert() string
- func (x *GenesisState) GetValidators() []*Validator
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type HistoricalInfo
- func (*HistoricalInfo) Descriptor() ([]byte, []int)deprecated
- func (x *HistoricalInfo) GetHeader() *types.Header
- func (x *HistoricalInfo) GetValset() []*Validator
- func (*HistoricalInfo) ProtoMessage()
- func (x *HistoricalInfo) ProtoReflect() protoreflect.Message
- func (x *HistoricalInfo) Reset()
- func (x *HistoricalInfo) String() string
- type MsgClient
- type MsgCreateValidator
- func (*MsgCreateValidator) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCreateValidator) GetCertificate() string
- func (x *MsgCreateValidator) GetDescription() string
- func (x *MsgCreateValidator) GetName() string
- func (x *MsgCreateValidator) GetOperator() string
- func (x *MsgCreateValidator) GetPower() int64
- func (*MsgCreateValidator) ProtoMessage()
- func (x *MsgCreateValidator) ProtoReflect() protoreflect.Message
- func (x *MsgCreateValidator) Reset()
- func (x *MsgCreateValidator) String() string
- type MsgCreateValidatorResponse
- func (*MsgCreateValidatorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCreateValidatorResponse) GetId() string
- func (*MsgCreateValidatorResponse) ProtoMessage()
- func (x *MsgCreateValidatorResponse) ProtoReflect() protoreflect.Message
- func (x *MsgCreateValidatorResponse) Reset()
- func (x *MsgCreateValidatorResponse) String() string
- type MsgGrantNode
- func (*MsgGrantNode) Descriptor() ([]byte, []int)deprecated
- func (x *MsgGrantNode) GetCertificate() string
- func (x *MsgGrantNode) GetName() string
- func (x *MsgGrantNode) GetOperator() string
- func (*MsgGrantNode) ProtoMessage()
- func (x *MsgGrantNode) ProtoReflect() protoreflect.Message
- func (x *MsgGrantNode) Reset()
- func (x *MsgGrantNode) String() string
- type MsgGrantNodeResponse
- func (*MsgGrantNodeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgGrantNodeResponse) GetId() string
- func (*MsgGrantNodeResponse) ProtoMessage()
- func (x *MsgGrantNodeResponse) ProtoReflect() protoreflect.Message
- func (x *MsgGrantNodeResponse) Reset()
- func (x *MsgGrantNodeResponse) String() string
- type MsgRemoveValidator
- func (*MsgRemoveValidator) Descriptor() ([]byte, []int)deprecated
- func (x *MsgRemoveValidator) GetId() string
- func (x *MsgRemoveValidator) GetOperator() string
- func (*MsgRemoveValidator) ProtoMessage()
- func (x *MsgRemoveValidator) ProtoReflect() protoreflect.Message
- func (x *MsgRemoveValidator) Reset()
- func (x *MsgRemoveValidator) String() string
- type MsgRemoveValidatorResponse
- type MsgRevokeNode
- func (*MsgRevokeNode) Descriptor() ([]byte, []int)deprecated
- func (x *MsgRevokeNode) GetId() string
- func (x *MsgRevokeNode) GetOperator() string
- func (*MsgRevokeNode) ProtoMessage()
- func (x *MsgRevokeNode) ProtoReflect() protoreflect.Message
- func (x *MsgRevokeNode) Reset()
- func (x *MsgRevokeNode) String() string
- type MsgRevokeNodeResponse
- type MsgServer
- type MsgUpdateValidator
- func (*MsgUpdateValidator) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateValidator) GetCertificate() string
- func (x *MsgUpdateValidator) GetDescription() string
- func (x *MsgUpdateValidator) GetId() string
- func (x *MsgUpdateValidator) GetName() string
- func (x *MsgUpdateValidator) GetOperator() string
- func (x *MsgUpdateValidator) GetPower() int64
- func (*MsgUpdateValidator) ProtoMessage()
- func (x *MsgUpdateValidator) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateValidator) Reset()
- func (x *MsgUpdateValidator) String() string
- type MsgUpdateValidatorResponse
- type Node
- type Params
- type QueryClient
- type QueryNodeRequest
- type QueryNodeResponse
- type QueryNodesRequest
- func (*QueryNodesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryNodesRequest) GetPagination() *v1beta1.PageRequest
- func (*QueryNodesRequest) ProtoMessage()
- func (x *QueryNodesRequest) ProtoReflect() protoreflect.Message
- func (x *QueryNodesRequest) Reset()
- func (x *QueryNodesRequest) String() string
- type QueryNodesResponse
- func (*QueryNodesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryNodesResponse) GetNodes() []*Node
- func (x *QueryNodesResponse) GetPagination() *v1beta1.PageResponse
- func (*QueryNodesResponse) ProtoMessage()
- func (x *QueryNodesResponse) ProtoReflect() protoreflect.Message
- func (x *QueryNodesResponse) Reset()
- func (x *QueryNodesResponse) String() string
- type QueryParamsRequest
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryParamsResponse) GetParams() *Params
- func (*QueryParamsResponse) ProtoMessage()
- func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryParamsResponse) Reset()
- func (x *QueryParamsResponse) String() string
- type QueryServer
- type QueryValidatorRequest
- func (*QueryValidatorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryValidatorRequest) GetId() string
- func (*QueryValidatorRequest) ProtoMessage()
- func (x *QueryValidatorRequest) ProtoReflect() protoreflect.Message
- func (x *QueryValidatorRequest) Reset()
- func (x *QueryValidatorRequest) String() string
- type QueryValidatorResponse
- func (*QueryValidatorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryValidatorResponse) GetValidator() *Validator
- func (*QueryValidatorResponse) ProtoMessage()
- func (x *QueryValidatorResponse) ProtoReflect() protoreflect.Message
- func (x *QueryValidatorResponse) Reset()
- func (x *QueryValidatorResponse) String() string
- type QueryValidatorsRequest
- func (*QueryValidatorsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryValidatorsRequest) GetPagination() *v1beta1.PageRequest
- func (*QueryValidatorsRequest) ProtoMessage()
- func (x *QueryValidatorsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryValidatorsRequest) Reset()
- func (x *QueryValidatorsRequest) String() string
- type QueryValidatorsResponse
- func (*QueryValidatorsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryValidatorsResponse) GetPagination() *v1beta1.PageResponse
- func (x *QueryValidatorsResponse) GetValidators() []*Validator
- func (*QueryValidatorsResponse) ProtoMessage()
- func (x *QueryValidatorsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryValidatorsResponse) Reset()
- func (x *QueryValidatorsResponse) String() string
- type UnimplementedMsgServer
- func (UnimplementedMsgServer) CreateValidator(context.Context, *MsgCreateValidator) (*MsgCreateValidatorResponse, error)
- func (UnimplementedMsgServer) GrantNode(context.Context, *MsgGrantNode) (*MsgGrantNodeResponse, error)
- func (UnimplementedMsgServer) RemoveValidator(context.Context, *MsgRemoveValidator) (*MsgRemoveValidatorResponse, error)
- func (UnimplementedMsgServer) RevokeNode(context.Context, *MsgRevokeNode) (*MsgRevokeNodeResponse, error)
- func (UnimplementedMsgServer) UpdateValidator(context.Context, *MsgUpdateValidator) (*MsgUpdateValidatorResponse, error)
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) Node(context.Context, *QueryNodeRequest) (*QueryNodeResponse, error)
- func (UnimplementedQueryServer) Nodes(context.Context, *QueryNodesRequest) (*QueryNodesResponse, error)
- func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
- func (UnimplementedQueryServer) Validator(context.Context, *QueryValidatorRequest) (*QueryValidatorResponse, error)
- func (UnimplementedQueryServer) Validators(context.Context, *QueryValidatorsRequest) (*QueryValidatorsResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
- type Validator
- func (*Validator) Descriptor() ([]byte, []int)deprecated
- func (x *Validator) GetCertificate() string
- func (x *Validator) GetDescription() string
- func (x *Validator) GetId() string
- func (x *Validator) GetJailed() bool
- func (x *Validator) GetName() string
- func (x *Validator) GetOperator() string
- func (x *Validator) GetPower() int64
- func (x *Validator) GetPubkey() string
- func (*Validator) ProtoMessage()
- func (x *Validator) ProtoReflect() protoreflect.Message
- func (x *Validator) Reset()
- func (x *Validator) String() string
Constants ¶
const ( Query_Validator_FullMethodName = "/iritamod.node.Query/Validator" Query_Validators_FullMethodName = "/iritamod.node.Query/Validators" Query_Node_FullMethodName = "/iritamod.node.Query/Node" Query_Nodes_FullMethodName = "/iritamod.node.Query/Nodes" Query_Params_FullMethodName = "/iritamod.node.Query/Params" )
const ( Msg_CreateValidator_FullMethodName = "/iritamod.node.Msg/CreateValidator" Msg_UpdateValidator_FullMethodName = "/iritamod.node.Msg/UpdateValidator" Msg_RemoveValidator_FullMethodName = "/iritamod.node.Msg/RemoveValidator" Msg_GrantNode_FullMethodName = "/iritamod.node.Msg/GrantNode" Msg_RevokeNode_FullMethodName = "/iritamod.node.Msg/RevokeNode" )
Variables ¶
var File_iritamod_node_genesis_proto protoreflect.FileDescriptor
var File_iritamod_node_node_proto protoreflect.FileDescriptor
var File_iritamod_node_query_proto protoreflect.FileDescriptor
var File_iritamod_node_tx_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "iritamod.node.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateValidator", Handler: _Msg_CreateValidator_Handler, }, { MethodName: "UpdateValidator", Handler: _Msg_UpdateValidator_Handler, }, { MethodName: "RemoveValidator", Handler: _Msg_RemoveValidator_Handler, }, { MethodName: "GrantNode", Handler: _Msg_GrantNode_Handler, }, { MethodName: "RevokeNode", Handler: _Msg_RevokeNode_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "iritamod/node/tx.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "iritamod.node.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Validator", Handler: _Query_Validator_Handler, }, { MethodName: "Validators", Handler: _Query_Validators_Handler, }, { MethodName: "Node", Handler: _Query_Node_Handler, }, { MethodName: "Nodes", Handler: _Query_Nodes_Handler, }, { MethodName: "Params", Handler: _Query_Params_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "iritamod/node/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServer ¶
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
type GenesisState ¶
type GenesisState struct { RootCert string `protobuf:"bytes,1,opt,name=root_cert,json=rootCert,proto3" json:"root_cert,omitempty"` Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` Validators []*Validator `protobuf:"bytes,3,rep,name=validators,proto3" json:"validators,omitempty"` Nodes []*Node `protobuf:"bytes,4,rep,name=nodes,proto3" json:"nodes,omitempty"` // contains filtered or unexported fields }
GenesisState defines the node module's genesis state.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetNodes ¶
func (x *GenesisState) GetNodes() []*Node
func (*GenesisState) GetParams ¶
func (x *GenesisState) GetParams() *Params
func (*GenesisState) GetRootCert ¶
func (x *GenesisState) GetRootCert() string
func (*GenesisState) GetValidators ¶
func (x *GenesisState) GetValidators() []*Validator
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) ProtoReflect ¶
func (x *GenesisState) ProtoReflect() protoreflect.Message
func (*GenesisState) Reset ¶
func (x *GenesisState) Reset()
func (*GenesisState) String ¶
func (x *GenesisState) String() string
type HistoricalInfo ¶
type HistoricalInfo struct { Header *types.Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Valset []*Validator `protobuf:"bytes,2,rep,name=valset,proto3" json:"valset,omitempty"` // contains filtered or unexported fields }
HistoricalInfo contains the historical information that gets stored at each height.
func (*HistoricalInfo) Descriptor
deprecated
func (*HistoricalInfo) Descriptor() ([]byte, []int)
Deprecated: Use HistoricalInfo.ProtoReflect.Descriptor instead.
func (*HistoricalInfo) GetHeader ¶
func (x *HistoricalInfo) GetHeader() *types.Header
func (*HistoricalInfo) GetValset ¶
func (x *HistoricalInfo) GetValset() []*Validator
func (*HistoricalInfo) ProtoMessage ¶
func (*HistoricalInfo) ProtoMessage()
func (*HistoricalInfo) ProtoReflect ¶
func (x *HistoricalInfo) ProtoReflect() protoreflect.Message
func (*HistoricalInfo) Reset ¶
func (x *HistoricalInfo) Reset()
func (*HistoricalInfo) String ¶
func (x *HistoricalInfo) String() string
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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) 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"` // contains filtered or unexported fields }
MsgCreateValidator defines an SDK message for creating a new validator.
func (*MsgCreateValidator) Descriptor
deprecated
func (*MsgCreateValidator) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateValidator.ProtoReflect.Descriptor instead.
func (*MsgCreateValidator) GetCertificate ¶
func (x *MsgCreateValidator) GetCertificate() string
func (*MsgCreateValidator) GetDescription ¶
func (x *MsgCreateValidator) GetDescription() string
func (*MsgCreateValidator) GetName ¶
func (x *MsgCreateValidator) GetName() string
func (*MsgCreateValidator) GetOperator ¶
func (x *MsgCreateValidator) GetOperator() string
func (*MsgCreateValidator) GetPower ¶
func (x *MsgCreateValidator) GetPower() int64
func (*MsgCreateValidator) ProtoMessage ¶
func (*MsgCreateValidator) ProtoMessage()
func (*MsgCreateValidator) ProtoReflect ¶
func (x *MsgCreateValidator) ProtoReflect() protoreflect.Message
func (*MsgCreateValidator) Reset ¶
func (x *MsgCreateValidator) Reset()
func (*MsgCreateValidator) String ¶
func (x *MsgCreateValidator) String() string
type MsgCreateValidatorResponse ¶
type MsgCreateValidatorResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
MsgCreateValidatorResponse defines the Msg/CreateValidator response type.
func (*MsgCreateValidatorResponse) Descriptor
deprecated
func (*MsgCreateValidatorResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateValidatorResponse.ProtoReflect.Descriptor instead.
func (*MsgCreateValidatorResponse) GetId ¶
func (x *MsgCreateValidatorResponse) GetId() string
func (*MsgCreateValidatorResponse) ProtoMessage ¶
func (*MsgCreateValidatorResponse) ProtoMessage()
func (*MsgCreateValidatorResponse) ProtoReflect ¶
func (x *MsgCreateValidatorResponse) ProtoReflect() protoreflect.Message
func (*MsgCreateValidatorResponse) Reset ¶
func (x *MsgCreateValidatorResponse) Reset()
func (*MsgCreateValidatorResponse) String ¶
func (x *MsgCreateValidatorResponse) String() string
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"` // contains filtered or unexported fields }
MsgGrantNode defines a message to grant a node access
func (*MsgGrantNode) Descriptor
deprecated
func (*MsgGrantNode) Descriptor() ([]byte, []int)
Deprecated: Use MsgGrantNode.ProtoReflect.Descriptor instead.
func (*MsgGrantNode) GetCertificate ¶
func (x *MsgGrantNode) GetCertificate() string
func (*MsgGrantNode) GetName ¶
func (x *MsgGrantNode) GetName() string
func (*MsgGrantNode) GetOperator ¶
func (x *MsgGrantNode) GetOperator() string
func (*MsgGrantNode) ProtoMessage ¶
func (*MsgGrantNode) ProtoMessage()
func (*MsgGrantNode) ProtoReflect ¶
func (x *MsgGrantNode) ProtoReflect() protoreflect.Message
func (*MsgGrantNode) Reset ¶
func (x *MsgGrantNode) Reset()
func (*MsgGrantNode) String ¶
func (x *MsgGrantNode) String() string
type MsgGrantNodeResponse ¶
type MsgGrantNodeResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
MsgGrantNodeResponse defines the Msg/GrantNode response type.
func (*MsgGrantNodeResponse) Descriptor
deprecated
func (*MsgGrantNodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgGrantNodeResponse.ProtoReflect.Descriptor instead.
func (*MsgGrantNodeResponse) GetId ¶
func (x *MsgGrantNodeResponse) GetId() string
func (*MsgGrantNodeResponse) ProtoMessage ¶
func (*MsgGrantNodeResponse) ProtoMessage()
func (*MsgGrantNodeResponse) ProtoReflect ¶
func (x *MsgGrantNodeResponse) ProtoReflect() protoreflect.Message
func (*MsgGrantNodeResponse) Reset ¶
func (x *MsgGrantNodeResponse) Reset()
func (*MsgGrantNodeResponse) String ¶
func (x *MsgGrantNodeResponse) String() string
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"` // contains filtered or unexported fields }
MsgRemoveValidator defines an SDK message for removing an existing validator.
func (*MsgRemoveValidator) Descriptor
deprecated
func (*MsgRemoveValidator) Descriptor() ([]byte, []int)
Deprecated: Use MsgRemoveValidator.ProtoReflect.Descriptor instead.
func (*MsgRemoveValidator) GetId ¶
func (x *MsgRemoveValidator) GetId() string
func (*MsgRemoveValidator) GetOperator ¶
func (x *MsgRemoveValidator) GetOperator() string
func (*MsgRemoveValidator) ProtoMessage ¶
func (*MsgRemoveValidator) ProtoMessage()
func (*MsgRemoveValidator) ProtoReflect ¶
func (x *MsgRemoveValidator) ProtoReflect() protoreflect.Message
func (*MsgRemoveValidator) Reset ¶
func (x *MsgRemoveValidator) Reset()
func (*MsgRemoveValidator) String ¶
func (x *MsgRemoveValidator) String() string
type MsgRemoveValidatorResponse ¶
type MsgRemoveValidatorResponse struct {
// contains filtered or unexported fields
}
MsgRemoveValidatorResponse defines the Msg/RemoveValidator response type.
func (*MsgRemoveValidatorResponse) Descriptor
deprecated
func (*MsgRemoveValidatorResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgRemoveValidatorResponse.ProtoReflect.Descriptor instead.
func (*MsgRemoveValidatorResponse) ProtoMessage ¶
func (*MsgRemoveValidatorResponse) ProtoMessage()
func (*MsgRemoveValidatorResponse) ProtoReflect ¶
func (x *MsgRemoveValidatorResponse) ProtoReflect() protoreflect.Message
func (*MsgRemoveValidatorResponse) Reset ¶
func (x *MsgRemoveValidatorResponse) Reset()
func (*MsgRemoveValidatorResponse) String ¶
func (x *MsgRemoveValidatorResponse) String() string
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"` // contains filtered or unexported fields }
MsgRevokeNode defines a message to revoke access from a node
func (*MsgRevokeNode) Descriptor
deprecated
func (*MsgRevokeNode) Descriptor() ([]byte, []int)
Deprecated: Use MsgRevokeNode.ProtoReflect.Descriptor instead.
func (*MsgRevokeNode) GetId ¶
func (x *MsgRevokeNode) GetId() string
func (*MsgRevokeNode) GetOperator ¶
func (x *MsgRevokeNode) GetOperator() string
func (*MsgRevokeNode) ProtoMessage ¶
func (*MsgRevokeNode) ProtoMessage()
func (*MsgRevokeNode) ProtoReflect ¶
func (x *MsgRevokeNode) ProtoReflect() protoreflect.Message
func (*MsgRevokeNode) Reset ¶
func (x *MsgRevokeNode) Reset()
func (*MsgRevokeNode) String ¶
func (x *MsgRevokeNode) String() string
type MsgRevokeNodeResponse ¶
type MsgRevokeNodeResponse struct {
// contains filtered or unexported fields
}
MsgRevokeNodeResponse defines the Msg/RevokeNode response type.
func (*MsgRevokeNodeResponse) Descriptor
deprecated
func (*MsgRevokeNodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgRevokeNodeResponse.ProtoReflect.Descriptor instead.
func (*MsgRevokeNodeResponse) ProtoMessage ¶
func (*MsgRevokeNodeResponse) ProtoMessage()
func (*MsgRevokeNodeResponse) ProtoReflect ¶
func (x *MsgRevokeNodeResponse) ProtoReflect() protoreflect.Message
func (*MsgRevokeNodeResponse) Reset ¶
func (x *MsgRevokeNodeResponse) Reset()
func (*MsgRevokeNodeResponse) String ¶
func (x *MsgRevokeNodeResponse) String() string
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) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
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"` // contains filtered or unexported fields }
MsgUpdateValidator defines an SDK message for updating an existing validator.
func (*MsgUpdateValidator) Descriptor
deprecated
func (*MsgUpdateValidator) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateValidator.ProtoReflect.Descriptor instead.
func (*MsgUpdateValidator) GetCertificate ¶
func (x *MsgUpdateValidator) GetCertificate() string
func (*MsgUpdateValidator) GetDescription ¶
func (x *MsgUpdateValidator) GetDescription() string
func (*MsgUpdateValidator) GetId ¶
func (x *MsgUpdateValidator) GetId() string
func (*MsgUpdateValidator) GetName ¶
func (x *MsgUpdateValidator) GetName() string
func (*MsgUpdateValidator) GetOperator ¶
func (x *MsgUpdateValidator) GetOperator() string
func (*MsgUpdateValidator) GetPower ¶
func (x *MsgUpdateValidator) GetPower() int64
func (*MsgUpdateValidator) ProtoMessage ¶
func (*MsgUpdateValidator) ProtoMessage()
func (*MsgUpdateValidator) ProtoReflect ¶
func (x *MsgUpdateValidator) ProtoReflect() protoreflect.Message
func (*MsgUpdateValidator) Reset ¶
func (x *MsgUpdateValidator) Reset()
func (*MsgUpdateValidator) String ¶
func (x *MsgUpdateValidator) String() string
type MsgUpdateValidatorResponse ¶
type MsgUpdateValidatorResponse struct {
// contains filtered or unexported fields
}
MsgUpdateValidatorResponse defines the Msg/UpdateValidator response type.
func (*MsgUpdateValidatorResponse) Descriptor
deprecated
func (*MsgUpdateValidatorResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateValidatorResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateValidatorResponse) ProtoMessage ¶
func (*MsgUpdateValidatorResponse) ProtoMessage()
func (*MsgUpdateValidatorResponse) ProtoReflect ¶
func (x *MsgUpdateValidatorResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateValidatorResponse) Reset ¶
func (x *MsgUpdateValidatorResponse) Reset()
func (*MsgUpdateValidatorResponse) String ¶
func (x *MsgUpdateValidatorResponse) String() string
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"` // contains filtered or unexported fields }
Node defines a struct to represent a node identity
func (*Node) ProtoReflect ¶
func (x *Node) ProtoReflect() protoreflect.Message
type Params ¶
type Params struct { HistoricalEntries uint32 `protobuf:"varint,1,opt,name=historical_entries,json=historicalEntries,proto3" json:"historical_entries,omitempty"` // contains filtered or unexported fields }
Params defines the parameters for the node module.
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryNodeRequest ¶
type QueryNodeRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
QueryNodeRequest is the request type for the Query/Node RPC method
func (*QueryNodeRequest) Descriptor
deprecated
func (*QueryNodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryNodeRequest.ProtoReflect.Descriptor instead.
func (*QueryNodeRequest) GetId ¶
func (x *QueryNodeRequest) GetId() string
func (*QueryNodeRequest) ProtoMessage ¶
func (*QueryNodeRequest) ProtoMessage()
func (*QueryNodeRequest) ProtoReflect ¶
func (x *QueryNodeRequest) ProtoReflect() protoreflect.Message
func (*QueryNodeRequest) Reset ¶
func (x *QueryNodeRequest) Reset()
func (*QueryNodeRequest) String ¶
func (x *QueryNodeRequest) String() string
type QueryNodeResponse ¶
type QueryNodeResponse struct { Node *Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` // contains filtered or unexported fields }
QueryNodeResponse is the response type for the Query/Node RPC method
func (*QueryNodeResponse) Descriptor
deprecated
func (*QueryNodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryNodeResponse.ProtoReflect.Descriptor instead.
func (*QueryNodeResponse) GetNode ¶
func (x *QueryNodeResponse) GetNode() *Node
func (*QueryNodeResponse) ProtoMessage ¶
func (*QueryNodeResponse) ProtoMessage()
func (*QueryNodeResponse) ProtoReflect ¶
func (x *QueryNodeResponse) ProtoReflect() protoreflect.Message
func (*QueryNodeResponse) Reset ¶
func (x *QueryNodeResponse) Reset()
func (*QueryNodeResponse) String ¶
func (x *QueryNodeResponse) String() string
type QueryNodesRequest ¶
type QueryNodesRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryNodesRequest is the request type for the Query/Nodes RPC method
func (*QueryNodesRequest) Descriptor
deprecated
func (*QueryNodesRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryNodesRequest.ProtoReflect.Descriptor instead.
func (*QueryNodesRequest) GetPagination ¶
func (x *QueryNodesRequest) GetPagination() *v1beta1.PageRequest
func (*QueryNodesRequest) ProtoMessage ¶
func (*QueryNodesRequest) ProtoMessage()
func (*QueryNodesRequest) ProtoReflect ¶
func (x *QueryNodesRequest) ProtoReflect() protoreflect.Message
func (*QueryNodesRequest) Reset ¶
func (x *QueryNodesRequest) Reset()
func (*QueryNodesRequest) String ¶
func (x *QueryNodesRequest) String() string
type QueryNodesResponse ¶
type QueryNodesResponse struct { Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryNodesResponse is the response type for the Query/Nodes RPC method
func (*QueryNodesResponse) Descriptor
deprecated
func (*QueryNodesResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryNodesResponse.ProtoReflect.Descriptor instead.
func (*QueryNodesResponse) GetNodes ¶
func (x *QueryNodesResponse) GetNodes() []*Node
func (*QueryNodesResponse) GetPagination ¶
func (x *QueryNodesResponse) GetPagination() *v1beta1.PageResponse
func (*QueryNodesResponse) ProtoMessage ¶
func (*QueryNodesResponse) ProtoMessage()
func (*QueryNodesResponse) ProtoReflect ¶
func (x *QueryNodesResponse) ProtoReflect() protoreflect.Message
func (*QueryNodesResponse) Reset ¶
func (x *QueryNodesResponse) Reset()
func (*QueryNodesResponse) String ¶
func (x *QueryNodesResponse) String() string
type QueryParamsRequest ¶
type QueryParamsRequest struct {
// contains filtered or unexported fields
}
QueryParamsRequest is the request type for the Query/Params RPC method
func (*QueryParamsRequest) Descriptor
deprecated
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) ProtoReflect ¶
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message
func (*QueryParamsRequest) Reset ¶
func (x *QueryParamsRequest) Reset()
func (*QueryParamsRequest) String ¶
func (x *QueryParamsRequest) String() string
type QueryParamsResponse ¶
type QueryParamsResponse struct { Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
QueryParamsResponse is the response type for the Query/Params RPC method
func (*QueryParamsResponse) Descriptor
deprecated
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) GetParams ¶
func (x *QueryParamsResponse) GetParams() *Params
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) ProtoReflect ¶
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
func (*QueryParamsResponse) Reset ¶
func (x *QueryParamsResponse) Reset()
func (*QueryParamsResponse) String ¶
func (x *QueryParamsResponse) String() string
type 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) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type QueryValidatorRequest ¶
type QueryValidatorRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
QueryValidatorRequest is the request type for the Query/Validator RPC method
func (*QueryValidatorRequest) Descriptor
deprecated
func (*QueryValidatorRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryValidatorRequest.ProtoReflect.Descriptor instead.
func (*QueryValidatorRequest) GetId ¶
func (x *QueryValidatorRequest) GetId() string
func (*QueryValidatorRequest) ProtoMessage ¶
func (*QueryValidatorRequest) ProtoMessage()
func (*QueryValidatorRequest) ProtoReflect ¶
func (x *QueryValidatorRequest) ProtoReflect() protoreflect.Message
func (*QueryValidatorRequest) Reset ¶
func (x *QueryValidatorRequest) Reset()
func (*QueryValidatorRequest) String ¶
func (x *QueryValidatorRequest) String() string
type QueryValidatorResponse ¶
type QueryValidatorResponse struct { Validator *Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` // contains filtered or unexported fields }
QueryValidatorResponse is the response type for the Query/Validator RPC method
func (*QueryValidatorResponse) Descriptor
deprecated
func (*QueryValidatorResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryValidatorResponse.ProtoReflect.Descriptor instead.
func (*QueryValidatorResponse) GetValidator ¶
func (x *QueryValidatorResponse) GetValidator() *Validator
func (*QueryValidatorResponse) ProtoMessage ¶
func (*QueryValidatorResponse) ProtoMessage()
func (*QueryValidatorResponse) ProtoReflect ¶
func (x *QueryValidatorResponse) ProtoReflect() protoreflect.Message
func (*QueryValidatorResponse) Reset ¶
func (x *QueryValidatorResponse) Reset()
func (*QueryValidatorResponse) String ¶
func (x *QueryValidatorResponse) String() string
type QueryValidatorsRequest ¶
type QueryValidatorsRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryValidatorsRequest is the request type for the Query/Validators RPC method
func (*QueryValidatorsRequest) Descriptor
deprecated
func (*QueryValidatorsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryValidatorsRequest.ProtoReflect.Descriptor instead.
func (*QueryValidatorsRequest) GetPagination ¶
func (x *QueryValidatorsRequest) GetPagination() *v1beta1.PageRequest
func (*QueryValidatorsRequest) ProtoMessage ¶
func (*QueryValidatorsRequest) ProtoMessage()
func (*QueryValidatorsRequest) ProtoReflect ¶
func (x *QueryValidatorsRequest) ProtoReflect() protoreflect.Message
func (*QueryValidatorsRequest) Reset ¶
func (x *QueryValidatorsRequest) Reset()
func (*QueryValidatorsRequest) String ¶
func (x *QueryValidatorsRequest) String() string
type QueryValidatorsResponse ¶
type QueryValidatorsResponse struct { Validators []*Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryValidatorsResponse is the response type for the Query/Validators RPC method
func (*QueryValidatorsResponse) Descriptor
deprecated
func (*QueryValidatorsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryValidatorsResponse.ProtoReflect.Descriptor instead.
func (*QueryValidatorsResponse) GetPagination ¶
func (x *QueryValidatorsResponse) GetPagination() *v1beta1.PageResponse
func (*QueryValidatorsResponse) GetValidators ¶
func (x *QueryValidatorsResponse) GetValidators() []*Validator
func (*QueryValidatorsResponse) ProtoMessage ¶
func (*QueryValidatorsResponse) ProtoMessage()
func (*QueryValidatorsResponse) ProtoReflect ¶
func (x *QueryValidatorsResponse) ProtoReflect() protoreflect.Message
func (*QueryValidatorsResponse) Reset ¶
func (x *QueryValidatorsResponse) Reset()
func (*QueryValidatorsResponse) String ¶
func (x *QueryValidatorsResponse) String() string
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) CreateValidator ¶
func (UnimplementedMsgServer) CreateValidator(context.Context, *MsgCreateValidator) (*MsgCreateValidatorResponse, error)
func (UnimplementedMsgServer) GrantNode ¶
func (UnimplementedMsgServer) GrantNode(context.Context, *MsgGrantNode) (*MsgGrantNodeResponse, error)
func (UnimplementedMsgServer) RemoveValidator ¶
func (UnimplementedMsgServer) RemoveValidator(context.Context, *MsgRemoveValidator) (*MsgRemoveValidatorResponse, error)
func (UnimplementedMsgServer) RevokeNode ¶
func (UnimplementedMsgServer) RevokeNode(context.Context, *MsgRevokeNode) (*MsgRevokeNodeResponse, error)
func (UnimplementedMsgServer) UpdateValidator ¶
func (UnimplementedMsgServer) UpdateValidator(context.Context, *MsgUpdateValidator) (*MsgUpdateValidatorResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) Node ¶
func (UnimplementedQueryServer) Node(context.Context, *QueryNodeRequest) (*QueryNodeResponse, error)
func (UnimplementedQueryServer) Nodes ¶
func (UnimplementedQueryServer) Nodes(context.Context, *QueryNodesRequest) (*QueryNodesResponse, error)
func (UnimplementedQueryServer) Params ¶
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
func (UnimplementedQueryServer) Validator ¶
func (UnimplementedQueryServer) Validator(context.Context, *QueryValidatorRequest) (*QueryValidatorResponse, error)
func (UnimplementedQueryServer) Validators ¶
func (UnimplementedQueryServer) Validators(context.Context, *QueryValidatorsRequest) (*QueryValidatorsResponse, error)
type UnsafeMsgServer ¶
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.
type 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"` // contains filtered or unexported fields }
Request defines a standard for validator. The validator will participate the blockchain consensus, power determines the probability of proposing a new block.
func (*Validator) ProtoReflect ¶
func (x *Validator) ProtoReflect() protoreflect.Message