init

package
v1.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountInfo

type AccountInfo struct {
	Address types.AccAddress `json:"address"`
	Amount  string           `json:"amount"`
}

type ChainInfo

type ChainInfo struct {
	ChainID     string    `json:"chain_id"`
	GenesisTime time.Time `json:"genesis_time"`
}

type CommissionInfo

type CommissionInfo struct {
	Rate          int64 `json:"rate"`
	MaxRate       int64 `json:"max_rate"`
	MaxChangeRate int64 `json:"max_change_rate"`
}

type GenesisFiles

type GenesisFiles struct {
	GenesisBytes []byte `json:"genesis_bytes"`
}

func NewGenesisFiles

func NewGenesisFiles(chainInfo ChainInfo,
	validatorInfo []ValidatorInfo, stakingInfo []StakingInfo,
	supplyInfo SupplyInfo, accountInfo []AccountInfo) (*GenesisFiles, error)

type InitFiles

type InitFiles struct {
	ConfigBytes             []byte `json:"config_bytes"`
	PrivValidatorKeyBytes   []byte `json:"priv_validator_key_bytes"`
	PrivValidatorStateBytes []byte `json:"priv_validator_state_bytes"`
	NodeKeyBytes            []byte `json:"node_key_bytes"`
}

func NewInitFiles

func NewInitFiles(privKey, persistentPeers string, tlsOption bool) (*InitFiles, error)

type PubKey

type PubKey struct {
	Type  string `json:"type"`
	Value string `json:"value"`
}

type StakingInfo

type StakingInfo struct {
	Address           types.AccAddress   `json:"address"`
	PubKey            string             `json:"pub_key"`
	ConsensusAddress  string             `json:"consensus_address"`
	Tokens            string             `json:"tokens"`
	CommissionInfo    CommissionInfo     `json:"commission_info"`
	UpdateTime        time.Time          `json:"update_time"`
	MinSelfDelegation string             `json:"min_self_delegation"`
	Description       stypes.Description `json:"description"`
}

type SupplyInfo

type SupplyInfo struct {
	Amount string `json:"amount"`
}

type ValidatorInfo

type ValidatorInfo struct {
	PubKey string `json:"pub_key"`
	Name   string `json:"name"`
}

Jump to

Keyboard shortcuts

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