network

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtocolParachainKey = "polkadot-parachain"
	Substrate            = "substrate"
)

Variables

This section is empty.

Functions

func CreateNetworkSpec

func CreateNetworkSpec(payload *service.CreateNetworkSpecPayload) (*service.NetworkSpec, error)

func NewCmd

func NewCmd() *cobra.Command

Types

type CfgBootNode

type CfgBootNode struct {
	Count    int                       `json:"count"`
	Node     service.CreateNodePayload `json:"node"`
	SudoArgs []string                  `json:"sudoArgs"`
}

type CfgBootstrap

type CfgBootstrap struct {
	NetworkSpec *service.CreateNetworkSpecPayload `json:"networkSpec"`
	Validator   CfgValidator                      `json:"validator"`
	BootNode    CfgBootNode                       `json:"bootNode"`
}

func ReadConfig

func ReadConfig(filePath string) (*CfgBootstrap, error)

type CfgValidator

type CfgValidator struct {
	Count       int                       `json:"count"`
	Node        service.CreateNodePayload `json:"node"`
	SessionsKey [][]service.SessionKey    `json:"sessionsKey"`
	SudoArgs    []string                  `json:"sudoArgs"`
}

type CreateNodeResult

type CreateNodeResult struct {
	Node  *service.Node
	Error error
}

func CreateBootNode

func CreateBootNode(exArgs []string, bootNode CfgBootNode, spec *service.NetworkSpec) []*CreateNodeResult

func CreateValidator

func CreateValidator(cfgValidator CfgValidator, spec *service.NetworkSpec) []*CreateNodeResult

loop to create validators from config

Jump to

Keyboard shortcuts

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