config

package
v1.16.40 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package config provides SDK configuration structures and utilities.

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