Documentation ¶
Index ¶
- Variables
- func AppConfig() depinject.Config
- func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
- type HandlerOptions
- type SimApp
- func (app *SimApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string) (servertypes.ExportedApp, error)
- func (app *SimApp) GetKey(storeKey string) *storetypes.KVStoreKey
- func (app *SimApp) GetMemKey(memKey string) *storetypes.MemoryStoreKey
- func (app *SimApp) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *SimApp) LegacyAmino() *codec.LegacyAmino
- func (app *SimApp) RegisterIBCModules() error
- func (app *SimApp) SimulationManager() *module.SimulationManager
Constants ¶
This section is empty.
Variables ¶
var AppConfigYAML []byte
var DefaultNodeHome string
var ErrLogic = errors.Register("simapp", 1, "internal logic error")
Functions ¶
func NewAnteHandler ¶
func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
NewAnteHandler creates a new ante handler
Types ¶
type HandlerOptions ¶
type HandlerOptions struct { ante.HandlerOptions IBCKeeper *ibckeeper.Keeper FiatTokenFactoryKeeper *fiattokenfactorykeeper.Keeper // contains filtered or unexported fields }
HandlerOptions extend the SDK's AnteHandler options by requiring the IBC keeper.
type SimApp ¶
type SimApp struct { *runtime.App // Cosmos SDK Modules AccountKeeper authkeeper.AccountKeeper AuthzKeeper authzkeeper.Keeper BankKeeper bankkeeper.Keeper ConsensusParamsKeeper consensuskeeper.Keeper DistributionKeeper distributionkeeper.Keeper ParamsKeeper paramskeeper.Keeper StakingKeeper *stakingkeeper.Keeper UpgradeKeeper *upgradekeeper.Keeper // IBC Modules CapabilityKeeper *capabilitykeeper.Keeper IBCKeeper *ibckeeper.Keeper ScopedIBCKeeper capabilitykeeper.ScopedKeeper TransferKeeper transferkeeper.Keeper ScopedTransferKeeper capabilitykeeper.ScopedKeeper // Custom Modules FiatTokenFactoryKeeper *fiattokenfactorykeeper.Keeper // contains filtered or unexported fields }
SimApp 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 NewSimApp ¶
func NewSimApp( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, appOpts servertypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp), ) (*SimApp, error)
NewSimApp returns a reference to an initialized SimApp.
func (*SimApp) ExportAppStateAndValidators ¶
func (app *SimApp) ExportAppStateAndValidators( forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string, ) (servertypes.ExportedApp, error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*SimApp) GetKey ¶
func (app *SimApp) GetKey(storeKey string) *storetypes.KVStoreKey
GetKey returns the KVStoreKey for the provided store key.
NOTE: This is solely to be used for testing purposes.
func (*SimApp) GetMemKey ¶
func (app *SimApp) GetMemKey(memKey string) *storetypes.MemoryStoreKey
GetMemKey returns the MemStoreKey for the provided mem key.
NOTE: This is solely used for testing purposes.
func (*SimApp) GetSubspace ¶
func (app *SimApp) GetSubspace(moduleName string) paramstypes.Subspace
GetSubspace returns a param subspace for a given module name.
NOTE: This is solely to be used for testing purposes.
func (*SimApp) LegacyAmino ¶
func (app *SimApp) LegacyAmino() *codec.LegacyAmino
LegacyAmino returns SimApp's amino codec.
NOTE: This is solely to be used for testing purposes as it may be desirable for modules to register their own custom testing types.
func (*SimApp) RegisterIBCModules ¶
func (*SimApp) SimulationManager ¶
func (app *SimApp) SimulationManager() *module.SimulationManager