genesis

package
v0.2102.8 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Overview

Package genesis implements common genesis document manipulation routines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppendableStakingState

type AppendableStakingState struct {
	State           staking.Genesis
	DebugTestEntity bool
}

AppendableStakingState is a staking genesis state that can be appended to an existing genesis document.

func NewAppendableStakingState

func NewAppendableStakingState() (*AppendableStakingState, error)

NewAppendableStakingState creates a new AppendableStakingState.

func NewAppendableStakingStateFromFile

func NewAppendableStakingStateFromFile(path string) (*AppendableStakingState, error)

NewAppendableStakingStateFromFile creates a new AppendableStakingState from a JSON document.

func (*AppendableStakingState) AppendTo

func (st *AppendableStakingState) AppendTo(doc *genesis.Document) error

AppendTo appends the staking genesis state to an existing genesis document. Any pre-existing state will be overwritten.

Jump to

Keyboard shortcuts

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