Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterRollupServiceServer(s grpc.ServiceRegistrar, srv RollupServiceServer)
- type GetBlockByHashRequest
- func (*GetBlockByHashRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockByHashRequest) GetHash() []byte
- func (*GetBlockByHashRequest) ProtoMessage()
- func (x *GetBlockByHashRequest) ProtoReflect() protoreflect.Message
- func (x *GetBlockByHashRequest) Reset()
- func (x *GetBlockByHashRequest) String() string
- type GetBlockByHashResponse
- func (*GetBlockByHashResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockByHashResponse) GetBlock() *v1.Block
- func (*GetBlockByHashResponse) ProtoMessage()
- func (x *GetBlockByHashResponse) ProtoReflect() protoreflect.Message
- func (x *GetBlockByHashResponse) Reset()
- func (x *GetBlockByHashResponse) String() string
- type GetBlockByHeightRequest
- func (*GetBlockByHeightRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockByHeightRequest) GetHeight() uint64
- func (*GetBlockByHeightRequest) ProtoMessage()
- func (x *GetBlockByHeightRequest) ProtoReflect() protoreflect.Message
- func (x *GetBlockByHeightRequest) Reset()
- func (x *GetBlockByHeightRequest) String() string
- type GetBlockByHeightResponse
- func (*GetBlockByHeightResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockByHeightResponse) GetBlock() *v1.Block
- func (*GetBlockByHeightResponse) ProtoMessage()
- func (x *GetBlockByHeightResponse) ProtoReflect() protoreflect.Message
- func (x *GetBlockByHeightResponse) Reset()
- func (x *GetBlockByHeightResponse) String() string
- type GetChainInfoRequest
- type GetChainInfoResponse
- func (*GetChainInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetChainInfoResponse) GetCelestiaHeightOffset() uint64
- func (x *GetChainInfoResponse) GetChainId() string
- func (x *GetChainInfoResponse) GetFinalizedHeight() uint64
- func (*GetChainInfoResponse) ProtoMessage()
- func (x *GetChainInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetChainInfoResponse) Reset()
- func (x *GetChainInfoResponse) String() string
- type GetLatestBlockRequest
- type GetLatestBlockResponse
- func (*GetLatestBlockResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetLatestBlockResponse) GetBlock() *v1.Block
- func (*GetLatestBlockResponse) ProtoMessage()
- func (x *GetLatestBlockResponse) ProtoReflect() protoreflect.Message
- func (x *GetLatestBlockResponse) Reset()
- func (x *GetLatestBlockResponse) String() string
- type RollupServiceClient
- type RollupServiceServer
- type UnimplementedRollupServiceServer
- func (UnimplementedRollupServiceServer) GetBlockByHash(context.Context, *GetBlockByHashRequest) (*GetBlockByHashResponse, error)
- func (UnimplementedRollupServiceServer) GetBlockByHeight(context.Context, *GetBlockByHeightRequest) (*GetBlockByHeightResponse, error)
- func (UnimplementedRollupServiceServer) GetChainInfo(context.Context, *GetChainInfoRequest) (*GetChainInfoResponse, error)
- func (UnimplementedRollupServiceServer) GetLatestBlock(context.Context, *GetLatestBlockRequest) (*GetLatestBlockResponse, error)
- type UnsafeRollupServiceServer
Constants ¶
const ( RollupService_GetBlockByHeight_FullMethodName = "/blobcast.rollupapis.v1.RollupService/GetBlockByHeight" RollupService_GetBlockByHash_FullMethodName = "/blobcast.rollupapis.v1.RollupService/GetBlockByHash" RollupService_GetLatestBlock_FullMethodName = "/blobcast.rollupapis.v1.RollupService/GetLatestBlock" RollupService_GetChainInfo_FullMethodName = "/blobcast.rollupapis.v1.RollupService/GetChainInfo" )
Variables ¶
var File_blobcast_rollupapis_v1_get_block_by_hash_request_proto protoreflect.FileDescriptor
var File_blobcast_rollupapis_v1_get_block_by_hash_response_proto protoreflect.FileDescriptor
var File_blobcast_rollupapis_v1_get_block_by_height_request_proto protoreflect.FileDescriptor
var File_blobcast_rollupapis_v1_get_block_by_height_response_proto protoreflect.FileDescriptor
var File_blobcast_rollupapis_v1_get_chain_info_request_proto protoreflect.FileDescriptor
var File_blobcast_rollupapis_v1_get_chain_info_response_proto protoreflect.FileDescriptor
var File_blobcast_rollupapis_v1_get_latest_block_request_proto protoreflect.FileDescriptor
var File_blobcast_rollupapis_v1_get_latest_block_response_proto protoreflect.FileDescriptor
var File_blobcast_rollupapis_v1_rollup_service_proto protoreflect.FileDescriptor
var RollupService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "blobcast.rollupapis.v1.RollupService", HandlerType: (*RollupServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetBlockByHeight", Handler: _RollupService_GetBlockByHeight_Handler, }, { MethodName: "GetBlockByHash", Handler: _RollupService_GetBlockByHash_Handler, }, { MethodName: "GetLatestBlock", Handler: _RollupService_GetLatestBlock_Handler, }, { MethodName: "GetChainInfo", Handler: _RollupService_GetChainInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "blobcast/rollupapis/v1/rollup_service.proto", }
RollupService_ServiceDesc is the grpc.ServiceDesc for RollupService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRollupServiceServer ¶
func RegisterRollupServiceServer(s grpc.ServiceRegistrar, srv RollupServiceServer)
Types ¶
type GetBlockByHashRequest ¶
type GetBlockByHashRequest struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // contains filtered or unexported fields }
func (*GetBlockByHashRequest) Descriptor
deprecated
func (*GetBlockByHashRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockByHashRequest.ProtoReflect.Descriptor instead.
func (*GetBlockByHashRequest) GetHash ¶
func (x *GetBlockByHashRequest) GetHash() []byte
func (*GetBlockByHashRequest) ProtoMessage ¶
func (*GetBlockByHashRequest) ProtoMessage()
func (*GetBlockByHashRequest) ProtoReflect ¶
func (x *GetBlockByHashRequest) ProtoReflect() protoreflect.Message
func (*GetBlockByHashRequest) Reset ¶
func (x *GetBlockByHashRequest) Reset()
func (*GetBlockByHashRequest) String ¶
func (x *GetBlockByHashRequest) String() string
type GetBlockByHashResponse ¶
type GetBlockByHashResponse struct { Block *v1.Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` // contains filtered or unexported fields }
func (*GetBlockByHashResponse) Descriptor
deprecated
func (*GetBlockByHashResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockByHashResponse.ProtoReflect.Descriptor instead.
func (*GetBlockByHashResponse) GetBlock ¶
func (x *GetBlockByHashResponse) GetBlock() *v1.Block
func (*GetBlockByHashResponse) ProtoMessage ¶
func (*GetBlockByHashResponse) ProtoMessage()
func (*GetBlockByHashResponse) ProtoReflect ¶
func (x *GetBlockByHashResponse) ProtoReflect() protoreflect.Message
func (*GetBlockByHashResponse) Reset ¶
func (x *GetBlockByHashResponse) Reset()
func (*GetBlockByHashResponse) String ¶
func (x *GetBlockByHashResponse) String() string
type GetBlockByHeightRequest ¶
type GetBlockByHeightRequest struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
func (*GetBlockByHeightRequest) Descriptor
deprecated
func (*GetBlockByHeightRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockByHeightRequest.ProtoReflect.Descriptor instead.
func (*GetBlockByHeightRequest) GetHeight ¶
func (x *GetBlockByHeightRequest) GetHeight() uint64
func (*GetBlockByHeightRequest) ProtoMessage ¶
func (*GetBlockByHeightRequest) ProtoMessage()
func (*GetBlockByHeightRequest) ProtoReflect ¶
func (x *GetBlockByHeightRequest) ProtoReflect() protoreflect.Message
func (*GetBlockByHeightRequest) Reset ¶
func (x *GetBlockByHeightRequest) Reset()
func (*GetBlockByHeightRequest) String ¶
func (x *GetBlockByHeightRequest) String() string
type GetBlockByHeightResponse ¶
type GetBlockByHeightResponse struct { Block *v1.Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` // contains filtered or unexported fields }
func (*GetBlockByHeightResponse) Descriptor
deprecated
func (*GetBlockByHeightResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockByHeightResponse.ProtoReflect.Descriptor instead.
func (*GetBlockByHeightResponse) GetBlock ¶
func (x *GetBlockByHeightResponse) GetBlock() *v1.Block
func (*GetBlockByHeightResponse) ProtoMessage ¶
func (*GetBlockByHeightResponse) ProtoMessage()
func (*GetBlockByHeightResponse) ProtoReflect ¶
func (x *GetBlockByHeightResponse) ProtoReflect() protoreflect.Message
func (*GetBlockByHeightResponse) Reset ¶
func (x *GetBlockByHeightResponse) Reset()
func (*GetBlockByHeightResponse) String ¶
func (x *GetBlockByHeightResponse) String() string
type GetChainInfoRequest ¶
type GetChainInfoRequest struct {
// contains filtered or unexported fields
}
func (*GetChainInfoRequest) Descriptor
deprecated
func (*GetChainInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetChainInfoRequest.ProtoReflect.Descriptor instead.
func (*GetChainInfoRequest) ProtoMessage ¶
func (*GetChainInfoRequest) ProtoMessage()
func (*GetChainInfoRequest) ProtoReflect ¶
func (x *GetChainInfoRequest) ProtoReflect() protoreflect.Message
func (*GetChainInfoRequest) Reset ¶
func (x *GetChainInfoRequest) Reset()
func (*GetChainInfoRequest) String ¶
func (x *GetChainInfoRequest) String() string
type GetChainInfoResponse ¶
type GetChainInfoResponse struct { ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` FinalizedHeight uint64 `protobuf:"varint,2,opt,name=finalized_height,json=finalizedHeight,proto3" json:"finalized_height,omitempty"` CelestiaHeightOffset uint64 `protobuf:"varint,3,opt,name=celestia_height_offset,json=celestiaHeightOffset,proto3" json:"celestia_height_offset,omitempty"` // contains filtered or unexported fields }
func (*GetChainInfoResponse) Descriptor
deprecated
func (*GetChainInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetChainInfoResponse.ProtoReflect.Descriptor instead.
func (*GetChainInfoResponse) GetCelestiaHeightOffset ¶
func (x *GetChainInfoResponse) GetCelestiaHeightOffset() uint64
func (*GetChainInfoResponse) GetChainId ¶
func (x *GetChainInfoResponse) GetChainId() string
func (*GetChainInfoResponse) GetFinalizedHeight ¶
func (x *GetChainInfoResponse) GetFinalizedHeight() uint64
func (*GetChainInfoResponse) ProtoMessage ¶
func (*GetChainInfoResponse) ProtoMessage()
func (*GetChainInfoResponse) ProtoReflect ¶
func (x *GetChainInfoResponse) ProtoReflect() protoreflect.Message
func (*GetChainInfoResponse) Reset ¶
func (x *GetChainInfoResponse) Reset()
func (*GetChainInfoResponse) String ¶
func (x *GetChainInfoResponse) String() string
type GetLatestBlockRequest ¶
type GetLatestBlockRequest struct {
// contains filtered or unexported fields
}
func (*GetLatestBlockRequest) Descriptor
deprecated
func (*GetLatestBlockRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLatestBlockRequest.ProtoReflect.Descriptor instead.
func (*GetLatestBlockRequest) ProtoMessage ¶
func (*GetLatestBlockRequest) ProtoMessage()
func (*GetLatestBlockRequest) ProtoReflect ¶
func (x *GetLatestBlockRequest) ProtoReflect() protoreflect.Message
func (*GetLatestBlockRequest) Reset ¶
func (x *GetLatestBlockRequest) Reset()
func (*GetLatestBlockRequest) String ¶
func (x *GetLatestBlockRequest) String() string
type GetLatestBlockResponse ¶
type GetLatestBlockResponse struct { Block *v1.Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` // contains filtered or unexported fields }
func (*GetLatestBlockResponse) Descriptor
deprecated
func (*GetLatestBlockResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetLatestBlockResponse.ProtoReflect.Descriptor instead.
func (*GetLatestBlockResponse) GetBlock ¶
func (x *GetLatestBlockResponse) GetBlock() *v1.Block
func (*GetLatestBlockResponse) ProtoMessage ¶
func (*GetLatestBlockResponse) ProtoMessage()
func (*GetLatestBlockResponse) ProtoReflect ¶
func (x *GetLatestBlockResponse) ProtoReflect() protoreflect.Message
func (*GetLatestBlockResponse) Reset ¶
func (x *GetLatestBlockResponse) Reset()
func (*GetLatestBlockResponse) String ¶
func (x *GetLatestBlockResponse) String() string
type RollupServiceClient ¶
type RollupServiceClient interface { GetBlockByHeight(ctx context.Context, in *GetBlockByHeightRequest, opts ...grpc.CallOption) (*GetBlockByHeightResponse, error) GetBlockByHash(ctx context.Context, in *GetBlockByHashRequest, opts ...grpc.CallOption) (*GetBlockByHashResponse, error) GetLatestBlock(ctx context.Context, in *GetLatestBlockRequest, opts ...grpc.CallOption) (*GetLatestBlockResponse, error) GetChainInfo(ctx context.Context, in *GetChainInfoRequest, opts ...grpc.CallOption) (*GetChainInfoResponse, error) }
RollupServiceClient is the client API for RollupService 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 NewRollupServiceClient ¶
func NewRollupServiceClient(cc grpc.ClientConnInterface) RollupServiceClient
type RollupServiceServer ¶
type RollupServiceServer interface { GetBlockByHeight(context.Context, *GetBlockByHeightRequest) (*GetBlockByHeightResponse, error) GetBlockByHash(context.Context, *GetBlockByHashRequest) (*GetBlockByHashResponse, error) GetLatestBlock(context.Context, *GetLatestBlockRequest) (*GetLatestBlockResponse, error) GetChainInfo(context.Context, *GetChainInfoRequest) (*GetChainInfoResponse, error) // contains filtered or unexported methods }
RollupServiceServer is the server API for RollupService service. All implementations must embed UnimplementedRollupServiceServer for forward compatibility.
type UnimplementedRollupServiceServer ¶
type UnimplementedRollupServiceServer struct{}
UnimplementedRollupServiceServer 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 (UnimplementedRollupServiceServer) GetBlockByHash ¶
func (UnimplementedRollupServiceServer) GetBlockByHash(context.Context, *GetBlockByHashRequest) (*GetBlockByHashResponse, error)
func (UnimplementedRollupServiceServer) GetBlockByHeight ¶
func (UnimplementedRollupServiceServer) GetBlockByHeight(context.Context, *GetBlockByHeightRequest) (*GetBlockByHeightResponse, error)
func (UnimplementedRollupServiceServer) GetChainInfo ¶
func (UnimplementedRollupServiceServer) GetChainInfo(context.Context, *GetChainInfoRequest) (*GetChainInfoResponse, error)
func (UnimplementedRollupServiceServer) GetLatestBlock ¶
func (UnimplementedRollupServiceServer) GetLatestBlock(context.Context, *GetLatestBlockRequest) (*GetLatestBlockResponse, error)
type UnsafeRollupServiceServer ¶
type UnsafeRollupServiceServer interface {
// contains filtered or unexported methods
}
UnsafeRollupServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RollupServiceServer will result in compilation errors.