functions

package
v2.6.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 38 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	FunctionsBridgeName     string = "ea_bridge"
	FunctionsS4Namespace    string = "functions"
	MaxAdapterResponseBytes int64  = 1_000_000
)

Variables

This section is empty.

Functions

func Aggregate

func Aggregate(aggMethod config.AggregationMethod, observations []*encoding.ProcessedRequest) (*encoding.ProcessedRequest, error)

func CanAggregate

func CanAggregate(N int, F int, observations []*encoding.ProcessedRequest) bool

func NewConnector added in v2.3.0

func NewConnector(gwcCfg *connector.ConnectorConfig, ethKeystore keystore.Eth, chainID *big.Int, s4Storage s4.Storage, allowlist gwFunctions.OnchainAllowlist, rateLimiter *hc.RateLimiter, subscriptions gwFunctions.OnchainSubscriptions, minimumBalance assets.Link, lggr logger.Logger) (connector.GatewayConnector, error)

func NewFunctionsServices added in v2.1.0

func NewFunctionsServices(functionsOracleArgs, thresholdOracleArgs, s4OracleArgs *libocr2.OCR2OracleArgs, conf *FunctionsServicesConfig) ([]job.ServiceCtx, error)

Create all OCR2 plugin Oracles and all extra services needed to run a Functions job.

func ShouldIncludeCoordinator added in v2.6.0

func ShouldIncludeCoordinator(requestCoordinator *common.Address, reportCoordinator *common.Address) (*common.Address, error)

Check if requestCoordinator can be included together with reportCoordinator. Return new reportCoordinator (if previous was nil) and error.

Types

type FunctionsReportingPluginFactory added in v2.1.0

type FunctionsReportingPluginFactory struct {
	Logger          commontypes.Logger
	PluginORM       functions.ORM
	JobID           uuid.UUID
	ContractVersion uint32
}

func (FunctionsReportingPluginFactory) NewReportingPlugin added in v2.1.0

NewReportingPlugin complies with ReportingPluginFactory

type FunctionsServicesConfig added in v2.1.0

type FunctionsServicesConfig struct {
	Job               job.Job
	JobORM            job.ORM
	BridgeORM         bridges.ORM
	QConfig           pg.QConfig
	DB                *sqlx.DB
	Chain             evm.Chain
	ContractID        string
	Logger            logger.Logger
	MailMon           *utils.MailboxMonitor
	URLsMonEndpoint   commontypes.MonitoringEndpoint
	EthKeystore       keystore.Eth
	ThresholdKeyShare []byte
	LogPollerWrapper  evmrelayTypes.LogPollerWrapper
}

Directories

Path Synopsis
integration_tests

Jump to

Keyboard shortcuts

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