Documentation ¶
Index ¶
- func GetHomeDir(defaultHome string) string
- func Log() log.Logger
- type Config
- func (c *Config) Dumps()
- func (c *Config) GetEthClient() *ethclient.Client
- func (c *Config) GetNodeAccount() *accounts.Account
- func (c *Config) GetNodeKeyStore() *keystore.KeyStore
- func (c *Config) GetNonce() uint64
- func (c *Config) InitEthClient()
- func (t *Config) InitLog()
- func (c *Config) InitNode()
- func (c *Config) LoadConfig()
- type Contract
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHomeDir ¶
Types ¶
type Config ¶
type Config struct { IFile string `yaml:"-"` OFile string `yaml:"-"` PassWD string `yaml:"-"` EthAddr string `yaml:"eth_addr"` Nonce uint64 `yaml:"nonce"` KeystoreDir string `yaml:"keystore"` Passphrase string `yaml:"passphrase"` AccountAddress string `yaml:"account_address"` GasLimit int `yaml:"gas_limit"` Gasprice int `yaml:"gas_price"` ChainId int `yaml:"chain_id"` Contracts []Contract `yaml:"contracts"` // contains filtered or unexported fields }
func (*Config) GetEthClient ¶
func (*Config) GetNodeAccount ¶
func (*Config) GetNodeKeyStore ¶
func (*Config) InitEthClient ¶
func (c *Config) InitEthClient()
func (*Config) LoadConfig ¶
func (c *Config) LoadConfig()
Click to show internal directories.
Click to hide internal directories.