Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterValidatorStateServer(s grpc.ServiceRegistrar, srv ValidatorStateServer)
- type GetCurrentHeightResponse
- func (*GetCurrentHeightResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCurrentHeightResponse) GetHeight() uint64
- func (*GetCurrentHeightResponse) ProtoMessage()
- func (x *GetCurrentHeightResponse) ProtoReflect() protoreflect.Message
- func (x *GetCurrentHeightResponse) Reset()
- func (x *GetCurrentHeightResponse) String() string
- type GetCurrentValidatorSetRequest
- func (*GetCurrentValidatorSetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCurrentValidatorSetRequest) GetSubnetId() []byte
- func (*GetCurrentValidatorSetRequest) ProtoMessage()
- func (x *GetCurrentValidatorSetRequest) ProtoReflect() protoreflect.Message
- func (x *GetCurrentValidatorSetRequest) Reset()
- func (x *GetCurrentValidatorSetRequest) String() string
- type GetCurrentValidatorSetResponse
- func (*GetCurrentValidatorSetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCurrentValidatorSetResponse) GetCurrentHeight() uint64
- func (x *GetCurrentValidatorSetResponse) GetValidators() []*Validator
- func (*GetCurrentValidatorSetResponse) ProtoMessage()
- func (x *GetCurrentValidatorSetResponse) ProtoReflect() protoreflect.Message
- func (x *GetCurrentValidatorSetResponse) Reset()
- func (x *GetCurrentValidatorSetResponse) String() string
- type GetMinimumHeightResponse
- func (*GetMinimumHeightResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetMinimumHeightResponse) GetHeight() uint64
- func (*GetMinimumHeightResponse) ProtoMessage()
- func (x *GetMinimumHeightResponse) ProtoReflect() protoreflect.Message
- func (x *GetMinimumHeightResponse) Reset()
- func (x *GetMinimumHeightResponse) String() string
- type GetSubnetIDRequest
- func (*GetSubnetIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSubnetIDRequest) GetChainId() []byte
- func (*GetSubnetIDRequest) ProtoMessage()
- func (x *GetSubnetIDRequest) ProtoReflect() protoreflect.Message
- func (x *GetSubnetIDRequest) Reset()
- func (x *GetSubnetIDRequest) String() string
- type GetSubnetIDResponse
- func (*GetSubnetIDResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSubnetIDResponse) GetSubnetId() []byte
- func (*GetSubnetIDResponse) ProtoMessage()
- func (x *GetSubnetIDResponse) ProtoReflect() protoreflect.Message
- func (x *GetSubnetIDResponse) Reset()
- func (x *GetSubnetIDResponse) String() string
- type GetValidatorSetRequest
- func (*GetValidatorSetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetValidatorSetRequest) GetHeight() uint64
- func (x *GetValidatorSetRequest) GetSubnetId() []byte
- func (*GetValidatorSetRequest) ProtoMessage()
- func (x *GetValidatorSetRequest) ProtoReflect() protoreflect.Message
- func (x *GetValidatorSetRequest) Reset()
- func (x *GetValidatorSetRequest) String() string
- type GetValidatorSetResponse
- func (*GetValidatorSetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetValidatorSetResponse) GetValidators() []*Validator
- func (*GetValidatorSetResponse) ProtoMessage()
- func (x *GetValidatorSetResponse) ProtoReflect() protoreflect.Message
- func (x *GetValidatorSetResponse) Reset()
- func (x *GetValidatorSetResponse) String() string
- type GetWarpValidatorSetRequest
- func (*GetWarpValidatorSetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetWarpValidatorSetRequest) GetHeight() uint64
- func (x *GetWarpValidatorSetRequest) GetSubnetId() []byte
- func (*GetWarpValidatorSetRequest) ProtoMessage()
- func (x *GetWarpValidatorSetRequest) ProtoReflect() protoreflect.Message
- func (x *GetWarpValidatorSetRequest) Reset()
- func (x *GetWarpValidatorSetRequest) String() string
- type GetWarpValidatorSetResponse
- func (*GetWarpValidatorSetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetWarpValidatorSetResponse) GetTotalWeight() uint64
- func (x *GetWarpValidatorSetResponse) GetValidators() []*WarpValidator
- func (*GetWarpValidatorSetResponse) ProtoMessage()
- func (x *GetWarpValidatorSetResponse) ProtoReflect() protoreflect.Message
- func (x *GetWarpValidatorSetResponse) Reset()
- func (x *GetWarpValidatorSetResponse) String() string
- type GetWarpValidatorSetsRequest
- func (*GetWarpValidatorSetsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetWarpValidatorSetsRequest) GetHeight() uint64
- func (*GetWarpValidatorSetsRequest) ProtoMessage()
- func (x *GetWarpValidatorSetsRequest) ProtoReflect() protoreflect.Message
- func (x *GetWarpValidatorSetsRequest) Reset()
- func (x *GetWarpValidatorSetsRequest) String() string
- type GetWarpValidatorSetsResponse
- func (*GetWarpValidatorSetsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetWarpValidatorSetsResponse) GetValidatorSets() []*WarpValidatorSet
- func (*GetWarpValidatorSetsResponse) ProtoMessage()
- func (x *GetWarpValidatorSetsResponse) ProtoReflect() protoreflect.Message
- func (x *GetWarpValidatorSetsResponse) Reset()
- func (x *GetWarpValidatorSetsResponse) String() string
- type UnimplementedValidatorStateServer
- func (UnimplementedValidatorStateServer) GetCurrentHeight(context.Context, *emptypb.Empty) (*GetCurrentHeightResponse, error)
- func (UnimplementedValidatorStateServer) GetCurrentValidatorSet(context.Context, *GetCurrentValidatorSetRequest) (*GetCurrentValidatorSetResponse, error)
- func (UnimplementedValidatorStateServer) GetMinimumHeight(context.Context, *emptypb.Empty) (*GetMinimumHeightResponse, error)
- func (UnimplementedValidatorStateServer) GetSubnetID(context.Context, *GetSubnetIDRequest) (*GetSubnetIDResponse, error)
- func (UnimplementedValidatorStateServer) GetValidatorSet(context.Context, *GetValidatorSetRequest) (*GetValidatorSetResponse, error)
- func (UnimplementedValidatorStateServer) GetWarpValidatorSet(context.Context, *GetWarpValidatorSetRequest) (*GetWarpValidatorSetResponse, error)
- func (UnimplementedValidatorStateServer) GetWarpValidatorSets(context.Context, *GetWarpValidatorSetsRequest) (*GetWarpValidatorSetsResponse, error)
- type UnsafeValidatorStateServer
- type Validator
- func (*Validator) Descriptor() ([]byte, []int)deprecated
- func (x *Validator) GetIsActive() bool
- func (x *Validator) GetIsL1Validator() bool
- func (x *Validator) GetMinNonce() uint64
- func (x *Validator) GetNodeId() []byte
- func (x *Validator) GetPublicKey() []byte
- func (x *Validator) GetStartTime() uint64
- func (x *Validator) GetValidationId() []byte
- func (x *Validator) GetWeight() uint64
- func (*Validator) ProtoMessage()
- func (x *Validator) ProtoReflect() protoreflect.Message
- func (x *Validator) Reset()
- func (x *Validator) String() string
- type ValidatorStateClient
- type ValidatorStateServer
- type WarpValidator
- func (*WarpValidator) Descriptor() ([]byte, []int)deprecated
- func (x *WarpValidator) GetNodeIds() [][]byte
- func (x *WarpValidator) GetPublicKey() []byte
- func (x *WarpValidator) GetWeight() uint64
- func (*WarpValidator) ProtoMessage()
- func (x *WarpValidator) ProtoReflect() protoreflect.Message
- func (x *WarpValidator) Reset()
- func (x *WarpValidator) String() string
- type WarpValidatorSet
- func (*WarpValidatorSet) Descriptor() ([]byte, []int)deprecated
- func (x *WarpValidatorSet) GetSubnetId() []byte
- func (x *WarpValidatorSet) GetTotalWeight() uint64
- func (x *WarpValidatorSet) GetValidators() []*WarpValidator
- func (*WarpValidatorSet) ProtoMessage()
- func (x *WarpValidatorSet) ProtoReflect() protoreflect.Message
- func (x *WarpValidatorSet) Reset()
- func (x *WarpValidatorSet) String() string
Constants ¶
const ( ValidatorState_GetMinimumHeight_FullMethodName = "/validatorstate.ValidatorState/GetMinimumHeight" ValidatorState_GetCurrentHeight_FullMethodName = "/validatorstate.ValidatorState/GetCurrentHeight" ValidatorState_GetSubnetID_FullMethodName = "/validatorstate.ValidatorState/GetSubnetID" ValidatorState_GetWarpValidatorSets_FullMethodName = "/validatorstate.ValidatorState/GetWarpValidatorSets" ValidatorState_GetWarpValidatorSet_FullMethodName = "/validatorstate.ValidatorState/GetWarpValidatorSet" ValidatorState_GetValidatorSet_FullMethodName = "/validatorstate.ValidatorState/GetValidatorSet" ValidatorState_GetCurrentValidatorSet_FullMethodName = "/validatorstate.ValidatorState/GetCurrentValidatorSet" )
Variables ¶
var File_validatorstate_validator_state_proto protoreflect.FileDescriptor
var ValidatorState_ServiceDesc = grpc.ServiceDesc{ ServiceName: "validatorstate.ValidatorState", HandlerType: (*ValidatorStateServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetMinimumHeight", Handler: _ValidatorState_GetMinimumHeight_Handler, }, { MethodName: "GetCurrentHeight", Handler: _ValidatorState_GetCurrentHeight_Handler, }, { MethodName: "GetSubnetID", Handler: _ValidatorState_GetSubnetID_Handler, }, { MethodName: "GetWarpValidatorSets", Handler: _ValidatorState_GetWarpValidatorSets_Handler, }, { MethodName: "GetWarpValidatorSet", Handler: _ValidatorState_GetWarpValidatorSet_Handler, }, { MethodName: "GetValidatorSet", Handler: _ValidatorState_GetValidatorSet_Handler, }, { MethodName: "GetCurrentValidatorSet", Handler: _ValidatorState_GetCurrentValidatorSet_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "validatorstate/validator_state.proto", }
ValidatorState_ServiceDesc is the grpc.ServiceDesc for ValidatorState service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterValidatorStateServer ¶
func RegisterValidatorStateServer(s grpc.ServiceRegistrar, srv ValidatorStateServer)
Types ¶
type GetCurrentHeightResponse ¶
type GetCurrentHeightResponse struct {
Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
// contains filtered or unexported fields
}
func (*GetCurrentHeightResponse) Descriptor
deprecated
func (*GetCurrentHeightResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCurrentHeightResponse.ProtoReflect.Descriptor instead.
func (*GetCurrentHeightResponse) GetHeight ¶
func (x *GetCurrentHeightResponse) GetHeight() uint64
func (*GetCurrentHeightResponse) ProtoMessage ¶
func (*GetCurrentHeightResponse) ProtoMessage()
func (*GetCurrentHeightResponse) ProtoReflect ¶
func (x *GetCurrentHeightResponse) ProtoReflect() protoreflect.Message
func (*GetCurrentHeightResponse) Reset ¶
func (x *GetCurrentHeightResponse) Reset()
func (*GetCurrentHeightResponse) String ¶
func (x *GetCurrentHeightResponse) String() string
type GetCurrentValidatorSetRequest ¶ added in v1.11.13
type GetCurrentValidatorSetRequest struct {
SubnetId []byte `protobuf:"bytes,1,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetCurrentValidatorSetRequest) Descriptor
deprecated
added in
v1.11.13
func (*GetCurrentValidatorSetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCurrentValidatorSetRequest.ProtoReflect.Descriptor instead.
func (*GetCurrentValidatorSetRequest) GetSubnetId ¶ added in v1.11.13
func (x *GetCurrentValidatorSetRequest) GetSubnetId() []byte
func (*GetCurrentValidatorSetRequest) ProtoMessage ¶ added in v1.11.13
func (*GetCurrentValidatorSetRequest) ProtoMessage()
func (*GetCurrentValidatorSetRequest) ProtoReflect ¶ added in v1.11.13
func (x *GetCurrentValidatorSetRequest) ProtoReflect() protoreflect.Message
func (*GetCurrentValidatorSetRequest) Reset ¶ added in v1.11.13
func (x *GetCurrentValidatorSetRequest) Reset()
func (*GetCurrentValidatorSetRequest) String ¶ added in v1.11.13
func (x *GetCurrentValidatorSetRequest) String() string
type GetCurrentValidatorSetResponse ¶ added in v1.11.13
type GetCurrentValidatorSetResponse struct {
Validators []*Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"`
CurrentHeight uint64 `protobuf:"varint,2,opt,name=current_height,json=currentHeight,proto3" json:"current_height,omitempty"`
// contains filtered or unexported fields
}
func (*GetCurrentValidatorSetResponse) Descriptor
deprecated
added in
v1.11.13
func (*GetCurrentValidatorSetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCurrentValidatorSetResponse.ProtoReflect.Descriptor instead.
func (*GetCurrentValidatorSetResponse) GetCurrentHeight ¶ added in v1.11.13
func (x *GetCurrentValidatorSetResponse) GetCurrentHeight() uint64
func (*GetCurrentValidatorSetResponse) GetValidators ¶ added in v1.11.13
func (x *GetCurrentValidatorSetResponse) GetValidators() []*Validator
func (*GetCurrentValidatorSetResponse) ProtoMessage ¶ added in v1.11.13
func (*GetCurrentValidatorSetResponse) ProtoMessage()
func (*GetCurrentValidatorSetResponse) ProtoReflect ¶ added in v1.11.13
func (x *GetCurrentValidatorSetResponse) ProtoReflect() protoreflect.Message
func (*GetCurrentValidatorSetResponse) Reset ¶ added in v1.11.13
func (x *GetCurrentValidatorSetResponse) Reset()
func (*GetCurrentValidatorSetResponse) String ¶ added in v1.11.13
func (x *GetCurrentValidatorSetResponse) String() string
type GetMinimumHeightResponse ¶
type GetMinimumHeightResponse struct {
Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
// contains filtered or unexported fields
}
func (*GetMinimumHeightResponse) Descriptor
deprecated
func (*GetMinimumHeightResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetMinimumHeightResponse.ProtoReflect.Descriptor instead.
func (*GetMinimumHeightResponse) GetHeight ¶
func (x *GetMinimumHeightResponse) GetHeight() uint64
func (*GetMinimumHeightResponse) ProtoMessage ¶
func (*GetMinimumHeightResponse) ProtoMessage()
func (*GetMinimumHeightResponse) ProtoReflect ¶
func (x *GetMinimumHeightResponse) ProtoReflect() protoreflect.Message
func (*GetMinimumHeightResponse) Reset ¶
func (x *GetMinimumHeightResponse) Reset()
func (*GetMinimumHeightResponse) String ¶
func (x *GetMinimumHeightResponse) String() string
type GetSubnetIDRequest ¶ added in v1.9.5
type GetSubnetIDRequest struct {
ChainId []byte `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetSubnetIDRequest) Descriptor
deprecated
added in
v1.9.5
func (*GetSubnetIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSubnetIDRequest.ProtoReflect.Descriptor instead.
func (*GetSubnetIDRequest) GetChainId ¶ added in v1.9.5
func (x *GetSubnetIDRequest) GetChainId() []byte
func (*GetSubnetIDRequest) ProtoMessage ¶ added in v1.9.5
func (*GetSubnetIDRequest) ProtoMessage()
func (*GetSubnetIDRequest) ProtoReflect ¶ added in v1.9.5
func (x *GetSubnetIDRequest) ProtoReflect() protoreflect.Message
func (*GetSubnetIDRequest) Reset ¶ added in v1.9.5
func (x *GetSubnetIDRequest) Reset()
func (*GetSubnetIDRequest) String ¶ added in v1.9.5
func (x *GetSubnetIDRequest) String() string
type GetSubnetIDResponse ¶ added in v1.9.5
type GetSubnetIDResponse struct {
SubnetId []byte `protobuf:"bytes,1,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetSubnetIDResponse) Descriptor
deprecated
added in
v1.9.5
func (*GetSubnetIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSubnetIDResponse.ProtoReflect.Descriptor instead.
func (*GetSubnetIDResponse) GetSubnetId ¶ added in v1.9.5
func (x *GetSubnetIDResponse) GetSubnetId() []byte
func (*GetSubnetIDResponse) ProtoMessage ¶ added in v1.9.5
func (*GetSubnetIDResponse) ProtoMessage()
func (*GetSubnetIDResponse) ProtoReflect ¶ added in v1.9.5
func (x *GetSubnetIDResponse) ProtoReflect() protoreflect.Message
func (*GetSubnetIDResponse) Reset ¶ added in v1.9.5
func (x *GetSubnetIDResponse) Reset()
func (*GetSubnetIDResponse) String ¶ added in v1.9.5
func (x *GetSubnetIDResponse) String() string
type GetValidatorSetRequest ¶
type GetValidatorSetRequest struct {
Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
SubnetId []byte `protobuf:"bytes,2,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetValidatorSetRequest) Descriptor
deprecated
func (*GetValidatorSetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetValidatorSetRequest.ProtoReflect.Descriptor instead.
func (*GetValidatorSetRequest) GetHeight ¶
func (x *GetValidatorSetRequest) GetHeight() uint64
func (*GetValidatorSetRequest) GetSubnetId ¶
func (x *GetValidatorSetRequest) GetSubnetId() []byte
func (*GetValidatorSetRequest) ProtoMessage ¶
func (*GetValidatorSetRequest) ProtoMessage()
func (*GetValidatorSetRequest) ProtoReflect ¶
func (x *GetValidatorSetRequest) ProtoReflect() protoreflect.Message
func (*GetValidatorSetRequest) Reset ¶
func (x *GetValidatorSetRequest) Reset()
func (*GetValidatorSetRequest) String ¶
func (x *GetValidatorSetRequest) String() string
type GetValidatorSetResponse ¶
type GetValidatorSetResponse struct {
Validators []*Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"`
// contains filtered or unexported fields
}
func (*GetValidatorSetResponse) Descriptor
deprecated
func (*GetValidatorSetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetValidatorSetResponse.ProtoReflect.Descriptor instead.
func (*GetValidatorSetResponse) GetValidators ¶
func (x *GetValidatorSetResponse) GetValidators() []*Validator
func (*GetValidatorSetResponse) ProtoMessage ¶
func (*GetValidatorSetResponse) ProtoMessage()
func (*GetValidatorSetResponse) ProtoReflect ¶
func (x *GetValidatorSetResponse) ProtoReflect() protoreflect.Message
func (*GetValidatorSetResponse) Reset ¶
func (x *GetValidatorSetResponse) Reset()
func (*GetValidatorSetResponse) String ¶
func (x *GetValidatorSetResponse) String() string
type GetWarpValidatorSetRequest ¶
type GetWarpValidatorSetRequest struct {
Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
SubnetId []byte `protobuf:"bytes,2,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetWarpValidatorSetRequest) Descriptor
deprecated
func (*GetWarpValidatorSetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetWarpValidatorSetRequest.ProtoReflect.Descriptor instead.
func (*GetWarpValidatorSetRequest) GetHeight ¶
func (x *GetWarpValidatorSetRequest) GetHeight() uint64
func (*GetWarpValidatorSetRequest) GetSubnetId ¶
func (x *GetWarpValidatorSetRequest) GetSubnetId() []byte
func (*GetWarpValidatorSetRequest) ProtoMessage ¶
func (*GetWarpValidatorSetRequest) ProtoMessage()
func (*GetWarpValidatorSetRequest) ProtoReflect ¶
func (x *GetWarpValidatorSetRequest) ProtoReflect() protoreflect.Message
func (*GetWarpValidatorSetRequest) Reset ¶
func (x *GetWarpValidatorSetRequest) Reset()
func (*GetWarpValidatorSetRequest) String ¶
func (x *GetWarpValidatorSetRequest) String() string
type GetWarpValidatorSetResponse ¶
type GetWarpValidatorSetResponse struct {
TotalWeight uint64 `protobuf:"varint,1,opt,name=total_weight,json=totalWeight,proto3" json:"total_weight,omitempty"`
Validators []*WarpValidator `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators,omitempty"`
// contains filtered or unexported fields
}
func (*GetWarpValidatorSetResponse) Descriptor
deprecated
func (*GetWarpValidatorSetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetWarpValidatorSetResponse.ProtoReflect.Descriptor instead.
func (*GetWarpValidatorSetResponse) GetTotalWeight ¶
func (x *GetWarpValidatorSetResponse) GetTotalWeight() uint64
func (*GetWarpValidatorSetResponse) GetValidators ¶
func (x *GetWarpValidatorSetResponse) GetValidators() []*WarpValidator
func (*GetWarpValidatorSetResponse) ProtoMessage ¶
func (*GetWarpValidatorSetResponse) ProtoMessage()
func (*GetWarpValidatorSetResponse) ProtoReflect ¶
func (x *GetWarpValidatorSetResponse) ProtoReflect() protoreflect.Message
func (*GetWarpValidatorSetResponse) Reset ¶
func (x *GetWarpValidatorSetResponse) Reset()
func (*GetWarpValidatorSetResponse) String ¶
func (x *GetWarpValidatorSetResponse) String() string
type GetWarpValidatorSetsRequest ¶
type GetWarpValidatorSetsRequest struct {
Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
// contains filtered or unexported fields
}
func (*GetWarpValidatorSetsRequest) Descriptor
deprecated
func (*GetWarpValidatorSetsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetWarpValidatorSetsRequest.ProtoReflect.Descriptor instead.
func (*GetWarpValidatorSetsRequest) GetHeight ¶
func (x *GetWarpValidatorSetsRequest) GetHeight() uint64
func (*GetWarpValidatorSetsRequest) ProtoMessage ¶
func (*GetWarpValidatorSetsRequest) ProtoMessage()
func (*GetWarpValidatorSetsRequest) ProtoReflect ¶
func (x *GetWarpValidatorSetsRequest) ProtoReflect() protoreflect.Message
func (*GetWarpValidatorSetsRequest) Reset ¶
func (x *GetWarpValidatorSetsRequest) Reset()
func (*GetWarpValidatorSetsRequest) String ¶
func (x *GetWarpValidatorSetsRequest) String() string
type GetWarpValidatorSetsResponse ¶
type GetWarpValidatorSetsResponse struct {
ValidatorSets []*WarpValidatorSet `protobuf:"bytes,1,rep,name=validator_sets,json=validatorSets,proto3" json:"validator_sets,omitempty"`
// contains filtered or unexported fields
}
func (*GetWarpValidatorSetsResponse) Descriptor
deprecated
func (*GetWarpValidatorSetsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetWarpValidatorSetsResponse.ProtoReflect.Descriptor instead.
func (*GetWarpValidatorSetsResponse) GetValidatorSets ¶
func (x *GetWarpValidatorSetsResponse) GetValidatorSets() []*WarpValidatorSet
func (*GetWarpValidatorSetsResponse) ProtoMessage ¶
func (*GetWarpValidatorSetsResponse) ProtoMessage()
func (*GetWarpValidatorSetsResponse) ProtoReflect ¶
func (x *GetWarpValidatorSetsResponse) ProtoReflect() protoreflect.Message
func (*GetWarpValidatorSetsResponse) Reset ¶
func (x *GetWarpValidatorSetsResponse) Reset()
func (*GetWarpValidatorSetsResponse) String ¶
func (x *GetWarpValidatorSetsResponse) String() string
type UnimplementedValidatorStateServer ¶
type UnimplementedValidatorStateServer struct{}
UnimplementedValidatorStateServer 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 (UnimplementedValidatorStateServer) GetCurrentHeight ¶
func (UnimplementedValidatorStateServer) GetCurrentHeight(context.Context, *emptypb.Empty) (*GetCurrentHeightResponse, error)
func (UnimplementedValidatorStateServer) GetCurrentValidatorSet ¶ added in v1.11.13
func (UnimplementedValidatorStateServer) GetCurrentValidatorSet(context.Context, *GetCurrentValidatorSetRequest) (*GetCurrentValidatorSetResponse, error)
func (UnimplementedValidatorStateServer) GetMinimumHeight ¶
func (UnimplementedValidatorStateServer) GetMinimumHeight(context.Context, *emptypb.Empty) (*GetMinimumHeightResponse, error)
func (UnimplementedValidatorStateServer) GetSubnetID ¶ added in v1.9.5
func (UnimplementedValidatorStateServer) GetSubnetID(context.Context, *GetSubnetIDRequest) (*GetSubnetIDResponse, error)
func (UnimplementedValidatorStateServer) GetValidatorSet ¶
func (UnimplementedValidatorStateServer) GetValidatorSet(context.Context, *GetValidatorSetRequest) (*GetValidatorSetResponse, error)
func (UnimplementedValidatorStateServer) GetWarpValidatorSet ¶
func (UnimplementedValidatorStateServer) GetWarpValidatorSet(context.Context, *GetWarpValidatorSetRequest) (*GetWarpValidatorSetResponse, error)
func (UnimplementedValidatorStateServer) GetWarpValidatorSets ¶
func (UnimplementedValidatorStateServer) GetWarpValidatorSets(context.Context, *GetWarpValidatorSetsRequest) (*GetWarpValidatorSetsResponse, error)
type UnsafeValidatorStateServer ¶
type UnsafeValidatorStateServer interface {
// contains filtered or unexported methods
}
UnsafeValidatorStateServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ValidatorStateServer will result in compilation errors.
type Validator ¶
type Validator struct {
NodeId []byte `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
Weight uint64 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"`
PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // Uncompressed public key, can be empty
StartTime uint64 `protobuf:"varint,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // can be empty
MinNonce uint64 `protobuf:"varint,5,opt,name=min_nonce,json=minNonce,proto3" json:"min_nonce,omitempty"` // can be empty
IsActive bool `protobuf:"varint,6,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` // can be empty
ValidationId []byte `protobuf:"bytes,7,opt,name=validation_id,json=validationId,proto3" json:"validation_id,omitempty"` // can be empty
IsL1Validator bool `protobuf:"varint,8,opt,name=is_l1_validator,json=isL1Validator,proto3" json:"is_l1_validator,omitempty"` // can be empty
// contains filtered or unexported fields
}
func (*Validator) Descriptor
deprecated
func (*Validator) GetIsActive ¶ added in v1.11.13
func (*Validator) GetIsL1Validator ¶ added in v1.11.13
func (*Validator) GetMinNonce ¶ added in v1.11.13
func (*Validator) GetPublicKey ¶ added in v1.9.4
func (*Validator) GetStartTime ¶ added in v1.11.13
func (*Validator) GetValidationId ¶ added in v1.11.13
func (*Validator) ProtoMessage ¶
func (*Validator) ProtoMessage()
func (*Validator) ProtoReflect ¶
func (x *Validator) ProtoReflect() protoreflect.Message
type ValidatorStateClient ¶
type ValidatorStateClient interface {
// GetMinimumHeight returns the minimum height of the blocks in the optimal
// proposal window.
GetMinimumHeight(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetMinimumHeightResponse, error)
// GetCurrentHeight returns the current height of the P-chain.
GetCurrentHeight(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetCurrentHeightResponse, error)
// GetSubnetID returns the subnetID of the provided chain.
GetSubnetID(ctx context.Context, in *GetSubnetIDRequest, opts ...grpc.CallOption) (*GetSubnetIDResponse, error)
// GetWarpValidatorSets returns the canonical warp validator set for all
// subnets at the requested P-chain height. If a subnet doesn't have a valid
// canonical warp validator set, it is omitted from the response.
GetWarpValidatorSets(ctx context.Context, in *GetWarpValidatorSetsRequest, opts ...grpc.CallOption) (*GetWarpValidatorSetsResponse, error)
// GetWarpValidatorSet returns the canonical warp validator set for the
// provided subnet at the requested P-chain height. If the subnet doesn't have
// a valid canonical warp validator set, either the returned set will be empty
// or an error may occur.
GetWarpValidatorSet(ctx context.Context, in *GetWarpValidatorSetRequest, opts ...grpc.CallOption) (*GetWarpValidatorSetResponse, error)
// GetValidatorSet returns the weights of the nodeIDs for the provided
// subnet at the requested P-chain height.
GetValidatorSet(ctx context.Context, in *GetValidatorSetRequest, opts ...grpc.CallOption) (*GetValidatorSetResponse, error)
// GetCurrentValidatorSet returns the validator set for the provided subnet at
// the current P-chain height.
GetCurrentValidatorSet(ctx context.Context, in *GetCurrentValidatorSetRequest, opts ...grpc.CallOption) (*GetCurrentValidatorSetResponse, error)
}
ValidatorStateClient is the client API for ValidatorState 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 NewValidatorStateClient ¶
func NewValidatorStateClient(cc grpc.ClientConnInterface) ValidatorStateClient
type ValidatorStateServer ¶
type ValidatorStateServer interface {
// GetMinimumHeight returns the minimum height of the blocks in the optimal
// proposal window.
GetMinimumHeight(context.Context, *emptypb.Empty) (*GetMinimumHeightResponse, error)
// GetCurrentHeight returns the current height of the P-chain.
GetCurrentHeight(context.Context, *emptypb.Empty) (*GetCurrentHeightResponse, error)
// GetSubnetID returns the subnetID of the provided chain.
GetSubnetID(context.Context, *GetSubnetIDRequest) (*GetSubnetIDResponse, error)
// GetWarpValidatorSets returns the canonical warp validator set for all
// subnets at the requested P-chain height. If a subnet doesn't have a valid
// canonical warp validator set, it is omitted from the response.
GetWarpValidatorSets(context.Context, *GetWarpValidatorSetsRequest) (*GetWarpValidatorSetsResponse, error)
// GetWarpValidatorSet returns the canonical warp validator set for the
// provided subnet at the requested P-chain height. If the subnet doesn't have
// a valid canonical warp validator set, either the returned set will be empty
// or an error may occur.
GetWarpValidatorSet(context.Context, *GetWarpValidatorSetRequest) (*GetWarpValidatorSetResponse, error)
// GetValidatorSet returns the weights of the nodeIDs for the provided
// subnet at the requested P-chain height.
GetValidatorSet(context.Context, *GetValidatorSetRequest) (*GetValidatorSetResponse, error)
// GetCurrentValidatorSet returns the validator set for the provided subnet at
// the current P-chain height.
GetCurrentValidatorSet(context.Context, *GetCurrentValidatorSetRequest) (*GetCurrentValidatorSetResponse, error)
// contains filtered or unexported methods
}
ValidatorStateServer is the server API for ValidatorState service. All implementations must embed UnimplementedValidatorStateServer for forward compatibility.
type WarpValidator ¶
type WarpValidator struct {
PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // Uncompressed public key, must not be empty
Weight uint64 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"`
NodeIds [][]byte `protobuf:"bytes,3,rep,name=node_ids,json=nodeIds,proto3" json:"node_ids,omitempty"` // must not be empty
// contains filtered or unexported fields
}
func (*WarpValidator) Descriptor
deprecated
func (*WarpValidator) Descriptor() ([]byte, []int)
Deprecated: Use WarpValidator.ProtoReflect.Descriptor instead.
func (*WarpValidator) GetNodeIds ¶
func (x *WarpValidator) GetNodeIds() [][]byte
func (*WarpValidator) GetPublicKey ¶
func (x *WarpValidator) GetPublicKey() []byte
func (*WarpValidator) GetWeight ¶
func (x *WarpValidator) GetWeight() uint64
func (*WarpValidator) ProtoMessage ¶
func (*WarpValidator) ProtoMessage()
func (*WarpValidator) ProtoReflect ¶
func (x *WarpValidator) ProtoReflect() protoreflect.Message
func (*WarpValidator) Reset ¶
func (x *WarpValidator) Reset()
func (*WarpValidator) String ¶
func (x *WarpValidator) String() string
type WarpValidatorSet ¶
type WarpValidatorSet struct {
SubnetId []byte `protobuf:"bytes,1,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"`
TotalWeight uint64 `protobuf:"varint,2,opt,name=total_weight,json=totalWeight,proto3" json:"total_weight,omitempty"`
Validators []*WarpValidator `protobuf:"bytes,3,rep,name=validators,proto3" json:"validators,omitempty"`
// contains filtered or unexported fields
}
func (*WarpValidatorSet) Descriptor
deprecated
func (*WarpValidatorSet) Descriptor() ([]byte, []int)
Deprecated: Use WarpValidatorSet.ProtoReflect.Descriptor instead.
func (*WarpValidatorSet) GetSubnetId ¶
func (x *WarpValidatorSet) GetSubnetId() []byte
func (*WarpValidatorSet) GetTotalWeight ¶
func (x *WarpValidatorSet) GetTotalWeight() uint64
func (*WarpValidatorSet) GetValidators ¶
func (x *WarpValidatorSet) GetValidators() []*WarpValidator
func (*WarpValidatorSet) ProtoMessage ¶
func (*WarpValidatorSet) ProtoMessage()
func (*WarpValidatorSet) ProtoReflect ¶
func (x *WarpValidatorSet) ProtoReflect() protoreflect.Message
func (*WarpValidatorSet) Reset ¶
func (x *WarpValidatorSet) Reset()
func (*WarpValidatorSet) String ¶
func (x *WarpValidatorSet) String() string