network

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

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