Documentation
¶
Index ¶
Constants ¶
View Source
const ChainFamilyName = "aptos"
Name of the chain family (e.g., "ethereum", "solana", "aptos")
Variables ¶
View Source
var DefaultConfigSet = ConfigSet{ TransactionManager: txm.DefaultConfigSet, BalanceMonitor: monitor.GenericBalanceConfig{ BalancePollPeriod: *config.MustNewDuration(10 * time.Second), }, WriteTargetCap: write_target.DefaultConfigSet, }
Functions ¶
func GetNetworkConfig ¶
func GetNetworkConfig(chainID string) (aptos.NetworkConfig, error)
GetNetworkConfig returns a known network configuration for the given chain ID. A NetworkConfig contains the configuration details for connecting to a specific Aptos network, including the network's ChainId, URL, and other relevant settings. This function takes a chain ID as a string, validates it, and returns the corresponding NetworkConfig.
Types ¶
type Chain ¶
type Chain struct {
TransactionManager *txm.Config
BalanceMonitor *monitor.GenericBalanceConfig
WriteTargetCap *write_target.Config
Workflow *WorkflowConfig
}
type ConfigSet ¶
type ConfigSet struct {
TransactionManager txm.Config
BalanceMonitor monitor.GenericBalanceConfig
WriteTargetCap write_target.Config
}
type Node ¶
func (*Node) ValidateConfig ¶
type TOMLConfig ¶
type TOMLConfig struct {
// Do not access directly. Use [IsEnabled]
Enabled *bool
// Chain configuration
ChainID string
NetworkName string
NetworkNameFull string
// Chain-specific components configuration
Chain
Nodes Nodes
}
func NewDecodedTOMLConfig ¶
func NewDecodedTOMLConfig(rawConfig string) (*TOMLConfig, error)
decodeConfig decodes the rawConfig as (Aptos) TOML and sets default values
func (*TOMLConfig) IsEnabled ¶
func (c *TOMLConfig) IsEnabled() bool
func (*TOMLConfig) SetDefaults ¶
func (c *TOMLConfig) SetDefaults()
func (*TOMLConfig) SetFrom ¶
func (c *TOMLConfig) SetFrom(f *TOMLConfig)
func (*TOMLConfig) TOMLString ¶
func (c *TOMLConfig) TOMLString() (string, error)
func (*TOMLConfig) ValidateConfig ¶
func (c *TOMLConfig) ValidateConfig() (err error)
type TOMLConfigs ¶
type TOMLConfigs []*TOMLConfig
func (TOMLConfigs) ValidateConfig ¶
func (cs TOMLConfigs) ValidateConfig() (err error)
type WorkflowConfig ¶
Click to show internal directories.
Click to hide internal directories.