genesis

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SourceFromRawJSON

func SourceFromRawJSON(message json.RawMessage) (appmodule.GenesisSource, error)

SourceFromRawJSON returns a genesis source based on a raw JSON message.

Types

type RawJSONTarget

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

RawJSONTarget returns a struct which encapsulates a genesis target that is backed by raw JSON messages. Its Target method should be used to retrieve an actual genesis target function. When genesis writing is done, the JSON method should be called to retrieve the raw message that has been written.

func (*RawJSONTarget) JSON

func (r *RawJSONTarget) JSON() (json.RawMessage, error)

JSON returns the raw JSON message that has been written.

func (*RawJSONTarget) Target

Target returns the actual genesis target function.

type TxHandler added in v0.7.0

type TxHandler interface {
	ExecuteGenesisTx([]byte) error
}

TxHandler is an interface that modules can implement to provide genesis state transitions

Jump to

Keyboard shortcuts

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