dalc

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package dalc is a generated protocol buffer package.

It is generated from these files:

dalc/dalc.proto

It has these top-level messages:

DAResponse
SubmitBlockRequest
SubmitBlockResponse
CheckBlockAvailabilityRequest
CheckBlockAvailabilityResponse
RetrieveBlockRequest
RetrieveBlockResponse

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthDalc = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDalc   = fmt.Errorf("proto: integer overflow")
)
View Source
var StatusCode_name = map[int32]string{
	0: "STATUS_CODE_UNSPECIFIED",
	1: "STATUS_CODE_SUCCESS",
	2: "STATUS_CODE_TIMEOUT",
	3: "STATUS_CODE_ERROR",
}
View Source
var StatusCode_value = map[string]int32{
	"STATUS_CODE_UNSPECIFIED": 0,
	"STATUS_CODE_SUCCESS":     1,
	"STATUS_CODE_TIMEOUT":     2,
	"STATUS_CODE_ERROR":       3,
}

Functions

func RegisterDALCServiceServer

func RegisterDALCServiceServer(s *grpc.Server, srv DALCServiceServer)

Types

type CheckBlockAvailabilityRequest

type CheckBlockAvailabilityRequest struct {
	Header *optimint.Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*CheckBlockAvailabilityRequest) Descriptor

func (*CheckBlockAvailabilityRequest) Descriptor() ([]byte, []int)

func (*CheckBlockAvailabilityRequest) GetHeader

func (*CheckBlockAvailabilityRequest) Marshal

func (m *CheckBlockAvailabilityRequest) Marshal() (dAtA []byte, err error)

func (*CheckBlockAvailabilityRequest) MarshalTo

func (m *CheckBlockAvailabilityRequest) MarshalTo(dAtA []byte) (int, error)

func (*CheckBlockAvailabilityRequest) ProtoMessage

func (*CheckBlockAvailabilityRequest) ProtoMessage()

func (*CheckBlockAvailabilityRequest) Reset

func (m *CheckBlockAvailabilityRequest) Reset()

func (*CheckBlockAvailabilityRequest) Size

func (m *CheckBlockAvailabilityRequest) Size() (n int)

func (*CheckBlockAvailabilityRequest) String

func (*CheckBlockAvailabilityRequest) Unmarshal

func (m *CheckBlockAvailabilityRequest) Unmarshal(dAtA []byte) error

type CheckBlockAvailabilityResponse

type CheckBlockAvailabilityResponse struct {
	Result        *DAResponse `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	DataAvailable bool        `protobuf:"varint,2,opt,name=data_available,json=dataAvailable,proto3" json:"data_available,omitempty"`
}

func (*CheckBlockAvailabilityResponse) Descriptor

func (*CheckBlockAvailabilityResponse) Descriptor() ([]byte, []int)

func (*CheckBlockAvailabilityResponse) GetDataAvailable

func (m *CheckBlockAvailabilityResponse) GetDataAvailable() bool

func (*CheckBlockAvailabilityResponse) GetResult

func (*CheckBlockAvailabilityResponse) Marshal

func (m *CheckBlockAvailabilityResponse) Marshal() (dAtA []byte, err error)

func (*CheckBlockAvailabilityResponse) MarshalTo

func (m *CheckBlockAvailabilityResponse) MarshalTo(dAtA []byte) (int, error)

func (*CheckBlockAvailabilityResponse) ProtoMessage

func (*CheckBlockAvailabilityResponse) ProtoMessage()

func (*CheckBlockAvailabilityResponse) Reset

func (m *CheckBlockAvailabilityResponse) Reset()

func (*CheckBlockAvailabilityResponse) Size

func (m *CheckBlockAvailabilityResponse) Size() (n int)

func (*CheckBlockAvailabilityResponse) String

func (*CheckBlockAvailabilityResponse) Unmarshal

func (m *CheckBlockAvailabilityResponse) Unmarshal(dAtA []byte) error

type DALCServiceClient

type DALCServiceClient interface {
	SubmitBlock(ctx context.Context, in *SubmitBlockRequest, opts ...grpc.CallOption) (*SubmitBlockResponse, error)
	CheckBlockAvailability(ctx context.Context, in *CheckBlockAvailabilityRequest, opts ...grpc.CallOption) (*CheckBlockAvailabilityResponse, error)
	RetrieveBlock(ctx context.Context, in *RetrieveBlockRequest, opts ...grpc.CallOption) (*RetrieveBlockResponse, error)
}

func NewDALCServiceClient

func NewDALCServiceClient(cc *grpc.ClientConn) DALCServiceClient

type DAResponse

type DAResponse struct {
	Code    StatusCode `protobuf:"varint,1,opt,name=code,proto3,enum=dalc.StatusCode" json:"code,omitempty"`
	Message string     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
}

func (*DAResponse) Descriptor

func (*DAResponse) Descriptor() ([]byte, []int)

func (*DAResponse) GetCode

func (m *DAResponse) GetCode() StatusCode

func (*DAResponse) GetMessage

func (m *DAResponse) GetMessage() string

func (*DAResponse) Marshal

func (m *DAResponse) Marshal() (dAtA []byte, err error)

func (*DAResponse) MarshalTo

func (m *DAResponse) MarshalTo(dAtA []byte) (int, error)

func (*DAResponse) ProtoMessage

func (*DAResponse) ProtoMessage()

func (*DAResponse) Reset

func (m *DAResponse) Reset()

func (*DAResponse) Size

func (m *DAResponse) Size() (n int)

func (*DAResponse) String

func (m *DAResponse) String() string

func (*DAResponse) Unmarshal

func (m *DAResponse) Unmarshal(dAtA []byte) error

type RetrieveBlockRequest

type RetrieveBlockRequest struct {
	Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
}

func (*RetrieveBlockRequest) Descriptor

func (*RetrieveBlockRequest) Descriptor() ([]byte, []int)

func (*RetrieveBlockRequest) GetHeight

func (m *RetrieveBlockRequest) GetHeight() uint64

func (*RetrieveBlockRequest) Marshal

func (m *RetrieveBlockRequest) Marshal() (dAtA []byte, err error)

func (*RetrieveBlockRequest) MarshalTo

func (m *RetrieveBlockRequest) MarshalTo(dAtA []byte) (int, error)

func (*RetrieveBlockRequest) ProtoMessage

func (*RetrieveBlockRequest) ProtoMessage()

func (*RetrieveBlockRequest) Reset

func (m *RetrieveBlockRequest) Reset()

func (*RetrieveBlockRequest) Size

func (m *RetrieveBlockRequest) Size() (n int)

func (*RetrieveBlockRequest) String

func (m *RetrieveBlockRequest) String() string

func (*RetrieveBlockRequest) Unmarshal

func (m *RetrieveBlockRequest) Unmarshal(dAtA []byte) error

type RetrieveBlockResponse

type RetrieveBlockResponse struct {
	Result *DAResponse     `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	Block  *optimint.Block `protobuf:"bytes,2,opt,name=block" json:"block,omitempty"`
}

func (*RetrieveBlockResponse) Descriptor

func (*RetrieveBlockResponse) Descriptor() ([]byte, []int)

func (*RetrieveBlockResponse) GetBlock

func (m *RetrieveBlockResponse) GetBlock() *optimint.Block

func (*RetrieveBlockResponse) GetResult

func (m *RetrieveBlockResponse) GetResult() *DAResponse

func (*RetrieveBlockResponse) Marshal

func (m *RetrieveBlockResponse) Marshal() (dAtA []byte, err error)

func (*RetrieveBlockResponse) MarshalTo

func (m *RetrieveBlockResponse) MarshalTo(dAtA []byte) (int, error)

func (*RetrieveBlockResponse) ProtoMessage

func (*RetrieveBlockResponse) ProtoMessage()

func (*RetrieveBlockResponse) Reset

func (m *RetrieveBlockResponse) Reset()

func (*RetrieveBlockResponse) Size

func (m *RetrieveBlockResponse) Size() (n int)

func (*RetrieveBlockResponse) String

func (m *RetrieveBlockResponse) String() string

func (*RetrieveBlockResponse) Unmarshal

func (m *RetrieveBlockResponse) Unmarshal(dAtA []byte) error

type StatusCode

type StatusCode int32
const (
	StatusCode_STATUS_CODE_UNSPECIFIED StatusCode = 0
	StatusCode_STATUS_CODE_SUCCESS     StatusCode = 1
	StatusCode_STATUS_CODE_TIMEOUT     StatusCode = 2
	StatusCode_STATUS_CODE_ERROR       StatusCode = 3
)

func (StatusCode) EnumDescriptor

func (StatusCode) EnumDescriptor() ([]byte, []int)

func (StatusCode) String

func (x StatusCode) String() string

type SubmitBlockRequest

type SubmitBlockRequest struct {
	Block *optimint.Block `protobuf:"bytes,1,opt,name=block" json:"block,omitempty"`
}

func (*SubmitBlockRequest) Descriptor

func (*SubmitBlockRequest) Descriptor() ([]byte, []int)

func (*SubmitBlockRequest) GetBlock

func (m *SubmitBlockRequest) GetBlock() *optimint.Block

func (*SubmitBlockRequest) Marshal

func (m *SubmitBlockRequest) Marshal() (dAtA []byte, err error)

func (*SubmitBlockRequest) MarshalTo

func (m *SubmitBlockRequest) MarshalTo(dAtA []byte) (int, error)

func (*SubmitBlockRequest) ProtoMessage

func (*SubmitBlockRequest) ProtoMessage()

func (*SubmitBlockRequest) Reset

func (m *SubmitBlockRequest) Reset()

func (*SubmitBlockRequest) Size

func (m *SubmitBlockRequest) Size() (n int)

func (*SubmitBlockRequest) String

func (m *SubmitBlockRequest) String() string

func (*SubmitBlockRequest) Unmarshal

func (m *SubmitBlockRequest) Unmarshal(dAtA []byte) error

type SubmitBlockResponse

type SubmitBlockResponse struct {
	Result *DAResponse `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
}

func (*SubmitBlockResponse) Descriptor

func (*SubmitBlockResponse) Descriptor() ([]byte, []int)

func (*SubmitBlockResponse) GetResult

func (m *SubmitBlockResponse) GetResult() *DAResponse

func (*SubmitBlockResponse) Marshal

func (m *SubmitBlockResponse) Marshal() (dAtA []byte, err error)

func (*SubmitBlockResponse) MarshalTo

func (m *SubmitBlockResponse) MarshalTo(dAtA []byte) (int, error)

func (*SubmitBlockResponse) ProtoMessage

func (*SubmitBlockResponse) ProtoMessage()

func (*SubmitBlockResponse) Reset

func (m *SubmitBlockResponse) Reset()

func (*SubmitBlockResponse) Size

func (m *SubmitBlockResponse) Size() (n int)

func (*SubmitBlockResponse) String

func (m *SubmitBlockResponse) String() string

func (*SubmitBlockResponse) Unmarshal

func (m *SubmitBlockResponse) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL