config

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFileConfigs

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

Types

type AccountInfo

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

type ConfigPaths

type ConfigPaths struct {
	GoConfigPath    string
	ScalaConfigPath string
}

type DistributionItem

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

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 TestConfig

type TestConfig struct {
	Accounts           []AccountInfo
	BlockchainSettings *settings.BlockchainSettings
}

Jump to

Keyboard shortcuts

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