Documentation ¶
Index ¶
- Variables
- func ClobberDBFromEnv(db *sqlx.DB, config LegacyEthNodeConfig, lggr logger.Logger) error
- func NewORM(db *sqlx.DB, lggr logger.Logger, cfg pg.LogConfig) types.ORM
- func SetupNodes(db *sqlx.DB, cfg LegacyEthNodeConfig, lggr logger.Logger) (err error)
- type Chain
- type ChainConfigUpdater
- type ChainSet
- type ChainSetOpts
- type LegacyEthNodeConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoChains = errors.New("no EVM chains loaded")
ErrNoChains indicates that no EVM chains have been started
Functions ¶
func ClobberDBFromEnv ¶ added in v1.1.0
func SetupNodes ¶ added in v1.4.0
SetupNodes is a hack/shim method to allow node operators to specify multiple nodes via ENV. See: https://app.shortcut.com/chainlinklabs/epic/33587/overhaul-config?cf_workflow=500000005&ct_workflow=all
Types ¶
type Chain ¶ added in v1.1.0
type Chain interface { services.ServiceCtx ID() *big.Int Client() evmclient.Client Config() evmconfig.ChainScopedConfig LogBroadcaster() log.Broadcaster HeadBroadcaster() httypes.HeadBroadcaster TxManager() txmgr.TxManager HeadTracker() httypes.HeadTracker Logger() logger.Logger BalanceMonitor() monitor.BalanceMonitor LogPoller() *logpoller.LogPoller }
type ChainConfigUpdater ¶ added in v1.1.0
func UpdateKeySpecificMaxGasPrice ¶ added in v1.1.0
func UpdateKeySpecificMaxGasPrice(addr common.Address, maxGasPriceWei *big.Int) ChainConfigUpdater
type ChainSet ¶ added in v1.1.0
type ChainSet interface { services.ServiceCtx Get(id *big.Int) (Chain, error) Add(ctx context.Context, id *big.Int, config types.ChainCfg) (types.Chain, error) Remove(id *big.Int) error Default() (Chain, error) Configure(ctx context.Context, id *big.Int, enabled bool, config types.ChainCfg) (types.Chain, error) UpdateConfig(id *big.Int, updaters ...ChainConfigUpdater) error Chains() []Chain ChainCount() int ORM() types.ORM // GetNode et al retrieves Nodes from the ORM and adds additional state info GetNode(ctx context.Context, id int32) (node evmtypes.Node, err error) GetNodes(ctx context.Context, offset, limit int) (nodes []evmtypes.Node, count int, err error) GetNodesForChain(ctx context.Context, chainID utils.Big, offset, limit int) (nodes []evmtypes.Node, count int, err error) GetNodesByChainIDs(ctx context.Context, chainIDs []utils.Big) (nodes []types.Node, err error) }
func LoadChainSet ¶ added in v1.1.0
func LoadChainSet(opts ChainSetOpts) (ChainSet, error)
func NewChainSet ¶ added in v1.1.0
type ChainSetOpts ¶ added in v1.1.0
type ChainSetOpts struct { Config config.GeneralConfig Logger logger.Logger DB *sqlx.DB KeyStore keystore.Eth EventBroadcaster pg.EventBroadcaster ORM types.ORM // Gen-functions are useful for dependency injection by tests GenEthClient func(types.Chain) evmclient.Client GenLogBroadcaster func(types.Chain) log.Broadcaster GenHeadTracker func(types.Chain, httypes.HeadBroadcaster) httypes.HeadTracker GenTxManager func(types.Chain) txmgr.TxManager }
Click to show internal directories.
Click to hide internal directories.