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 UpdateConfig(*types.ChainCfg) 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) Show(id utils.Big) (types.DBChain, error) Add(ctx context.Context, id utils.Big, config *types.ChainCfg) (types.DBChain, error) Remove(id utils.Big) error Default() (Chain, error) Configure(ctx context.Context, id utils.Big, enabled bool, config *types.ChainCfg) (types.DBChain, error) UpdateConfig(id *big.Int, updaters ...ChainConfigUpdater) error Chains() []Chain Index(offset, limit int) ([]types.DBChain, int, error) 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 types.Node, err error) GetNodes(ctx context.Context, offset, limit int) (nodes []types.Node, count int, err error) GetNodesForChain(ctx context.Context, chainID utils.Big, offset, limit int) (nodes []types.Node, count int, err error) GetNodesByChainIDs(ctx context.Context, chainIDs []utils.Big) (nodes []types.Node, err error) CreateNode(ctx context.Context, data types.Node) (types.Node, error) DeleteNode(ctx context.Context, id int32) error }
func LoadChainSet ¶ added in v1.1.0
func LoadChainSet(ctx context.Context, opts ChainSetOpts) (ChainSet, error)
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.DBChain) evmclient.Client GenLogBroadcaster func(types.DBChain) log.Broadcaster GenLogPoller func(types.DBChain) logpoller.LogPoller GenHeadTracker func(types.DBChain, httypes.HeadBroadcaster) httypes.HeadTracker GenTxManager func(types.DBChain) txmgr.TxManager }
Directories ¶
Path | Synopsis |
---|---|
cmd/arbgas
arbgas takes a single URL argument and prints the result of three GetLegacyGas calls to the Arbitrum gas estimator.
|
arbgas takes a single URL argument and prints the result of three GetLegacyGas calls to the Arbitrum gas estimator. |
Package logpoller is a service for querying EVM log data.
|
Package logpoller is a service for querying EVM log data. |
Click to show internal directories.
Click to hide internal directories.