github.com/Finschia/finschia-sdk@v0.48.1/simapp/genesis.go (about)

     1  package simapp
     2  
     3  import (
     4  	"encoding/json"
     5  
     6  	"github.com/Finschia/finschia-sdk/codec"
     7  )
     8  
     9  // GenesisState of the blockchain is represented here as a map of raw json
    10  // messages key'd by a identifier string.
    11  // The identifier is used to determine which module genesis information belongs
    12  // to so it may be appropriately routed during init chain.
    13  // Within this application default genesis information is retrieved from
    14  // the ModuleBasicManager which populates json from each BasicModule
    15  // object provided to it during init.
    16  type GenesisState map[string]json.RawMessage
    17  
    18  // NewDefaultGenesisState generates the default state for the application.
    19  func NewDefaultGenesisState(cdc codec.JSONCodec) GenesisState {
    20  	return ModuleBasics.DefaultGenesis(cdc)
    21  }