v2

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// DefaultIDs is the set of chain ids which have defaults.
	DefaultIDs []*utils.Big
)

Functions

This section is empty.

Types

type BalanceMonitor

type BalanceMonitor struct {
	Enabled    *bool
	BlockDelay *uint16
}

type BlockHistoryEstimator

type BlockHistoryEstimator struct {
	BatchSize                 *uint32
	BlockDelay                *uint16
	BlockHistorySize          *uint16
	EIP1559FeeCapBufferBlocks *uint16
	TransactionPercentile     *uint16
}

type Chain

type Chain struct {
	BlockBackfillDepth       *uint32
	BlockBackfillSkip        *bool
	ChainType                *string
	FinalityDepth            *uint32
	FlagsContractAddress     *ethkey.EIP55Address
	LinkContractAddress      *ethkey.EIP55Address
	LogBackfillBatchSize     *uint32
	LogPollInterval          *models.Duration
	MaxInFlightTransactions  *uint32
	MaxQueuedTransactions    *uint32
	MinIncomingConfirmations *uint32
	MinimumContractPayment   *assets.Link
	NonceAutoSync            *bool
	OperatorFactoryAddress   *ethkey.EIP55Address
	RPCDefaultBatchSize      *uint32
	TxReaperInterval         *models.Duration
	TxReaperThreshold        *models.Duration
	TxResendAfterThreshold   *models.Duration

	UseForwarders *bool

	BalanceMonitor *BalanceMonitor

	GasEstimator *GasEstimator

	HeadTracker *HeadTracker

	KeySpecific []KeySpecific `toml:",omitempty"`

	NodePool *NodePool

	OCR *OCR
}

func Defaults

func Defaults(chainID *utils.Big) (c Chain, name string)

Defaults returns the default Chain values, optionally for the given chainID, as well as a name if the chainID is known.

func (*Chain) SetFrom

func (c *Chain) SetFrom(f *Chain)

func (*Chain) SetFromDB

func (c *Chain) SetFromDB(cfg *types.ChainCfg) error

type GasEstimator

type GasEstimator struct {
	Mode *string

	PriceDefault *utils.Wei
	PriceMax     *utils.Wei
	PriceMin     *utils.Wei

	LimitDefault    *uint32
	LimitMultiplier *decimal.Decimal
	LimitTransfer   *uint32

	LimitOCRJobType    *uint32
	LimitDRJobType     *uint32
	LimitVRFJobType    *uint32
	LimitFMJobType     *uint32
	LimitKeeperJobType *uint32

	BumpMin       *utils.Wei
	BumpPercent   *uint16
	BumpThreshold *uint32
	BumpTxDepth   *uint16

	EIP1559DynamicFees *bool

	FeeCapDefault *utils.Wei
	TipCapDefault *utils.Wei
	TipCapMinimum *utils.Wei

	BlockHistory *BlockHistoryEstimator
}

type HeadTracker

type HeadTracker struct {
	BlockEmissionIdleWarningThreshold *models.Duration
	HistoryDepth                      *uint32
	MaxBufferSize                     *uint32
	SamplingInterval                  *models.Duration
}

type KeySpecific

type KeySpecific struct {
	Key          *ethkey.EIP55Address
	GasEstimator *KeySpecificGasEstimator
}

type KeySpecificGasEstimator

type KeySpecificGasEstimator struct {
	PriceMax *utils.Wei
}

type Node

type Node struct {
	Name     *string
	WSURL    *models.URL
	HTTPURL  *models.URL
	SendOnly *bool
}

func (*Node) SetFromDB

func (n *Node) SetFromDB(db types.Node) (err error)

type NodePool

type NodePool struct {
	NoNewHeadsThreshold  *models.Duration
	PollFailureThreshold *uint32
	PollInterval         *models.Duration
}

type OCR

type OCR struct {
	ContractConfirmations              *uint16
	ContractTransmitterTransmitTimeout *models.Duration
	DatabaseTimeout                    *models.Duration
	ObservationTimeout                 *models.Duration
	ObservationGracePeriod             *models.Duration
}

Jump to

Keyboard shortcuts

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