flags

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommonFlags

func AddCommonFlags(cmd *cobra.Command, flags *CommonFlags)

AddCommonFlags adds common flags to a command

func AddCreateFlags

func AddCreateFlags(cmd *cobra.Command, flags *CommonFlags)

func AddNetworkFlags

func AddNetworkFlags(cmd *cobra.Command, flags *CommonFlags)

AddNetworkFlags adds only network-related flags

func AddOutputFlags

func AddOutputFlags(cmd *cobra.Command, flags *CommonFlags)

AddOutputFlags adds output-related flags

func AddSendFlags

func AddSendFlags(cmd *cobra.Command, flags *CommonFlags)

func AddSigningFlags

func AddSigningFlags(cmd *cobra.Command, flags *CommonFlags)

AddSigningFlags adds only signing-related flags

func AddTransactionFlags

func AddTransactionFlags(cmd *cobra.Command, flags *CommonFlags)

AddTransactionFlags adds transaction-related flags

Types

type CommonFlags

type CommonFlags struct {
	// Network flags
	Network                      string
	RPCURL                       string
	ChainID                      string
	ValidatorManagerContractAddr string

	// Signing flags
	PrivateKey           string
	KeyfilePath          string
	KeyfilePassword      string
	KeyfilePasswordFile  string
	PrivValidatorKeyPath string

	// Account-based signing flags
	Account      string
	KeystorePath string

	// Transaction flags
	GasLimit    uint64
	GasPrice    string
	Nonce       string
	ContractFee string

	// Output flags
	OutputFile string
	Signed     bool
	Unsigned   bool
	Yes        bool
}

CommonFlags contains all common flags used across commands

Jump to

Keyboard shortcuts

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