Documentation ¶
Index ¶
- func MergeAllowedDenomsIntoTarget(messages []marketplace.AllowedDenom, target ormjson.WriteTarget) error
- func MergeCreditTypesIntoTarget(messages []core.CreditType, target ormjson.WriteTarget) error
- func MergeParamsIntoTarget(cdc codec.JSONCodec, message gogoproto.Message, target ormjson.WriteTarget) error
- func ValidateGenesis(data json.RawMessage, params core.Params) error
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.