listener

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: 21 Imported by: 0

Documentation

Overview

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

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

Index

Constants

This section is empty.

Variables

View Source
var BlockDelay = big.NewInt(1)
View Source
var BlockRetryInterval = time.Second * 5
View Source
var BlockRetryLimit = 5
View Source
var ErrFatalPolling = errors.New("listener block polling failed")
View Source
var ExpectedBlockTime = time.Second

Functions

func GetTransactions

func GetTransactions() types.Transactions

func GetTxRoot

func GetTxRoot(transactions types.Transactions) (common.Hash, error)

func NewListener

func NewListener(cfg *config.CeloChainConfig, client client.LogFilterWithLatestBlock, bs Blockstorer, stop <-chan struct{}, sysErr chan<- error, router IRouter, valsAggr ValidatorsAggregator) *listener

Types

type Blockstorer

type Blockstorer interface {
	StoreBlock(*big.Int) error
}

type IBridge

type IBridge interface {
	ResourceIDToHandlerAddress(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error)
}

type IERC20Handler

type IERC20Handler interface {
	GetDepositRecord(opts *bind.CallOpts, depositNonce uint64, destId uint8) (erc20.ERC20HandlerDepositRecord, error)
}

type IERC721Handler

type IERC721Handler interface {
	GetDepositRecord(opts *bind.CallOpts, depositNonce uint64, destId uint8) (erc721.ERC721HandlerDepositRecord, error)
}

type IGenericHandler

type IGenericHandler interface {
	GetDepositRecord(opts *bind.CallOpts, depositNonce uint64, destId uint8) (genericHandler.GenericHandlerDepositRecord, error)
}

type IRouter

type IRouter interface {
	Send(msg *utils.Message) error
}

type ValidatorsAggregator

type ValidatorsAggregator interface {
	GetAPKForBlock(block *big.Int, chainID uint8, epochSize uint64) ([]byte, error)
}

Directories

Path Synopsis
Package mock_listener is a generated GoMock package.
Package mock_listener is a generated GoMock package.

Jump to

Keyboard shortcuts

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