context

package
v0.2.3-dev Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetHyperdriveContext

func SetHyperdriveContext(c *cli.Context, hd *HyperdriveContext)

Add the Hyperdrive context into a CLI context

Types

type HyperdriveContext

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

	// 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 GetHyperdriveContext

func GetHyperdriveContext(c *cli.Context) *HyperdriveContext

Get the Hyperdrive context from a CLI context

Jump to

Keyboard shortcuts

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