config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 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 NetworkConfig

type NetworkConfig struct {
	RPC            string         `fig:"rpc,required"`
	Proposer       common.Address `fig:"proposer,required"`
	VotingRegistry common.Address `fig:"voting_registry,required"`
	Address        string         `fig:"vault_address,required"`
	MountPath      string         `fig:"vault_mount_path,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

Jump to

Keyboard shortcuts

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