Documentation
¶
Index ¶
- type Chain
- func (c *Chain) Conn() core.Connection
- func (c *Chain) Connect(id, endpoint, mcs, lightNode, oracleNode string) (*ethclient.Client, error)
- func (c *Chain) EthClient() *ethclient.Client
- func (c *Chain) Id() msg.ChainId
- func (c *Chain) Maintainer(client *ethclient.Client, selfId, toChainId uint64, srcEndpoint string) ([]byte, error)
- func (c *Chain) Name() string
- func (c *Chain) New(chainCfg *core.ChainConfig, logger log15.Logger, sysErr chan<- error, ...) (core.Chain, error)
- func (c *Chain) Proof(client *ethclient.Client, log *types.Log, endpoint string, proofType int64, ...) ([]byte, error)
- func (c *Chain) SetRouter(r core.Router)
- func (c *Chain) Start() error
- func (c *Chain) Stop()
- type Maintainer
- type Messenger
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 (*Chain) Conn ¶
func (c *Chain) Conn() core.Connection
Conn return Connection interface for relayer register
func (*Chain) Maintainer ¶ added in v1.3.0
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
Click to show internal directories.
Click to hide internal directories.