Documentation
¶
Overview ¶
package genesis is used to define appmodule.HasGenesisAuto experimental auto genesis. This genesis package isn't supported in server/v2.
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 ¶
func (r *RawJSONTarget) Target() appmodule.GenesisTarget
Target returns the actual genesis target function.
Click to show internal directories.
Click to hide internal directories.