Documentation
¶
Index ¶
Constants ¶
View Source
const ChainFamilyName = "ton"
Name of the chain family (e.g., "ethereum", "solana", "ton")
Variables ¶
View Source
var DefaultConfigSet = Chain{ TransactionManager: &txm.DefaultConfigSet, ClientTTL: 10 * time.Minute, }
Functions ¶
func NodeStatus ¶
func NodeStatus(n *Node, id string) (relaytypes.NodeStatus, error)
Types ¶
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 (TON) 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)
Click to show internal directories.
Click to hide internal directories.