Documentation
¶
Index ¶
- Constants
- Variables
- func GetMaccPerms() map[string][]string
- func MakeEncodingConfig() params.EncodingConfig
- func NewAnteHandler(accountKeeper ante.AccountKeeper, bankKeeper authtypes.BankKeeper, ...) sdk.AnteHandler
- type GenesisState
- type LavaApp
- func (app *LavaApp) AppCodec() codec.Codec
- func (app *LavaApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *LavaApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *LavaApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string) (servertypes.ExportedApp, error)
- func (app *LavaApp) GetKey(storeKey string) *storetypes.KVStoreKey
- func (app *LavaApp) GetMemKey(storeKey string) *storetypes.MemoryStoreKey
- func (app *LavaApp) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *LavaApp) GetTKey(storeKey string) *storetypes.TransientStoreKey
- func (app *LavaApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *LavaApp) InterfaceRegistry() types.InterfaceRegistry
- func (app *LavaApp) LegacyAmino() *codec.LegacyAmino
- func (app *LavaApp) LoadHeight(height int64) error
- func (app *LavaApp) ModuleAccountAddrs() map[string]bool
- func (app *LavaApp) Name() string
- func (app *LavaApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *LavaApp) RegisterNodeService(clientCtx client.Context)
- func (app *LavaApp) RegisterTendermintService(clientCtx client.Context)
- func (app *LavaApp) RegisterTxService(clientCtx client.Context)
- func (app *LavaApp) SimulationManager() *module.SimulationManager
Constants ¶
const ( AccountAddressPrefix = "lava@" Name = "lava" )
Variables ¶
var ( // DefaultNodeHome default home directories for the application daemon DefaultNodeHome string // 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( timerstore.AppModuleBasic{}, fixationstore.AppModuleBasic{}, auth.AppModuleBasic{}, genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator), bank.AppModuleBasic{}, capability.AppModuleBasic{}, staking.AppModuleBasic{}, distr.AppModuleBasic{}, gov.NewAppModuleBasic(getGovProposalHandlers()), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, packetforward.AppModuleBasic{}, ibc.AppModuleBasic{}, ibctm.AppModuleBasic{}, ica.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, transfer.AppModuleBasic{}, vesting.AppModuleBasic{}, specmodule.AppModuleBasic{}, epochstoragemodule.AppModuleBasic{}, dualstakingmodule.AppModuleBasic{}, subscriptionmodule.AppModuleBasic{}, pairingmodule.AppModuleBasic{}, conflictmodule.AppModuleBasic{}, projectsmodule.AppModuleBasic{}, protocolmodule.AppModuleBasic{}, plansmodule.AppModuleBasic{}, downtimemodule.AppModuleBasic{}, rewardsmodule.AppModuleBasic{}, groupmodule.AppModuleBasic{}, authzmodule.AppModuleBasic{}, ) )
var Upgrades = []upgrades.Upgrade{ upgrades.Upgrade_0_22_0, upgrades.Upgrade_0_23_0, upgrades.Upgrade_0_23_2, upgrades.Upgrade_0_23_4, upgrades.Upgrade_0_23_5, upgrades.Upgrade_0_24_0, upgrades.Upgrade_0_25_0, upgrades.Upgrade_0_25_1, upgrades.Upgrade_0_25_2, upgrades.Upgrade_0_26_0, upgrades.Upgrade_0_26_1, upgrades.Upgrade_0_26_2, upgrades.Upgrade_0_27_0, upgrades.Upgrade_0_30_0, upgrades.Upgrade_0_30_1, upgrades.Upgrade_0_30_2, upgrades.Upgrade_0_31_0, upgrades.Upgrade_0_31_1, upgrades.Upgrade_0_32_0, upgrades.Upgrade_0_32_3, upgrades.Upgrade_0_33_0, upgrades.Upgrade_0_34_0, upgrades.Upgrade_0_35_0, upgrades.Upgrade_1_0_0, upgrades.Upgrade_1_0_1, upgrades.Upgrade_1_1_0, upgrades.Upgrade_1_2_0, upgrades.Upgrade_2_0_0, upgrades.Upgrade_2_1_0, upgrades.Upgrade_2_1_1, upgrades.Upgrade_2_1_3, upgrades.Upgrade_2_2_0, upgrades.Upgrade_2_4_0, upgrades.Upgrade_2_5_0, }
Upgrades add here future upgrades (upgrades.Upgrade)
Functions ¶
func GetMaccPerms ¶
GetMaccPerms returns a copy of the module account permissions
func MakeEncodingConfig ¶
func MakeEncodingConfig() params.EncodingConfig
MakeEncodingConfig creates an EncodingConfig for testing
func NewAnteHandler ¶
func NewAnteHandler(accountKeeper ante.AccountKeeper, bankKeeper authtypes.BankKeeper, dualstakingKeeper dualstakingkeeper.Keeper, signModeHandler signing.SignModeHandler, feegrantKeeper ante.FeegrantKeeper, specKeeper keeper.Keeper, sigGasConsumer ante.SignatureVerificationGasConsumer) sdk.AnteHandler
Types ¶
type GenesisState ¶
type GenesisState map[string]json.RawMessage
The genesis state of the blockchain is represented here as a map of raw json messages key'd by an identifier string. The identifier is used to determine which module genesis information belongs to so it may be appropriately routed during init chain. Within this application default genesis information is retrieved from the ModuleBasicManager which populates json from each BasicModule object provided to it during init.
func NewDefaultGenesisState ¶
func NewDefaultGenesisState(cdc codec.JSONCodec) GenesisState
NewDefaultGenesisState generates the default state for the application.
type LavaApp ¶
type LavaApp struct { *baseapp.BaseApp // keepers keepers.LavaKeepers // contains filtered or unexported fields }
LavaApp 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 New ¶
func New( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, skipUpgradeHeights map[int64]bool, homePath string, invCheckPeriod uint, encodingConfig appparams.EncodingConfig, appOpts servertypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp), ) *LavaApp
New returns a reference to an initialized blockchain app
func (*LavaApp) AppCodec ¶
AppCodec returns an 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 (*LavaApp) BeginBlocker ¶
func (app *LavaApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
BeginBlocker application updates every begin block
func (*LavaApp) EndBlocker ¶
func (app *LavaApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
EndBlocker application updates every end block
func (*LavaApp) ExportAppStateAndValidators ¶
func (app *LavaApp) ExportAppStateAndValidators( forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string, ) (servertypes.ExportedApp, error)
ExportAppStateAndValidators(
forZeroHeight bool, jailAllowedAddrs []string, ) (types.ExportedApp, error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*LavaApp) GetKey ¶
func (app *LavaApp) 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 (*LavaApp) GetMemKey ¶
func (app *LavaApp) GetMemKey(storeKey string) *storetypes.MemoryStoreKey
GetMemKey returns the MemStoreKey for the provided mem key.
NOTE: This is solely used for testing purposes.
func (*LavaApp) GetSubspace ¶
func (app *LavaApp) 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 (*LavaApp) GetTKey ¶
func (app *LavaApp) GetTKey(storeKey string) *storetypes.TransientStoreKey
GetTKey returns the TransientStoreKey for the provided store key.
NOTE: This is solely to be used for testing purposes.
func (*LavaApp) InitChainer ¶
func (app *LavaApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer application update at chain initialization
func (*LavaApp) InterfaceRegistry ¶
func (app *LavaApp) InterfaceRegistry() types.InterfaceRegistry
InterfaceRegistry returns an InterfaceRegistry
func (*LavaApp) LegacyAmino ¶
func (app *LavaApp) 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 (*LavaApp) LoadHeight ¶
LoadHeight loads a particular height
func (*LavaApp) ModuleAccountAddrs ¶
ModuleAccountAddrs returns all the app's module account addresses.
func (*LavaApp) RegisterAPIRoutes ¶
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*LavaApp) RegisterNodeService ¶
func (*LavaApp) RegisterTendermintService ¶
RegisterTendermintService implements the Application.RegisterTendermintService method.
func (*LavaApp) RegisterTxService ¶
RegisterTxService implements the Application.RegisterTxService method.
func (*LavaApp) SimulationManager ¶
func (app *LavaApp) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface