appchain

package
v0.0.0-...-e865ecf Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const MaxRecvMessageSize = 1024 * 1024 * 300

Variables

This section is empty.

Functions

This section is empty.

Types

type RpcServer

type RpcServer struct {
	*RpcServerConfig
	// contains filtered or unexported fields
}

func NewRpcServer

func NewRpcServer(grpcCfg *RpcServerConfig, chainRpcCfg []*config.RPC,
	db *database.DB,
	shutdown context.CancelCauseFunc) (*RpcServer, error)

func (*RpcServer) L1StakerRewardsAmount

func (s *RpcServer) L1StakerRewardsAmount(ctx context.Context, request *pb.L1StakerRewardsAmountRequest) (*pb.L1StakerRewardsAmountResponse, error)

func (*RpcServer) L2StakeRecord

func (s *RpcServer) L2StakeRecord(ctx context.Context, request *pb.L2StakeRecordRequest) (*pb.L2StakeRecordResponse, error)

func (*RpcServer) L2StakerRewardsAmount

func (s *RpcServer) L2StakerRewardsAmount(ctx context.Context, request *pb.L2StakerRewardsAmountRequest) (*pb.L2StakerRewardsAmountResponse, error)

func (*RpcServer) L2UnStakeRecord

func (s *RpcServer) L2UnStakeRecord(ctx context.Context, request *pb.L2UnStakeRecordRequest) (*pb.L2UnStakeRecordResponse, error)

func (*RpcServer) L2WithdrawRecord

func (s *RpcServer) L2WithdrawRecord(ctx context.Context, request *pb.L2WithdrawRecordRequest) (*pb.L2WithdrawRecordResponse, error)

func (*RpcServer) Start

func (s *RpcServer) Start(ctx context.Context) error

func (*RpcServer) Stop

func (s *RpcServer) Stop(ctx context.Context) error

func (*RpcServer) Stopped

func (s *RpcServer) Stopped() bool

type RpcServerConfig

type RpcServerConfig struct {
	GrpcHostname string
	GrpcPort     string
}

Directories

Path Synopsis
protobuf
pb

Jump to

Keyboard shortcuts

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