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.
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) GetNextOperatorId() uint32
- func (x *GenesisState) GetOperators() []*Operator
- func (x *GenesisState) GetOperatorsParams() []*OperatorParamsRecord
- func (x *GenesisState) GetParams() *Params
- func (x *GenesisState) GetUnbondingOperators() []*UnbondingOperator
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type MsgClient
- type MsgDeactivateOperator
- func (*MsgDeactivateOperator) Descriptor() ([]byte, []int)deprecated
- func (x *MsgDeactivateOperator) GetOperatorId() uint32
- func (x *MsgDeactivateOperator) GetSender() string
- func (*MsgDeactivateOperator) ProtoMessage()
- func (x *MsgDeactivateOperator) ProtoReflect() protoreflect.Message
- func (x *MsgDeactivateOperator) Reset()
- func (x *MsgDeactivateOperator) String() string
- type MsgDeactivateOperatorResponse
- func (*MsgDeactivateOperatorResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgDeactivateOperatorResponse) ProtoMessage()
- func (x *MsgDeactivateOperatorResponse) ProtoReflect() protoreflect.Message
- func (x *MsgDeactivateOperatorResponse) Reset()
- func (x *MsgDeactivateOperatorResponse) String() string
- type MsgDeleteOperator
- func (*MsgDeleteOperator) Descriptor() ([]byte, []int)deprecated
- func (x *MsgDeleteOperator) GetOperatorId() uint32
- func (x *MsgDeleteOperator) GetSender() string
- func (*MsgDeleteOperator) ProtoMessage()
- func (x *MsgDeleteOperator) ProtoReflect() protoreflect.Message
- func (x *MsgDeleteOperator) Reset()
- func (x *MsgDeleteOperator) String() string
- type MsgDeleteOperatorResponse
- type MsgReactivateOperator
- func (*MsgReactivateOperator) Descriptor() ([]byte, []int)deprecated
- func (x *MsgReactivateOperator) GetOperatorId() uint32
- func (x *MsgReactivateOperator) GetSender() string
- func (*MsgReactivateOperator) ProtoMessage()
- func (x *MsgReactivateOperator) ProtoReflect() protoreflect.Message
- func (x *MsgReactivateOperator) Reset()
- func (x *MsgReactivateOperator) String() string
- type MsgReactivateOperatorResponse
- func (*MsgReactivateOperatorResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgReactivateOperatorResponse) ProtoMessage()
- func (x *MsgReactivateOperatorResponse) ProtoReflect() protoreflect.Message
- func (x *MsgReactivateOperatorResponse) Reset()
- func (x *MsgReactivateOperatorResponse) String() string
- type MsgRegisterOperator
- func (*MsgRegisterOperator) Descriptor() ([]byte, []int)deprecated
- func (x *MsgRegisterOperator) GetMoniker() string
- func (x *MsgRegisterOperator) GetPictureUrl() string
- func (x *MsgRegisterOperator) GetSender() string
- func (x *MsgRegisterOperator) GetWebsite() string
- func (*MsgRegisterOperator) ProtoMessage()
- func (x *MsgRegisterOperator) ProtoReflect() protoreflect.Message
- func (x *MsgRegisterOperator) Reset()
- func (x *MsgRegisterOperator) String() string
- type MsgRegisterOperatorResponse
- func (*MsgRegisterOperatorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgRegisterOperatorResponse) GetNewOperatorId() uint32
- func (*MsgRegisterOperatorResponse) ProtoMessage()
- func (x *MsgRegisterOperatorResponse) ProtoReflect() protoreflect.Message
- func (x *MsgRegisterOperatorResponse) Reset()
- func (x *MsgRegisterOperatorResponse) String() string
- type MsgServer
- type MsgSetOperatorParams
- func (*MsgSetOperatorParams) Descriptor() ([]byte, []int)deprecated
- func (x *MsgSetOperatorParams) GetOperatorId() uint32
- func (x *MsgSetOperatorParams) GetParams() *OperatorParams
- func (x *MsgSetOperatorParams) GetSender() string
- func (*MsgSetOperatorParams) ProtoMessage()
- func (x *MsgSetOperatorParams) ProtoReflect() protoreflect.Message
- func (x *MsgSetOperatorParams) Reset()
- func (x *MsgSetOperatorParams) String() string
- type MsgSetOperatorParamsResponse
- func (*MsgSetOperatorParamsResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgSetOperatorParamsResponse) ProtoMessage()
- func (x *MsgSetOperatorParamsResponse) ProtoReflect() protoreflect.Message
- func (x *MsgSetOperatorParamsResponse) Reset()
- func (x *MsgSetOperatorParamsResponse) String() string
- type MsgTransferOperatorOwnership
- func (*MsgTransferOperatorOwnership) Descriptor() ([]byte, []int)deprecated
- func (x *MsgTransferOperatorOwnership) GetNewAdmin() string
- func (x *MsgTransferOperatorOwnership) GetOperatorId() uint32
- func (x *MsgTransferOperatorOwnership) GetSender() string
- func (*MsgTransferOperatorOwnership) ProtoMessage()
- func (x *MsgTransferOperatorOwnership) ProtoReflect() protoreflect.Message
- func (x *MsgTransferOperatorOwnership) Reset()
- func (x *MsgTransferOperatorOwnership) String() string
- type MsgTransferOperatorOwnershipResponse
- func (*MsgTransferOperatorOwnershipResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgTransferOperatorOwnershipResponse) ProtoMessage()
- func (x *MsgTransferOperatorOwnershipResponse) ProtoReflect() protoreflect.Message
- func (x *MsgTransferOperatorOwnershipResponse) Reset()
- func (x *MsgTransferOperatorOwnershipResponse) String() string
- type MsgUpdateOperator
- func (*MsgUpdateOperator) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateOperator) GetMoniker() string
- func (x *MsgUpdateOperator) GetOperatorId() uint32
- func (x *MsgUpdateOperator) GetPictureUrl() string
- func (x *MsgUpdateOperator) GetSender() string
- func (x *MsgUpdateOperator) GetWebsite() string
- func (*MsgUpdateOperator) ProtoMessage()
- func (x *MsgUpdateOperator) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateOperator) Reset()
- func (x *MsgUpdateOperator) String() string
- type MsgUpdateOperatorResponse
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateParams) GetAuthority() string
- func (x *MsgUpdateParams) GetParams() *Params
- func (*MsgUpdateParams) ProtoMessage()
- func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateParams) Reset()
- func (x *MsgUpdateParams) String() string
- type MsgUpdateParamsResponse
- type Operator
- func (*Operator) Descriptor() ([]byte, []int)deprecated
- func (x *Operator) GetAddress() string
- func (x *Operator) GetAdmin() string
- func (x *Operator) GetDelegatorShares() []*v1beta1.DecCoin
- func (x *Operator) GetId() uint32
- func (x *Operator) GetMoniker() string
- func (x *Operator) GetPictureUrl() string
- func (x *Operator) GetStatus() OperatorStatus
- func (x *Operator) GetTokens() []*v1beta1.Coin
- func (x *Operator) GetWebsite() string
- func (*Operator) ProtoMessage()
- func (x *Operator) ProtoReflect() protoreflect.Message
- func (x *Operator) Reset()
- func (x *Operator) String() string
- type OperatorParams
- type OperatorParamsRecord
- func (*OperatorParamsRecord) Descriptor() ([]byte, []int)deprecated
- func (x *OperatorParamsRecord) GetOperatorId() uint32
- func (x *OperatorParamsRecord) GetParams() *OperatorParams
- func (*OperatorParamsRecord) ProtoMessage()
- func (x *OperatorParamsRecord) ProtoReflect() protoreflect.Message
- func (x *OperatorParamsRecord) Reset()
- func (x *OperatorParamsRecord) String() string
- type OperatorStatus
- func (OperatorStatus) Descriptor() protoreflect.EnumDescriptor
- func (x OperatorStatus) Enum() *OperatorStatus
- func (OperatorStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x OperatorStatus) Number() protoreflect.EnumNumber
- func (x OperatorStatus) String() string
- func (OperatorStatus) Type() protoreflect.EnumType
- type Params
- func (*Params) Descriptor() ([]byte, []int)deprecated
- func (x *Params) GetDeactivationTime() int64
- func (x *Params) GetOperatorRegistrationFee() []*v1beta1.Coin
- func (*Params) ProtoMessage()
- func (x *Params) ProtoReflect() protoreflect.Message
- func (x *Params) Reset()
- func (x *Params) String() string
- type QueryClient
- type QueryOperatorParamsRequest
- func (*QueryOperatorParamsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryOperatorParamsRequest) GetOperatorId() uint32
- func (*QueryOperatorParamsRequest) ProtoMessage()
- func (x *QueryOperatorParamsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryOperatorParamsRequest) Reset()
- func (x *QueryOperatorParamsRequest) String() string
- type QueryOperatorParamsResponse
- func (*QueryOperatorParamsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryOperatorParamsResponse) GetOperatorParams() *OperatorParams
- func (*QueryOperatorParamsResponse) ProtoMessage()
- func (x *QueryOperatorParamsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryOperatorParamsResponse) Reset()
- func (x *QueryOperatorParamsResponse) String() string
- type QueryOperatorRequest
- func (*QueryOperatorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryOperatorRequest) GetOperatorId() uint32
- func (*QueryOperatorRequest) ProtoMessage()
- func (x *QueryOperatorRequest) ProtoReflect() protoreflect.Message
- func (x *QueryOperatorRequest) Reset()
- func (x *QueryOperatorRequest) String() string
- type QueryOperatorResponse
- func (*QueryOperatorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryOperatorResponse) GetOperator() *Operator
- func (*QueryOperatorResponse) ProtoMessage()
- func (x *QueryOperatorResponse) ProtoReflect() protoreflect.Message
- func (x *QueryOperatorResponse) Reset()
- func (x *QueryOperatorResponse) String() string
- type QueryOperatorsRequest
- func (*QueryOperatorsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryOperatorsRequest) GetPagination() *v1beta1.PageRequest
- func (*QueryOperatorsRequest) ProtoMessage()
- func (x *QueryOperatorsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryOperatorsRequest) Reset()
- func (x *QueryOperatorsRequest) String() string
- type QueryOperatorsResponse
- func (*QueryOperatorsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryOperatorsResponse) GetOperators() []*Operator
- func (x *QueryOperatorsResponse) GetPagination() *v1beta1.PageResponse
- func (*QueryOperatorsResponse) ProtoMessage()
- func (x *QueryOperatorsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryOperatorsResponse) Reset()
- func (x *QueryOperatorsResponse) 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 UnbondingOperator
- func (*UnbondingOperator) Descriptor() ([]byte, []int)deprecated
- func (x *UnbondingOperator) GetOperatorId() uint32
- func (x *UnbondingOperator) GetUnbondingCompletionTime() *timestamppb.Timestamp
- func (*UnbondingOperator) ProtoMessage()
- func (x *UnbondingOperator) ProtoReflect() protoreflect.Message
- func (x *UnbondingOperator) Reset()
- func (x *UnbondingOperator) String() string
- type UnimplementedMsgServer
- func (UnimplementedMsgServer) DeactivateOperator(context.Context, *MsgDeactivateOperator) (*MsgDeactivateOperatorResponse, error)
- func (UnimplementedMsgServer) DeleteOperator(context.Context, *MsgDeleteOperator) (*MsgDeleteOperatorResponse, error)
- func (UnimplementedMsgServer) ReactivateOperator(context.Context, *MsgReactivateOperator) (*MsgReactivateOperatorResponse, error)
- func (UnimplementedMsgServer) RegisterOperator(context.Context, *MsgRegisterOperator) (*MsgRegisterOperatorResponse, error)
- func (UnimplementedMsgServer) SetOperatorParams(context.Context, *MsgSetOperatorParams) (*MsgSetOperatorParamsResponse, error)
- func (UnimplementedMsgServer) TransferOperatorOwnership(context.Context, *MsgTransferOperatorOwnership) (*MsgTransferOperatorOwnershipResponse, error)
- func (UnimplementedMsgServer) UpdateOperator(context.Context, *MsgUpdateOperator) (*MsgUpdateOperatorResponse, error)
- func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) Operator(context.Context, *QueryOperatorRequest) (*QueryOperatorResponse, error)
- func (UnimplementedQueryServer) OperatorParams(context.Context, *QueryOperatorParamsRequest) (*QueryOperatorParamsResponse, error)
- func (UnimplementedQueryServer) Operators(context.Context, *QueryOperatorsRequest) (*QueryOperatorsResponse, error)
- func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const ( Msg_RegisterOperator_FullMethodName = "/milkyway.operators.v1.Msg/RegisterOperator" Msg_UpdateOperator_FullMethodName = "/milkyway.operators.v1.Msg/UpdateOperator" Msg_DeactivateOperator_FullMethodName = "/milkyway.operators.v1.Msg/DeactivateOperator" Msg_ReactivateOperator_FullMethodName = "/milkyway.operators.v1.Msg/ReactivateOperator" Msg_DeleteOperator_FullMethodName = "/milkyway.operators.v1.Msg/DeleteOperator" Msg_TransferOperatorOwnership_FullMethodName = "/milkyway.operators.v1.Msg/TransferOperatorOwnership" Msg_SetOperatorParams_FullMethodName = "/milkyway.operators.v1.Msg/SetOperatorParams" Msg_UpdateParams_FullMethodName = "/milkyway.operators.v1.Msg/UpdateParams" )
const ( Query_Operator_FullMethodName = "/milkyway.operators.v1.Query/Operator" Query_OperatorParams_FullMethodName = "/milkyway.operators.v1.Query/OperatorParams" Query_Operators_FullMethodName = "/milkyway.operators.v1.Query/Operators" Query_Params_FullMethodName = "/milkyway.operators.v1.Query/Params" )
Variables ¶
var ( OperatorStatus_name = map[int32]string{ 0: "OPERATOR_STATUS_UNSPECIFIED", 1: "OPERATOR_STATUS_ACTIVE", 2: "OPERATOR_STATUS_INACTIVATING", 3: "OPERATOR_STATUS_INACTIVE", } OperatorStatus_value = map[string]int32{ "OPERATOR_STATUS_UNSPECIFIED": 0, "OPERATOR_STATUS_ACTIVE": 1, "OPERATOR_STATUS_INACTIVATING": 2, "OPERATOR_STATUS_INACTIVE": 3, } )
Enum value maps for OperatorStatus.
var File_milkyway_operators_v1_genesis_proto protoreflect.FileDescriptor
var File_milkyway_operators_v1_messages_proto protoreflect.FileDescriptor
var File_milkyway_operators_v1_models_proto protoreflect.FileDescriptor
var File_milkyway_operators_v1_params_proto protoreflect.FileDescriptor
var File_milkyway_operators_v1_query_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "milkyway.operators.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterOperator", Handler: _Msg_RegisterOperator_Handler, }, { MethodName: "UpdateOperator", Handler: _Msg_UpdateOperator_Handler, }, { MethodName: "DeactivateOperator", Handler: _Msg_DeactivateOperator_Handler, }, { MethodName: "ReactivateOperator", Handler: _Msg_ReactivateOperator_Handler, }, { MethodName: "DeleteOperator", Handler: _Msg_DeleteOperator_Handler, }, { MethodName: "TransferOperatorOwnership", Handler: _Msg_TransferOperatorOwnership_Handler, }, { MethodName: "SetOperatorParams", Handler: _Msg_SetOperatorParams_Handler, }, { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "milkyway/operators/v1/messages.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: "milkyway.operators.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Operator", Handler: _Query_Operator_Handler, }, { MethodName: "OperatorParams", Handler: _Query_OperatorParams_Handler, }, { MethodName: "Operators", Handler: _Query_Operators_Handler, }, { MethodName: "Params", Handler: _Query_Params_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "milkyway/operators/v1/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 { // Params defines the parameters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // NextOperatorID defines the ID that will be assigned to the // next operator that gets created. NextOperatorId uint32 `protobuf:"varint,2,opt,name=next_operator_id,json=nextOperatorId,proto3" json:"next_operator_id,omitempty"` // Operators defines the list of operators. Operators []*Operator `protobuf:"bytes,3,rep,name=operators,proto3" json:"operators,omitempty"` // UnbondingOperators defines the list of operators that are currently being // unbonded. UnbondingOperators []*UnbondingOperator `protobuf:"bytes,4,rep,name=unbonding_operators,json=unbondingOperators,proto3" json:"unbonding_operators,omitempty"` // OperatorsParams defines the list of operators params. OperatorsParams []*OperatorParamsRecord `protobuf:"bytes,5,rep,name=operators_params,json=operatorsParams,proto3" json:"operators_params,omitempty"` // contains filtered or unexported fields }
GenesisState defines the operators module's genesis state.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetNextOperatorId ¶
func (x *GenesisState) GetNextOperatorId() uint32
func (*GenesisState) GetOperators ¶
func (x *GenesisState) GetOperators() []*Operator
func (*GenesisState) GetOperatorsParams ¶ added in v1.3.0
func (x *GenesisState) GetOperatorsParams() []*OperatorParamsRecord
func (*GenesisState) GetParams ¶
func (x *GenesisState) GetParams() *Params
func (*GenesisState) GetUnbondingOperators ¶
func (x *GenesisState) GetUnbondingOperators() []*UnbondingOperator
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 MsgClient ¶
type MsgClient interface { // RegisterOperator defines the operation for registering a new operator. RegisterOperator(ctx context.Context, in *MsgRegisterOperator, opts ...grpc.CallOption) (*MsgRegisterOperatorResponse, error) // UpdateOperator defines the operation for updating an operator's details. // The operator owner can update the moniker, website, and picture URL. UpdateOperator(ctx context.Context, in *MsgUpdateOperator, opts ...grpc.CallOption) (*MsgUpdateOperatorResponse, error) // DeactivateOperator defines the operation for deactivating an // operator. Operators will require some time in order to be deactivated. // This time is defined by the governance parameters. DeactivateOperator(ctx context.Context, in *MsgDeactivateOperator, opts ...grpc.CallOption) (*MsgDeactivateOperatorResponse, error) // ReactivateOperator defines the operation for reactivating an // inactive operator. ReactivateOperator(ctx context.Context, in *MsgReactivateOperator, opts ...grpc.CallOption) (*MsgReactivateOperatorResponse, error) // DeleteOperator defines the operation for deleting a deactivated operator. DeleteOperator(ctx context.Context, in *MsgDeleteOperator, opts ...grpc.CallOption) (*MsgDeleteOperatorResponse, error) // TransferOperatorOwnership defines the operation for transferring the // ownership of an operator to another account. TransferOperatorOwnership(ctx context.Context, in *MsgTransferOperatorOwnership, opts ...grpc.CallOption) (*MsgTransferOperatorOwnershipResponse, error) // SetOperatorParams defines the operation for setting a operator's // parameters. SetOperatorParams(ctx context.Context, in *MsgSetOperatorParams, opts ...grpc.CallOption) (*MsgSetOperatorParamsResponse, error) // UpdateParams defines a governance operation for updating the module // parameters. // The authority defaults to the x/gov module account. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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.
Msg defines the avs module's gRPC message service.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgDeactivateOperator ¶
type MsgDeactivateOperator struct { // Sender is the address of the user deactivating the operator Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // OperatorID represents the ID of the operator to be deregistered OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // contains filtered or unexported fields }
MsgDeactivateOperator defines the message structure for the DeactivateOperator gRPC service method. It allows the operator owner to signal that the operator will become inactive. This should be used to signal users that the operator is going to stop performing services and they should switch to another operator.
func (*MsgDeactivateOperator) Descriptor
deprecated
func (*MsgDeactivateOperator) Descriptor() ([]byte, []int)
Deprecated: Use MsgDeactivateOperator.ProtoReflect.Descriptor instead.
func (*MsgDeactivateOperator) GetOperatorId ¶
func (x *MsgDeactivateOperator) GetOperatorId() uint32
func (*MsgDeactivateOperator) GetSender ¶
func (x *MsgDeactivateOperator) GetSender() string
func (*MsgDeactivateOperator) ProtoMessage ¶
func (*MsgDeactivateOperator) ProtoMessage()
func (*MsgDeactivateOperator) ProtoReflect ¶
func (x *MsgDeactivateOperator) ProtoReflect() protoreflect.Message
func (*MsgDeactivateOperator) Reset ¶
func (x *MsgDeactivateOperator) Reset()
func (*MsgDeactivateOperator) String ¶
func (x *MsgDeactivateOperator) String() string
type MsgDeactivateOperatorResponse ¶
type MsgDeactivateOperatorResponse struct {
// contains filtered or unexported fields
}
MsgDeactivateOperatorResponse is the return value of MsgDeactivateOperator.
func (*MsgDeactivateOperatorResponse) Descriptor
deprecated
func (*MsgDeactivateOperatorResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgDeactivateOperatorResponse.ProtoReflect.Descriptor instead.
func (*MsgDeactivateOperatorResponse) ProtoMessage ¶
func (*MsgDeactivateOperatorResponse) ProtoMessage()
func (*MsgDeactivateOperatorResponse) ProtoReflect ¶
func (x *MsgDeactivateOperatorResponse) ProtoReflect() protoreflect.Message
func (*MsgDeactivateOperatorResponse) Reset ¶
func (x *MsgDeactivateOperatorResponse) Reset()
func (*MsgDeactivateOperatorResponse) String ¶
func (x *MsgDeactivateOperatorResponse) String() string
type MsgDeleteOperator ¶ added in v1.3.0
type MsgDeleteOperator struct { // Sender is the address of the user deleting the operator Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // OperatorID represents the ID of the operator to be deleted OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // contains filtered or unexported fields }
MsgDeleteOperator defines the message structure for the DeleteOperator gRPC service method. It allows the operator owner to delete a deactivated operator.
func (*MsgDeleteOperator) Descriptor
deprecated
added in
v1.3.0
func (*MsgDeleteOperator) Descriptor() ([]byte, []int)
Deprecated: Use MsgDeleteOperator.ProtoReflect.Descriptor instead.
func (*MsgDeleteOperator) GetOperatorId ¶ added in v1.3.0
func (x *MsgDeleteOperator) GetOperatorId() uint32
func (*MsgDeleteOperator) GetSender ¶ added in v1.3.0
func (x *MsgDeleteOperator) GetSender() string
func (*MsgDeleteOperator) ProtoMessage ¶ added in v1.3.0
func (*MsgDeleteOperator) ProtoMessage()
func (*MsgDeleteOperator) ProtoReflect ¶ added in v1.3.0
func (x *MsgDeleteOperator) ProtoReflect() protoreflect.Message
func (*MsgDeleteOperator) Reset ¶ added in v1.3.0
func (x *MsgDeleteOperator) Reset()
func (*MsgDeleteOperator) String ¶ added in v1.3.0
func (x *MsgDeleteOperator) String() string
type MsgDeleteOperatorResponse ¶ added in v1.3.0
type MsgDeleteOperatorResponse struct {
// contains filtered or unexported fields
}
MsgDeleteOperatorResponse is the return value of MsgDeleteOperator.
func (*MsgDeleteOperatorResponse) Descriptor
deprecated
added in
v1.3.0
func (*MsgDeleteOperatorResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgDeleteOperatorResponse.ProtoReflect.Descriptor instead.
func (*MsgDeleteOperatorResponse) ProtoMessage ¶ added in v1.3.0
func (*MsgDeleteOperatorResponse) ProtoMessage()
func (*MsgDeleteOperatorResponse) ProtoReflect ¶ added in v1.3.0
func (x *MsgDeleteOperatorResponse) ProtoReflect() protoreflect.Message
func (*MsgDeleteOperatorResponse) Reset ¶ added in v1.3.0
func (x *MsgDeleteOperatorResponse) Reset()
func (*MsgDeleteOperatorResponse) String ¶ added in v1.3.0
func (x *MsgDeleteOperatorResponse) String() string
type MsgReactivateOperator ¶ added in v1.4.0
type MsgReactivateOperator struct { // Sender is the address of the user reactivating the operator Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // OperatorID represents the ID of the operator to be reactivated OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // contains filtered or unexported fields }
MsgReactivateOperator defines the message structure for the ReactivateOperator gRPC service method. It allows the operator owner to reactivate an inactive operator.
func (*MsgReactivateOperator) Descriptor
deprecated
added in
v1.4.0
func (*MsgReactivateOperator) Descriptor() ([]byte, []int)
Deprecated: Use MsgReactivateOperator.ProtoReflect.Descriptor instead.
func (*MsgReactivateOperator) GetOperatorId ¶ added in v1.4.0
func (x *MsgReactivateOperator) GetOperatorId() uint32
func (*MsgReactivateOperator) GetSender ¶ added in v1.4.0
func (x *MsgReactivateOperator) GetSender() string
func (*MsgReactivateOperator) ProtoMessage ¶ added in v1.4.0
func (*MsgReactivateOperator) ProtoMessage()
func (*MsgReactivateOperator) ProtoReflect ¶ added in v1.4.0
func (x *MsgReactivateOperator) ProtoReflect() protoreflect.Message
func (*MsgReactivateOperator) Reset ¶ added in v1.4.0
func (x *MsgReactivateOperator) Reset()
func (*MsgReactivateOperator) String ¶ added in v1.4.0
func (x *MsgReactivateOperator) String() string
type MsgReactivateOperatorResponse ¶ added in v1.4.0
type MsgReactivateOperatorResponse struct {
// contains filtered or unexported fields
}
MsgReactivateOperatorResponse is the return value of MsgReactivateOperator.
func (*MsgReactivateOperatorResponse) Descriptor
deprecated
added in
v1.4.0
func (*MsgReactivateOperatorResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgReactivateOperatorResponse.ProtoReflect.Descriptor instead.
func (*MsgReactivateOperatorResponse) ProtoMessage ¶ added in v1.4.0
func (*MsgReactivateOperatorResponse) ProtoMessage()
func (*MsgReactivateOperatorResponse) ProtoReflect ¶ added in v1.4.0
func (x *MsgReactivateOperatorResponse) ProtoReflect() protoreflect.Message
func (*MsgReactivateOperatorResponse) Reset ¶ added in v1.4.0
func (x *MsgReactivateOperatorResponse) Reset()
func (*MsgReactivateOperatorResponse) String ¶ added in v1.4.0
func (x *MsgReactivateOperatorResponse) String() string
type MsgRegisterOperator ¶
type MsgRegisterOperator struct { // Sender is the address of the user registering the operator Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // Moniker is the moniker of the operator Moniker string `protobuf:"bytes,2,opt,name=moniker,proto3" json:"moniker,omitempty"` // Website is the website of the operator (optional) Website string `protobuf:"bytes,3,opt,name=website,proto3" json:"website,omitempty"` // PictureURL is the URL of operator picture (optional) PictureUrl string `protobuf:"bytes,4,opt,name=picture_url,json=pictureUrl,proto3" json:"picture_url,omitempty"` // contains filtered or unexported fields }
MsgRegisterOperator defines the message structure for the RegisterOperator gRPC service method. It allows an account to register a new operator that can opt-in to validate various services. It requires a sender address as well as the details of the operator to be registered.
func (*MsgRegisterOperator) Descriptor
deprecated
func (*MsgRegisterOperator) Descriptor() ([]byte, []int)
Deprecated: Use MsgRegisterOperator.ProtoReflect.Descriptor instead.
func (*MsgRegisterOperator) GetMoniker ¶
func (x *MsgRegisterOperator) GetMoniker() string
func (*MsgRegisterOperator) GetPictureUrl ¶
func (x *MsgRegisterOperator) GetPictureUrl() string
func (*MsgRegisterOperator) GetSender ¶
func (x *MsgRegisterOperator) GetSender() string
func (*MsgRegisterOperator) GetWebsite ¶
func (x *MsgRegisterOperator) GetWebsite() string
func (*MsgRegisterOperator) ProtoMessage ¶
func (*MsgRegisterOperator) ProtoMessage()
func (*MsgRegisterOperator) ProtoReflect ¶
func (x *MsgRegisterOperator) ProtoReflect() protoreflect.Message
func (*MsgRegisterOperator) Reset ¶
func (x *MsgRegisterOperator) Reset()
func (*MsgRegisterOperator) String ¶
func (x *MsgRegisterOperator) String() string
type MsgRegisterOperatorResponse ¶
type MsgRegisterOperatorResponse struct { // NewOperatorID is the ID of the newly registered operator NewOperatorId uint32 `protobuf:"varint,1,opt,name=new_operator_id,json=newOperatorId,proto3" json:"new_operator_id,omitempty"` // contains filtered or unexported fields }
MsgRegisterOperatorResponse is the return value of MsgRegisterOperator. It returns the newly created operator ID.
func (*MsgRegisterOperatorResponse) Descriptor
deprecated
func (*MsgRegisterOperatorResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgRegisterOperatorResponse.ProtoReflect.Descriptor instead.
func (*MsgRegisterOperatorResponse) GetNewOperatorId ¶
func (x *MsgRegisterOperatorResponse) GetNewOperatorId() uint32
func (*MsgRegisterOperatorResponse) ProtoMessage ¶
func (*MsgRegisterOperatorResponse) ProtoMessage()
func (*MsgRegisterOperatorResponse) ProtoReflect ¶
func (x *MsgRegisterOperatorResponse) ProtoReflect() protoreflect.Message
func (*MsgRegisterOperatorResponse) Reset ¶
func (x *MsgRegisterOperatorResponse) Reset()
func (*MsgRegisterOperatorResponse) String ¶
func (x *MsgRegisterOperatorResponse) String() string
type MsgServer ¶
type MsgServer interface { // RegisterOperator defines the operation for registering a new operator. RegisterOperator(context.Context, *MsgRegisterOperator) (*MsgRegisterOperatorResponse, error) // UpdateOperator defines the operation for updating an operator's details. // The operator owner can update the moniker, website, and picture URL. UpdateOperator(context.Context, *MsgUpdateOperator) (*MsgUpdateOperatorResponse, error) // DeactivateOperator defines the operation for deactivating an // operator. Operators will require some time in order to be deactivated. // This time is defined by the governance parameters. DeactivateOperator(context.Context, *MsgDeactivateOperator) (*MsgDeactivateOperatorResponse, error) // ReactivateOperator defines the operation for reactivating an // inactive operator. ReactivateOperator(context.Context, *MsgReactivateOperator) (*MsgReactivateOperatorResponse, error) // DeleteOperator defines the operation for deleting a deactivated operator. DeleteOperator(context.Context, *MsgDeleteOperator) (*MsgDeleteOperatorResponse, error) // TransferOperatorOwnership defines the operation for transferring the // ownership of an operator to another account. TransferOperatorOwnership(context.Context, *MsgTransferOperatorOwnership) (*MsgTransferOperatorOwnershipResponse, error) // SetOperatorParams defines the operation for setting a operator's // parameters. SetOperatorParams(context.Context, *MsgSetOperatorParams) (*MsgSetOperatorParamsResponse, error) // UpdateParams defines a governance operation for updating the module // parameters. // The authority defaults to the x/gov module account. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility.
Msg defines the avs module's gRPC message service.
type MsgSetOperatorParams ¶ added in v1.3.0
type MsgSetOperatorParams struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` Params *OperatorParams `protobuf:"bytes,3,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
MsgSetOperatorParams defines the message structure for the SetOperatorParams gRPC service method. It allows the operator admin to update the operator's parameters.
func (*MsgSetOperatorParams) Descriptor
deprecated
added in
v1.3.0
func (*MsgSetOperatorParams) Descriptor() ([]byte, []int)
Deprecated: Use MsgSetOperatorParams.ProtoReflect.Descriptor instead.
func (*MsgSetOperatorParams) GetOperatorId ¶ added in v1.3.0
func (x *MsgSetOperatorParams) GetOperatorId() uint32
func (*MsgSetOperatorParams) GetParams ¶ added in v1.3.0
func (x *MsgSetOperatorParams) GetParams() *OperatorParams
func (*MsgSetOperatorParams) GetSender ¶ added in v1.3.0
func (x *MsgSetOperatorParams) GetSender() string
func (*MsgSetOperatorParams) ProtoMessage ¶ added in v1.3.0
func (*MsgSetOperatorParams) ProtoMessage()
func (*MsgSetOperatorParams) ProtoReflect ¶ added in v1.3.0
func (x *MsgSetOperatorParams) ProtoReflect() protoreflect.Message
func (*MsgSetOperatorParams) Reset ¶ added in v1.3.0
func (x *MsgSetOperatorParams) Reset()
func (*MsgSetOperatorParams) String ¶ added in v1.3.0
func (x *MsgSetOperatorParams) String() string
type MsgSetOperatorParamsResponse ¶ added in v1.3.0
type MsgSetOperatorParamsResponse struct {
// contains filtered or unexported fields
}
MsgSetOperatorParamsResponse is the return value of MsgSetOperatorParams.
func (*MsgSetOperatorParamsResponse) Descriptor
deprecated
added in
v1.3.0
func (*MsgSetOperatorParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgSetOperatorParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgSetOperatorParamsResponse) ProtoMessage ¶ added in v1.3.0
func (*MsgSetOperatorParamsResponse) ProtoMessage()
func (*MsgSetOperatorParamsResponse) ProtoReflect ¶ added in v1.3.0
func (x *MsgSetOperatorParamsResponse) ProtoReflect() protoreflect.Message
func (*MsgSetOperatorParamsResponse) Reset ¶ added in v1.3.0
func (x *MsgSetOperatorParamsResponse) Reset()
func (*MsgSetOperatorParamsResponse) String ¶ added in v1.3.0
func (x *MsgSetOperatorParamsResponse) String() string
type MsgTransferOperatorOwnership ¶
type MsgTransferOperatorOwnership struct { // Sender is the address of the user transferring the ownership Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // OperatorID represents the ID of the operator to transfer ownership OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // NewAdmin is the address of the new admin of the operator NewAdmin string `protobuf:"bytes,3,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"` // contains filtered or unexported fields }
MsgTransferOperatorOwnership defines the message structure for the TransferOperatorOwnership gRPC service method. It allows an operator admin to transfer the ownership of the operator to another account.
func (*MsgTransferOperatorOwnership) Descriptor
deprecated
func (*MsgTransferOperatorOwnership) Descriptor() ([]byte, []int)
Deprecated: Use MsgTransferOperatorOwnership.ProtoReflect.Descriptor instead.
func (*MsgTransferOperatorOwnership) GetNewAdmin ¶
func (x *MsgTransferOperatorOwnership) GetNewAdmin() string
func (*MsgTransferOperatorOwnership) GetOperatorId ¶
func (x *MsgTransferOperatorOwnership) GetOperatorId() uint32
func (*MsgTransferOperatorOwnership) GetSender ¶
func (x *MsgTransferOperatorOwnership) GetSender() string
func (*MsgTransferOperatorOwnership) ProtoMessage ¶
func (*MsgTransferOperatorOwnership) ProtoMessage()
func (*MsgTransferOperatorOwnership) ProtoReflect ¶
func (x *MsgTransferOperatorOwnership) ProtoReflect() protoreflect.Message
func (*MsgTransferOperatorOwnership) Reset ¶
func (x *MsgTransferOperatorOwnership) Reset()
func (*MsgTransferOperatorOwnership) String ¶
func (x *MsgTransferOperatorOwnership) String() string
type MsgTransferOperatorOwnershipResponse ¶
type MsgTransferOperatorOwnershipResponse struct {
// contains filtered or unexported fields
}
MsgTransferOperatorOwnershipResponse is the return value of MsgTransferOperatorOwnership.
func (*MsgTransferOperatorOwnershipResponse) Descriptor
deprecated
func (*MsgTransferOperatorOwnershipResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgTransferOperatorOwnershipResponse.ProtoReflect.Descriptor instead.
func (*MsgTransferOperatorOwnershipResponse) ProtoMessage ¶
func (*MsgTransferOperatorOwnershipResponse) ProtoMessage()
func (*MsgTransferOperatorOwnershipResponse) ProtoReflect ¶
func (x *MsgTransferOperatorOwnershipResponse) ProtoReflect() protoreflect.Message
func (*MsgTransferOperatorOwnershipResponse) Reset ¶
func (x *MsgTransferOperatorOwnershipResponse) Reset()
func (*MsgTransferOperatorOwnershipResponse) String ¶
func (x *MsgTransferOperatorOwnershipResponse) String() string
type MsgUpdateOperator ¶
type MsgUpdateOperator struct { // Sender is the address of the user updating the operator Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // OperatorID represents the ID of the operator to be updated OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // Moniker is the new moniker of the operator. // If it shouldn't be changed, use [do-not-modify] instead. Moniker string `protobuf:"bytes,3,opt,name=moniker,proto3" json:"moniker,omitempty"` // Website is the new website of the operator. // If it shouldn't be changed, use [do-not-modify] instead. Website string `protobuf:"bytes,4,opt,name=website,proto3" json:"website,omitempty"` // PictureURL is the new URL of the operator picture. // If it shouldn't be changed, use [do-not-modify] instead. PictureUrl string `protobuf:"bytes,5,opt,name=picture_url,json=pictureUrl,proto3" json:"picture_url,omitempty"` // contains filtered or unexported fields }
MsgUpdateOperator defines the message structure for the UpdateOperator gRPC service method. It allows the operator owner to update the details of an existing operator.
func (*MsgUpdateOperator) Descriptor
deprecated
func (*MsgUpdateOperator) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateOperator.ProtoReflect.Descriptor instead.
func (*MsgUpdateOperator) GetMoniker ¶
func (x *MsgUpdateOperator) GetMoniker() string
func (*MsgUpdateOperator) GetOperatorId ¶
func (x *MsgUpdateOperator) GetOperatorId() uint32
func (*MsgUpdateOperator) GetPictureUrl ¶
func (x *MsgUpdateOperator) GetPictureUrl() string
func (*MsgUpdateOperator) GetSender ¶
func (x *MsgUpdateOperator) GetSender() string
func (*MsgUpdateOperator) GetWebsite ¶
func (x *MsgUpdateOperator) GetWebsite() string
func (*MsgUpdateOperator) ProtoMessage ¶
func (*MsgUpdateOperator) ProtoMessage()
func (*MsgUpdateOperator) ProtoReflect ¶
func (x *MsgUpdateOperator) ProtoReflect() protoreflect.Message
func (*MsgUpdateOperator) Reset ¶
func (x *MsgUpdateOperator) Reset()
func (*MsgUpdateOperator) String ¶
func (x *MsgUpdateOperator) String() string
type MsgUpdateOperatorResponse ¶
type MsgUpdateOperatorResponse struct {
// contains filtered or unexported fields
}
MsgUpdateOperatorResponse is the return value of MsgUpdateOperator.
func (*MsgUpdateOperatorResponse) Descriptor
deprecated
func (*MsgUpdateOperatorResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateOperatorResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateOperatorResponse) ProtoMessage ¶
func (*MsgUpdateOperatorResponse) ProtoMessage()
func (*MsgUpdateOperatorResponse) ProtoReflect ¶
func (x *MsgUpdateOperatorResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateOperatorResponse) Reset ¶
func (x *MsgUpdateOperatorResponse) Reset()
func (*MsgUpdateOperatorResponse) String ¶
func (x *MsgUpdateOperatorResponse) String() string
type MsgUpdateParams ¶
type MsgUpdateParams struct { // Authority is the address that controls the module (defaults to x/gov unless // overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // Params define the parameters to update. // // NOTE: All parameters must be supplied. Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
MsgUpdateParams defines the message structure for the UpdateParams gRPC service method. It allows the authority to update the module parameters.
func (*MsgUpdateParams) Descriptor
deprecated
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) GetAuthority ¶
func (x *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (x *MsgUpdateParams) GetParams() *Params
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) ProtoReflect ¶
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
func (*MsgUpdateParams) Reset ¶
func (x *MsgUpdateParams) Reset()
func (*MsgUpdateParams) String ¶
func (x *MsgUpdateParams) String() string
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct {
// contains filtered or unexported fields
}
MsgUpdateParamsResponse is the return value of MsgUpdateParams.
func (*MsgUpdateParamsResponse) Descriptor
deprecated
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) ProtoReflect ¶
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateParamsResponse) Reset ¶
func (x *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) String ¶
func (x *MsgUpdateParamsResponse) String() string
type Operator ¶
type Operator struct { // ID is the auto-generated unique identifier for the operator Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Status is the status of the operator Status OperatorStatus `protobuf:"varint,2,opt,name=status,proto3,enum=milkyway.operators.v1.OperatorStatus" json:"status,omitempty"` // Admin is the address of the user that can manage the operator Admin string `protobuf:"bytes,3,opt,name=admin,proto3" json:"admin,omitempty"` // Moniker is the identifier of the operator Moniker string `protobuf:"bytes,4,opt,name=moniker,proto3" json:"moniker,omitempty"` // Website is the website of the operator Website string `protobuf:"bytes,5,opt,name=website,proto3" json:"website,omitempty"` // PictureURL is the URL of the picture of the operator PictureUrl string `protobuf:"bytes,6,opt,name=picture_url,json=pictureUrl,proto3" json:"picture_url,omitempty"` // Address is the address of the account associated to the operator. // This will be used to store tokens that are delegated to this operator. Address string `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"` // Tokens define the delegated tokens. Tokens []*v1beta1.Coin `protobuf:"bytes,8,rep,name=tokens,proto3" json:"tokens,omitempty"` DelegatorShares []*v1beta1.DecCoin `protobuf:"bytes,9,rep,name=delegator_shares,json=delegatorShares,proto3" json:"delegator_shares,omitempty"` // contains filtered or unexported fields }
Operator defines the fields of an operator
func (*Operator) Descriptor
deprecated
func (*Operator) GetAddress ¶
func (*Operator) GetDelegatorShares ¶
func (*Operator) GetMoniker ¶
func (*Operator) GetPictureUrl ¶
func (*Operator) GetStatus ¶
func (x *Operator) GetStatus() OperatorStatus
func (*Operator) GetWebsite ¶
func (*Operator) ProtoMessage ¶
func (*Operator) ProtoMessage()
func (*Operator) ProtoReflect ¶
func (x *Operator) ProtoReflect() protoreflect.Message
type OperatorParams ¶ added in v1.3.0
type OperatorParams struct { // CommissionRate defines the commission rate charged to delegators, as a // fraction. CommissionRate string `protobuf:"bytes,1,opt,name=commission_rate,json=commissionRate,proto3" json:"commission_rate,omitempty"` // contains filtered or unexported fields }
OperatorParams represent the params that have been set for an individual operator.
func (*OperatorParams) Descriptor
deprecated
added in
v1.3.0
func (*OperatorParams) Descriptor() ([]byte, []int)
Deprecated: Use OperatorParams.ProtoReflect.Descriptor instead.
func (*OperatorParams) GetCommissionRate ¶ added in v1.3.0
func (x *OperatorParams) GetCommissionRate() string
func (*OperatorParams) ProtoMessage ¶ added in v1.3.0
func (*OperatorParams) ProtoMessage()
func (*OperatorParams) ProtoReflect ¶ added in v1.3.0
func (x *OperatorParams) ProtoReflect() protoreflect.Message
func (*OperatorParams) Reset ¶ added in v1.3.0
func (x *OperatorParams) Reset()
func (*OperatorParams) String ¶ added in v1.3.0
func (x *OperatorParams) String() string
type OperatorParamsRecord ¶ added in v1.3.0
type OperatorParamsRecord struct { // OperatorID is the ID of the operator. OperatorId uint32 `protobuf:"varint,1,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // Params defines the parameters for the operators module. Params *OperatorParams `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
OperatorParamsRecord represents the params that have been set for an individual operator.
func (*OperatorParamsRecord) Descriptor
deprecated
added in
v1.3.0
func (*OperatorParamsRecord) Descriptor() ([]byte, []int)
Deprecated: Use OperatorParamsRecord.ProtoReflect.Descriptor instead.
func (*OperatorParamsRecord) GetOperatorId ¶ added in v1.3.0
func (x *OperatorParamsRecord) GetOperatorId() uint32
func (*OperatorParamsRecord) GetParams ¶ added in v1.3.0
func (x *OperatorParamsRecord) GetParams() *OperatorParams
func (*OperatorParamsRecord) ProtoMessage ¶ added in v1.3.0
func (*OperatorParamsRecord) ProtoMessage()
func (*OperatorParamsRecord) ProtoReflect ¶ added in v1.3.0
func (x *OperatorParamsRecord) ProtoReflect() protoreflect.Message
func (*OperatorParamsRecord) Reset ¶ added in v1.3.0
func (x *OperatorParamsRecord) Reset()
func (*OperatorParamsRecord) String ¶ added in v1.3.0
func (x *OperatorParamsRecord) String() string
type OperatorStatus ¶
type OperatorStatus int32
OperatorStatus defines the possible statuses of an operator
const ( // OPERATOR_STATUS_UNSPECIFIED defines an unspecified status OperatorStatus_OPERATOR_STATUS_UNSPECIFIED OperatorStatus = 0 // OPERATOR_STATUS_ACTIVE identifies an active validator which is providing // services OperatorStatus_OPERATOR_STATUS_ACTIVE OperatorStatus = 1 // OPERATOR_STATUS_INACTIVATING identifies an operator that is in the process // of becoming inactive OperatorStatus_OPERATOR_STATUS_INACTIVATING OperatorStatus = 2 // OPERATOR_STATUS_INACTIVE defines an inactive operator that is not providing // services OperatorStatus_OPERATOR_STATUS_INACTIVE OperatorStatus = 3 )
func (OperatorStatus) Descriptor ¶
func (OperatorStatus) Descriptor() protoreflect.EnumDescriptor
func (OperatorStatus) Enum ¶
func (x OperatorStatus) Enum() *OperatorStatus
func (OperatorStatus) EnumDescriptor
deprecated
func (OperatorStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use OperatorStatus.Descriptor instead.
func (OperatorStatus) Number ¶
func (x OperatorStatus) Number() protoreflect.EnumNumber
func (OperatorStatus) String ¶
func (x OperatorStatus) String() string
func (OperatorStatus) Type ¶
func (OperatorStatus) Type() protoreflect.EnumType
type Params ¶
type Params struct { // OperatorRegistrationFee represents the fee that an operator must pay in // order to register itself with the network. // The fee is drawn from the MsgRegisterOperator sender's account and // transferred to the community pool. OperatorRegistrationFee []*v1beta1.Coin `` /* 132-byte string literal not displayed */ // DeactivationTime represents the amount of time that will pass between // the time that an operator signals its willingness to deactivate and the // time that it actually becomes inactive. DeactivationTime int64 `protobuf:"varint,2,opt,name=deactivation_time,json=deactivationTime,proto3" json:"deactivation_time,omitempty"` // contains filtered or unexported fields }
Params defines the parameters for the operators module.
func (*Params) Descriptor
deprecated
func (*Params) GetDeactivationTime ¶
func (*Params) GetOperatorRegistrationFee ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type QueryClient ¶
type QueryClient interface { // Operator defines a gRPC query method that returns the operator by the given // operator id. Operator(ctx context.Context, in *QueryOperatorRequest, opts ...grpc.CallOption) (*QueryOperatorResponse, error) // OperatorParams defines a gRPC query method that returns the operator's // params by the given operator id. OperatorParams(ctx context.Context, in *QueryOperatorParamsRequest, opts ...grpc.CallOption) (*QueryOperatorParamsResponse, error) // Operators defines a gRPC query method that returns the list of operators. Operators(ctx context.Context, in *QueryOperatorsRequest, opts ...grpc.CallOption) (*QueryOperatorsResponse, error) // Params defines a gRPC query method that returns the parameters of the // 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.
Query defines the gRPC querier service.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryOperatorParamsRequest ¶ added in v1.3.0
type QueryOperatorParamsRequest struct { // OperatorID is the ID of the operator for which to query the params OperatorId uint32 `protobuf:"varint,1,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // contains filtered or unexported fields }
QueryOperatorParamsRequest is the request type for the Query/OperatorParams RPC method.
func (*QueryOperatorParamsRequest) Descriptor
deprecated
added in
v1.3.0
func (*QueryOperatorParamsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryOperatorParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryOperatorParamsRequest) GetOperatorId ¶ added in v1.3.0
func (x *QueryOperatorParamsRequest) GetOperatorId() uint32
func (*QueryOperatorParamsRequest) ProtoMessage ¶ added in v1.3.0
func (*QueryOperatorParamsRequest) ProtoMessage()
func (*QueryOperatorParamsRequest) ProtoReflect ¶ added in v1.3.0
func (x *QueryOperatorParamsRequest) ProtoReflect() protoreflect.Message
func (*QueryOperatorParamsRequest) Reset ¶ added in v1.3.0
func (x *QueryOperatorParamsRequest) Reset()
func (*QueryOperatorParamsRequest) String ¶ added in v1.3.0
func (x *QueryOperatorParamsRequest) String() string
type QueryOperatorParamsResponse ¶ added in v1.3.0
type QueryOperatorParamsResponse struct { OperatorParams *OperatorParams `protobuf:"bytes,1,opt,name=operator_params,json=operatorParams,proto3" json:"operator_params,omitempty"` // contains filtered or unexported fields }
QueryOperatorParamsResponse is the response type for the Query/OperatorParams RPC method.
func (*QueryOperatorParamsResponse) Descriptor
deprecated
added in
v1.3.0
func (*QueryOperatorParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryOperatorParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryOperatorParamsResponse) GetOperatorParams ¶ added in v1.3.0
func (x *QueryOperatorParamsResponse) GetOperatorParams() *OperatorParams
func (*QueryOperatorParamsResponse) ProtoMessage ¶ added in v1.3.0
func (*QueryOperatorParamsResponse) ProtoMessage()
func (*QueryOperatorParamsResponse) ProtoReflect ¶ added in v1.3.0
func (x *QueryOperatorParamsResponse) ProtoReflect() protoreflect.Message
func (*QueryOperatorParamsResponse) Reset ¶ added in v1.3.0
func (x *QueryOperatorParamsResponse) Reset()
func (*QueryOperatorParamsResponse) String ¶ added in v1.3.0
func (x *QueryOperatorParamsResponse) String() string
type QueryOperatorRequest ¶
type QueryOperatorRequest struct { // OperatorId is the ID of the operator to query OperatorId uint32 `protobuf:"varint,1,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // contains filtered or unexported fields }
QueryOperatorRequest is the request type for the Query/Operator RPC method.
func (*QueryOperatorRequest) Descriptor
deprecated
func (*QueryOperatorRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryOperatorRequest.ProtoReflect.Descriptor instead.
func (*QueryOperatorRequest) GetOperatorId ¶
func (x *QueryOperatorRequest) GetOperatorId() uint32
func (*QueryOperatorRequest) ProtoMessage ¶
func (*QueryOperatorRequest) ProtoMessage()
func (*QueryOperatorRequest) ProtoReflect ¶
func (x *QueryOperatorRequest) ProtoReflect() protoreflect.Message
func (*QueryOperatorRequest) Reset ¶
func (x *QueryOperatorRequest) Reset()
func (*QueryOperatorRequest) String ¶
func (x *QueryOperatorRequest) String() string
type QueryOperatorResponse ¶
type QueryOperatorResponse struct { Operator *Operator `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"` // contains filtered or unexported fields }
QueryOperatorResponse is the response type for the Query/Operator RPC method.
func (*QueryOperatorResponse) Descriptor
deprecated
func (*QueryOperatorResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryOperatorResponse.ProtoReflect.Descriptor instead.
func (*QueryOperatorResponse) GetOperator ¶
func (x *QueryOperatorResponse) GetOperator() *Operator
func (*QueryOperatorResponse) ProtoMessage ¶
func (*QueryOperatorResponse) ProtoMessage()
func (*QueryOperatorResponse) ProtoReflect ¶
func (x *QueryOperatorResponse) ProtoReflect() protoreflect.Message
func (*QueryOperatorResponse) Reset ¶
func (x *QueryOperatorResponse) Reset()
func (*QueryOperatorResponse) String ¶
func (x *QueryOperatorResponse) String() string
type QueryOperatorsRequest ¶
type QueryOperatorsRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryOperatorsRequest is the request type for the Query/Operators RPC method.
func (*QueryOperatorsRequest) Descriptor
deprecated
func (*QueryOperatorsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryOperatorsRequest.ProtoReflect.Descriptor instead.
func (*QueryOperatorsRequest) GetPagination ¶
func (x *QueryOperatorsRequest) GetPagination() *v1beta1.PageRequest
func (*QueryOperatorsRequest) ProtoMessage ¶
func (*QueryOperatorsRequest) ProtoMessage()
func (*QueryOperatorsRequest) ProtoReflect ¶
func (x *QueryOperatorsRequest) ProtoReflect() protoreflect.Message
func (*QueryOperatorsRequest) Reset ¶
func (x *QueryOperatorsRequest) Reset()
func (*QueryOperatorsRequest) String ¶
func (x *QueryOperatorsRequest) String() string
type QueryOperatorsResponse ¶
type QueryOperatorsResponse struct { // Operators is the list of operators Operators []*Operator `protobuf:"bytes,1,rep,name=operators,proto3" json:"operators,omitempty"` // Pagination defines the pagination response Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryOperatorsResponse is the response type for the Query/Operators RPC method.
func (*QueryOperatorsResponse) Descriptor
deprecated
func (*QueryOperatorsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryOperatorsResponse.ProtoReflect.Descriptor instead.
func (*QueryOperatorsResponse) GetOperators ¶
func (x *QueryOperatorsResponse) GetOperators() []*Operator
func (*QueryOperatorsResponse) GetPagination ¶
func (x *QueryOperatorsResponse) GetPagination() *v1beta1.PageResponse
func (*QueryOperatorsResponse) ProtoMessage ¶
func (*QueryOperatorsResponse) ProtoMessage()
func (*QueryOperatorsResponse) ProtoReflect ¶
func (x *QueryOperatorsResponse) ProtoReflect() protoreflect.Message
func (*QueryOperatorsResponse) Reset ¶
func (x *QueryOperatorsResponse) Reset()
func (*QueryOperatorsResponse) String ¶
func (x *QueryOperatorsResponse) 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 { // Operator defines a gRPC query method that returns the operator by the given // operator id. Operator(context.Context, *QueryOperatorRequest) (*QueryOperatorResponse, error) // OperatorParams defines a gRPC query method that returns the operator's // params by the given operator id. OperatorParams(context.Context, *QueryOperatorParamsRequest) (*QueryOperatorParamsResponse, error) // Operators defines a gRPC query method that returns the list of operators. Operators(context.Context, *QueryOperatorsRequest) (*QueryOperatorsResponse, error) // Params defines a gRPC query method that returns the parameters of the // 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.
Query defines the gRPC querier service.
type UnbondingOperator ¶
type UnbondingOperator struct { // OperatorID is the ID of the operator that is being unbonded. OperatorId uint32 `protobuf:"varint,1,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // UnbondingCompletionTime is the time at which the unbonding of the operator // will be completed UnbondingCompletionTime *timestamppb.Timestamp `` /* 132-byte string literal not displayed */ // contains filtered or unexported fields }
UnbondingOperator contains the data about an operator that is currently being unbonded.
func (*UnbondingOperator) Descriptor
deprecated
func (*UnbondingOperator) Descriptor() ([]byte, []int)
Deprecated: Use UnbondingOperator.ProtoReflect.Descriptor instead.
func (*UnbondingOperator) GetOperatorId ¶
func (x *UnbondingOperator) GetOperatorId() uint32
func (*UnbondingOperator) GetUnbondingCompletionTime ¶
func (x *UnbondingOperator) GetUnbondingCompletionTime() *timestamppb.Timestamp
func (*UnbondingOperator) ProtoMessage ¶
func (*UnbondingOperator) ProtoMessage()
func (*UnbondingOperator) ProtoReflect ¶
func (x *UnbondingOperator) ProtoReflect() protoreflect.Message
func (*UnbondingOperator) Reset ¶
func (x *UnbondingOperator) Reset()
func (*UnbondingOperator) String ¶
func (x *UnbondingOperator) String() string
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct{}
UnimplementedMsgServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedMsgServer) DeactivateOperator ¶
func (UnimplementedMsgServer) DeactivateOperator(context.Context, *MsgDeactivateOperator) (*MsgDeactivateOperatorResponse, error)
func (UnimplementedMsgServer) DeleteOperator ¶ added in v1.3.0
func (UnimplementedMsgServer) DeleteOperator(context.Context, *MsgDeleteOperator) (*MsgDeleteOperatorResponse, error)
func (UnimplementedMsgServer) ReactivateOperator ¶ added in v1.4.0
func (UnimplementedMsgServer) ReactivateOperator(context.Context, *MsgReactivateOperator) (*MsgReactivateOperatorResponse, error)
func (UnimplementedMsgServer) RegisterOperator ¶
func (UnimplementedMsgServer) RegisterOperator(context.Context, *MsgRegisterOperator) (*MsgRegisterOperatorResponse, error)
func (UnimplementedMsgServer) SetOperatorParams ¶ added in v1.3.0
func (UnimplementedMsgServer) SetOperatorParams(context.Context, *MsgSetOperatorParams) (*MsgSetOperatorParamsResponse, error)
func (UnimplementedMsgServer) TransferOperatorOwnership ¶
func (UnimplementedMsgServer) TransferOperatorOwnership(context.Context, *MsgTransferOperatorOwnership) (*MsgTransferOperatorOwnershipResponse, error)
func (UnimplementedMsgServer) UpdateOperator ¶
func (UnimplementedMsgServer) UpdateOperator(context.Context, *MsgUpdateOperator) (*MsgUpdateOperatorResponse, error)
func (UnimplementedMsgServer) UpdateParams ¶
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct{}
UnimplementedQueryServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedQueryServer) Operator ¶
func (UnimplementedQueryServer) Operator(context.Context, *QueryOperatorRequest) (*QueryOperatorResponse, error)
func (UnimplementedQueryServer) OperatorParams ¶ added in v1.3.0
func (UnimplementedQueryServer) OperatorParams(context.Context, *QueryOperatorParamsRequest) (*QueryOperatorParamsResponse, error)
func (UnimplementedQueryServer) Operators ¶
func (UnimplementedQueryServer) Operators(context.Context, *QueryOperatorsRequest) (*QueryOperatorsResponse, error)
func (UnimplementedQueryServer) Params ¶
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, 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.