Documentation
¶
Index ¶
- func NewServer(input sequencing.SequencerInput, output sequencing.SequencerOutput, ...) *grpc.Server
- type Client
- func (c *Client) GetNextBatch(ctx context.Context, req sequencing.GetNextBatchRequest) (*sequencing.GetNextBatchResponse, error)
- func (c *Client) Start(target string, opts ...grpc.DialOption) (err error)
- func (c *Client) Stop() error
- func (c *Client) SubmitRollupTransaction(ctx context.Context, req sequencing.SubmitRollupTransactionRequest) (*sequencing.SubmitRollupTransactionResponse, error)
- func (c *Client) VerifyBatch(ctx context.Context, req sequencing.VerifyBatchRequest) (*sequencing.VerifyBatchResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶
func NewServer( input sequencing.SequencerInput, output sequencing.SequencerOutput, verifier sequencing.BatchVerifier, opts ...grpc.ServerOption, ) *grpc.Server
NewServer creates a new gRPC server for the Sequencer service.
Types ¶
type Client ¶
type Client struct {
pbseq.SequencerInputClient
pbseq.SequencerOutputClient
pbseq.BatchVerifierClient
// contains filtered or unexported fields
}
Client is a gRPC proxy client for DA interface.
func (*Client) GetNextBatch ¶
func (c *Client) GetNextBatch(ctx context.Context, req sequencing.GetNextBatchRequest) (*sequencing.GetNextBatchResponse, error)
GetNextBatch returns the next batch of transactions from sequencer to rollup.
func (*Client) Start ¶
func (c *Client) Start(target string, opts ...grpc.DialOption) (err error)
Start connects Client to target, with given options.
func (*Client) SubmitRollupTransaction ¶
func (c *Client) SubmitRollupTransaction(ctx context.Context, req sequencing.SubmitRollupTransactionRequest) (*sequencing.SubmitRollupTransactionResponse, error)
SubmitRollupTransaction submits a transaction from rollup to sequencer.
func (*Client) VerifyBatch ¶
func (c *Client) VerifyBatch(ctx context.Context, req sequencing.VerifyBatchRequest) (*sequencing.VerifyBatchResponse, error)
VerifyBatch verifies a batch of transactions received from the sequencer.
Click to show internal directories.
Click to hide internal directories.