Documentation ¶
Index ¶
- Variables
- func GetMaccPerms() map[string][]string
- func NewDefaultGenesisState(cdc codec.JSONCodec) simapp.GenesisState
- func NewPostHandler() (sdk.PostHandler, error)
- type EVMKeeperApp
- type StratosApp
- func (app *StratosApp) AppCodec() codec.Codec
- func (app *StratosApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string) (servertypes.ExportedApp, error)
- func (app *StratosApp) GetAccountKeeper() authkeeper.AccountKeeper
- func (app *StratosApp) GetBankKeeper() bankkeeper.Keeper
- func (app *StratosApp) GetDistrKeeper() distrkeeper.Keeper
- func (app *StratosApp) GetEVMKeeper() *evmkeeper.Keeper
- func (app *StratosApp) GetKey(storeKey string) *storetypes.KVStoreKey
- func (app *StratosApp) GetPotKeeper() potkeeper.Keeper
- func (app *StratosApp) GetRegisterKeeper() registerkeeper.Keeper
- func (app *StratosApp) GetStakingKeeper() *stakingkeeper.Keeper
- func (app *StratosApp) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *StratosApp) LegacyAmino() *codec.LegacyAmino
- func (app *StratosApp) Name() string
- func (app *StratosApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *StratosApp) SimulationManager() *module.SimulationManager
- func (app *StratosApp) TxConfig() client.TxConfig
Constants ¶
This section is empty.
Variables ¶
var ( // DefaultNodeHome sets the folder where the application data and configuration will be stored DefaultNodeHome = os.ExpandEnv("$HOME/.stchaind") // ModuleBasics is in charge of setting up basic module elements ModuleBasics = module.NewBasicManager( auth.AppModuleBasic{}, genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator), bank.AppModuleBasic{}, capability.AppModuleBasic{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distr.AppModuleBasic{}, gov.NewAppModuleBasic( []govclient.ProposalHandler{ paramsclient.ProposalHandler, upgradeclient.LegacyProposalHandler, upgradeclient.LegacyCancelProposalHandler, ibcclientclient.UpdateClientProposalHandler, ibcclientclient.UpgradeProposalHandler, evmclient.EVMChangeProxyImplementationHandler, }, ), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, authzmodule.AppModuleBasic{}, vesting.AppModuleBasic{}, consensus.AppModuleBasic{}, ibc.AppModuleBasic{}, solomachine.AppModuleBasic{}, ibctm.AppModuleBasic{}, ibctransfer.AppModuleBasic{}, ibcfee.AppModuleBasic{}, ica.AppModuleBasic{}, register.AppModuleBasic{}, pot.AppModuleBasic{}, sds.AppModuleBasic{}, evm.AppModuleBasic{}, ) )
var ( // application configuration (used by depinject) StratosAppConfig = sdkappconfig.Compose(&appv1alpha1.Config{ Modules: []*appv1alpha1.ModuleConfig{ { Name: "runtime", Config: sdkappconfig.WrapAny(&runtimev1alpha1.Module{ AppName: appName, BeginBlockers: beginBlockerOrder, EndBlockers: endBlockerOrder, OverrideStoreKeys: []*runtimev1alpha1.StoreKeyConfig{ { ModuleName: authtypes.ModuleName, KvStoreKey: "acc", }, }, InitGenesis: genesisModuleOrder, OrderMigrations: migrationModuleOrder, }), }, { Name: authtypes.ModuleName, Config: sdkappconfig.WrapAny(&authmodulev1.Module{ Bech32Prefix: stratos.AccountAddressPrefix, ModuleAccountPermissions: maccPerms, }), }, { Name: vestingtypes.ModuleName, Config: sdkappconfig.WrapAny(&vestingmodulev1.Module{}), }, { Name: banktypes.ModuleName, Config: sdkappconfig.WrapAny(&bankmodulev1.Module{ BlockedModuleAccountsOverride: blockAccAddrs, }), }, { Name: stakingtypes.ModuleName, Config: sdkappconfig.WrapAny(&stakingmodulev1.Module{}), }, { Name: slashingtypes.ModuleName, Config: sdkappconfig.WrapAny(&slashingmodulev1.Module{}), }, { Name: paramstypes.ModuleName, Config: sdkappconfig.WrapAny(¶msmodulev1.Module{}), }, { Name: "tx", Config: sdkappconfig.WrapAny(&txconfigv1.Config{}), }, { Name: genutiltypes.ModuleName, Config: sdkappconfig.WrapAny(&genutilmodulev1.Module{}), }, { Name: authz.ModuleName, Config: sdkappconfig.WrapAny(&authzmodulev1.Module{}), }, { Name: upgradetypes.ModuleName, Config: sdkappconfig.WrapAny(&upgrademodulev1.Module{}), }, { Name: distrtypes.ModuleName, Config: sdkappconfig.WrapAny(&distrmodulev1.Module{}), }, { Name: capabilitytypes.ModuleName, Config: sdkappconfig.WrapAny(&capabilitymodulev1.Module{ SealKeeper: true, }), }, { Name: evidencetypes.ModuleName, Config: sdkappconfig.WrapAny(&evidencemodulev1.Module{}), }, { Name: minttypes.ModuleName, Config: sdkappconfig.WrapAny(&mintmodulev1.Module{}), }, { Name: feegrant.ModuleName, Config: sdkappconfig.WrapAny(&feegrantmodulev1.Module{}), }, { Name: govtypes.ModuleName, Config: sdkappconfig.WrapAny(&govmodulev1.Module{}), }, { Name: crisistypes.ModuleName, Config: sdkappconfig.WrapAny(&crisismodulev1.Module{}), }, { Name: consensustypes.ModuleName, Config: sdkappconfig.WrapAny(&consensusmodulev1.Module{}), }, { Name: registertypes.ModuleName, Config: sdkappconfig.WrapAny(®istermodulev1.Module{}), }, { Name: pottypes.ModuleName, Config: sdkappconfig.WrapAny(&potmodulev1.Module{}), }, { Name: sdstypes.ModuleName, Config: sdkappconfig.WrapAny(&sdsmodulev1.Module{}), }, { Name: evmtypes.ModuleName, Config: sdkappconfig.WrapAny(&evmmodulev1.Module{}), }, }, }) )
Functions ¶
func GetMaccPerms ¶
GetMaccPerms returns a copy of the module account permissions
func NewDefaultGenesisState ¶
func NewDefaultGenesisState(cdc codec.JSONCodec) simapp.GenesisState
NewDefaultGenesisState generates the default state for the application.
func NewPostHandler ¶ added in v0.12.0
func NewPostHandler() (sdk.PostHandler, error)
NewPostHandler returns an empty PostHandler chain. PostHandler is like AnteHandler but it executes after RunMsgs.
Types ¶
type EVMKeeperApp ¶ added in v0.10.0
type StratosApp ¶ added in v0.12.0
type StratosApp struct { *runtime.App // make scoped keepers public for test purposes ScopedIBCKeeper capabilitykeeper.ScopedKeeper ScopedIBCTransferKeeper capabilitykeeper.ScopedKeeper ScopedICAHostKeeper capabilitykeeper.ScopedKeeper ScopedICAControllerKeeper capabilitykeeper.ScopedKeeper // contains filtered or unexported fields }
func NewStratosApp ¶ added in v0.12.0
func NewStratosApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, appOpts sdkservertypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp), ) *StratosApp
func (*StratosApp) AppCodec ¶ added in v0.12.0
func (app *StratosApp) AppCodec() codec.Codec
AppCodec returns StratosApp's app 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 (*StratosApp) ExportAppStateAndValidators ¶ added in v0.12.0
func (app *StratosApp) ExportAppStateAndValidators( forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string, ) (servertypes.ExportedApp, error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*StratosApp) GetAccountKeeper ¶ added in v0.12.0
func (app *StratosApp) GetAccountKeeper() authkeeper.AccountKeeper
func (*StratosApp) GetBankKeeper ¶ added in v0.12.0
func (app *StratosApp) GetBankKeeper() bankkeeper.Keeper
func (*StratosApp) GetDistrKeeper ¶ added in v0.12.0
func (app *StratosApp) GetDistrKeeper() distrkeeper.Keeper
func (*StratosApp) GetEVMKeeper ¶ added in v0.12.0
func (app *StratosApp) GetEVMKeeper() *evmkeeper.Keeper
func (*StratosApp) GetKey ¶ added in v0.12.0
func (app *StratosApp) 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 (*StratosApp) GetPotKeeper ¶ added in v0.12.0
func (app *StratosApp) GetPotKeeper() potkeeper.Keeper
func (*StratosApp) GetRegisterKeeper ¶ added in v0.12.0
func (app *StratosApp) GetRegisterKeeper() registerkeeper.Keeper
func (*StratosApp) GetStakingKeeper ¶ added in v0.12.0
func (app *StratosApp) GetStakingKeeper() *stakingkeeper.Keeper
func (*StratosApp) GetSubspace ¶ added in v0.12.0
func (app *StratosApp) 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 (*StratosApp) LegacyAmino ¶ added in v0.12.0
func (app *StratosApp) LegacyAmino() *codec.LegacyAmino
LegacyAmino returns StratosApp'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 (*StratosApp) Name ¶ added in v0.12.0
func (app *StratosApp) Name() string
Name returns the name of the App
func (*StratosApp) RegisterAPIRoutes ¶ added in v0.12.0
func (app *StratosApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*StratosApp) SimulationManager ¶ added in v0.12.0
func (app *StratosApp) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface
func (*StratosApp) TxConfig ¶ added in v0.12.0
func (app *StratosApp) TxConfig() client.TxConfig
TxConfig returns StratosApp's txConfig