Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultNetworkHome ¶
Types ¶
type ClefConfig ¶ added in v0.2.0
type Config ¶
type Config struct { OutputDir *string `hcl:"-"` VegaBinary *string `hcl:"vega_binary_path"` Prefix *string `hcl:"prefix"` NodeDirPrefix *string `hcl:"node_dir_prefix"` TendermintNodePrefix *string `hcl:"tendermint_node_prefix"` VegaNodePrefix *string `hcl:"vega_node_prefix"` DataNodePrefix *string `hcl:"data_node_prefix"` WalletPrefix *string `hcl:"wallet_prefix"` FaucetPrefix *string `hcl:"faucet_prefix"` Network NetworkConfig `hcl:"network,block"` // contains filtered or unexported fields }
func DefaultConfig ¶
func ParseConfigFile ¶
func (Config) SmartContractsInfo ¶
func (c Config) SmartContractsInfo() (*types.SmartContractsInfo, error)
type ConfigTemplates ¶
type ConfigTemplates struct { Vega *string `hcl:"vega,optional"` VegaFile *string `hcl:"vega_file,optional"` Tendermint *string `hcl:"tendermint,optional"` TendermintFile *string `hcl:"tendermint_file,optional"` DataNode *string `hcl:"data_node,optional"` DataNodeFile *string `hcl:"data_node_file,optional"` }
type DockerConfig ¶
type EthereumConfig ¶
type FaucetConfig ¶
type NetworkConfig ¶
type NetworkConfig struct { Name string `hcl:"name,label"` GenesisTemplate *string `hcl:"genesis_template"` GenesisTemplateFile *string `hcl:"genesis_template_file"` Ethereum EthereumConfig `hcl:"ethereum,block"` Wallet *WalletConfig `hcl:"wallet,block"` Faucet *FaucetConfig `hcl:"faucet,block"` PreStart *PStartConfig `hcl:"pre_start,block"` PostStart *PStartConfig `hcl:"post_start,block"` Nodes []NodeConfig `hcl:"node_set,block"` SmartContractsAddresses *string `hcl:"smart_contracts_addresses,optional"` SmartContractsAddressesFile *string `hcl:"smart_contracts_addresses_file,optional"` }
func (NetworkConfig) GetNodeConfig ¶
func (nc NetworkConfig) GetNodeConfig(name string) (*NodeConfig, error)
type NodeConfig ¶
type NodeConfig struct { Name string `hcl:"name,label"` Mode string `hcl:"mode"` Count int `hcl:"count"` PreGenerate *PreGenerate `hcl:"pre_generate,block"` ClefWallet *ClefConfig `hcl:"clef_wallet,block" template:""` NodeWalletPass string `hcl:"node_wallet_pass,optional" template:""` EthereumWalletPass string `hcl:"ethereum_wallet_pass,optional" template:""` VegaWalletPass string `hcl:"vega_wallet_pass,optional" template:""` DataNodeBinary string `hcl:"data_node_binary,optional"` ConfigTemplates ConfigTemplates `hcl:"config_templates,block"` NomadJobTemplate *string `hcl:"nomad_job_template,optional"` NomadJobTemplateFile *string `hcl:"nomad_job_template_file,optional"` }
func (NodeConfig) Clone ¶ added in v0.2.0
func (nc NodeConfig) Clone() (*NodeConfig, error)
type NomadConfig ¶ added in v0.2.0
type PStartConfig ¶
type PStartConfig struct {
Docker []DockerConfig `hcl:"docker_service,block"`
}
type PreGenerate ¶ added in v0.2.0
type PreGenerate struct {
Nomad []NomadConfig `hcl:"nomad_job,block"`
}
type StaticPort ¶
type WalletConfig ¶
Click to show internal directories.
Click to hide internal directories.