genesis

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 36 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	StatError   = "StatError"
	ExistsError = "ExistsError"
)

Variables

This section is empty.

Functions

func GetCommand

func GetCommand() *cobra.Command

func GetValidatorKeyFiles

func GetValidatorKeyFiles(rootDir, filePrefix string) ([]string, error)

GetValidatorKeyFiles returns file names which has validator secrets

func ReadValidatorsByPrefix

func ReadValidatorsByPrefix(dir, prefix string) ([]*plgbft.Validator, error)

ReadValidatorsByPrefix reads validators secrets on a given root directory and with given folder prefix

Types

type GenesisGenError

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

GenesisGenError is a specific error type for generating genesis

func (*GenesisGenError) GetMessage

func (g *GenesisGenError) GetMessage() string

GetMessage returns the message of the genesis generation error

func (*GenesisGenError) GetType

func (g *GenesisGenError) GetType() string

GetType returns the type of the genesis generation error

type GenesisResult

type GenesisResult struct {
	Message string `json:"message"`
}

func (*GenesisResult) GetOutput

func (r *GenesisResult) GetOutput() string

type PremineInfo

type PremineInfo struct {
	Address types.Address
	Amount  *big.Int
}

func ParsePremineInfo

func ParsePremineInfo(premineInfoRaw string) (*PremineInfo, error)

ParsePremineInfo parses provided premine information and returns premine address and amount

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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