Documentation ¶
Index ¶
- Constants
- func EnsureChains(db *sqlx.DB, lggr logger.Logger, cfg pg.QConfig, ids []string) error
- func NewChainSet(opts ChainSetOpts, cfgs SolanaConfigs) (solana.ChainSet, error)
- type ChainSetOpts
- type Configs
- type SolanaConfig
- func (c *SolanaConfig) BalancePollPeriod() time.Duration
- func (c *SolanaConfig) Commitment() rpc.CommitmentType
- func (c *SolanaConfig) ComputeUnitPriceDefault() uint64
- func (c *SolanaConfig) ComputeUnitPriceMax() uint64
- func (c *SolanaConfig) ComputeUnitPriceMin() uint64
- func (c *SolanaConfig) ConfirmPollPeriod() time.Duration
- func (c *SolanaConfig) FeeBumpPeriod() time.Duration
- func (c *SolanaConfig) FeeEstimatorMode() string
- func (c *SolanaConfig) IsEnabled() bool
- func (c *SolanaConfig) MaxRetries() *uint
- func (c *SolanaConfig) OCR2CachePollPeriod() time.Duration
- func (c *SolanaConfig) OCR2CacheTTL() time.Duration
- func (c *SolanaConfig) SetFrom(f *SolanaConfig)
- func (c *SolanaConfig) SkipPreflight() bool
- func (c *SolanaConfig) TOMLString() (string, error)
- func (c *SolanaConfig) TxConfirmTimeout() time.Duration
- func (c *SolanaConfig) TxRetryTimeout() time.Duration
- func (c *SolanaConfig) TxTimeout() time.Duration
- func (c *SolanaConfig) ValidateConfig() (err error)
- type SolanaConfigs
- func (cs SolanaConfigs) Chains(ids ...string) (r []types.ChainStatus, err error)
- func (cs SolanaConfigs) Node(name string) (soldb.Node, error)
- func (cs SolanaConfigs) NodeStatus(name string) (types.NodeStatus, error)
- func (cs SolanaConfigs) NodeStatuses(chainIDs ...string) (ns []types.NodeStatus, err error)
- func (cs SolanaConfigs) Nodes(chainID string) (ns []soldb.Node, err error)
- func (cs *SolanaConfigs) SetFrom(fs *SolanaConfigs) (err error)
- func (cs SolanaConfigs) ValidateConfig() (err error)
- type SolanaNodes
Constants ¶
View Source
const DefaultRequestTimeout = 30 * time.Second
DefaultRequestTimeout is the default Solana client timeout.
Variables ¶
This section is empty.
Functions ¶
func EnsureChains ¶
func NewChainSet ¶
func NewChainSet(opts ChainSetOpts, cfgs SolanaConfigs) (solana.ChainSet, error)
Types ¶
type ChainSetOpts ¶
ChainSetOpts holds options for configuring a ChainSet.
func (*ChainSetOpts) ConfigsAndLogger ¶
func (*ChainSetOpts) NewTOMLChain ¶
func (o *ChainSetOpts) NewTOMLChain(cfg *SolanaConfig) (solana.Chain, error)
func (*ChainSetOpts) Validate ¶
func (o *ChainSetOpts) Validate() (err error)
type Configs ¶
type Configs interface { chains.ChainConfigs chains.NodeConfigs[string, soldb.Node] }
Configs manages solana chains and nodes.
type SolanaConfig ¶
type SolanaConfig struct { ChainID *string Enabled *bool solcfg.Chain Nodes SolanaNodes }
func (*SolanaConfig) BalancePollPeriod ¶
func (c *SolanaConfig) BalancePollPeriod() time.Duration
func (*SolanaConfig) Commitment ¶
func (c *SolanaConfig) Commitment() rpc.CommitmentType
func (*SolanaConfig) ComputeUnitPriceDefault ¶
func (c *SolanaConfig) ComputeUnitPriceDefault() uint64
func (*SolanaConfig) ComputeUnitPriceMax ¶
func (c *SolanaConfig) ComputeUnitPriceMax() uint64
func (*SolanaConfig) ComputeUnitPriceMin ¶
func (c *SolanaConfig) ComputeUnitPriceMin() uint64
func (*SolanaConfig) ConfirmPollPeriod ¶
func (c *SolanaConfig) ConfirmPollPeriod() time.Duration
func (*SolanaConfig) FeeBumpPeriod ¶
func (c *SolanaConfig) FeeBumpPeriod() time.Duration
func (*SolanaConfig) FeeEstimatorMode ¶
func (c *SolanaConfig) FeeEstimatorMode() string
func (*SolanaConfig) IsEnabled ¶
func (c *SolanaConfig) IsEnabled() bool
func (*SolanaConfig) MaxRetries ¶
func (c *SolanaConfig) MaxRetries() *uint
func (*SolanaConfig) OCR2CachePollPeriod ¶
func (c *SolanaConfig) OCR2CachePollPeriod() time.Duration
func (*SolanaConfig) OCR2CacheTTL ¶
func (c *SolanaConfig) OCR2CacheTTL() time.Duration
func (*SolanaConfig) SetFrom ¶
func (c *SolanaConfig) SetFrom(f *SolanaConfig)
func (*SolanaConfig) SkipPreflight ¶
func (c *SolanaConfig) SkipPreflight() bool
func (*SolanaConfig) TOMLString ¶
func (c *SolanaConfig) TOMLString() (string, error)
func (*SolanaConfig) TxConfirmTimeout ¶
func (c *SolanaConfig) TxConfirmTimeout() time.Duration
func (*SolanaConfig) TxRetryTimeout ¶
func (c *SolanaConfig) TxRetryTimeout() time.Duration
func (*SolanaConfig) TxTimeout ¶
func (c *SolanaConfig) TxTimeout() time.Duration
func (*SolanaConfig) ValidateConfig ¶
func (c *SolanaConfig) ValidateConfig() (err error)
type SolanaConfigs ¶
type SolanaConfigs []*SolanaConfig
func (SolanaConfigs) Chains ¶
func (cs SolanaConfigs) Chains(ids ...string) (r []types.ChainStatus, err error)
func (SolanaConfigs) NodeStatus ¶ added in v2.1.0
func (cs SolanaConfigs) NodeStatus(name string) (types.NodeStatus, error)
func (SolanaConfigs) NodeStatuses ¶ added in v2.1.0
func (cs SolanaConfigs) NodeStatuses(chainIDs ...string) (ns []types.NodeStatus, err error)
func (SolanaConfigs) Nodes ¶
func (cs SolanaConfigs) Nodes(chainID string) (ns []soldb.Node, err error)
func (*SolanaConfigs) SetFrom ¶
func (cs *SolanaConfigs) SetFrom(fs *SolanaConfigs) (err error)
func (SolanaConfigs) ValidateConfig ¶
func (cs SolanaConfigs) ValidateConfig() (err error)
type SolanaNodes ¶
func (*SolanaNodes) SetFrom ¶
func (ns *SolanaNodes) SetFrom(fs *SolanaNodes)
Click to show internal directories.
Click to hide internal directories.