Documentation ¶
Index ¶
Constants ¶
View Source
const ( Proposer = "proposer" VotingRegistry = "voting_registry" LightweightState = "lightweight_state" Register2 = "register2" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface { comfig.Logger pgdb.Databaser types.Copuser comfig.Listenerer NetworkConfiger ContractsConfiger Pinger() Pinger Replicator() Replicator }
type ContractConfig ¶ added in v0.3.4
type ContractsConfig ¶ added in v0.3.4
type ContractsConfig map[string]ContractConfig
type ContractsConfiger ¶ added in v0.3.4
type ContractsConfiger interface {
ContractsConfig() ContractsConfig
}
func NewContractsConfiger ¶ added in v0.3.4
func NewContractsConfiger(getter kv.Getter) ContractsConfiger
type NetworkConfig ¶
type NetworkConfig struct { Client *ethclient.Client `fig:"rpc,required"` Address string `fig:"vault_address,required"` MountPath string `fig:"vault_mount_path,required"` GasMultiplier float64 `fig:"gas_multiplier,required"` ChainID *big.Int `fig:"chain_id"` Token string `dig:"VAULT_TOKEN,clear"` PrivateKey *ecdsa.PrivateKey `fig:"private_key"` // contains filtered or unexported fields }
func (*NetworkConfig) IncrementNonce ¶
func (n *NetworkConfig) IncrementNonce()
func (*NetworkConfig) LockNonce ¶
func (n *NetworkConfig) LockNonce()
func (*NetworkConfig) Nonce ¶
func (n *NetworkConfig) Nonce() uint64
func (*NetworkConfig) ResetNonce ¶ added in v0.2.2
func (n *NetworkConfig) ResetNonce(client *ethclient.Client) error
ResetNonce sets nonce to the value received from a node
func (*NetworkConfig) UnlockNonce ¶
func (n *NetworkConfig) UnlockNonce()
type NetworkConfiger ¶
type NetworkConfiger interface {
NetworkConfig() *NetworkConfig
}
func NewNetworkConfiger ¶
func NewNetworkConfiger(getter kv.Getter) NetworkConfiger
Click to show internal directories.
Click to hide internal directories.