Documentation
¶
Overview ¶
Package nodeconfig supplies shared configuration types, CLI policy, data-directory defaults, and storage paths.
Index ¶
Constants ¶
const Mainnet = "arbitrum-one-mainnet"
Variables ¶
var ( Controller = common.HexToAddress("0xD8E8328501E9645d16Cf49539efC04f734606ee4") ETHUSDFeed = common.HexToAddress("0x639Fe6ab55C921f74e7fac1ee960C0B6293ba612") )
Functions ¶
func Command ¶
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
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
MarshalText returns CSV entries sorted by header name.
func (*Headers) UnmarshalText ¶ added in v1.0.7
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 ¶
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. |