config

package
v1.16.37 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LogLevel string
	DataDir  string
	Network  *NetworkConfig
}

Config represents the SDK configuration

func Default

func Default() *Config

Default returns a default configuration

type NetworkConfig

type NetworkConfig struct {
	NetrunnerEndpoint string
	NodeEndpoint      string
	NetworkID         uint32
	APIEndpoint       string
	P2PPort           int
	HTTPPort          int
	StakingPort       int
	LogLevel          string
	DataDir           string
	DBType            string
	GenesisFile       string
	StakeAmount       uint64
}

NetworkConfig represents network configuration

func DefaultNetworkConfig

func DefaultNetworkConfig() *NetworkConfig

DefaultNetworkConfig returns default network configuration

func (*NetworkConfig) ChainID

func (nc *NetworkConfig) ChainID() *big.Int

ChainID returns a big.Int representation of the NetworkID

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL