cmd

package
v0.0.0-...-325dad6 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands = cli.Command{}
View Source
var GasFeeCapFlag = &cli.StringFlag{
	Name:  "gasfeecap",
	Usage: "eg. 1,1000000afil",
	Value: "1000000afil",
}
View Source
var LotusTokenFlag = &cli.StringFlag{
	Name:  "lotus-token",
	Value: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiYWRtaW4iLCJwZXJtIjoiYWRtaW4iLCJleHQiOiIifQ.YHIIXispL9G-foNaK2PLvvqzuNPVrgRBPuLpGXymbZ0",
	Usage: "lotus token",
}
View Source
var LotusURLFlag = &cli.StringFlag{
	Name:  "lotus-url",
	Value: "/ip4/192.168.25.124/tcp/1234",
	Usage: "lotus url",
}
View Source
var VenusTokenFlag = &cli.StringFlag{
	Name:  "venus-token",
	Value: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiYWRtaW4iLCJwZXJtIjoiYWRtaW4iLCJleHQiOiIifQ.YHIIXispL9G-foNaK2PLvvqzuNPVrgRBPuLpGXymbZ0",
	Usage: "venus token",
}
View Source
var VenusURLFlag = &cli.StringFlag{
	Name:  "venus-url",
	Value: "/ip4/192.168.25.124/tcp/3453",
	Usage: "venus url",
}

https://api.node.glif.io

View Source
var WalletTokenFlag = &cli.StringFlag{
	Name:  "wallet-token",
	Value: "",
}
View Source
var WalletURLFlag = &cli.StringFlag{
	Name:  "wallet-url",
	Value: "/ip4/127.0.0.1/tcp/5678",
}

Functions

func NewVenusFullNodeRPCFromContext

func NewVenusFullNodeRPCFromContext(cliCtx *cli.Context) (v1.FullNode, jsonrpc.ClientCloser, error)

func NewWalletFullRPCFromContext

func NewWalletFullRPCFromContext(cliCtx *cli.Context) (wallet.IFullAPI, jsonrpc.ClientCloser, error)

func Run

func Run(cctx *cli.Context) error

func SetLogLevel

func SetLogLevel(level logrus.Level)

Types

This section is empty.

Jump to

Keyboard shortcuts

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