Documentation ¶
Index ¶
- Variables
- func GetMaccPerms() map[string][]string
- func MakeEncodingConfig() params.EncodingConfig
- type GenesisState
- type SpartanApp
- func (app *SpartanApp) AppCodec() codec.Codec
- func (app *SpartanApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *SpartanApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *SpartanApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string) (servertypes.ExportedApp, error)
- func (app *SpartanApp) GetKey(storeKey string) *sdk.KVStoreKey
- func (app *SpartanApp) GetMemKey(storeKey string) *sdk.MemoryStoreKey
- func (app *SpartanApp) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *SpartanApp) GetTKey(storeKey string) *sdk.TransientStoreKey
- func (app *SpartanApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *SpartanApp) InterfaceRegistry() types.InterfaceRegistry
- func (app *SpartanApp) LegacyAmino() *codec.LegacyAmino
- func (app *SpartanApp) LoadHeight(height int64) error
- func (app *SpartanApp) ModuleAccountAddrs() map[string]bool
- func (app *SpartanApp) Name() string
- func (app *SpartanApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *SpartanApp) RegisterTendermintService(clientCtx client.Context)
- func (app *SpartanApp) RegisterTxService(clientCtx client.Context)
- func (app *SpartanApp) RegisterUpgradePlan(planName string, upgrades store.StoreUpgrades, ...)
- func (app *SpartanApp) SimulationManager() *module.SimulationManager
Constants ¶
This section is empty.
Variables ¶
var DefaultNodeHome string
DefaultNodeHome default home directories for the application daemon
var ( // ModuleBasics defines the module BasicManager is in charge of setting up basic, // non-dependant module elements, such as codec registration // and genesis verification. ModuleBasics = module.NewBasicManager( auth.AppModuleBasic{}, genutil.AppModuleBasic{}, bank.AppModuleBasic{}, params.AppModuleBasic{}, crisis.AppModuleBasic{}, cslashing.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, record.AppModuleBasic{}, token.AppModuleBasic{}, nft.AppModuleBasic{}, mt.AppModuleBasic{}, service.AppModuleBasic{}, perm.AppModuleBasic{}, identity.AppModuleBasic{}, nodemodule.AppModuleBasic{}, opb.AppModuleBasic{}, evm.AppModuleBasic{}, feemarket.AppModuleBasic{}, gov.NewAppModuleBasic( upgradeclient.ProposalHandler, upgradeclient.CancelProposalHandler, paramsclient.ProposalHandler, nodeclient.CreateValidatorProposalHandler, nodeclient.UpdateValidatorProposalHandler, nodeclient.RemoveValidatorProposalHandler, ), ) )
Functions ¶
func GetMaccPerms ¶
GetMaccPerms returns a copy of the module account permissions
func MakeEncodingConfig ¶
func MakeEncodingConfig() params.EncodingConfig
MakeEncodingConfig creates an EncodingConfig for testing
Types ¶
type GenesisState ¶
type GenesisState map[string]json.RawMessage
GenesisState defines a type alias for the Iris genesis application state.
func NewDefaultGenesisState ¶
func NewDefaultGenesisState() GenesisState
NewDefaultGenesisState generates the default state for the application.
type SpartanApp ¶
type SpartanApp struct { *baseapp.BaseApp // Ethermint keepers EvmKeeper *evmkeeper.Keeper FeeMarketKeeper feemarketkeeper.Keeper // contains filtered or unexported fields }
SpartanApp 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 NewSpartanApp ¶
func NewSpartanApp( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, skipUpgradeHeights map[int64]bool, homePath string, invCheckPeriod uint, encodingConfig simappparams.EncodingConfig, appOpts servertypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp), ) *SpartanApp
NewSpartanApp returns a reference to an initialized IritaApp.
func (*SpartanApp) AppCodec ¶
func (app *SpartanApp) AppCodec() codec.Codec
AppCodec returns IritaApp'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 (*SpartanApp) BeginBlocker ¶
func (app *SpartanApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
BeginBlocker application updates every begin block
func (*SpartanApp) EndBlocker ¶
func (app *SpartanApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
EndBlocker application updates every end block
func (*SpartanApp) ExportAppStateAndValidators ¶
func (app *SpartanApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string) (servertypes.ExportedApp, error)
ExportAppStateAndValidators export the state of irita for a genesis file
func (*SpartanApp) GetKey ¶
func (app *SpartanApp) GetKey(storeKey string) *sdk.KVStoreKey
GetKey returns the KVStoreKey for the provided store key.
NOTE: This is solely to be used for testing purposes.
func (*SpartanApp) GetMemKey ¶
func (app *SpartanApp) GetMemKey(storeKey string) *sdk.MemoryStoreKey
GetMemKey returns the MemStoreKey for the provided mem key.
NOTE: This is solely used for testing purposes.
func (*SpartanApp) GetSubspace ¶
func (app *SpartanApp) 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 (*SpartanApp) GetTKey ¶
func (app *SpartanApp) GetTKey(storeKey string) *sdk.TransientStoreKey
GetTKey returns the TransientStoreKey for the provided store key.
NOTE: This is solely to be used for testing purposes.
func (*SpartanApp) InitChainer ¶
func (app *SpartanApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer application update at chain initialization
func (*SpartanApp) InterfaceRegistry ¶
func (app *SpartanApp) InterfaceRegistry() types.InterfaceRegistry
InterfaceRegistry returns IritaApp's InterfaceRegistry
func (*SpartanApp) LegacyAmino ¶
func (app *SpartanApp) LegacyAmino() *codec.LegacyAmino
LegacyAmino returns IritaApp'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 (*SpartanApp) LoadHeight ¶
func (app *SpartanApp) LoadHeight(height int64) error
LoadHeight loads a particular height
func (*SpartanApp) ModuleAccountAddrs ¶
func (app *SpartanApp) ModuleAccountAddrs() map[string]bool
ModuleAccountAddrs returns all the app's module account addresses.
func (*SpartanApp) RegisterAPIRoutes ¶
func (app *SpartanApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*SpartanApp) RegisterTendermintService ¶
func (app *SpartanApp) RegisterTendermintService(clientCtx client.Context)
RegisterTendermintService implements the Application.RegisterTendermintService method.
func (*SpartanApp) RegisterTxService ¶
func (app *SpartanApp) RegisterTxService(clientCtx client.Context)
RegisterTxService implements the Application.RegisterTxService method.
func (*SpartanApp) RegisterUpgradePlan ¶
func (app *SpartanApp) RegisterUpgradePlan(planName string, upgrades store.StoreUpgrades, upgradeHandler upgradetypes.UpgradeHandler)
RegisterUpgradePlan implements the upgrade execution logic of the upgrade module
func (*SpartanApp) SimulationManager ¶
func (app *SpartanApp) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface