MCPcopy Create free account
hub / github.com/Sifchain/sifnode / DefaultGenesis

Method DefaultGenesis

x/clp/module.go:50–52  ·  view source on GitHub ↗

DefaultGenesis returns default genesis state as raw bytes for the clp module.

(cdc codec.JSONCodec)

Source from the content-addressed store, hash-verified

48// DefaultGenesis returns default genesis state as raw bytes for the clp
49// module.
50func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage {
51 return cdc.MustMarshalJSON(types.DefaultGenesisState())
52}
53
54// ValidateGenesis performs genesis state validation for the clp module.
55func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error {

Callers 4

ReplaceMarginGenesisFunction · 0.45
DefaultConfigFunction · 0.45
NewDefaultGenesisStateFunction · 0.45
TestIntegrationFunction · 0.45

Calls 1

DefaultGenesisStateFunction · 0.92

Tested by 1

TestIntegrationFunction · 0.36