github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/ibc-go/testing/simapp/genesis.go (about)

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