nodeconfig

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 14 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package nodeconfig supplies shared configuration types, CLI policy, data-directory defaults, and storage paths.

Index

Constants

View Source
const Mainnet = "arbitrum-one-mainnet"

Variables

View Source
var (
	Controller = common.HexToAddress("0xD8E8328501E9645d16Cf49539efC04f734606ee4")
	ETHUSDFeed = common.HexToAddress("0x639Fe6ab55C921f74e7fac1ee960C0B6293ba612")
)

Functions

func Command

func Command[P any](component, network string, cmd boa.Cmd[P], config *string) boa.Cmd[P]

Command applies shared source and discovery policy using Boa's merge pipeline. Parameters must embed Settings or PersistentSettings.

func Default

func Default[T any](ctx *boa.HookContext, field *T, value T)

Default fills an absent value after configuration has selected the network.

Types

type Headers added in v1.0.7

type Headers http.Header

Headers parses comma-separated Header: value entries, with CSV quoting for commas. Names are case-insensitive; repeated names retain all values.

func (Headers) MarshalText added in v1.0.7

func (h Headers) MarshalText() ([]byte, error)

MarshalText returns CSV entries sorted by header name.

func (*Headers) UnmarshalText added in v1.0.7

func (h *Headers) UnmarshalText(text []byte) error

type PersistentSettings

type PersistentSettings struct{ Settings }

PersistentSettings shares directory settings with nested commands.

func (*PersistentSettings) InitCtx

func (s *PersistentSettings) InitCtx(ctx *boa.HookContext) error

type Settings

type Settings struct {
	Network string `optional:"true" descr:"Network name (custom networks require explicit chain settings)"`
	DataDir string `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (Settings) KeystoreDir

func (s Settings) KeystoreDir() string

KeystoreDir uses provenance retained by Command, including supplied paths equal to the calculated default. Direct callers supplying DataDir use it as-is.

Directories

Path Synopsis
Package migrations applies embedded SQL migrations and builds their shared CLI command.
Package migrations applies embedded SQL migrations and builds their shared CLI command.

Jump to

Keyboard shortcuts

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