rpc

package
v0.0.0-...-0432942 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAndStartFinalityRpcServer

func NewAndStartFinalityRpcServer(ctx context.Context, address string, finality FinalityInterface)

Types

type DRNGRpcInterface

type DRNGRpcInterface interface {
	Finality(req FinalityRequest, reply *interface{}) error
}

type FinalityInterface

type FinalityInterface interface {
	SignatureByBlock(L2BlockNumber *big.Int) (interface{}, error)
}

type FinalityRequest

type FinalityRequest struct {
	BlockNumber *big.Int `json:"l2_block_number"`
}

type FinalityRpcServer

type FinalityRpcServer struct {
	FinalityInterface
}

func (*FinalityRpcServer) Finality

func (s *FinalityRpcServer) Finality(req FinalityRequest, reply *interface{}) error

Jump to

Keyboard shortcuts

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