Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultBlockTimeout = int64(180) // 3 minutes
View Source
const DefaultConfigPath = "./config.json"
View Source
const DefaultKeystorePath = "./keys"
Variables ¶
View Source
var ( ConfigFileFlag = &cli.StringFlag{ Name: "config", Usage: "JSON configuration file", } UniConfigFileFlag = &cli.StringFlag{ Name: "uniConfig", Usage: "JSON configuration file", } VerbosityFlag = &cli.StringFlag{ Name: "verbosity", Usage: "Supports levels crit (silent) to trce (trace)", Value: log.LvlInfo.String(), } KeystorePathFlag = &cli.StringFlag{ Name: "keystore", Usage: "Path to keystore directory", Value: DefaultKeystorePath, } KeyFileFlag = &cli.StringFlag{ Name: "keyfile", Usage: "file name of keystore", Value: "", } BlockstorePathFlag = &cli.StringFlag{ Name: "blockstore", Usage: "Specify path for blockstore", Value: "", } DataDirFlag = &cli.StringFlag{ Name: "datadir", Usage: "Data directory for the databases", Value: DefaultDataDir(), } FreshStartFlag = &cli.BoolFlag{ Name: "fresh", Usage: "Disables loading from blockstore at start. Opts will still be used if specified.", } LatestBlockFlag = &cli.BoolFlag{ Name: "latest", Usage: "Overrides blockstore and start block, starts from latest block", } )
View Source
var ( MetricsFlag = &cli.BoolFlag{ Name: "metrics", Usage: "Enables metric server", } MetricsPort = &cli.IntFlag{ Name: "metricsPort", Usage: "Port to serve metrics on", Value: 8001, } )
Metrics flags
View Source
var ( EthereumImportFlag = &cli.BoolFlag{ Name: "ethereum", Usage: "Import an existing ethereum keystore, such as from geth.", } PrivateKeyFlag = &cli.StringFlag{ Name: "privateKey", Usage: "Import a hex representation of a private key into a keystore.", } )
View Source
var (
HealthBlockTimeout = "BLOCK_TIMEOUT"
)
Env vars
View Source
var (
PasswordFlag = &cli.StringFlag{
Name: "password",
Usage: "Password used to encrypt the keystore. Used with --generate, --import, or --unlock",
}
)
Generate subcommand flags
View Source
var (
TestKeyFlag = &cli.StringFlag{
Name: "testkey",
Usage: "Applies a predetermined test keystore to the chains.",
}
)
Test Setting Flags
Functions ¶
func DefaultDataDir ¶
func DefaultDataDir() string
Types ¶
type Config ¶
type Config struct { Chains []RawChainConfig `json:"chains"` KeystorePath string `json:"keystorePath,omitempty"` KeyFile string `json:"keyFile,omitempty"` }
type RawChainConfig ¶
type RawChainConfig struct { Name string `json:"name"` Type string `json:"type"` Id string `json:"id"` // ChainID Endpoint string `json:"endpoint"` // url for rpc endpoint Opts map[string]string `json:"opts"` }
RawChainConfig is parsed directly from the config file and should be using to construct the core.ChainConfig
type UniSwapPair ¶
Click to show internal directories.
Click to hide internal directories.