network

package
v1.0.14-beta Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 18 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 (
	NodeHomeDir   = ".sifnoded"
	ConfigDir     = "config"
	GentxsDir     = "gentxs"
	ValidatorsDir = "validators"
)

Variables

This section is empty.

Functions

func Reset

func Reset(chainID, networkDir string) error

Types

type Network

type Network struct {
	ChainID    string
	CLI        utils.CLI
	BondAmount string
	MintAmount string
}

func NewNetwork

func NewNetwork(chainID string) *Network

func (*Network) Build

func (n *Network) Build(count int, outputDir, seedIPv4Addr string) (*string, error)

func (*Network) SetGenesisWhitelisterAdmin added in v0.13.0

func (n *Network) SetGenesisWhitelisterAdmin(address, validatorHomeDir string) error

type Validator

type Validator struct {
	ChainID                   string `yaml:"chain_id"`
	NodeID                    string `yaml:"node_id"`
	IPv4Address               string `yaml:"ipv4_address"`
	HomeDir                   string `yaml:"-"`
	NodeHomeDir               string `yaml:"-"`
	Moniker                   string `yaml:"moniker"`
	Password                  string `yaml:"password"`
	Address                   string `yaml:"address"`
	PubKey                    string `yaml:"pub_key"`
	Mnemonic                  string `yaml:"mnemonic"`
	ValidatorAddress          string `yaml:"validator_address"`
	ValidatorConsensusAddress string `yaml:"validator_consensus_address"`
	Seed                      bool   `yaml:"is_seed"`
}

func NewValidator

func NewValidator(rootDir, chainID string, seed bool, lastIPv4Addr string) *Validator

type Validators

type Validators []Validator

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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