chain

package
v0.0.0-...-1b15b10 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Copyright 2020 ChainSafe Systems SPDX-License-Identifier: LGPL-3.0-only

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(cc *config.CeloChainConfig, c *client.Client, listener Listener, writer Writer, stopChn <-chan struct{}) (*Chain, error)

func (*Chain) ID

func (c *Chain) ID() utils.ChainId

func (*Chain) Name

func (c *Chain) Name() string

func (*Chain) Start

func (c *Chain) Start() error

type Listener

type Listener interface {
	StartPollingBlocks() error
	SetContracts(bridge listener.IBridge, erc20Handler listener.IERC20Handler, erc721Handler listener.IERC721Handler, genericHandler listener.IGenericHandler)
}

checkBlockstore queries the blockstore for the latest known block. If the latest block is greater than cfg.startBlock, then cfg.startBlock is replaced with the latest known block.

type Writer

type Writer interface {
	SetBridge(bridge writer.Bridger)
}

Directories

Path Synopsis
mock
Package mock_client is a generated GoMock package.
Package mock_client is a generated GoMock package.
mock
Package mock_listener is a generated GoMock package.
Package mock_listener is a generated GoMock package.
Package mock_chain is a generated GoMock package.
Package mock_chain is a generated GoMock package.
mock
Package mock_writer is a generated GoMock package.
Package mock_writer is a generated GoMock package.

Jump to

Keyboard shortcuts

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