context

package
v2.0.0-dev2.0...-efbdfda Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: GPL-3.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetSmartnodeContext

func SetSmartnodeContext(c *cli.Context, sn *SmartNodeContext)

Add the Smart Node context into a CLI context

Types

type SmartNodeContext

type SmartNodeContext struct {
	// The path to the configuration file
	ConfigPath string

	// True if this CLI should be run in Native Mode
	NativeMode bool

	// The max fee for transactions
	MaxFee float64

	// The max priority fee for transactions
	MaxPriorityFee float64

	// The nonce for the first transaction, if set
	Nonce *big.Int

	// True if debug mode is enabled
	DebugEnabled bool

	// True if this is a secure session
	SecureSession bool
}

Context for global settings

func GetSmartNodeContext

func GetSmartNodeContext(c *cli.Context) *SmartNodeContext

Get the Smart Node context from a CLI context

Jump to

Keyboard shortcuts

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