configtest

package
v1.10.0-beta5 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RootDir the root directory for test
	RootDir       = "/tmp/chainlink_test"
	DefaultPeerID = "12D3KooWPjceQrSwdWXPyLLeABRXmuqt69Rg3sBYbU1Nft9HyQ6X"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GeneralConfigOverrides

type GeneralConfigOverrides struct {
	AdvisoryLockCheckInterval                       *time.Duration
	AdvisoryLockID                                  null.Int
	AllowOrigins                                    null.String
	BlockBackfillDepth                              null.Int
	BlockBackfillSkip                               null.Bool
	DatabaseURL                                     null.String
	DatabaseLockingMode                             null.String
	DefaultChainID                                  *big.Int
	DefaultHTTPTimeout                              *time.Duration
	HTTPServerWriteTimeout                          *time.Duration
	Dev                                             null.Bool
	ShutdownGracePeriod                             *time.Duration
	Dialect                                         dialects.DialectName
	EthereumURL                                     null.String
	GlobalBalanceMonitorEnabled                     null.Bool
	GlobalBlockEmissionIdleWarningThreshold         *time.Duration
	GlobalBlockHistoryEstimatorCheckInclusionBlocks null.Int
	GlobalChainType                                 null.String
	GlobalEthTxReaperThreshold                      *time.Duration
	GlobalEthTxResendAfterThreshold                 *time.Duration
	GlobalEvmEIP1559DynamicFees                     null.Bool
	GlobalEvmFinalityDepth                          null.Int
	GlobalEvmGasBumpPercent                         null.Int
	GlobalEvmGasBumpTxDepth                         null.Int
	GlobalEvmGasBumpWei                             *assets.Wei
	GlobalEvmGasFeeCapDefault                       *assets.Wei
	GlobalEvmGasLimitDefault                        null.Int
	GlobalEvmGasLimitMax                            null.Int
	GlobalEvmGasLimitMultiplier                     null.Float
	GlobalEvmGasPriceDefault                        *assets.Wei
	GlobalEvmGasTipCapDefault                       *assets.Wei
	GlobalEvmGasTipCapMinimum                       *assets.Wei
	GlobalEvmGasLimitOCRJobType                     null.Int
	GlobalEvmGasLimitDRJobType                      null.Int
	GlobalEvmGasLimitVRFJobType                     null.Int
	GlobalEvmGasLimitFMJobType                      null.Int
	GlobalEvmGasLimitKeeperJobType                  null.Int
	GlobalEvmHeadTrackerHistoryDepth                null.Int
	GlobalEvmHeadTrackerMaxBufferSize               null.Int
	GlobalEvmHeadTrackerSamplingInterval            *time.Duration
	GlobalEvmLogBackfillBatchSize                   null.Int
	GlobalEvmLogPollInterval                        *time.Duration
	GlobalEvmMaxGasPriceWei                         *assets.Wei
	GlobalEvmMinGasPriceWei                         *assets.Wei
	GlobalEvmNonceAutoSync                          null.Bool
	GlobalEvmRPCDefaultBatchSize                    null.Int
	GlobalEvmUseForwarders                          null.Bool
	GlobalFlagsContractAddress                      null.String
	GlobalGasEstimatorMode                          null.String
	GlobalMinIncomingConfirmations                  null.Int
	GlobalMinimumContractPayment                    *assets.Link
	GlobalOCRObservationGracePeriod                 time.Duration
	GlobalOCR2AutomationGasLimit                    null.Int
	KeeperCheckUpkeepGasPriceFeatureEnabled         null.Bool
	KeeperRegistryMaxPerformDataSize                null.Int
	KeeperMaximumGracePeriod                        null.Int
	KeeperRegistrySyncInterval                      *time.Duration
	KeeperRegistrySyncUpkeepQueueSize               null.Int
	KeeperTurnLookBack                              null.Int
	KeeperTurnFlagEnabled                           null.Bool
	LeaseLockDuration                               *time.Duration
	LeaseLockRefreshInterval                        *time.Duration
	LogFileDir                                      null.String
	LogLevel                                        *zapcore.Level
	DefaultLogLevel                                 *zapcore.Level
	LogSQL                                          null.Bool
	LogFileMaxSize                                  null.String
	LogFileMaxAge                                   null.Int
	LogFileMaxBackups                               null.Int
	TriggerFallbackDBPollInterval                   *time.Duration
	KeySpecific                                     map[string]types.ChainCfg
	LinkContractAddress                             null.String
	OperatorFactoryAddress                          null.String
	NodeNoNewHeadsThreshold                         *time.Duration
	JobPipelineReaperInterval                       *time.Duration

	// Feature Flags
	FeatureExternalInitiators null.Bool
	FeatureFeedsManager       null.Bool
	FeatureOffchainReporting  null.Bool
	FeatureOffchainReporting2 null.Bool
	FeatureLogPoller          null.Bool
	EVMEnabled                null.Bool
	EVMRPCEnabled             null.Bool
	TerraEnabled              null.Bool
	P2PEnabled                null.Bool
	SolanaEnabled             null.Bool
	StarkNetEnabled           null.Bool

	// OCR v2
	OCR2DatabaseTimeout *time.Duration

	// OCR v1
	OCRKeyBundleID            null.String
	OCRDatabaseTimeout        *time.Duration
	OCRObservationGracePeriod *time.Duration
	OCRObservationTimeout     *time.Duration
	OCRTransmitterAddress     *ethkey.EIP55Address

	// P2P v1 and V2
	P2PPeerID          p2pkey.PeerID
	P2PNetworkingStack ocrnetworking.NetworkingStack

	// P2P v1
	P2PBootstrapCheckInterval *time.Duration
	P2PBootstrapPeers         []string
	P2PListenPort             null.Int

	// P2PV2
	P2PV2ListenAddresses   []string
	P2PV2AnnounceAddresses []string
	P2PV2Bootstrappers     []ocrcommontypes.BootstrapperLocator
	P2PV2DeltaDial         *time.Duration
	P2PV2DeltaReconcile    *time.Duration
}

func (*GeneralConfigOverrides) SetDefaultHTTPTimeout

func (o *GeneralConfigOverrides) SetDefaultHTTPTimeout(d time.Duration)

SetDefaultHTTPTimeout sets test override value for DefaultHTTPTimeout

func (*GeneralConfigOverrides) SetOCRBootstrapCheckInterval

func (o *GeneralConfigOverrides) SetOCRBootstrapCheckInterval(d time.Duration)

SetOCRBootstrapCheckInterval sets test override value for P2PBootstrapCheckInterval

func (*GeneralConfigOverrides) SetOCRObservationTimeout

func (o *GeneralConfigOverrides) SetOCRObservationTimeout(d time.Duration)

SetOCRObservationTimeout sets test override value for OCRObservationTimeout

func (*GeneralConfigOverrides) SetP2PV2DeltaDial added in v1.2.0

func (o *GeneralConfigOverrides) SetP2PV2DeltaDial(d time.Duration)

SetP2PV2DeltaDial sets test override value for P2PV2DeltaDial

func (*GeneralConfigOverrides) SetP2PV2DeltaReconcile added in v1.2.0

func (o *GeneralConfigOverrides) SetP2PV2DeltaReconcile(d time.Duration)

SetP2PV2DeltaReconcile sets test override value for P2PV2DeltaReconcile

func (*GeneralConfigOverrides) SetTriggerFallbackDBPollInterval

func (o *GeneralConfigOverrides) SetTriggerFallbackDBPollInterval(d time.Duration)

FIXME: This is a hack, the proper fix is here: https://app.clubhouse.io/chainlinklabs/story/15103/use-in-memory-event-broadcaster-instead-of-postgres-event-broadcaster-in-transactional-tests-so-it-actually-works SetTriggerFallbackDBPollInterval sets test override value for TriggerFallbackDBPollInterval

type TestGeneralConfig

type TestGeneralConfig struct {
	config.GeneralConfig

	Overrides GeneralConfigOverrides
	// contains filtered or unexported fields
}

TestGeneralConfig defaults to whatever config.NewGeneralConfig() gives but allows overriding certain methods

func NewTestGeneralConfig

func NewTestGeneralConfig(t *testing.T) *TestGeneralConfig

NewTestGeneralConfig returns a legacy *TestGeneralConfig. Use v2.NewTestGeneralConfig instead. https://app.shortcut.com/chainlinklabs/story/33622/remove-legacy-config

func (*TestGeneralConfig) AdvisoryLockCheckInterval added in v1.2.0

func (c *TestGeneralConfig) AdvisoryLockCheckInterval() time.Duration

func (*TestGeneralConfig) AllowOrigins

func (c *TestGeneralConfig) AllowOrigins() string

func (*TestGeneralConfig) BlockBackfillDepth

func (c *TestGeneralConfig) BlockBackfillDepth() uint64

func (*TestGeneralConfig) BlockBackfillSkip

func (c *TestGeneralConfig) BlockBackfillSkip() bool

func (*TestGeneralConfig) BridgeResponseURL

func (c *TestGeneralConfig) BridgeResponseURL() *url.URL

func (*TestGeneralConfig) DatabaseLockingMode added in v1.1.0

func (c *TestGeneralConfig) DatabaseLockingMode() string

DatabaseLockingMode returns either overridden DatabaseLockingMode value or "none"

func (*TestGeneralConfig) DatabaseURL

func (c *TestGeneralConfig) DatabaseURL() url.URL

func (*TestGeneralConfig) DefaultChainID added in v1.1.0

func (c *TestGeneralConfig) DefaultChainID() *big.Int

func (*TestGeneralConfig) DefaultHTTPTimeout

func (c *TestGeneralConfig) DefaultHTTPTimeout() models.Duration

func (*TestGeneralConfig) DefaultLogLevel added in v1.1.0

func (c *TestGeneralConfig) DefaultLogLevel() zapcore.Level

func (*TestGeneralConfig) Dev

func (c *TestGeneralConfig) Dev() bool

func (*TestGeneralConfig) EVMEnabled added in v1.2.0

func (c *TestGeneralConfig) EVMEnabled() bool

EVMEnabled overrides

func (*TestGeneralConfig) EVMRPCEnabled added in v1.2.0

func (c *TestGeneralConfig) EVMRPCEnabled() bool

EVMRPCEnabled overrides

func (*TestGeneralConfig) EthereumURL added in v1.2.0

func (c *TestGeneralConfig) EthereumURL() string

func (*TestGeneralConfig) FeatureExternalInitiators

func (c *TestGeneralConfig) FeatureExternalInitiators() bool

func (*TestGeneralConfig) FeatureFeedsManager added in v1.1.0

func (c *TestGeneralConfig) FeatureFeedsManager() bool

func (*TestGeneralConfig) FeatureLogPoller added in v1.5.0

func (c *TestGeneralConfig) FeatureLogPoller() bool

func (*TestGeneralConfig) FeatureOffchainReporting added in v1.2.0

func (c *TestGeneralConfig) FeatureOffchainReporting() bool

func (*TestGeneralConfig) FeatureOffchainReporting2 added in v1.2.0

func (c *TestGeneralConfig) FeatureOffchainReporting2() bool

func (*TestGeneralConfig) GetAdvisoryLockIDConfiguredOrDefault

func (c *TestGeneralConfig) GetAdvisoryLockIDConfiguredOrDefault() int64

func (*TestGeneralConfig) GetDatabaseDialectConfiguredOrDefault

func (c *TestGeneralConfig) GetDatabaseDialectConfiguredOrDefault() dialects.DialectName

func (*TestGeneralConfig) GlobalBalanceMonitorEnabled added in v1.1.0

func (c *TestGeneralConfig) GlobalBalanceMonitorEnabled() (bool, bool)

func (*TestGeneralConfig) GlobalBlockEmissionIdleWarningThreshold added in v1.2.0

func (c *TestGeneralConfig) GlobalBlockEmissionIdleWarningThreshold() (time.Duration, bool)

func (*TestGeneralConfig) GlobalBlockHistoryEstimatorCheckInclusionBlocks added in v1.10.0

func (c *TestGeneralConfig) GlobalBlockHistoryEstimatorCheckInclusionBlocks() (uint16, bool)

func (*TestGeneralConfig) GlobalChainType added in v1.1.0

func (c *TestGeneralConfig) GlobalChainType() (string, bool)

func (*TestGeneralConfig) GlobalEthTxReaperThreshold added in v1.1.0

func (c *TestGeneralConfig) GlobalEthTxReaperThreshold() (time.Duration, bool)

func (*TestGeneralConfig) GlobalEthTxResendAfterThreshold added in v1.1.0

func (c *TestGeneralConfig) GlobalEthTxResendAfterThreshold() (time.Duration, bool)

func (*TestGeneralConfig) GlobalEvmEIP1559DynamicFees added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmEIP1559DynamicFees() (bool, bool)

func (*TestGeneralConfig) GlobalEvmFinalityDepth added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmFinalityDepth() (uint32, bool)

func (*TestGeneralConfig) GlobalEvmGasBumpPercent added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmGasBumpPercent() (uint16, bool)

func (*TestGeneralConfig) GlobalEvmGasBumpTxDepth added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmGasBumpTxDepth() (uint16, bool)

func (*TestGeneralConfig) GlobalEvmGasBumpWei added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmGasBumpWei() (*assets.Wei, bool)

func (*TestGeneralConfig) GlobalEvmGasFeeCapDefault added in v1.1.1

func (c *TestGeneralConfig) GlobalEvmGasFeeCapDefault() (*assets.Wei, bool)

GlobalEvmGasFeeCapDefault is the override for EvmGasFeeCapDefault

func (*TestGeneralConfig) GlobalEvmGasLimitDRJobType added in v1.7.0

func (c *TestGeneralConfig) GlobalEvmGasLimitDRJobType() (uint32, bool)

func (*TestGeneralConfig) GlobalEvmGasLimitDefault added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmGasLimitDefault() (uint32, bool)

func (*TestGeneralConfig) GlobalEvmGasLimitFMJobType added in v1.7.0

func (c *TestGeneralConfig) GlobalEvmGasLimitFMJobType() (uint32, bool)

func (*TestGeneralConfig) GlobalEvmGasLimitKeeperJobType added in v1.7.0

func (c *TestGeneralConfig) GlobalEvmGasLimitKeeperJobType() (uint32, bool)

func (*TestGeneralConfig) GlobalEvmGasLimitMax added in v1.8.1

func (c *TestGeneralConfig) GlobalEvmGasLimitMax() (uint32, bool)

func (*TestGeneralConfig) GlobalEvmGasLimitMultiplier added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmGasLimitMultiplier() (float32, bool)

func (*TestGeneralConfig) GlobalEvmGasLimitOCRJobType added in v1.7.0

func (c *TestGeneralConfig) GlobalEvmGasLimitOCRJobType() (uint32, bool)

func (*TestGeneralConfig) GlobalEvmGasLimitVRFJobType added in v1.7.0

func (c *TestGeneralConfig) GlobalEvmGasLimitVRFJobType() (uint32, bool)

func (*TestGeneralConfig) GlobalEvmGasPriceDefault added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmGasPriceDefault() (*assets.Wei, bool)

func (*TestGeneralConfig) GlobalEvmGasTipCapDefault added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmGasTipCapDefault() (*assets.Wei, bool)

func (*TestGeneralConfig) GlobalEvmGasTipCapMinimum added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmGasTipCapMinimum() (*assets.Wei, bool)

func (*TestGeneralConfig) GlobalEvmHeadTrackerHistoryDepth added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmHeadTrackerHistoryDepth() (uint32, bool)

func (*TestGeneralConfig) GlobalEvmHeadTrackerMaxBufferSize added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmHeadTrackerMaxBufferSize() (uint32, bool)

func (*TestGeneralConfig) GlobalEvmHeadTrackerSamplingInterval added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmHeadTrackerSamplingInterval() (time.Duration, bool)

func (*TestGeneralConfig) GlobalEvmLogBackfillBatchSize added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmLogBackfillBatchSize() (uint32, bool)

func (*TestGeneralConfig) GlobalEvmLogPollInterval added in v1.5.0

func (c *TestGeneralConfig) GlobalEvmLogPollInterval() (time.Duration, bool)

func (*TestGeneralConfig) GlobalEvmMaxGasPriceWei added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmMaxGasPriceWei() (*assets.Wei, bool)

func (*TestGeneralConfig) GlobalEvmMinGasPriceWei added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmMinGasPriceWei() (*assets.Wei, bool)

func (*TestGeneralConfig) GlobalEvmNonceAutoSync added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmNonceAutoSync() (bool, bool)

func (*TestGeneralConfig) GlobalEvmRPCDefaultBatchSize added in v1.1.0

func (c *TestGeneralConfig) GlobalEvmRPCDefaultBatchSize() (uint32, bool)

func (*TestGeneralConfig) GlobalEvmUseForwarders added in v1.8.0

func (c *TestGeneralConfig) GlobalEvmUseForwarders() (bool, bool)

func (*TestGeneralConfig) GlobalFlagsContractAddress added in v1.1.0

func (c *TestGeneralConfig) GlobalFlagsContractAddress() (string, bool)

func (*TestGeneralConfig) GlobalGasEstimatorMode added in v1.1.0

func (c *TestGeneralConfig) GlobalGasEstimatorMode() (string, bool)

func (*TestGeneralConfig) GlobalLinkContractAddress added in v1.2.0

func (c *TestGeneralConfig) GlobalLinkContractAddress() (string, bool)

GlobalLinkContractAddress allows to override the LINK contract address

func (*TestGeneralConfig) GlobalMinIncomingConfirmations added in v1.1.0

func (c *TestGeneralConfig) GlobalMinIncomingConfirmations() (uint32, bool)

func (*TestGeneralConfig) GlobalMinimumContractPayment added in v1.1.0

func (c *TestGeneralConfig) GlobalMinimumContractPayment() (*assets.Link, bool)

func (*TestGeneralConfig) GlobalNodeNoNewHeadsThreshold added in v1.5.1

func (c *TestGeneralConfig) GlobalNodeNoNewHeadsThreshold() (time.Duration, bool)

GlobalNodeNoNewHeadsThreshold overrides NodeNoNewHeadsThreshold for all chains

func (*TestGeneralConfig) GlobalOCR2AutomationGasLimit added in v1.10.0

func (c *TestGeneralConfig) GlobalOCR2AutomationGasLimit() (uint32, bool)

func (*TestGeneralConfig) GlobalOperatorFactoryAddress added in v1.5.0

func (c *TestGeneralConfig) GlobalOperatorFactoryAddress() (string, bool)

GlobalOperatorFactoryAddress allows to override the OperatorFactory contract address

func (*TestGeneralConfig) InsecureFastScrypt

func (c *TestGeneralConfig) InsecureFastScrypt() bool

func (*TestGeneralConfig) JobPipelineReaperInterval added in v1.9.0

func (c *TestGeneralConfig) JobPipelineReaperInterval() time.Duration

func (*TestGeneralConfig) KeeperCheckUpkeepGasPriceFeatureEnabled added in v1.1.0

func (c *TestGeneralConfig) KeeperCheckUpkeepGasPriceFeatureEnabled() bool

KeeperCheckUpkeepGasPriceFeatureEnabled overrides

func (*TestGeneralConfig) KeeperMaximumGracePeriod

func (c *TestGeneralConfig) KeeperMaximumGracePeriod() int64

func (*TestGeneralConfig) KeeperRegistryMaxPerformDataSize added in v1.9.0

func (c *TestGeneralConfig) KeeperRegistryMaxPerformDataSize() uint32

func (*TestGeneralConfig) KeeperRegistrySyncInterval

func (c *TestGeneralConfig) KeeperRegistrySyncInterval() time.Duration

func (*TestGeneralConfig) KeeperRegistrySyncUpkeepQueueSize added in v1.1.0

func (c *TestGeneralConfig) KeeperRegistrySyncUpkeepQueueSize() uint32

func (*TestGeneralConfig) KeeperTurnFlagEnabled added in v1.4.0

func (c *TestGeneralConfig) KeeperTurnFlagEnabled() bool

func (*TestGeneralConfig) KeeperTurnLookBack added in v1.4.0

func (c *TestGeneralConfig) KeeperTurnLookBack() int64

func (*TestGeneralConfig) LeaseLockDuration added in v1.2.0

func (c *TestGeneralConfig) LeaseLockDuration() time.Duration

func (*TestGeneralConfig) LeaseLockRefreshInterval added in v1.2.0

func (c *TestGeneralConfig) LeaseLockRefreshInterval() time.Duration

func (*TestGeneralConfig) LogFileDir added in v1.2.0

func (c *TestGeneralConfig) LogFileDir() string

func (*TestGeneralConfig) LogFileMaxAge added in v1.3.0

func (c *TestGeneralConfig) LogFileMaxAge() int64

LogFileMaxAge allows to override the log file's max age before file rotation.

func (*TestGeneralConfig) LogFileMaxBackups added in v1.3.0

func (c *TestGeneralConfig) LogFileMaxBackups() int64

LogFileMaxBackups allows to override the max amount of old log files to retain.

func (*TestGeneralConfig) LogFileMaxSize added in v1.3.0

func (c *TestGeneralConfig) LogFileMaxSize() utils.FileSize

LogFileMaxSize allows to override the log file's max size before file rotation.

func (*TestGeneralConfig) LogLevel

func (c *TestGeneralConfig) LogLevel() zapcore.Level

func (*TestGeneralConfig) LogSQL added in v1.1.0

func (c *TestGeneralConfig) LogSQL() bool

func (*TestGeneralConfig) MigrateDatabase

func (c *TestGeneralConfig) MigrateDatabase() bool

func (*TestGeneralConfig) OCR2DatabaseTimeout added in v1.2.0

func (c *TestGeneralConfig) OCR2DatabaseTimeout() time.Duration

OCR2DatabaseTimeout returns the overridden value, if one exists.

func (*TestGeneralConfig) OCRDatabaseTimeout added in v1.2.0

func (c *TestGeneralConfig) OCRDatabaseTimeout() time.Duration

OCRDatabaseTimeout returns the overridden value, if one exists.

func (*TestGeneralConfig) OCRKeyBundleID

func (c *TestGeneralConfig) OCRKeyBundleID() (string, error)

OCRKeyBundleID returns the overridden value, if one exists.

func (*TestGeneralConfig) OCRObservationTimeout

func (c *TestGeneralConfig) OCRObservationTimeout() time.Duration

OCRObservationTimeout returns the overridden value, if one exists.

func (*TestGeneralConfig) OCRTransmitterAddress

func (c *TestGeneralConfig) OCRTransmitterAddress() (ethkey.EIP55Address, error)

OCRTransmitterAddress returns the overridden value, if one exists.

func (*TestGeneralConfig) ORMMaxIdleConns

func (c *TestGeneralConfig) ORMMaxIdleConns() int

func (*TestGeneralConfig) ORMMaxOpenConns

func (c *TestGeneralConfig) ORMMaxOpenConns() int

func (*TestGeneralConfig) P2PBootstrapCheckInterval added in v1.2.0

func (c *TestGeneralConfig) P2PBootstrapCheckInterval() time.Duration

P2PBootstrapCheckInterval returns the overridden value, if one exists.

func (*TestGeneralConfig) P2PBootstrapPeers

func (c *TestGeneralConfig) P2PBootstrapPeers() ([]string, error)

P2PBootstrapPeers returns the overridden value, if one exists.

func (*TestGeneralConfig) P2PEnabled added in v1.3.0

func (c *TestGeneralConfig) P2PEnabled() bool

P2PEnabled overrides

func (*TestGeneralConfig) P2PListenPort

func (c *TestGeneralConfig) P2PListenPort() uint16

P2PListenPort returns the overridden value, if one exists.

func (*TestGeneralConfig) P2PNetworkingStack added in v1.2.0

func (c *TestGeneralConfig) P2PNetworkingStack() ocrnetworking.NetworkingStack

P2PNetworkingStack stack returns the overridden value, if one exists.

func (*TestGeneralConfig) P2PPeerID

func (c *TestGeneralConfig) P2PPeerID() p2pkey.PeerID

P2PPeerID returns the overridden value or empty.

func (*TestGeneralConfig) P2PV2AnnounceAddresses added in v1.2.0

func (c *TestGeneralConfig) P2PV2AnnounceAddresses() []string

P2PV2AnnounceAddresses returns the overridden value, if one exists.

func (*TestGeneralConfig) P2PV2Bootstrappers added in v1.2.0

func (c *TestGeneralConfig) P2PV2Bootstrappers() []ocrcommontypes.BootstrapperLocator

P2PV2Bootstrappers returns the overridden value, if one exists.

func (*TestGeneralConfig) P2PV2DeltaDial added in v1.2.0

func (c *TestGeneralConfig) P2PV2DeltaDial() models.Duration

P2PV2DeltaDial returns the overridden value, if one exists.

func (*TestGeneralConfig) P2PV2DeltaReconcile added in v1.2.0

func (c *TestGeneralConfig) P2PV2DeltaReconcile() models.Duration

P2PV2DeltaReconcile returns the overridden value, if one exists.

func (*TestGeneralConfig) P2PV2ListenAddresses added in v1.2.0

func (c *TestGeneralConfig) P2PV2ListenAddresses() []string

P2PV2ListenAddresses returns the overridden value, if one exists.

func (*TestGeneralConfig) RootDir

func (c *TestGeneralConfig) RootDir() string

func (*TestGeneralConfig) SessionTimeout

func (c *TestGeneralConfig) SessionTimeout() models.Duration

func (*TestGeneralConfig) SetRootDir added in v1.2.0

func (c *TestGeneralConfig) SetRootDir(dir string)

SetRootDir Added in order to not get a different dir on certain tests that validate this value

func (*TestGeneralConfig) ShutdownGracePeriod added in v1.2.0

func (c *TestGeneralConfig) ShutdownGracePeriod() time.Duration

ShutdownGracePeriod returns shutdown grace period duration.

func (*TestGeneralConfig) SolanaEnabled added in v1.4.0

func (c *TestGeneralConfig) SolanaEnabled() bool

SolanaEnabled allows Solana to be used

func (*TestGeneralConfig) StarkNetEnabled added in v1.6.0

func (c *TestGeneralConfig) StarkNetEnabled() bool

StarkNetEnabled allows StarkNet to be used

func (*TestGeneralConfig) TerraEnabled added in v1.3.0

func (c *TestGeneralConfig) TerraEnabled() bool

TerraEnabled allows Terra to be used

func (*TestGeneralConfig) TriggerFallbackDBPollInterval

func (c *TestGeneralConfig) TriggerFallbackDBPollInterval() time.Duration

TriggerFallbackDBPollInterval returns the test configured value for TriggerFallbackDBPollInterval

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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