vega

package
v0.77.6 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFilePath

func ConfigFilePath(nodeDir string) string

func EthereumWalletPath added in v0.2.2

func EthereumWalletPath(nodeDir string) string

func IsolatedWalletPath added in v0.2.2

func IsolatedWalletPath(nodeDir, waleltName string) string

func NewConfigTemplate

func NewConfigTemplate(templateRaw string) (*template.Template, error)

Types

type ConfigGenerator

type ConfigGenerator struct {
	// contains filtered or unexported fields
}

func NewConfigGenerator

func NewConfigGenerator(conf *config.Config) (*ConfigGenerator, error)

func (ConfigGenerator) Initiate

func (vg ConfigGenerator) Initiate(
	index int,
	optVegaBinary *string,
	mode, tendermintHome, nodeWalletPass,
	vegaWalletPass, ethereumWalletPass string,
	clefConf *config.ClefConfig,
) (*types.VegaNode, error)

func (ConfigGenerator) OverwriteConfig

func (vg ConfigGenerator) OverwriteConfig(ns types.NodeSet, fc *types.Faucet, configTemplate *template.Template) error

func (*ConfigGenerator) TemplateAndMergeConfig

func (vg *ConfigGenerator) TemplateAndMergeConfig(ns types.NodeSet, fc *types.Faucet, configTemplate *template.Template) (*bytes.Buffer, error)

TemplateAndMergeConfig templates provided template and merge it with originally initated Tendermint instance's config

func (ConfigGenerator) TemplateConfig

func (vg ConfigGenerator) TemplateConfig(ns types.NodeSet, fc *types.Faucet, configTemplate *template.Template) (*bytes.Buffer, error)

type ConfigTemplateContext

type ConfigTemplateContext struct {
	TendermintNodePrefix   string
	VegaNodePrefix         string
	DataNodePrefix         string
	ETHEndpoint            string
	SecondaryETHEndpoint   string
	PrimaryBridgeChainID   string
	SecondaryBridgeChainID string
	NodeMode               string
	FaucetPublicKey        string
	NodeNumber             int
	NodeSet                types.NodeSet
	NodeHomeDir            string
}

Jump to

Keyboard shortcuts

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