Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface { comfig.Logger types.Copuser comfig.Listenerer RelayerConfiger }
type RelayerConfig ¶
type RelayerConfig struct { RPC *ethclient.Client RegistrationAddress common.Address LightweightStateAddress *common.Address ChainID *big.Int PrivateKey *ecdsa.PrivateKey WhiteList whitelist // contains filtered or unexported fields }
func (*RelayerConfig) IncrementNonce ¶
func (n *RelayerConfig) IncrementNonce()
func (*RelayerConfig) LockNonce ¶
func (n *RelayerConfig) LockNonce()
func (*RelayerConfig) Nonce ¶
func (n *RelayerConfig) Nonce() uint64
func (*RelayerConfig) ResetNonce ¶
func (n *RelayerConfig) ResetNonce(client *ethclient.Client) error
ResetNonce sets nonce to the value received from a node
func (*RelayerConfig) UnlockNonce ¶
func (n *RelayerConfig) UnlockNonce()
type RelayerConfiger ¶
type RelayerConfiger interface {
RelayerConfig() *RelayerConfig
}
func NewRelayerConfiger ¶
func NewRelayerConfiger(getter kv.Getter) RelayerConfiger
Click to show internal directories.
Click to hide internal directories.