config

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

func New

func New(getter kv.Getter) Config

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL