swconfig

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName           string = "stakewise"
	SocketFilename       string = ModuleName + ".sock"
	WalletFilename       string = "wallet.json"
	PasswordFilename     string = "password.txt"
	KeystorePasswordFile string = "secret.txt"
	DepositDataFile      string = "deposit-data.json"
)
View Source
const (
	// Param IDs
	StakewiseEnableID      string = "enable"
	OperatorContainerTagID string = "operatorContainerTag"
	AdditionalOpFlagsID    string = "additionalOpFlags"
	VerifyDepositRootsID   string = "verifyDepositRoots"
)
View Source
const (
	// The stakewise Hyperdrive daemon
	ContainerID_StakewiseDaemon config.ContainerID = "sw_daemon"

	// The stakewise operator container
	ContainerID_StakewiseOperator config.ContainerID = "sw_operator"

	// The stakewise Validator client
	ContainerID_StakewiseValidator config.ContainerID = "sw_vc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type StakewiseConfig

type StakewiseConfig struct {

	// Toggle for enabling access to the root filesystem (for multiple disk usage metrics)
	Enabled config.Parameter[bool]

	// Toggle for verifying deposit data Merkle roots before saving
	VerifyDepositsRoot config.Parameter[bool]

	// The Docker Hub tag for the Stakewise operator
	OperatorContainerTag config.Parameter[string]

	// Custom command line flags
	AdditionalOpFlags config.Parameter[string]

	// Validator client configs
	VcCommon   *validator.ValidatorClientCommonConfig
	Lighthouse *validator.LighthouseVcConfig
	Lodestar   *validator.LodestarVcConfig
	Nimbus     *validator.NimbusVcConfig
	Prysm      *validator.PrysmVcConfig
	Teku       *validator.TekuVcConfig
	// contains filtered or unexported fields
}

Configuration for Stakewise

func NewStakewiseConfig

func NewStakewiseConfig(hdCfg *config.HyperdriveConfig) *StakewiseConfig

Generates a new Stakewise config

func (*StakewiseConfig) DaemonContainerName added in v0.2.3

func (c *StakewiseConfig) DaemonContainerName() string

func (*StakewiseConfig) DaemonTag

func (cfg *StakewiseConfig) DaemonTag() string

The tag for the daemon container

func (*StakewiseConfig) DepositDataFile

func (c *StakewiseConfig) DepositDataFile() string

func (*StakewiseConfig) FeeRecipient added in v0.2.3

func (cfg *StakewiseConfig) FeeRecipient() string

func (*StakewiseConfig) GetContainersToDeploy added in v0.2.3

func (cfg *StakewiseConfig) GetContainersToDeploy() []config.ContainerID

func (*StakewiseConfig) GetModuleName added in v0.2.3

func (cfg *StakewiseConfig) GetModuleName() string

The module name

func (*StakewiseConfig) GetParameters

func (cfg *StakewiseConfig) GetParameters() []config.IParameter

Get the parameters for this config

func (*StakewiseConfig) GetSubconfigs

func (cfg *StakewiseConfig) GetSubconfigs() map[string]config.IConfigSection

Get the sections underneath this one

func (*StakewiseConfig) GetTitle

func (cfg *StakewiseConfig) GetTitle() string

The title for the config

func (*StakewiseConfig) GetValidatorContainerTagInfo added in v0.2.3

func (cfg *StakewiseConfig) GetValidatorContainerTagInfo() map[config.ContainerID]string

func (*StakewiseConfig) GetVcAdditionalFlags added in v0.2.3

func (cfg *StakewiseConfig) GetVcAdditionalFlags() string

Gets the additional flags of the selected VC

func (*StakewiseConfig) GetVcContainerTag added in v0.2.3

func (cfg *StakewiseConfig) GetVcContainerTag() string

Get the container tag of the selected VC

func (*StakewiseConfig) Graffiti added in v0.2.3

func (cfg *StakewiseConfig) Graffiti() (string, error)

Used by text/template to format validator.yml

func (*StakewiseConfig) IsDoppelgangerEnabled added in v0.2.3

func (cfg *StakewiseConfig) IsDoppelgangerEnabled() bool

Check if any of the services have doppelganger detection enabled NOTE: update this with each new service that runs a VC!

func (*StakewiseConfig) IsEnabled added in v0.2.3

func (cfg *StakewiseConfig) IsEnabled() bool

func (*StakewiseConfig) KeystorePasswordFile

func (c *StakewiseConfig) KeystorePasswordFile() string

func (*StakewiseConfig) Network added in v0.2.3

func (cfg *StakewiseConfig) Network() string

func (*StakewiseConfig) OperatorContainerName added in v0.2.3

func (c *StakewiseConfig) OperatorContainerName() string

func (*StakewiseConfig) PasswordFilename

func (c *StakewiseConfig) PasswordFilename() string

func (*StakewiseConfig) Vault added in v0.2.3

func (cfg *StakewiseConfig) Vault() string

func (*StakewiseConfig) VcContainerName added in v0.2.3

func (c *StakewiseConfig) VcContainerName() string

func (*StakewiseConfig) WalletFilename

func (c *StakewiseConfig) WalletFilename() string

Jump to

Keyboard shortcuts

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