Documentation ¶
Index ¶
- func EnsureChains(db *sqlx.DB, lggr logger.Logger, cfg pg.QConfig, ids []string) error
- func NewChainSet(opts ChainSetOpts, cfgs StarknetConfigs) (starkchain.ChainSet, error)
- func NewConfigs(cfgs chains.ConfigsV2[string, starknetdb.Node]) types.Configs
- type ChainSetOpts
- type StarknetConfig
- func (c *StarknetConfig) IsEnabled() bool
- func (c *StarknetConfig) OCR2CachePollPeriod() time.Duration
- func (c *StarknetConfig) OCR2CacheTTL() time.Duration
- func (c *StarknetConfig) RequestTimeout() time.Duration
- func (c *StarknetConfig) SetFrom(f *StarknetConfig)
- func (c *StarknetConfig) TOMLString() (string, error)
- func (c *StarknetConfig) TxMaxBatchSize() int
- func (c *StarknetConfig) TxSendFrequency() time.Duration
- func (c *StarknetConfig) TxTimeout() time.Duration
- func (c *StarknetConfig) ValidateConfig() (err error)
- type StarknetConfigs
- func (cs StarknetConfigs) Chains(ids ...string) (r []types.ChainStatus, err error)
- func (cs StarknetConfigs) Node(name string) (n db.Node, err error)
- func (cs StarknetConfigs) NodeStatus(name string) (n types.NodeStatus, err error)
- func (cs StarknetConfigs) NodeStatuses(chainIDs ...string) (ns []types.NodeStatus, err error)
- func (cs StarknetConfigs) Nodes(chainID string) (ns []db.Node, err error)
- func (cs *StarknetConfigs) SetFrom(fs *StarknetConfigs)
- func (cs StarknetConfigs) ValidateConfig() (err error)
- type StarknetNodes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureChains ¶
func NewChainSet ¶
func NewChainSet(opts ChainSetOpts, cfgs StarknetConfigs) (starkchain.ChainSet, error)
func NewConfigs ¶
Types ¶
type ChainSetOpts ¶
type ChainSetOpts struct { Config coreconfig.BasicConfig Logger logger.Logger KeyStore keystore.StarkNet Configs types.Configs }
func (*ChainSetOpts) ConfigsAndLogger ¶
func (*ChainSetOpts) Name ¶
func (o *ChainSetOpts) Name() string
func (*ChainSetOpts) NewTOMLChain ¶
func (o *ChainSetOpts) NewTOMLChain(cfg *StarknetConfig) (starkchain.Chain, error)
func (*ChainSetOpts) Validate ¶
func (o *ChainSetOpts) Validate() (err error)
type StarknetConfig ¶
type StarknetConfig struct { ChainID *string Enabled *bool stkcfg.Chain Nodes StarknetNodes }
func (*StarknetConfig) IsEnabled ¶
func (c *StarknetConfig) IsEnabled() bool
func (*StarknetConfig) OCR2CachePollPeriod ¶
func (c *StarknetConfig) OCR2CachePollPeriod() time.Duration
func (*StarknetConfig) OCR2CacheTTL ¶
func (c *StarknetConfig) OCR2CacheTTL() time.Duration
func (*StarknetConfig) RequestTimeout ¶
func (c *StarknetConfig) RequestTimeout() time.Duration
func (*StarknetConfig) SetFrom ¶
func (c *StarknetConfig) SetFrom(f *StarknetConfig)
func (*StarknetConfig) TOMLString ¶
func (c *StarknetConfig) TOMLString() (string, error)
func (*StarknetConfig) TxMaxBatchSize ¶
func (c *StarknetConfig) TxMaxBatchSize() int
func (*StarknetConfig) TxSendFrequency ¶
func (c *StarknetConfig) TxSendFrequency() time.Duration
func (*StarknetConfig) TxTimeout ¶
func (c *StarknetConfig) TxTimeout() time.Duration
func (*StarknetConfig) ValidateConfig ¶
func (c *StarknetConfig) ValidateConfig() (err error)
type StarknetConfigs ¶
type StarknetConfigs []*StarknetConfig
func (StarknetConfigs) Chains ¶
func (cs StarknetConfigs) Chains(ids ...string) (r []types.ChainStatus, err error)
func (StarknetConfigs) NodeStatus ¶ added in v2.1.0
func (cs StarknetConfigs) NodeStatus(name string) (n types.NodeStatus, err error)
func (StarknetConfigs) NodeStatuses ¶ added in v2.1.0
func (cs StarknetConfigs) NodeStatuses(chainIDs ...string) (ns []types.NodeStatus, err error)
func (StarknetConfigs) Nodes ¶
func (cs StarknetConfigs) Nodes(chainID string) (ns []db.Node, err error)
func (*StarknetConfigs) SetFrom ¶
func (cs *StarknetConfigs) SetFrom(fs *StarknetConfigs)
func (StarknetConfigs) ValidateConfig ¶
func (cs StarknetConfigs) ValidateConfig() (err error)
type StarknetNodes ¶
func (*StarknetNodes) SetFrom ¶
func (ns *StarknetNodes) SetFrom(fs *StarknetNodes)
Click to show internal directories.
Click to hide internal directories.