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) (servertypes.ExportedApp, error)
- func (app *LavaApp) GetKey(storeKey string) *sdk.KVStoreKey
- func (app *LavaApp) GetMemKey(storeKey string) *sdk.MemoryStoreKey
- func (app *LavaApp) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *LavaApp) GetTKey(storeKey string) *sdk.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) 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( auth.AppModuleBasic{}, genutil.AppModuleBasic{}, bank.AppModuleBasic{}, capability.AppModuleBasic{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distr.AppModuleBasic{}, gov.NewAppModuleBasic(getGovProposalHandlers()...), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, ibc.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, transfer.AppModuleBasic{}, vesting.AppModuleBasic{}, specmodule.AppModuleBasic{}, epochstoragemodule.AppModuleBasic{}, subscriptionmodule.AppModuleBasic{}, pairingmodule.AppModuleBasic{}, conflictmodule.AppModuleBasic{}, projectsmodule.AppModuleBasic{}, plansmodule.AppModuleBasic{}, ) )
var Upgrades = []upgrades.Upgrade{ upgrades.Upgrade_0_4_0, upgrades.Upgrade_0_4_3, upgrades.Upgrade_0_4_4, upgrades.Upgrade_0_4_5, v0_5_0.Upgrade, v0_5_1.Upgrade, v0_5_2.Upgrade, upgrades.Upgrade_0_6_0_RC3, upgrades.Upgrade_0_6_0, upgrades.Upgrade_0_6_1, upgrades.Upgrade_0_7_0, upgrades.Upgrade_0_7_1, upgrades.Upgrade_0_8_1, v0_9_1.Upgrade, upgrades.Upgrade_0_9_2, upgrades.Upgrade_0_9_3, }
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, signModeHandler signing.SignModeHandler, feegrantKeeper ante.FeegrantKeeper, 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 a 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, ) (servertypes.ExportedApp, error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*LavaApp) GetKey ¶
func (app *LavaApp) 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 (*LavaApp) GetMemKey ¶
func (app *LavaApp) GetMemKey(storeKey string) *sdk.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) *sdk.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) 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