app

package
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 149 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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(&paramsmodulev1.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(&registermodulev1.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

func GetMaccPerms() map[string][]string

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 EVMKeeperApp interface {
	GetEVMKeeper() *evmkeeper.Keeper
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL