genesis

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeAllowedDenomsIntoTarget

func MergeAllowedDenomsIntoTarget(messages []marketplace.AllowedDenom, target ormjson.WriteTarget) error

MergeAllowedDenomsIntoTarget merges params message into the ormjson.WriteTarget.

func MergeCreditTypesIntoTarget

func MergeCreditTypesIntoTarget(messages []core.CreditType, target ormjson.WriteTarget) error

MergeCreditTypesIntoTarget merges params message into the ormjson.WriteTarget.

func MergeParamsIntoTarget

func MergeParamsIntoTarget(cdc codec.JSONCodec, message gogoproto.Message, target ormjson.WriteTarget) error

MergeParamsIntoTarget merges params message into the ormjson.WriteTarget.

func ValidateGenesis

func ValidateGenesis(data json.RawMessage, params core.Params) error

ValidateGenesis performs basic validation for the following: - params are valid param types with valid properties - proto messages are valid proto messages - the credit type referenced in each credit class exists - the credit class referenced in each project exists - the tradable amount of each credit batch complies with the credit type precision - the retired amount of each credit batch complies with the credit type precision - the calculated total amount of each credit batch matches the total supply An error is returned if any of these validation checks fail.

Types

This section is empty.

Jump to

Keyboard shortcuts

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