vega

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFilePath

func ConfigFilePath(nodeDir 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,
	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 {
	Prefix               string
	TendermintNodePrefix string
	VegaNodePrefix       string
	DataNodePrefix       string
	ETHEndpoint          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