eth2

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: LGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	// contains filtered or unexported fields
}

func InitializeChain

func InitializeChain(chainCfg *core.ChainConfig, logger log15.Logger, sysErr chan<- error, role mapprotocol.Role) (*Chain, error)

func (*Chain) Conn

func (c *Chain) Conn() core.Connection

Conn return Connection interface for relayer register

func (*Chain) EthClient

func (c *Chain) EthClient() *ethclient.Client

EthClient return EthClient for global map connection

func (*Chain) Id

func (c *Chain) Id() msg.ChainId

func (*Chain) Name

func (c *Chain) Name() string

func (*Chain) SetRouter

func (c *Chain) SetRouter(r *core.Router)

func (*Chain) Start

func (c *Chain) Start() error

func (*Chain) Stop

func (c *Chain) Stop()

Stop signals to any running routines to exit

type Maintainer

type Maintainer struct {
	*chain.CommonSync
	// contains filtered or unexported fields
}

func NewMaintainer

func NewMaintainer(cs *chain.CommonSync, eth2Client *eth2.Client) *Maintainer

func (*Maintainer) Sync

func (m *Maintainer) Sync() error

type Messenger

type Messenger struct {
	*chain.CommonSync
}

func NewMessenger

func NewMessenger(cs *chain.CommonSync) *Messenger

func (*Messenger) Sync

func (m *Messenger) Sync() error

Jump to

Keyboard shortcuts

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