cmd

package
v0.0.0-...-50f0b53 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GasFeeCapFlag = &cli.StringFlag{
	Name:  "gasfeecap",
	Usage: "eg. 1,1000000afil",
	Value: "1000000afil",
}
View Source
var GasOverPremiumFlag = &cli.IntFlag{
	Name:  "gas-over-premium",
	Value: 2,
}
View Source
var LotusTokenFlag = &cli.StringFlag{
	Name:  "lotus-token",
	Value: "",
	Usage: "lotus token",
}
View Source
var LotusURLFlag = &cli.StringFlag{
	Name: "lotus-url",

	Value: "wss://wss.node.glif.io/apigw/lotus",
	Usage: "lotus url",
}
View Source
var VenusTokenFlag = &cli.StringFlag{
	Name:  "venus-token",
	Value: "",
	Usage: "venus token",
}
View Source
var VenusURLFlag = &cli.StringFlag{
	Name:  "venus-url",
	Value: "https://api.node.glif.io",
	Usage: "venus url",
}

https://api.node.glif.io https://api.calibration.node.glif.io

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

Functions

func NewLotusFullNodeRPCFromContext

func NewLotusFullNodeRPCFromContext(cliCtx *cli.Context) (v1api.FullNode, jsonrpc.ClientCloser, error)

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 ReqContext

func ReqContext(cctx *cli.Context) context.Context

ReqContext returns context for cli execution. Calling it for the first time installs SIGTERM handler that will close returned context. Not safe for concurrent execution.

func RunPprof

func RunPprof(ctx context.Context) error

func SetLogLevel

func SetLogLevel(level logrus.Level)

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