cmd

package
v0.0.0-...-a67bbdc Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployCmd

func DeployCmd(manager *simple.Manager) *cobra.Command

DeployCmd returns a new instance of the `cobra.Command` struct for the `deploy` command.

No parameters. Returns a pointer to a `cobra.Command` struct.

func GentxCmd

func GentxCmd(manager *simple.Manager) *cobra.Command

GentxCmd returns a cobra Command for the "gentx" command.

The command generates test data and outputs it to a CSV file. It takes no parameters and returns a pointer to a cobra.Command.

func ListCmd

func ListCmd(manager *simple.Manager) *cobra.Command

ListCmd returns a new cobra command for the "list" command.

The command lists all samplers (contract) and their details. It takes a manager object as a parameter. It returns a pointer to a cobra.Command object.

func MethodsCmd

func MethodsCmd(manager *simple.Manager) *cobra.Command

MethodsCmd creates a new Cobra command for the "methods" command.

The manager parameter is a pointer to a simple.Manager object. It is used to manage the samplers.

The function returns a pointer to a Cobra command object.

func NewContractCmd

func NewContractCmd() *cobra.Command

NewContractCmd creates a new instance of the cobra.Command for the "contract" command.

Returns a pointer to the cobra.Command.

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd returns a new instance of the cobra.Command struct.

This function does not take any parameters. It returns a pointer to a cobra.Command struct.

func StartCmd

func StartCmd(manager *simple.Manager) *cobra.Command

StartCmd generates a cobra command for sending transaction.

The function does the following: - Creates a new cobra command. - Sets the command's use and short description. - Defines a RunE function that handles the command's execution. - Retrieves the contract address from the command flag. - Retrieves the output path from the command flag. - Retrieves the generator from the command. - Runs the generator with the contract address. Returns the generated cobra command.

Types

type GlobalConfig

type GlobalConfig struct {
	// contains filtered or unexported fields
}

GlobalConfig represents a global config

type TransactionConfig

type TransactionConfig struct {
	// contains filtered or unexported fields
}

TransactionConfig represents a transaction config

Jump to

Keyboard shortcuts

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