Documentation ¶
Index ¶
- func NewChain(cfg *StarknetConfig, opts ChainOpts) (starkchain.Chain, error)
- type ChainOpts
- type StarknetConfig
- func (c *StarknetConfig) ConfirmationPoll() time.Duration
- func (c *StarknetConfig) IsEnabled() bool
- func (c *StarknetConfig) ListNodes() ([]db.Node, error)
- 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) TxTimeout() time.Duration
- func (c *StarknetConfig) ValidateConfig() (err error)
- type StarknetConfigs
- type StarknetNodes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChain ¶ added in v2.6.0
func NewChain(cfg *StarknetConfig, opts ChainOpts) (starkchain.Chain, error)
Types ¶
type ChainOpts ¶ added in v2.6.0
type StarknetConfig ¶
type StarknetConfig struct { ChainID *string // Do not access directly. Use [IsEnabled] Enabled *bool stkcfg.Chain Nodes StarknetNodes }
func (*StarknetConfig) ConfirmationPoll ¶ added in v2.2.0
func (c *StarknetConfig) ConfirmationPoll() time.Duration
func (*StarknetConfig) IsEnabled ¶
func (c *StarknetConfig) IsEnabled() bool
func (*StarknetConfig) ListNodes ¶ added in v2.6.0
func (c *StarknetConfig) ListNodes() ([]db.Node, error)
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) TxTimeout ¶
func (c *StarknetConfig) TxTimeout() time.Duration
func (*StarknetConfig) ValidateConfig ¶
func (c *StarknetConfig) ValidateConfig() (err error)
type StarknetConfigs ¶
type StarknetConfigs []*StarknetConfig
func (*StarknetConfigs) SetFrom ¶
func (cs *StarknetConfigs) SetFrom(fs *StarknetConfigs) (err error)
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.