Documentation ¶
Index ¶
- func NewServer(input sequencing.SequencerInput, output sequencing.SequencerOutput, ...) *grpc.Server
- type Client
- func (c *Client) GetNextBatch(ctx context.Context, lastBatch *sequencing.Batch) (*sequencing.Batch, error)
- func (c *Client) Start(target string, opts ...grpc.DialOption) (err error)
- func (c *Client) Stop() error
- func (c *Client) SubmitRollupTransaction(ctx context.Context, rollupId []byte, tx []byte) error
- func (c *Client) VerifyBatch(ctx context.Context, batch *sequencing.Batch) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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, lastBatch *sequencing.Batch) (*sequencing.Batch, 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 ¶
SubmitRollupTransaction submits a transaction from rollup to sequencer.
Click to show internal directories.
Click to hide internal directories.