src

package
v0.0.0-...-4e62b15 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeleteJobsCommand

func NewDeleteJobsCommand() *deleteJobs

func NewDeployJobSpecsCommand

func NewDeployJobSpecsCommand() *deployJobSpecs

func NewFetchKeysCommand

func NewFetchKeysCommand() *fetchKeys

func NewGenerateJobSpecsCommand

func NewGenerateJobSpecsCommand() *generateJobSpecs

func NewGenerateOCR2ConfigCommand

func NewGenerateOCR2ConfigCommand() *generateOCR2Config

Types

type BootSpec

type BootSpec struct {
	ContractID string
}

type JobSpec

type JobSpec struct {
	Id                           string
	Name                         string
	BootstrapSpec                BootSpec
	OffChainReporting2OracleSpec OCRSpec
}

type NodeKeys

type NodeKeys struct {
	EthAddress            string
	P2PPeerID             string // p2p_<key>
	OCR2BundleID          string // used only in job spec
	OCR2OnchainPublicKey  string // ocr2on_evm_<key>
	OCR2OffchainPublicKey string // ocr2off_evm_<key>
	OCR2ConfigPublicKey   string // ocr2cfg_evm_<key>
	CSAPublicKey          string
}

type OCRSpec

type OCRSpec struct {
	ContractID string
}

type OracleConfigSource

type OracleConfigSource struct {
	MaxQueryLengthBytes       uint32
	MaxObservationLengthBytes uint32
	MaxReportLengthBytes      uint32
	MaxRequestBatchSize       uint32
	DefaultAggregationMethod  int32
	UniqueReports             bool
	ThresholdOffchainConfig   ThresholdOffchainConfig
	S4ReportingPluginConfig   S4ReportingPluginConfig
	MaxReportTotalCallbackGas uint32

	DeltaProgressMillis  uint32
	DeltaResendMillis    uint32
	DeltaRoundMillis     uint32
	DeltaGraceMillis     uint32
	DeltaStageMillis     uint32
	MaxRoundsPerEpoch    uint8
	TransmissionSchedule []int

	MaxDurationQueryMillis       uint32
	MaxDurationObservationMillis uint32
	MaxDurationReportMillis      uint32
	MaxDurationAcceptMillis      uint32
	MaxDurationTransmitMillis    uint32

	MaxFaultyOracles int
}

type S4ReportingPluginConfig

type S4ReportingPluginConfig struct {
	MaxQueryLengthBytes       uint32
	MaxObservationLengthBytes uint32
	MaxReportLengthBytes      uint32
	NSnapshotShards           uint32
	MaxObservationEntries     uint32
	MaxReportEntries          uint32
	MaxDeleteExpiredEntries   uint32
}

type ThresholdOffchainConfig

type ThresholdOffchainConfig struct {
	MaxQueryLengthBytes       uint32
	MaxObservationLengthBytes uint32
	MaxReportLengthBytes      uint32
	RequestCountLimit         uint32
	RequestTotalBytesLimit    uint32
	RequireLocalRequestCheck  bool
	K                         uint32
}

type TopLevelConfigSource

type TopLevelConfigSource struct {
	OracleConfig OracleConfigSource
}

NOTE: Field names need to match what's in the JSON input file (see sample_config.json)

Jump to

Keyboard shortcuts

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