command

package
v1.11.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BootstrapNodeCmd = &cobra.Command{
	Use:   "bootstrap [address] [ui-port] [p2pv2-port]",
	Short: "Setup a bootstrap node.",
	Long:  `This commands launches a chainlink node inside the docker container and sets up the bootstrap job`,
	Args:  cobra.ExactArgs(1),
	Run: func(cmd *cobra.Command, args []string) {
		cfg := config.New()
		baseHandler := handler.NewBaseHandler(cfg)

		uiPort, err := cmd.Flags().GetInt("ui-port")
		if err != nil {
			log.Fatal("failed to get ui-port flag: ", err)
		}

		p2pv2Port, err := cmd.Flags().GetInt("p2pv2-port")
		if err != nil {
			log.Fatal("failed to get p2pv2-port flag: ", err)
		}

		baseHandler.StartBootstrapNode(cmd.Context(), args[0], uiPort, p2pv2Port)
	},
}

BootstrapNodeCmd launches a chainlink node with a bootstrap job

View Source
var RevertReasonCmd = &cobra.Command{
	Use:   "reason",
	Short: "Revert reason for failed TX.",
	Long:  `Given a failed TX tries to find the revert reason. args = tx hex address`,
	Args:  cobra.ExactArgs(1),
	Run: func(cmd *cobra.Command, args []string) {
		cfg := config.New()
		baseHandler := handler.NewBaseHandler(cfg)
		baseHandler.RevertReason(args[0])
	},
}

RevertReasonCmd takes in a failed tx hash and tries to give you the reason

View Source
var RootCmd = &cobra.Command{
	Use:   "chaincli",
	Short: "ChainLink CLI tool to manage products such as keeper, vrf, etc.",
	Long:  `chaincli is a CLI for running the product management commands, e.g. keepers deployment.`,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the RootCmd.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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