Documentation ¶
Index ¶
- func DeployCmd(manager *simple.Manager) *cobra.Command
- func GentxCmd(manager *simple.Manager) *cobra.Command
- func ListCmd(manager *simple.Manager) *cobra.Command
- func MethodsCmd(manager *simple.Manager) *cobra.Command
- func NewContractCmd() *cobra.Command
- func NewRootCmd() *cobra.Command
- func StartCmd(manager *simple.Manager) *cobra.Command
- type GlobalConfig
- type TransactionConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeployCmd ¶
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 ¶
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 ¶
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 ¶
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 ¶
NewContractCmd creates a new instance of the cobra.Command for the "contract" command.
Returns a pointer to the cobra.Command.
func NewRootCmd ¶
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 ¶
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