Module network

Source
Expand description

Network Configuration Module

This module provides network configuration support for EVM, Solana, and Stellar networks with inheritance, validation, and flexible loading mechanisms.

§Key Features

  • Multi-blockchain support: EVM, Solana, and Stellar network configurations
  • Inheritance system: Networks can inherit from parents with type safety
  • Flexible loading: JSON arrays or directory-based configuration files
  • Comprehensive validation: URL validation, required fields, inheritance integrity

§Core Types

Modules§

collection
Network Configuration Collection Management
common
Common Network Configuration Components
evm
EVM Network Configuration
file_loading
Network Configuration File Loading
inheritance
Network Configuration Inheritance Resolution
solana
Solana Network Configuration
stellar
Stellar Network Configuration

Structs§

EvmNetworkConfig
Configuration specific to EVM-compatible networks.
InheritanceResolver
Resolves network configuration inheritance by recursively merging child configurations with their parents.
NetworkConfigCommon
NetworkFileLoader
NetworksFileConfig
Represents the complete configuration for all defined networks.
SolanaNetworkConfig
Configuration specific to Solana networks.
StellarNetworkConfig
Configuration specific to Stellar networks.

Enums§

NetworkFileConfig
Represents the configuration for a specific network, which can be EVM, Solana, or Stellar.
NetworksSource
Represents the source of network configurations for deserialization.

Functions§

merge_optional_string_vecs
Combines child and parent string vectors, preserving all unique items with child items taking precedence.