Documentation ¶
Index ¶
- func FilterNamesFromSpec(spec *job.OCR2OracleSpec) (names []string, err error)
- func New(ctx context.Context, lggr logger.Logger, beaconAddress common.Address, ...) (ocr2vrftypes.CoordinatorInterface, error)
- func NewBlockCache[T any](evictionWindow time.Duration) *ocrCache[T]
- type VRFBeaconCoordinator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterNamesFromSpec ¶
func FilterNamesFromSpec(spec *job.OCR2OracleSpec) (names []string, err error)
func New ¶
func New( ctx context.Context, lggr logger.Logger, beaconAddress common.Address, coordinatorAddress common.Address, dkgAddress common.Address, client evmclient.Client, logPoller logpoller.LogPoller, finalityDepth uint32, ) (ocr2vrftypes.CoordinatorInterface, error)
New creates a new CoordinatorInterface implementor.
func NewBlockCache ¶
NewBlockCache constructs a new cache.
Types ¶
type VRFBeaconCoordinator ¶
type VRFBeaconCoordinator interface { // SProvingKeyHash retrieves the proving key hash from the on-chain contract. SProvingKeyHash(opts *bind.CallOpts) ([32]byte, error) // SKeyID retrieves the keyID from the on-chain contract. SKeyID(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) // ParseLog parses the raw log data and topics into a go object. // The returned object must be casted to the expected type. ParseLog(log types.Log) (generated.AbigenLog, error) // GetConfirmationDelays retrieves confirmation delays from the on-chain contract. GetConfirmationDelays(opts *bind.CallOpts) ([8]*big.Int, error) }
VRFBeaconCoordinator is an interface that defines methods needed by the off-chain coordinator
Click to show internal directories.
Click to hide internal directories.