Documentation ¶
Index ¶
- Variables
- func AppConfig() depinject.Config
- type ExampleApp
- func (app *ExampleApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string) (servertypes.ExportedApp, error)
- func (app *ExampleApp) GetKey(storeKey string) *storetypes.KVStoreKey
- func (app *ExampleApp) LegacyAmino() *codec.LegacyAmino
- func (app *ExampleApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *ExampleApp) SimulationManager() *module.SimulationManager
Constants ¶
This section is empty.
Variables ¶
View Source
var AppConfigYAML []byte
View Source
var DefaultNodeHome string
DefaultNodeHome default home directories for the application daemon
Functions ¶
Types ¶
type ExampleApp ¶
type ExampleApp struct { *runtime.App // keepers AccountKeeper authkeeper.AccountKeeper BankKeeper bankkeeper.Keeper StakingKeeper *stakingkeeper.Keeper DistrKeeper distrkeeper.Keeper ConsensusParamsKeeper consensuskeeper.Keeper OracleKeeper oraclekeeper.Keeper // contains filtered or unexported fields }
ExampleApp extends an ABCI application, but with most of its parameters exported. They are exported for convenience in creating helper functions, as object capabilities aren't needed for testing.
func NewExampleApp ¶
func NewExampleApp( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, appOpts servertypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp), ) (*ExampleApp, error)
NewExampleApp returns a reference to an initialized ExampleApp.
func (*ExampleApp) ExportAppStateAndValidators ¶
func (app *ExampleApp) ExportAppStateAndValidators( forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string, ) (servertypes.ExportedApp, error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*ExampleApp) GetKey ¶
func (app *ExampleApp) GetKey(storeKey string) *storetypes.KVStoreKey
GetKey returns the KVStoreKey for the provided store key.
func (*ExampleApp) LegacyAmino ¶
func (app *ExampleApp) LegacyAmino() *codec.LegacyAmino
LegacyAmino returns ExampleApp's amino codec.
func (*ExampleApp) RegisterAPIRoutes ¶
func (app *ExampleApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*ExampleApp) SimulationManager ¶
func (app *ExampleApp) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface
Click to show internal directories.
Click to hide internal directories.