validate

package
v2.12.1-mercury06192024 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 24 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToLocalConfig

func ToLocalConfig(ocr2Config OCR2Config, insConf InsecureConfig, spec job.OCR2OracleSpec) (types.LocalConfig, error)

ToLocalConfig creates a OCR2 LocalConfig from the global config and the OCR2 spec.

func ValidatedOracleSpecToml

func ValidatedOracleSpecToml(ctx context.Context, config OCR2Config, insConf InsecureConfig, tomlString string, rc plugins.RegistrarConfig) (job.Job, error)

ValidatedOracleSpecToml validates an oracle spec that came from TOML

Types

type Config

type Config struct {
	Pipelines    []PipelineSpec `json:"pipelines"`
	PluginConfig map[string]any `json:"pluginConfig"`
}

type InsecureConfig added in v2.3.0

type InsecureConfig interface {
	OCRDevelopmentMode() bool
}

type OCR2Config added in v2.3.0

type OCR2Config interface {
	BlockchainTimeout() time.Duration
	ContractConfirmations() uint16
	ContractPollInterval() time.Duration
	ContractTransmitterTransmitTimeout() time.Duration
	DatabaseTimeout() time.Duration
	DefaultTransactionQueueDepth() uint32
	SimulateTransactions() bool
	TraceLogging() bool
}

OCR2Config contains OCR2 configurations for a job.

type OCR2GenericPluginConfig added in v2.8.0

type OCR2GenericPluginConfig struct {
	// contains filtered or unexported fields
}

func (*OCR2GenericPluginConfig) UnmarshalJSON added in v2.8.0

func (o *OCR2GenericPluginConfig) UnmarshalJSON(data []byte) error

type OCR2OnchainSigningStrategy added in v2.12.0

type OCR2OnchainSigningStrategy struct {
	// contains filtered or unexported fields
}

func (*OCR2OnchainSigningStrategy) IsMultiChain added in v2.12.0

func (o *OCR2OnchainSigningStrategy) IsMultiChain() bool

func (*OCR2OnchainSigningStrategy) PublicKey added in v2.12.0

func (o *OCR2OnchainSigningStrategy) PublicKey() (string, error)

func (*OCR2OnchainSigningStrategy) UnmarshalJSON added in v2.12.0

func (o *OCR2OnchainSigningStrategy) UnmarshalJSON(data []byte) error

type PipelineSpec added in v2.8.0

type PipelineSpec struct {
	Name string `json:"name"`
	Spec string `json:"spec"`
}

Jump to

Keyboard shortcuts

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