Documentation
¶
Overview ¶
Package clicommands contains only the cli.Command definitions that are common to sptool and miner. These are here because they can't be referenced in cli/spcli or cli/ because of the import cycle with all the other cli functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Commands = []*cli.Command{ lcli.WithCategory("basic", lcli.SendCmd), lcli.WithCategory("basic", lcli.WalletCmd), lcli.WithCategory("basic", lcli.InfoCmd), lcli.WithCategory("basic", lcli.MultisigCmd), lcli.WithCategory("basic", lcli.FilplusCmd), lcli.WithCategory("basic", lcli.PaychCmd), lcli.WithCategory("developer", lcli.AuthCmd), lcli.WithCategory("developer", lcli.MpoolCmd), lcli.WithCategory("developer", StateCmd), lcli.WithCategory("developer", lcli.ChainCmd), lcli.WithCategory("developer", lcli.LogCmd), lcli.WithCategory("developer", lcli.WaitApiCmd), lcli.WithCategory("developer", lcli.FetchParamCmd), lcli.WithCategory("developer", lcli.EvmCmd), lcli.WithCategory("network", lcli.NetCmd), lcli.WithCategory("network", lcli.SyncCmd), lcli.WithCategory("status", lcli.StatusCmd), lcli.PprofCmd, lcli.VersionCmd, }
View Source
var StateCmd = &cli.Command{ Name: "state", Usage: "Interact with and query filecoin chain state", Flags: []cli.Flag{ &cli.StringFlag{ Name: "tipset", Usage: "specify tipset to call method on (pass comma separated array of cids)", }, }, Subcommands: []*cli.Command{ lcli.StatePowerCmd, lcli.StateSectorsCmd, lcli.StateActiveSectorsCmd, lcli.StateListActorsCmd, lcli.StateListMinersCmd, lcli.StateCircSupplyCmd, lcli.StateSectorCmd, lcli.StateGetActorCmd, lcli.StateLookupIDCmd, lcli.StateReplayCmd, lcli.StateSectorSizeCmd, lcli.StateReadStateCmd, lcli.StateListMessagesCmd, lcli.StateComputeStateCmd, lcli.StateCallCmd, lcli.StateGetDealSetCmd, lcli.StateWaitMsgCmd, lcli.StateSearchMsgCmd, StateMinerInfo, lcli.StateMarketCmd, lcli.StateExecTraceCmd, lcli.StateNtwkVersionCmd, lcli.StateMinerProvingDeadlineCmd, lcli.StateSysActorCIDsCmd, }, }
View Source
var StateMinerInfo = &cli.Command{ Name: "miner-info", Usage: "Retrieve miner information", ArgsUsage: "[minerAddress]", Action: func(cctx *cli.Context) error { addressGetter := func(_ *cli.Context) (address.Address, error) { if cctx.NArg() != 1 { return address.Address{}, lcli.IncorrectNumArgs(cctx) } return address.NewFromString(cctx.Args().First()) } err := spcli.InfoCmd(addressGetter).Action(cctx) if err != nil { return err } return nil }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.