{"modulePath":"github.com/GoPlugin/pluginV2","version":"v0.5.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package config\n\nPackage presenters allow for the specification and result of a Job, its associated TaskSpecs, and every JobRun and TaskRun to be returned in a user friendly human readable format.\n\n## Variables\n\n```go\nvar (\n\tErrEnvUnset   = errors.New(\"env var unset\")\n\tErrEnvInvalid = errors.New(\"env var invalid\")\n)\n```\nnolint\n\n```go\nvar DatabaseBackupModeEnvVar = envvar.New(\"DatabaseBackupMode\", parseDatabaseBackupMode)\n```\n\n```go\nvar ErrInvalidChainType = fmt.Errorf(\"must be one of %s or omitted\", strings.Join([]string{\n\tstring(ChainArbitrum), string(ChainMetis), string(ChainOptimism), string(ChainXDai), string(ChainOptimismBedrock),\n}, \", \"))\n```\n\n## Functions\n\n```go\nfunc FriendlyBigInt(n *big.Int) string\n```\nFriendlyBigInt returns a string printing the integer in both decimal and hexadecimal formats.\n\n```go\nfunc ValidateDBURL(dbURI url.URL) error\n```\n\n## Types\n\n```go\ntype BasicConfig interface {\n\tValidate() error\n\tLogConfiguration(log LogFn)\n\tSetLogLevel(lvl zapcore.Level) error\n\tSetLogSQL(logSQL bool)\n\tSetPasswords(keystore, vrf *string)\n\n\tFeatureFlags\n\taudit.Config\n\n\tAdvisoryLockCheckInterval() time.Duration\n\tAdvisoryLockID() int64\n\tAllowOrigins() string\n\tAppID() uuid.UUID\n\tAuthenticatedRateLimit() int64\n\tAuthenticatedRateLimitPeriod() models.Duration\n\tAutoPprofBlockProfileRate() int\n\tAutoPprofCPUProfileRate() int\n\tAutoPprofGatherDuration() models.Duration\n\tAutoPprofGatherTraceDuration() models.Duration\n\tAutoPprofGoroutineThreshold() int\n\tAutoPprofMaxProfileSize() utils.FileSize\n\tAutoPprofMemProfileRate() int\n\tAutoPprofMemThreshold() utils.FileSize\n\tAutoPprofMutexProfileFraction() int\n\tAutoPprofPollInterval() models.Duration\n\tAutoPprofProfileRoot() string\n\tBlockBackfillDepth() uint64\n\tBlockBackfillSkip() bool\n\tBridgeResponseURL() *url.URL\n\tBridgeCacheTTL() time.Duration\n\tCertFile() string\n\tDatabaseBackupDir() string\n\tDatabaseBackupFrequency() time.Duration\n\tDatabaseBackupMode() DatabaseBackupMode\n\tDatabaseBackupOnVersionUpgrade() bool\n\tDatabaseBackupURL() *url.URL\n\tDatabaseDefaultIdleInTxSessionTimeout() time.Duration\n\tDatabaseDefaultLockTimeout() time.Duration\n\tDatabaseDefaultQueryTimeout() time.Duration\n\tDatabaseListenerMaxReconnectDuration() time.Duration\n\tDatabaseListenerMinReconnectInterval() time.Duration\n\tDatabaseLockingMode() string\n\tDatabaseURL() url.URL\n\tDefaultChainID() *big.Int\n\tDefaultHTTPLimit() int64\n\tDefaultHTTPTimeout() models.Duration\n\tDefaultLogLevel() zapcore.Level\n\tDev() bool\n\tShutdownGracePeriod() time.Duration\n\tEthereumHTTPURL() *url.URL\n\tEthereumNodes() string\n\tEthereumSecondaryURLs() []url.URL\n\tEthereumURL() string\n\tExplorerAccessKey() string\n\tExplorerSecret() string\n\tExplorerURL() *url.URL\n\tFMDefaultTransactionQueueDepth() uint32\n\tFMSimulateTransactions() bool\n\tGetAdvisoryLockIDConfiguredOrDefault() int64\n\tGetDatabaseDialectConfiguredOrDefault() dialects.DialectName\n\tHTTPServerWriteTimeout() time.Duration\n\tInsecureFastScrypt() bool\n\tJSONConsole() bool\n\tJobPipelineMaxRunDuration() time.Duration\n\tJobPipelineMaxSuccessfulRuns() uint64\n\tJobPipelineReaperInterval() time.Duration\n\tJobPipelineReaperThreshold() time.Duration\n\tJobPipelineResultWriteQueueDepth() uint64\n\tKeeperDefaultTransactionQueueDepth() uint32\n\tKeeperGasPriceBufferPercent() uint16\n\tKeeperGasTipCapBufferPercent() uint16\n\tKeeperBaseFeeBufferPercent() uint16\n\tKeeperMaximumGracePeriod() int64\n\tKeeperRegistryCheckGasOverhead() uint32\n\tKeeperRegistryPerformGasOverhead() uint32\n\tKeeperRegistryMaxPerformDataSize() uint32\n\tKeeperRegistrySyncInterval() time.Duration\n\tKeeperRegistrySyncUpkeepQueueSize() uint32\n\tKeeperTurnLookBack() int64\n\tKeyFile() string\n\tKeystorePassword() string\n\tLeaseLockDuration() time.Duration\n\tLeaseLockRefreshInterval() time.Duration\n\tLogFileDir() string\n\tLogLevel() zapcore.Level\n\tLogSQL() bool\n\tLogFileMaxSize() utils.FileSize\n\tLogFileMaxAge() int64\n\tLogFileMaxBackups() int64\n\tLogUnixTimestamps() bool\n\tMercuryCredentials(url string) (username, password string, err error)\n\tMigrateDatabase() bool\n\tORMMaxIdleConns() int\n\tORMMaxOpenConns() int\n\tPort() uint16\n\tPyroscopeAuthToken() string\n\tPyroscopeServerAddress() string\n\tPyroscopeEnvironment() string\n\tRPID() string\n\tRPOrigin() string\n\tReaperExpiration() models.Duration\n\tRootDir() string\n\tSecureCookies() bool\n\tSentryDSN() string\n\tSentryDebug() bool\n\tSentryEnvironment() string\n\tSentryRelease() string\n\tSessionOptions() sessions.Options\n\tSessionTimeout() models.Duration\n\tSolanaNodes() string\n\tStarkNetNodes() string\n\tTLSCertPath() string\n\tTLSDir() string\n\tTLSHost() string\n\tTLSKeyPath() string\n\tTLSPort() uint16\n\tTLSRedirect() bool\n\tTelemetryIngressLogging() bool\n\tTelemetryIngressUniConn() bool\n\tTelemetryIngressServerPubKey() string\n\tTelemetryIngressURL() *url.URL\n\tTelemetryIngressBufferSize() uint\n\tTelemetryIngressMaxBatchSize() uint\n\tTelemetryIngressSendInterval() time.Duration\n\tTelemetryIngressSendTimeout() time.Duration\n\tTelemetryIngressUseBatchSend() bool\n\tTriggerFallbackDBPollInterval() time.Duration\n\tUnAuthenticatedRateLimit() int64\n\tUnAuthenticatedRateLimitPeriod() models.Duration\n\tVRFPassword() string\n\n\tOCR1Config\n\tOCR2Config\n\n\tP2PNetworking\n\tP2PV1Networking\n\tP2PV2Networking\n}\n```\n\n```go\ntype ChainType string\n```\nChainType denotes the chain or network to work with\n\n```go\nconst (\n\tChainArbitrum        ChainType = \"arbitrum\"\n\tChainMetis           ChainType = \"metis\"\n\tChainOptimism        ChainType = \"optimism\"\n\tChainOptimismBedrock ChainType = \"optimismBedrock\"\n\tChainXDai            ChainType = \"xdai\"\n)\n```\nnolint\n\n```go\nfunc (c ChainType) IsL2() bool\n```\nIsL2 returns true if this chain is a Layer 2 chain. Notably:\n\n  - the block numbers used for log searching are different from calling block.number\n  - gas bumping is not supported, since there is no tx mempool\n\n```go\nfunc (c ChainType) IsValid() bool\n```\nIsValid returns true if the ChainType value is known or empty.\n\n```go\ntype ConfigPrinter struct {\n\tEnvPrinter\n}\n```\nConfigPrinter are the non-secret values of the node\n\nIf you add an entry here, you should update NewConfigPrinter and ConfigPrinter#String accordingly.\n\n```go\nfunc NewConfigPrinter(cfg GeneralConfig) ConfigPrinter\n```\nNewConfigPrinter creates an instance of ConfigPrinter\n\n```go\nfunc (c ConfigPrinter) GetID() string\n```\nGetID generates a new ID for jsonapi serialization.\n\n```go\nfunc (c *ConfigPrinter) SetID(value string) error\n```\nSetID is used to conform to the UnmarshallIdentifier interface for deserializing from jsonapi documents.\n\n```go\nfunc (c ConfigPrinter) String() string\n```\nString returns the values as a newline delimited string\n\n```go\ntype DatabaseBackupMode string\n```\n\n```go\nvar (\n\tDatabaseBackupModeNone DatabaseBackupMode = \"none\"\n\tDatabaseBackupModeLite DatabaseBackupMode = \"lite\"\n\tDatabaseBackupModeFull DatabaseBackupMode = \"full\"\n)\n```\n\n```go\ntype EnvPrinter struct {\n\tAdvisoryLockCheckInterval                  time.Duration   `json:\"ADVISORY_LOCK_CHECK_INTERVAL\"`\n\tAdvisoryLockID                             int64           `json:\"ADVISORY_LOCK_ID\"`\n\tAllowOrigins                               string          `json:\"ALLOW_ORIGINS\"`\n\tBlockBackfillDepth                         uint64          `json:\"BLOCK_BACKFILL_DEPTH\"`\n\tBlockHistoryEstimatorBlockDelay            uint16          `json:\"GAS_UPDATER_BLOCK_DELAY\"`\n\tBlockHistoryEstimatorBlockHistorySize      uint16          `json:\"GAS_UPDATER_BLOCK_HISTORY_SIZE\"`\n\tBlockHistoryEstimatorTransactionPercentile uint16          `json:\"GAS_UPDATER_TRANSACTION_PERCENTILE\"`\n\tBridgeResponseURL                          string          `json:\"BRIDGE_RESPONSE_URL,omitempty\"`\n\tBridgeCacheTTL                             time.Duration   `json:\"BRIDGE_CACHE_TTL\"`\n\tChainType                                  string          `json:\"CHAIN_TYPE\"`\n\tDatabaseBackupFrequency                    time.Duration   `json:\"DATABASE_BACKUP_FREQUENCY\"`\n\tDatabaseBackupMode                         string          `json:\"DATABASE_BACKUP_MODE\"`\n\tDatabaseBackupOnVersionUpgrade             bool            `json:\"DATABASE_BACKUP_ON_VERSION_UPGRADE\"`\n\tDatabaseLockingMode                        string          `json:\"DATABASE_LOCKING_MODE\"`\n\tDefaultChainID                             string          `json:\"ETH_CHAIN_ID\"`\n\tDefaultHTTPLimit                           int64           `json:\"DEFAULT_HTTP_LIMIT\"`\n\tDefaultHTTPTimeout                         models.Duration `json:\"DEFAULT_HTTP_TIMEOUT\"`\n\tDev                                        bool            `json:\"PLUGIN_DEV\"`\n\tShutdownGracePeriod                        time.Duration   `json:\"SHUTDOWN_GRACE_PERIOD\"`\n\tEVMRPCEnabled                              bool            `json:\"EVM_RPC_ENABLED\"`\n\tEthereumHTTPURL                            string          `json:\"ETH_HTTP_URL\"`\n\tEthereumSecondaryURLs                      []string        `json:\"ETH_SECONDARY_URLS\"`\n\tEthereumURL                                string          `json:\"ETH_URL\"`\n\tExplorerURL                                string          `json:\"EXPLORER_URL\"`\n\tFMDefaultTransactionQueueDepth             uint32          `json:\"FM_DEFAULT_TRANSACTION_QUEUE_DEPTH\"`\n\tFeatureExternalInitiators                  bool            `json:\"FEATURE_EXTERNAL_INITIATORS\"`\n\tFeatureOffchainReporting                   bool            `json:\"FEATURE_OFFCHAIN_REPORTING\"`\n\tGasEstimatorMode                           string          `json:\"GAS_ESTIMATOR_MODE\"`\n\tInsecureFastScrypt                         bool            `json:\"INSECURE_FAST_SCRYPT\"`\n\tJSONConsole                                bool            `json:\"JSON_CONSOLE\"`\n\tJobPipelineReaperInterval                  time.Duration   `json:\"JOB_PIPELINE_REAPER_INTERVAL\"`\n\tJobPipelineReaperThreshold                 time.Duration   `json:\"JOB_PIPELINE_REAPER_THRESHOLD\"`\n\tKeeperDefaultTransactionQueueDepth         uint32          `json:\"KEEPER_DEFAULT_TRANSACTION_QUEUE_DEPTH\"`\n\tKeeperGasPriceBufferPercent                uint16          `json:\"KEEPER_GAS_PRICE_BUFFER_PERCENT\"`\n\tKeeperGasTipCapBufferPercent               uint16          `json:\"KEEPER_GAS_TIP_CAP_BUFFER_PERCENT\"`\n\tKeeperBaseFeeBufferPercent                 uint16          `json:\"KEEPER_BASE_FEE_BUFFER_PERCENT\"`\n\tKeeperMaximumGracePeriod                   int64           `json:\"KEEPER_MAXIMUM_GRACE_PERIOD\"`\n\tKeeperRegistryCheckGasOverhead             uint32          `json:\"KEEPER_REGISTRY_CHECK_GAS_OVERHEAD\"`\n\tKeeperRegistryPerformGasOverhead           uint32          `json:\"KEEPER_REGISTRY_PERFORM_GAS_OVERHEAD\"`\n\tKeeperRegistryMaxPerformDataSize           uint32          `json:\"KEEPER_REGISTRY_MAX_PERFORM_DATA_SIZE\"`\n\tKeeperRegistrySyncInterval                 time.Duration   `json:\"KEEPER_REGISTRY_SYNC_INTERVAL\"`\n\tKeeperRegistrySyncUpkeepQueueSize          uint32          `json:\"KEEPER_REGISTRY_SYNC_UPKEEP_QUEUE_SIZE\"`\n\tKeeperTurnLookBack                         int64           `json:\"KEEPER_TURN_LOOK_BACK\"`\n\tLeaseLockDuration                          time.Duration   `json:\"LEASE_LOCK_DURATION\"`\n\tLeaseLockRefreshInterval                   time.Duration   `json:\"LEASE_LOCK_REFRESH_INTERVAL\"`\n\tFlagsContractAddress                       string          `json:\"FLAGS_CONTRACT_ADDRESS\"`\n\tLinkContractAddress                        string          `json:\"LINK_CONTRACT_ADDRESS\"`\n\tLogFileDir                                 string          `json:\"LOG_FILE_DIR\"`\n\tLogLevel                                   zapcore.Level   `json:\"LOG_LEVEL\"`\n\tLogSQL                                     bool            `json:\"LOG_SQL\"`\n\tLogFileMaxSize                             utils.FileSize  `json:\"LOG_FILE_MAX_SIZE\"`\n\tLogFileMaxAge                              int64           `json:\"LOG_FILE_MAX_AGE\"`\n\tLogFileMaxBackups                          int64           `json:\"LOG_FILE_MAX_BACKUPS\"`\n\tTriggerFallbackDBPollInterval              time.Duration   `json:\"JOB_PIPELINE_DB_POLL_INTERVAL\"`\n\n\t// AuditLogger\n\tAuditLoggerEnabled        bool   `json:\"AUDIT_LOGGER_ENABLED\"`\n\tAuditLoggerForwardToUrl   string `json:\"AUDIT_LOGGER_FORWARD_TO_URL\"`\n\tAuditLoggerJsonWrapperKey string `json:\"AUDIT_LOGGER_JSON_WRAPPER_KEY\"`\n\tAuditLoggerHeaders        string `json:\"AUDIT_LOGGER_HEADERS\"`\n\n\t// OCR1\n\tOCRContractTransmitterTransmitTimeout time.Duration `json:\"OCR_CONTRACT_TRANSMITTER_TRANSMIT_TIMEOUT\"`\n\tOCRDatabaseTimeout                    time.Duration `json:\"OCR_DATABASE_TIMEOUT\"`\n\tOCRDefaultTransactionQueueDepth       uint32        `json:\"OCR_DEFAULT_TRANSACTION_QUEUE_DEPTH\"`\n\tOCRTraceLogging                       bool          `json:\"OCR_TRACE_LOGGING\"`\n\n\t// P2P General\n\tP2PNetworkingStack           string `json:\"P2P_NETWORKING_STACK\"`\n\tP2PPeerID                    string `json:\"P2P_PEER_ID\"`\n\tP2PIncomingMessageBufferSize int    `json:\"P2P_INCOMING_MESSAGE_BUFFER_SIZE\"`\n\tP2POutgoingMessageBufferSize int    `json:\"P2P_OUTGOING_MESSAGE_BUFFER_SIZE\"`\n\n\t// P2P V1\n\tP2PBootstrapPeers         []string      `json:\"P2P_BOOTSTRAP_PEERS\"`\n\tP2PListenIP               string        `json:\"P2P_LISTEN_IP\"`\n\tP2PListenPort             string        `json:\"P2P_LISTEN_PORT\"`\n\tP2PNewStreamTimeout       time.Duration `json:\"P2P_NEW_STREAM_TIMEOUT\"`\n\tP2PDHTLookupInterval      int           `json:\"P2P_DHT_LOOKUP_INTERVAL\"`\n\tP2PBootstrapCheckInterval time.Duration `json:\"P2P_BOOTSTRAP_CHECK_INTERVAL\"`\n\n\t// P2P V2\n\tP2PV2AnnounceAddresses []string        `json:\"P2PV2_ANNOUNCE_ADDRESSES\"`\n\tP2PV2Bootstrappers     []string        `json:\"P2PV2_BOOTSTRAPPERS\"`\n\tP2PV2DeltaDial         models.Duration `json:\"P2PV2_DELTA_DIAL\"`\n\tP2PV2DeltaReconcile    models.Duration `json:\"P2PV2_DELTA_RECONCILE\"`\n\tP2PV2ListenAddresses   []string        `json:\"P2PV2_LISTEN_ADDRESSES\"`\n\n\tPort                         uint16          `json:\"CHAINLINK_PORT\"`\n\tReaperExpiration             models.Duration `json:\"REAPER_EXPIRATION\"`\n\tRootDir                      string          `json:\"ROOT\"`\n\tSecureCookies                bool            `json:\"SECURE_COOKIES\"`\n\tSessionTimeout               models.Duration `json:\"SESSION_TIMEOUT\"`\n\tTelemetryIngressLogging      bool            `json:\"TELEMETRY_INGRESS_LOGGING\"`\n\tTelemetryIngressServerPubKey string          `json:\"TELEMETRY_INGRESS_SERVER_PUB_KEY\"`\n\tTelemetryIngressURL          string          `json:\"TELEMETRY_INGRESS_URL\"`\n\tTLSHost                      string          `json:\"CHAINLINK_TLS_HOST\"`\n\tTLSPort                      uint16          `json:\"PLUGIN_TLS_PORT\"`\n\tTLSRedirect                  bool            `json:\"CHAINLINK_TLS_REDIRECT\"`\n}\n```\nEnvPrinter contains the supported environment variables\n\n```go\ntype FeatureFlags interface {\n\tFeatureExternalInitiators() bool\n\tFeatureFeedsManager() bool\n\tFeatureOffchainReporting() bool\n\tFeatureOffchainReporting2() bool\n\tFeatureUICSAKeys() bool\n\tFeatureLogPoller() bool\n\n\tAutoPprofEnabled() bool\n\tEVMEnabled() bool\n\tEVMRPCEnabled() bool\n\tP2PEnabled() bool\n\tSolanaEnabled() bool\n\tStarkNetEnabled() bool\n}\n```\nFeatureFlags contains bools that toggle various features or chains TODO: document the new ones\n\n```go\ntype GeneralConfig interface {\n\tBasicConfig\n\tGlobalConfig\n}\n```\n\n```go\nfunc NewGeneralConfig(lggr logger.Logger) GeneralConfig\n```\nNewGeneralConfig returns the config with the environment variables set to their respective fields, or their defaults if environment variables are not set. [https://app.shortcut.com/chainlinklabs/story/33622/remove-legacy-config](https://app.shortcut.com/chainlinklabs/story/33622/remove-legacy-config)\n\n```go\ntype GlobalConfig interface {\n\tGlobalBalanceMonitorEnabled() (bool, bool)\n\tGlobalBlockEmissionIdleWarningThreshold() (time.Duration, bool)\n\tGlobalBlockHistoryEstimatorBatchSize() (uint32, bool)\n\tGlobalBlockHistoryEstimatorBlockDelay() (uint16, bool)\n\tGlobalBlockHistoryEstimatorBlockHistorySize() (uint16, bool)\n\tGlobalBlockHistoryEstimatorEIP1559FeeCapBufferBlocks() (uint16, bool)\n\tGlobalBlockHistoryEstimatorCheckInclusionBlocks() (uint16, bool)\n\tGlobalBlockHistoryEstimatorCheckInclusionPercentile() (uint16, bool)\n\tGlobalBlockHistoryEstimatorTransactionPercentile() (uint16, bool)\n\tGlobalChainType() (string, bool)\n\tGlobalEthTxReaperInterval() (time.Duration, bool)\n\tGlobalEthTxReaperThreshold() (time.Duration, bool)\n\tGlobalEthTxResendAfterThreshold() (time.Duration, bool)\n\tGlobalEvmEIP1559DynamicFees() (bool, bool)\n\tGlobalEvmFinalityDepth() (uint32, bool)\n\tGlobalEvmGasBumpPercent() (uint16, bool)\n\tGlobalEvmGasBumpThreshold() (uint64, bool)\n\tGlobalEvmGasBumpTxDepth() (uint16, bool)\n\tGlobalEvmGasBumpWei() (*assets.Wei, bool)\n\tGlobalEvmGasFeeCapDefault() (*assets.Wei, bool)\n\tGlobalEvmGasLimitDefault() (uint32, bool)\n\tGlobalEvmGasLimitMax() (uint32, bool)\n\tGlobalEvmGasLimitMultiplier() (float32, bool)\n\tGlobalEvmGasLimitTransfer() (uint32, bool)\n\tGlobalEvmGasLimitOCRJobType() (uint32, bool)\n\tGlobalEvmGasLimitDRJobType() (uint32, bool)\n\tGlobalEvmGasLimitVRFJobType() (uint32, bool)\n\tGlobalEvmGasLimitFMJobType() (uint32, bool)\n\tGlobalEvmGasLimitKeeperJobType() (uint32, bool)\n\tGlobalEvmGasPriceDefault() (*assets.Wei, bool)\n\tGlobalEvmGasTipCapDefault() (*assets.Wei, bool)\n\tGlobalEvmGasTipCapMinimum() (*assets.Wei, bool)\n\tGlobalEvmHeadTrackerHistoryDepth() (uint32, bool)\n\tGlobalEvmHeadTrackerMaxBufferSize() (uint32, bool)\n\tGlobalEvmHeadTrackerSamplingInterval() (time.Duration, bool)\n\tGlobalEvmLogBackfillBatchSize() (uint32, bool)\n\tGlobalEvmLogPollInterval() (time.Duration, bool)\n\tGlobalEvmLogKeepBlocksDepth() (uint32, bool)\n\tGlobalEvmMaxGasPriceWei() (*assets.Wei, bool)\n\tGlobalEvmMaxInFlightTransactions() (uint32, bool)\n\tGlobalEvmMaxQueuedTransactions() (uint64, bool)\n\tGlobalEvmMinGasPriceWei() (*assets.Wei, bool)\n\tGlobalEvmNonceAutoSync() (bool, bool)\n\tGlobalEvmUseForwarders() (bool, bool)\n\tGlobalEvmRPCDefaultBatchSize() (uint32, bool)\n\tGlobalFlagsContractAddress() (string, bool)\n\tGlobalGasEstimatorMode() (string, bool)\n\tGlobalLinkContractAddress() (string, bool)\n\tGlobalOCRContractConfirmations() (uint16, bool)\n\tGlobalOCRContractTransmitterTransmitTimeout() (time.Duration, bool)\n\tGlobalOCRDatabaseTimeout() (time.Duration, bool)\n\tGlobalOCRObservationGracePeriod() (time.Duration, bool)\n\tGlobalOCR2AutomationGasLimit() (uint32, bool)\n\tGlobalOperatorFactoryAddress() (string, bool)\n\tGlobalMinIncomingConfirmations() (uint32, bool)\n\tGlobalMinimumContractPayment() (*assets.Link, bool)\n\tGlobalNodeNoNewHeadsThreshold() (time.Duration, bool)\n\tGlobalNodePollFailureThreshold() (uint32, bool)\n\tGlobalNodePollInterval() (time.Duration, bool)\n\tGlobalNodeSelectionMode() (string, bool)\n\tGlobalNodeSyncThreshold() (uint32, bool)\n}\n```\nGlobalConfig holds global ENV overrides for EVM chains If set the global ENV will override everything The second bool indicates if it is set or not\n\n```go\ntype LogFn func(...any)\n```\n\n```go\ntype OCR1Config interface {\n\t// OCR1 config, can override in jobs, only ethereum.\n\tOCRBlockchainTimeout() time.Duration\n\tOCRContractPollInterval() time.Duration\n\tOCRContractSubscribeInterval() time.Duration\n\tOCRKeyBundleID() (string, error)\n\tOCRObservationTimeout() time.Duration\n\tOCRSimulateTransactions() bool\n\tOCRTransmitterAddress() (ethkey.EIP55Address, error) // OCR2 can support non-evm changes\n\t// OCR1 config, cannot override in jobs\n\tOCRTraceLogging() bool\n\tOCRDefaultTransactionQueueDepth() uint32\n}\n```\nOCR1Config is a subset of global config relevant to OCR v1.\n\n```go\ntype OCR2Config interface {\n\t// OCR2 config, can override in jobs, all chains\n\tOCR2ContractConfirmations() uint16\n\tOCR2ContractTransmitterTransmitTimeout() time.Duration\n\tOCR2BlockchainTimeout() time.Duration\n\tOCR2DatabaseTimeout() time.Duration\n\tOCR2ContractPollInterval() time.Duration\n\tOCR2ContractSubscribeInterval() time.Duration\n\tOCR2KeyBundleID() (string, error)\n\t// OCR2 config, cannot override in jobs\n\tOCR2TraceLogging() bool\n}\n```\nOCR2Config is a subset of global config relevant to OCR v2.\n\n```go\ntype P2PDeprecated interface {\n\t// contains filtered or unexported methods\n}\n```\n\n```go\ntype P2PNetworking interface {\n\tP2PNetworkingStack() (n ocrnetworking.NetworkingStack)\n\tP2PNetworkingStackRaw() string\n\tP2PPeerID() p2pkey.PeerID\n\tP2PPeerIDRaw() string\n\tP2PIncomingMessageBufferSize() int\n\tP2POutgoingMessageBufferSize() int\n}\n```\nP2PNetworking is a subset of global config relevant to p2p networking.\n\n```go\ntype P2PV1Networking interface {\n\tP2PAnnounceIP() net.IP\n\tP2PAnnouncePort() uint16\n\tP2PBootstrapPeers() ([]string, error)\n\tP2PDHTAnnouncementCounterUserPrefix() uint32\n\tP2PListenIP() net.IP\n\tP2PListenPort() uint16\n\tP2PListenPortRaw() string\n\tP2PNewStreamTimeout() time.Duration\n\tP2PBootstrapCheckInterval() time.Duration\n\tP2PDHTLookupInterval() int\n\tP2PPeerstoreWriteInterval() time.Duration\n}\n```\nP2PV1Networking is a subset of global config relevant to p2p v1 networking.\n\n```go\ntype P2PV2Networking interface {\n\tP2PV2AnnounceAddresses() []string\n\tP2PV2Bootstrappers() (locators []ocrcommontypes.BootstrapperLocator)\n\tP2PV2BootstrappersRaw() []string\n\tP2PV2DeltaDial() models.Duration\n\tP2PV2DeltaReconcile() models.Duration\n\tP2PV2ListenAddresses() []string\n}\n```\nP2PV2Networking is a subset of global config relevant to p2p v2 networking.\n\n","path":"github.com/GoPlugin/pluginV2/core/config","name":"config","synopsis":"Package presenters allow for the specification and result of a Job, its associated TaskSpecs, and every JobRun and TaskRun to be returned in a user friendly human readable format.","isRedistributable":true}
