{"modulePath":"github.com/GoPlugin/libocr","version":"v0.1.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package offchainreporting\n\n## Functions\n\n```go\nfunc SanityCheckLocalConfig(c types.LocalConfig) (err error)\n```\n\n## Types\n\n```go\ntype BootstrapNode struct {\n\t// contains filtered or unexported fields\n}\n```\nBootstrapNode connects to a particular feed and listens for config changes, but does not participate in the protocol. It merely acts as a bootstrap node for peer discovery.\n\n```go\nfunc NewBootstrapNode(args BootstrapNodeArgs) (*BootstrapNode, error)\n```\n\n```go\nfunc (b *BootstrapNode) Close() error\n```\nClose shuts down a BootstrapNode. Can safely be called multiple times.\n\n```go\nfunc (b *BootstrapNode) Start() error\n```\nStart spins up a BootstrapNode.\n\n```go\ntype BootstrapNodeArgs struct {\n\tBootstrapperFactory   types.BootstrapperFactory\n\tV1Bootstrappers       []string\n\tV2Bootstrappers       []commontypes.BootstrapperLocator\n\tContractConfigTracker types.ContractConfigTracker\n\tDatabase              types.Database\n\tLocalConfig           types.LocalConfig\n\tLogger                commontypes.Logger\n\tMonitoringEndpoint    commontypes.MonitoringEndpoint\n}\n```\n\n```go\ntype Oracle struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewOracle(args OracleArgs) (*Oracle, error)\n```\nNewOracle returns a newly initialized Oracle using the provided services and configuration.\n\n```go\nfunc (o *Oracle) Close() error\n```\nClose shuts down an oracle. Can safely be called multiple times.\n\n```go\nfunc (o *Oracle) Start() error\n```\nStart spins up a Oracle.\n\n```go\ntype OracleArgs struct {\n\t// A factory for producing network endpoints. A network endpoints consists of\n\t// networking methods a consumer must implement to allow a node to\n\t// communicate with other participating nodes.\n\tBinaryNetworkEndpointFactory types.BinaryNetworkEndpointFactory\n\n\t// V1Bootstrappers is the list of bootstrap node addresses \u0026 IDs in the multiaddr format for the v1 networking stack\n\tV1Bootstrappers []string\n\n\t// V2Bootstrappers is the list of bootstrap node addresses and IDs for the v2 stack\n\tV2Bootstrappers []commontypes.BootstrapperLocator\n\n\t// Enables locally overriding certain configuration parameters. This is\n\t// useful for e.g. hibernation mode. This may be nil.\n\tConfigOverrider types.ConfigOverrider\n\n\t// Interfaces with the OffchainAggregator smart contract's transmission related logic\n\tContractTransmitter types.ContractTransmitter\n\n\t// Tracks configuration changes\n\tContractConfigTracker types.ContractConfigTracker\n\n\t// Database provides persistent storage\n\tDatabase types.Database\n\n\t// Used to make observations of value the nodes are to come to consensus on\n\tDatasource types.DataSource\n\n\t// LocalConfig contains oracle-specific configuration details which are not\n\t// mandated by the on-chain configuration specification via OffchainAggregatoo.SetConfig\n\tLocalConfig types.LocalConfig\n\n\t// Logger logs stuff\n\tLogger commontypes.Logger\n\n\t// Used to send logs to a monitor. This may be nil.\n\tMonitoringEndpoint commontypes.MonitoringEndpoint\n\n\t// PrivateKeys contains the secret keys needed for the OCR protocol, and methods\n\t// which use those keys without exposing them to the rest of the application.\n\tPrivateKeys types.PrivateKeys\n}\n```\nOracleArgs contains the configuration and services a caller must provide, in order to run the offchainreporting protocol.\n\nAll fields are expected to be non-nil unless otherwise noted.\n\n","path":"github.com/GoPlugin/libocr/offchainreporting","name":"offchainreporting","synopsis":"","isRedistributable":true}
