Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultBroadcastChannelSize = uint64(4096) DefaultMaxConcurrentRequests = int64(500) DefaultRetryCount = int64(5) DefaultMaxGasLimit = int64(10000000) DefaultTxTimeoutSeconds = 120 DefaultConfirmPollSecs = int64(10) DefaultBalancePollIntervalSeconds = int64(10) DefaultIndexerPollIntervalSecs = uint64(10) DefaultIndexerSyncTimeoutSecs = uint64(60) DefaultReaperPollSecs = uint64(10) DefaultTransactionRetentionSecs = uint64(10) )
Default constant values
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BalanceMonitorConfig ¶
type BalanceMonitorConfig struct {
BalancePollPeriod *string
}
type IndexerConfig ¶
type NodeConfig ¶
func (*NodeConfig) ValidateConfig ¶
func (n *NodeConfig) ValidateConfig() error
type NodeConfigs ¶
type NodeConfigs []*NodeConfig
func (NodeConfigs) SelectRandom ¶
func (ns NodeConfigs) SelectRandom() (*NodeConfig, error)
func (*NodeConfigs) SetFrom ¶
func (ns *NodeConfigs) SetFrom(fs *NodeConfigs)
type TOMLConfig ¶
type TOMLConfig struct {
// ChainID is a unique identifier for the Sui chain
ChainID *string
// Enabled determines if this chain configuration is active
// If nil, defaults to true. Use IsEnabled() method to check.
Enabled *bool
// NetworkName is the name of the Sui network
NetworkName *string
// NetworkNameFull is the full name of the Sui network
NetworkNameFull *string
// ChainConfig holds chain-specific configuration parameters
TransactionManager *TransactionManagerConfig
// Balance monitor config
BalanceMonitor *BalanceMonitorConfig
// Transactions indexer configs (without any transmitter specs, transmitters are attached later)
TransactionsIndexer *IndexerConfig
// Events indexer configs (without any event selectors, those are attached later)
EventsIndexer *IndexerConfig
// Nodes is a collection of node configurations for this chain
Nodes NodeConfigs
}
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) ListNodes ¶
func (c *TOMLConfig) ListNodes() NodeConfigs
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() error
type TOMLConfigs ¶
type TOMLConfigs []*TOMLConfig
func (*TOMLConfigs) SetFrom ¶
func (cs *TOMLConfigs) SetFrom(fs *TOMLConfigs) error
func (TOMLConfigs) ValidateConfig ¶
func (cs TOMLConfigs) ValidateConfig() error
Click to show internal directories.
Click to hide internal directories.