sequencing

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BatchVerifier_VerifyBatch_FullMethodName = "/sequencing.BatchVerifier/VerifyBatch"
)
View Source
const (
	SequencerInput_SubmitRollupTransaction_FullMethodName = "/sequencing.SequencerInput/SubmitRollupTransaction"
)
View Source
const (
	SequencerOutput_GetNextBatch_FullMethodName = "/sequencing.SequencerOutput/GetNextBatch"
)

Variables

View Source
var BatchVerifier_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sequencing.BatchVerifier",
	HandlerType: (*BatchVerifierServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "VerifyBatch",
			Handler:    _BatchVerifier_VerifyBatch_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "sequencing.proto",
}

BatchVerifier_ServiceDesc is the grpc.ServiceDesc for BatchVerifier service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_sequencing_proto protoreflect.FileDescriptor
View Source
var SequencerInput_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sequencing.SequencerInput",
	HandlerType: (*SequencerInputServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SubmitRollupTransaction",
			Handler:    _SequencerInput_SubmitRollupTransaction_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "sequencing.proto",
}

SequencerInput_ServiceDesc is the grpc.ServiceDesc for SequencerInput service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var SequencerOutput_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sequencing.SequencerOutput",
	HandlerType: (*SequencerOutputServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetNextBatch",
			Handler:    _SequencerOutput_GetNextBatch_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "sequencing.proto",
}

SequencerOutput_ServiceDesc is the grpc.ServiceDesc for SequencerOutput service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterBatchVerifierServer

func RegisterBatchVerifierServer(s grpc.ServiceRegistrar, srv BatchVerifierServer)

func RegisterSequencerInputServer

func RegisterSequencerInputServer(s grpc.ServiceRegistrar, srv SequencerInputServer)

func RegisterSequencerOutputServer

func RegisterSequencerOutputServer(s grpc.ServiceRegistrar, srv SequencerOutputServer)

Types

type Batch

type Batch struct {
	Transactions [][]byte `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// contains filtered or unexported fields
}

Batch holds a list of transactions

func (*Batch) Descriptor deprecated

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

Deprecated: Use Batch.ProtoReflect.Descriptor instead.

func (*Batch) GetTransactions

func (x *Batch) GetTransactions() [][]byte

func (*Batch) ProtoMessage

func (*Batch) ProtoMessage()

func (*Batch) ProtoReflect

func (x *Batch) ProtoReflect() protoreflect.Message

func (*Batch) Reset

func (x *Batch) Reset()

func (*Batch) String

func (x *Batch) String() string

type BatchVerifierClient

type BatchVerifierClient interface {
	// VerifyBatch ...
	VerifyBatch(ctx context.Context, in *Batch, opts ...grpc.CallOption) (*VerificationResponse, error)
}

BatchVerifierClient is the client API for BatchVerifier service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkgo.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type BatchVerifierServer

type BatchVerifierServer interface {
	// VerifyBatch ...
	VerifyBatch(context.Context, *Batch) (*VerificationResponse, error)
	// contains filtered or unexported methods
}

BatchVerifierServer is the server API for BatchVerifier service. All implementations must embed UnimplementedBatchVerifierServer for forward compatibility

type SequencerInputClient

type SequencerInputClient interface {
	// SubmitRollupTransaction ...
	SubmitRollupTransaction(ctx context.Context, in *SubmitRollupTransactionRequest, opts ...grpc.CallOption) (*SubmitRollupTransactionResponse, error)
}

SequencerInputClient is the client API for SequencerInput service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkgo.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type SequencerInputServer

type SequencerInputServer interface {
	// SubmitRollupTransaction ...
	SubmitRollupTransaction(context.Context, *SubmitRollupTransactionRequest) (*SubmitRollupTransactionResponse, error)
	// contains filtered or unexported methods
}

SequencerInputServer is the server API for SequencerInput service. All implementations must embed UnimplementedSequencerInputServer for forward compatibility

type SequencerOutputClient

type SequencerOutputClient interface {
	// SubmitRollupTransaction ...
	GetNextBatch(ctx context.Context, in *Batch, opts ...grpc.CallOption) (*Batch, error)
}

SequencerOutputClient is the client API for SequencerOutput service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkgo.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type SequencerOutputServer

type SequencerOutputServer interface {
	// SubmitRollupTransaction ...
	GetNextBatch(context.Context, *Batch) (*Batch, error)
	// contains filtered or unexported methods
}

SequencerOutputServer is the server API for SequencerOutput service. All implementations must embed UnimplementedSequencerOutputServer for forward compatibility

type SubmitRollupTransactionRequest

type SubmitRollupTransactionRequest struct {

	// the unhashed rollup id
	RollupId []byte `protobuf:"bytes,1,opt,name=rollup_id,json=rollupId,proto3" json:"rollup_id,omitempty"`
	// the raw data bytes of the rollup transaction
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

SubmitRollupTransactionRequest ...

func (*SubmitRollupTransactionRequest) Descriptor deprecated

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

Deprecated: Use SubmitRollupTransactionRequest.ProtoReflect.Descriptor instead.

func (*SubmitRollupTransactionRequest) GetData

func (x *SubmitRollupTransactionRequest) GetData() []byte

func (*SubmitRollupTransactionRequest) GetRollupId

func (x *SubmitRollupTransactionRequest) GetRollupId() []byte

func (*SubmitRollupTransactionRequest) ProtoMessage

func (*SubmitRollupTransactionRequest) ProtoMessage()

func (*SubmitRollupTransactionRequest) ProtoReflect

func (*SubmitRollupTransactionRequest) Reset

func (x *SubmitRollupTransactionRequest) Reset()

func (*SubmitRollupTransactionRequest) String

type SubmitRollupTransactionResponse

type SubmitRollupTransactionResponse struct {
	// contains filtered or unexported fields
}

SubmitRollupTransactionResponse ...

func (*SubmitRollupTransactionResponse) Descriptor deprecated

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

Deprecated: Use SubmitRollupTransactionResponse.ProtoReflect.Descriptor instead.

func (*SubmitRollupTransactionResponse) ProtoMessage

func (*SubmitRollupTransactionResponse) ProtoMessage()

func (*SubmitRollupTransactionResponse) ProtoReflect

func (*SubmitRollupTransactionResponse) Reset

func (*SubmitRollupTransactionResponse) String

type UnimplementedBatchVerifierServer

type UnimplementedBatchVerifierServer struct {
}

UnimplementedBatchVerifierServer must be embedded to have forward compatible implementations.

func (UnimplementedBatchVerifierServer) VerifyBatch

type UnimplementedSequencerInputServer

type UnimplementedSequencerInputServer struct {
}

UnimplementedSequencerInputServer must be embedded to have forward compatible implementations.

type UnimplementedSequencerOutputServer

type UnimplementedSequencerOutputServer struct {
}

UnimplementedSequencerOutputServer must be embedded to have forward compatible implementations.

func (UnimplementedSequencerOutputServer) GetNextBatch

type UnsafeBatchVerifierServer

type UnsafeBatchVerifierServer interface {
	// contains filtered or unexported methods
}

UnsafeBatchVerifierServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BatchVerifierServer will result in compilation errors.

type UnsafeSequencerInputServer

type UnsafeSequencerInputServer interface {
	// contains filtered or unexported methods
}

UnsafeSequencerInputServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SequencerInputServer will result in compilation errors.

type UnsafeSequencerOutputServer

type UnsafeSequencerOutputServer interface {
	// contains filtered or unexported methods
}

UnsafeSequencerOutputServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SequencerOutputServer will result in compilation errors.

type VerificationResponse

type VerificationResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

VerificationResponse

func (*VerificationResponse) Descriptor deprecated

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

Deprecated: Use VerificationResponse.ProtoReflect.Descriptor instead.

func (*VerificationResponse) GetSuccess

func (x *VerificationResponse) GetSuccess() bool

func (*VerificationResponse) ProtoMessage

func (*VerificationResponse) ProtoMessage()

func (*VerificationResponse) ProtoReflect

func (x *VerificationResponse) ProtoReflect() protoreflect.Message

func (*VerificationResponse) Reset

func (x *VerificationResponse) Reset()

func (*VerificationResponse) String

func (x *VerificationResponse) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳