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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.