pb

package
v0.0.3-RC28 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BroadcastService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "broadcast.v1.BroadcastService",
	HandlerType: (*BroadcastServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetLastBatch",
			Handler:    _BroadcastService_GetLastBatch_Handler,
		},
		{
			MethodName: "GetBatch",
			Handler:    _BroadcastService_GetBatch_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "broadcast.proto",
}

BroadcastService_ServiceDesc is the grpc.ServiceDesc for BroadcastService 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_broadcast_proto protoreflect.FileDescriptor

Functions

func RegisterBroadcastServiceServer

func RegisterBroadcastServiceServer(s grpc.ServiceRegistrar, srv BroadcastServiceServer)

Types

type BroadcastServiceClient

type BroadcastServiceClient interface {
	GetLastBatch(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetBatchResponse, error)
	GetBatch(ctx context.Context, in *GetBatchRequest, opts ...grpc.CallOption) (*GetBatchResponse, error)
}

BroadcastServiceClient is the client API for BroadcastService 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.

type BroadcastServiceServer

type BroadcastServiceServer interface {
	GetLastBatch(context.Context, *emptypb.Empty) (*GetBatchResponse, error)
	GetBatch(context.Context, *GetBatchRequest) (*GetBatchResponse, error)
	// contains filtered or unexported methods
}

BroadcastServiceServer is the server API for BroadcastService service. All implementations must embed UnimplementedBroadcastServiceServer for forward compatibility

type GetBatchRequest

type GetBatchRequest struct {
	BatchNumber uint64 `protobuf:"varint,1,opt,name=batch_number,json=batchNumber,proto3" json:"batch_number,omitempty"`
	// contains filtered or unexported fields
}

Requests

func (*GetBatchRequest) Descriptor deprecated

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

Deprecated: Use GetBatchRequest.ProtoReflect.Descriptor instead.

func (*GetBatchRequest) GetBatchNumber

func (x *GetBatchRequest) GetBatchNumber() uint64

func (*GetBatchRequest) ProtoMessage

func (*GetBatchRequest) ProtoMessage()

func (*GetBatchRequest) ProtoReflect

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

func (*GetBatchRequest) Reset

func (x *GetBatchRequest) Reset()

func (*GetBatchRequest) String

func (x *GetBatchRequest) String() string

type GetBatchResponse

type GetBatchResponse struct {
	BatchNumber       uint64         `protobuf:"varint,1,opt,name=batch_number,json=batchNumber,proto3" json:"batch_number,omitempty"`
	GlobalExitRoot    string         `protobuf:"bytes,2,opt,name=global_exit_root,json=globalExitRoot,proto3" json:"global_exit_root,omitempty"`
	LocalExitRoot     string         `protobuf:"bytes,3,opt,name=local_exit_root,json=localExitRoot,proto3" json:"local_exit_root,omitempty"`
	StateRoot         string         `protobuf:"bytes,4,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"`
	MainnetExitRoot   string         `protobuf:"bytes,5,opt,name=mainnet_exit_root,json=mainnetExitRoot,proto3" json:"mainnet_exit_root,omitempty"`
	RollupExitRoot    string         `protobuf:"bytes,6,opt,name=rollup_exit_root,json=rollupExitRoot,proto3" json:"rollup_exit_root,omitempty"`
	Timestamp         uint64         `protobuf:"varint,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Sequencer         string         `protobuf:"bytes,8,opt,name=sequencer,proto3" json:"sequencer,omitempty"`
	ForcedBatchNumber uint64         `protobuf:"varint,9,opt,name=forced_batch_number,json=forcedBatchNumber,proto3" json:"forced_batch_number,omitempty"`
	Transactions      []*Transaction `protobuf:"bytes,10,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// contains filtered or unexported fields
}

Responses

func (*GetBatchResponse) Descriptor deprecated

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

Deprecated: Use GetBatchResponse.ProtoReflect.Descriptor instead.

func (*GetBatchResponse) GetBatchNumber

func (x *GetBatchResponse) GetBatchNumber() uint64

func (*GetBatchResponse) GetForcedBatchNumber

func (x *GetBatchResponse) GetForcedBatchNumber() uint64

func (*GetBatchResponse) GetGlobalExitRoot

func (x *GetBatchResponse) GetGlobalExitRoot() string

func (*GetBatchResponse) GetLocalExitRoot

func (x *GetBatchResponse) GetLocalExitRoot() string

func (*GetBatchResponse) GetMainnetExitRoot

func (x *GetBatchResponse) GetMainnetExitRoot() string

func (*GetBatchResponse) GetRollupExitRoot

func (x *GetBatchResponse) GetRollupExitRoot() string

func (*GetBatchResponse) GetSequencer

func (x *GetBatchResponse) GetSequencer() string

func (*GetBatchResponse) GetStateRoot

func (x *GetBatchResponse) GetStateRoot() string

func (*GetBatchResponse) GetTimestamp

func (x *GetBatchResponse) GetTimestamp() uint64

func (*GetBatchResponse) GetTransactions

func (x *GetBatchResponse) GetTransactions() []*Transaction

func (*GetBatchResponse) ProtoMessage

func (*GetBatchResponse) ProtoMessage()

func (*GetBatchResponse) ProtoReflect

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

func (*GetBatchResponse) Reset

func (x *GetBatchResponse) Reset()

func (*GetBatchResponse) String

func (x *GetBatchResponse) String() string

type Transaction

type Transaction struct {
	Encoded string `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"`
	// contains filtered or unexported fields
}

Common

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetEncoded

func (x *Transaction) GetEncoded() string

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

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

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

type UnimplementedBroadcastServiceServer

type UnimplementedBroadcastServiceServer struct {
}

UnimplementedBroadcastServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedBroadcastServiceServer) GetBatch

func (UnimplementedBroadcastServiceServer) GetLastBatch

type UnsafeBroadcastServiceServer

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

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

Jump to

Keyboard shortcuts

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