utils

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GenesisFile = "genesis.json"
	ConfigTOML  = "config.toml"
	AppTOML     = "app.toml"
)

Variables

View Source
var (
	DefaultNodeHome = app.DefaultNodeHome
)

Functions

This section is empty.

Types

type CLI

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

func NewCLI

func NewCLI(chainID, keyringBackend string) CLI

func (CLI) AddGenesisAccount

func (c CLI) AddGenesisAccount(address, nodeDir string, coins []string) (*string, error)

func (CLI) AddGenesisCLPAdmin

func (c CLI) AddGenesisCLPAdmin(address, nodeDir string) (*string, error)

func (CLI) AddKey

func (c CLI) AddKey(name, mnemonic, keyPassword, cliDir string) (*string, error)

func (CLI) AppFilePath

func (c CLI) AppFilePath() string

func (CLI) CollectGenesisTxns

func (c CLI) CollectGenesisTxns(gentxDir, nodeDir string) (*string, error)

func (CLI) ConfigFilePath

func (c CLI) ConfigFilePath() string

func (CLI) CreateDir

func (c CLI) CreateDir(path string) error

func (CLI) CreateValidator

func (c CLI) CreateValidator(moniker, validatorPublicKey, keyPassword, bondAmount string) (*string, error)

func (CLI) DaemonPath

func (c CLI) DaemonPath() (*string, error)

func (CLI) ExportGenesis

func (c CLI) ExportGenesis() (*string, error)

func (CLI) GenerateGenesisTxn

func (c CLI) GenerateGenesisTxn(name, keyPassword, bondAmount, nodeDir, outputFile, nodeID, pubKey, ipV4Addr, chainID string) (*string, error)

func (CLI) GenesisFilePath

func (c CLI) GenesisFilePath() string

func (CLI) InitChain

func (c CLI) InitChain(chainID, moniker, nodeDir string) (*string, error)

func (CLI) MoveFile

func (c CLI) MoveFile(src, dest string) (*string, error)

func (CLI) NodeID

func (c CLI) NodeID(nodeDir string) (*string, error)

func (CLI) Reset

func (c CLI) Reset(paths []string) error

func (CLI) ResetState

func (c CLI) ResetState(nodeDir string) (*string, error)

func (CLI) SetGenesisOracleAdmin

func (c CLI) SetGenesisOracleAdmin(address, nodeDir string) (*string, error)

func (CLI) SetGenesisWhitelisterAdmin added in v0.13.0

func (c CLI) SetGenesisWhitelisterAdmin(address, nodeDir string) (*string, error)

func (CLI) TransferFunds

func (c CLI) TransferFunds(keyPassword, fromAddress, toAddress, coins string) (*string, error)

func (CLI) ValidatorAddress

func (c CLI) ValidatorAddress(nodeDir string) (*string, error)

func (CLI) ValidatorConsensusAddress

func (c CLI) ValidatorConsensusAddress(nodeDir string) (*string, error)

func (CLI) ValidatorPublicKeyAddress

func (c CLI) ValidatorPublicKeyAddress() (*string, error)

type CLIUtils

type CLIUtils interface {
	Reset([]string) error
	DaemonPath() (*string, error)
	ResetState(string) (*string, error)
	CreateDir(string) error
	MoveFile(string, string) (*string, error)
	NodeID(string) (*string, error)
	ValidatorAddress(string) (*string, error)
	ValidatorConsensusAddress(string) (*string, error)
	InitChain(string, string, string) (*string, error)
	AddKey(string, string, string, string) (*string, error)
	AddGenesisAccount(string, string, []string) (*string, error)
	AddGenesisCLPAdmin(string, string) (*string, error)
	SetGenesisOracleAdmin(string, string) (*string, error)
	GenerateGenesisTxn(string, string, string, string, string, string, string, string, string) (*string, error)
	CollectGenesisTxns(string, string) (*string, error)
	ExportGenesis() (*string, error)
	GenesisFilePath() string
	ConfigFilePath() string
	AppFilePath() string
	TransferFunds(string, string, string, string) (*string, error)
	ValidatorPublicKeyAddress() (*string, error)
	CreateValidator(string, string, string, string) (*string, error)
}

Jump to

Keyboard shortcuts

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