config

package
v0.0.0-...-5d479c6 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyStoreFilePath

func KeyStoreFilePath(basePath string) string

Types

type Config

type Config struct {
	LogFilePath                string
	Account                    string
	KeystorePath               string
	BlockstoreFilePath         string
	GasLimit                   string
	MaxGasPrice                string // Gwei
	GasPriceMultiplier         float64
	BatchRequestBlocksNumber   uint64
	TrustNodeDepositAmount     uint64 // ether
	Eth2EffectiveBalance       uint64 // ether
	MaxPartialWithdrawalAmount uint64 // ether

	RunForEntrustedLsdNetwork bool

	Contracts   Contracts
	Endpoints   []Endpoint
	Web3Storage Web3Storage
	Pinata      Pinata
}

func Load

func Load(basePath string) (*Config, error)

type Contracts

type Contracts struct {
	LsdTokenAddress   string
	LsdFactoryAddress string
}

type Endpoint

type Endpoint struct {
	Eth1 string
	Eth2 string
}

type Pinata

type Pinata struct {
	Apikey   string
	Endpoint string
	PinDays  uint
}

type Web3Storage

type Web3Storage struct {
	PrivateKey string
	SpaceDid   string
	ProofFile  string
}

Jump to

Keyboard shortcuts

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