Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultConfigPath = "./config.json"
View Source
const DefaultKeystorePath = "./keys"
View Source
const MapChainID = "mapChainId"
Variables ¶
View Source
var ( ConfigFileFlag = &cli.StringFlag{ Name: "config", 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, } KeyPathFlag = &cli.StringFlag{ Name: "keystorePath", Usage: "Path to keystore", } TronFlag = &cli.BoolFlag{ Name: "tron", Usage: "Flag of tron", Value: false, } TronKeyNameFlag = &cli.StringFlag{ Name: "tronKeyName", Usage: "Flag of tron", Value: "", } BlockstorePathFlag = &cli.StringFlag{ Name: "blockstore", Usage: "Specify path for blockstore", Value: "", } 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", } SkipErrorFlag = &cli.BoolFlag{ Name: "skipError", Usage: "Skip Error", } FilterFlag = &cli.BoolFlag{ Name: "filter", Usage: "use filter model", } )
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 (
PasswordFlag = &cli.StringFlag{
Name: "password",
Usage: "Password used to encrypt the keystore. Used with --generate, --import, or --unlock",
}
)
View Source
var (
TestKeyFlag = &cli.StringFlag{
Name: "testkey",
Usage: "Applies a predetermined test keystore to the chains.",
}
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
MapChain RawChainConfig `json:"mapchain"`
Chains []RawChainConfig `json:"chains"`
Other Construction `json:"other,omitempty"`
}
type Construction ¶ added in v1.2.0
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
From string `json:"from"` // address of key to use
Network string `json:"network"`
KeystorePath string `json:"keystorePath"`
Opts map[string]string `json:"opts"`
}
RawChainConfig is parsed directly from the config file and should be using to construct the core.ChainConfig
Click to show internal directories.
Click to hide internal directories.