Documentation
¶
Index ¶
- func NewServer(input sequencing.SequencerInput, output sequencing.SequencerOutput, ...) *grpc.Server
- type Client
- func (c *Client) GetNextBatch(ctx context.Context, lastBatchHash []byte) (*sequencing.Batch, time.Time, 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, batchHash []byte) (bool, 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, lastBatchHash []byte) (*sequencing.Batch, time.Time, 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.