config

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFileConfigs

func CreateFileConfigs(enableScalaMining bool) (ConfigPaths, TestConfig, error)

func CreateGoNodeConfig

func CreateGoNodeConfig(cfg *Config) (string, error)

func CreateScalaNodeConfig

func CreateScalaNodeConfig(cfg *Config) (string, error)

func NewBlockchainConfig

func NewBlockchainConfig() (*Config, []AccountInfo, error)

Types

type AccountInfo

type AccountInfo struct {
	PublicKey crypto.PublicKey
	SecretKey crypto.SecretKey
	Amount    uint64
	Address   proto.WavesAddress
}

type Config added in v0.10.2

type Config struct {
	BlockchainSettings *settings.BlockchainSettings
	ScalaOpts          *ScalaCustomOptions
}

type ConfigPaths

type ConfigPaths struct {
	GoConfigPath    string
	ScalaConfigPath string
}

type DistributionItem

type DistributionItem struct {
	SeedText string `json:"seed_text"`
	Amount   uint64 `json:"amount"`
}

type FeatureInfo added in v0.10.2

type FeatureInfo struct {
	Feature int16  `json:"feature"`
	Height  uint64 `json:"height"`
}

type GenesisConfig

type GenesisConfig struct {
	GenesisTimestamp  int64
	GenesisSignature  crypto.Signature
	GenesisBaseTarget types.BaseTarget
	AverageBlockDelay uint64
	Transaction       []genesis_generator.GenesisTransactionInfo
}

type GenesisSettings

type GenesisSettings struct {
	Scheme               proto.Scheme
	SchemeRaw            string             `json:"scheme"`
	AverageBlockDelay    uint64             `json:"average_block_delay"`
	MinBlockTime         float64            `json:"min_block_time"`
	DelayDelta           uint64             `json:"delay_delta"`
	Distributions        []DistributionItem `json:"distributions"`
	PreactivatedFeatures []FeatureInfo      `json:"preactivated_features"`
}

type ScalaCustomOptions added in v0.10.2

type ScalaCustomOptions struct {
	Features     []FeatureInfo
	EnableMining bool
}

type TestConfig

type TestConfig struct {
	Accounts []AccountInfo
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳