coordinator

package
v1.6.0-debug-multikeys Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	lggr logger.Logger,
	coordinatorAddress common.Address,
	dkgAddress common.Address,
	client evmclient.Client,
	lookbackBlocks int64,
	logPoller logpoller.LogPoller,
	orm ORM,
) (ocr2vrftypes.CoordinatorInterface, error)

New creates a new CoordinatorInterface implementor.

Types

type ORM

type ORM interface {
	// HeadsByNumbers fetches the heads with the given numbers from the db, returns nil if none exist
	HeadsByNumbers(ctx context.Context, numbers []uint64) ([]*evmtypes.Head, error)
}

func NewORM

func NewORM(db *sqlx.DB, chainID utils.Big, lggr logger.Logger) ORM

type VRFBeaconCoordinator

type VRFBeaconCoordinator interface {
	// SProvingKeyHash retrieves the proving key hash from the on-chain contract.
	SProvingKeyHash(opts *bind.CallOpts) ([32]byte, error)

	// IBeaconPeriodBlocks retrieves the beacon period in blocks from the on-chain contract.
	IBeaconPeriodBlocks(opts *bind.CallOpts) (*big.Int, error)
}

VRFBeaconCoordinator is a narrow interface implemented by the contract go wrappers.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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