Documentation ¶
Index ¶
- Variables
- func AppConfig() depinject.Config
- func Logger(ctx sdk.Context) log.Logger
- func RegisterIBC(registry cdctypes.InterfaceRegistry) map[string]appmodule.AppModule
- type AlloraApp
- func (app *AlloraApp) AppCodec() codec.Codec
- func (app *AlloraApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string) (servertypes.ExportedApp, error)
- func (app *AlloraApp) GetBaseApp() *baseapp.BaseApp
- func (app *AlloraApp) GetCapabilityScopedKeeper(moduleName string) capabilitykeeper.ScopedKeeper
- func (app *AlloraApp) GetIBCKeeper() *ibckeeper.Keeper
- func (app *AlloraApp) GetKey(storeKey string) *storetypes.KVStoreKey
- func (app *AlloraApp) GetMemKey(storeKey string) *storetypes.MemoryStoreKey
- func (app *AlloraApp) GetScopedIBCKeeper() capabilitykeeper.ScopedKeeper
- func (app *AlloraApp) GetStakingKeeper() ibctestingtypes.StakingKeeper
- func (app *AlloraApp) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *AlloraApp) GetTxConfig() client.TxConfig
- func (app *AlloraApp) LastBlockHeight() int64
- func (app *AlloraApp) LastCommitID() storetypes.CommitID
- func (app *AlloraApp) LegacyAmino() *codec.LegacyAmino
- func (app *AlloraApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *AlloraApp) SimulationManager() *module.SimulationManager
- type TopicId
- type TopicsHandler
Constants ¶
This section is empty.
Variables ¶
var AppConfigYAML []byte
var DefaultNodeHome string
DefaultNodeHome default home directories for the application daemon
Functions ¶
func RegisterIBC ¶ added in v0.0.8
func RegisterIBC(registry cdctypes.InterfaceRegistry) map[string]appmodule.AppModule
Since the IBC modules don't support dependency injection, we need to manually register the modules on the client side. This needs to be removed after IBC supports App Wiring.
Types ¶
type AlloraApp ¶
type AlloraApp struct { *runtime.App // keepers AccountKeeper authkeeper.AccountKeeper AuthzKeeper authzkeeper.Keeper CircuitBreakerKeeper circuitkeeper.Keeper BankKeeper bankkeeper.Keeper StakingKeeper *stakingkeeper.Keeper DistrKeeper distrkeeper.Keeper ConsensusParamsKeeper consensuskeeper.Keeper MintKeeper mintkeeper.Keeper GovKeeper *govkeeper.Keeper EmissionsKeeper emissionsKeeper.Keeper ParamsKeeper paramskeeper.Keeper UpgradeKeeper *upgradekeeper.Keeper SlashingKeeper slashingkeeper.Keeper // IBC IBCKeeper *ibckeeper.Keeper // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly CapabilityKeeper *capabilitykeeper.Keeper IBCFeeKeeper ibcfeekeeper.Keeper ICAControllerKeeper icacontrollerkeeper.Keeper ICAHostKeeper icahostkeeper.Keeper TransferKeeper ibctransferkeeper.Keeper // Scoped IBC ScopedIBCKeeper capabilitykeeper.ScopedKeeper ScopedIBCTransferKeeper capabilitykeeper.ScopedKeeper ScopedICAControllerKeeper capabilitykeeper.ScopedKeeper ScopedICAHostKeeper capabilitykeeper.ScopedKeeper // contains filtered or unexported fields }
AlloraApp 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 InitAppForTestnet ¶
func InitAppForTestnet(app *AlloraApp, newValAddr []byte, newValPubKey crypto.PubKey, newOperatorAddress, upgradeToTrigger string) (*AlloraApp, error)
InitAppForTestnet initializes the app for testnet
func NewAlloraApp ¶
func NewAlloraApp( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, appOpts servertypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp), ) (*AlloraApp, error)
NewAlloraApp returns a reference to an initialized AlloraApp.
func (*AlloraApp) AppCodec ¶ added in v0.0.8
AppCodec returns App'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 (*AlloraApp) ExportAppStateAndValidators ¶
func (app *AlloraApp) ExportAppStateAndValidators( forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string, ) (servertypes.ExportedApp, error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*AlloraApp) GetBaseApp ¶ added in v0.0.8
ibctesting.TestingApp compatibility
func (*AlloraApp) GetCapabilityScopedKeeper ¶ added in v0.0.8
func (app *AlloraApp) GetCapabilityScopedKeeper(moduleName string) capabilitykeeper.ScopedKeeper
GetCapabilityScopedKeeper returns the capability scoped keeper.
func (*AlloraApp) GetIBCKeeper ¶ added in v0.0.8
GetIBCKeeper returns the IBC keeper.
func (*AlloraApp) GetKey ¶
func (app *AlloraApp) GetKey(storeKey string) *storetypes.KVStoreKey
GetKey returns the KVStoreKey for the provided store key.
func (*AlloraApp) GetMemKey ¶ added in v0.0.8
func (app *AlloraApp) GetMemKey(storeKey string) *storetypes.MemoryStoreKey
GetMemKey returns the MemoryStoreKey for the provided store key.
func (*AlloraApp) GetScopedIBCKeeper ¶ added in v0.0.8
func (app *AlloraApp) GetScopedIBCKeeper() capabilitykeeper.ScopedKeeper
ibctesting.TestingApp compatibility
func (*AlloraApp) GetStakingKeeper ¶ added in v0.0.8
func (app *AlloraApp) GetStakingKeeper() ibctestingtypes.StakingKeeper
ibctesting.TestingApp compatibility
func (*AlloraApp) GetSubspace ¶ added in v0.0.8
func (app *AlloraApp) GetSubspace(moduleName string) paramstypes.Subspace
GetSubspace returns a param subspace for a given module name.
func (*AlloraApp) GetTxConfig ¶ added in v0.0.8
ibctesting.TestingApp compatibility
func (*AlloraApp) LastBlockHeight ¶ added in v0.0.8
ibctesting.TestingApp compatibility
func (*AlloraApp) LastCommitID ¶ added in v0.0.8
func (app *AlloraApp) LastCommitID() storetypes.CommitID
ibctesting.TestingApp compatibility
func (*AlloraApp) LegacyAmino ¶
func (app *AlloraApp) LegacyAmino() *codec.LegacyAmino
LegacyAmino returns AlloraApp's amino codec.
func (*AlloraApp) RegisterAPIRoutes ¶
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*AlloraApp) SimulationManager ¶
func (app *AlloraApp) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface
type TopicsHandler ¶ added in v0.0.4
type TopicsHandler struct {
// contains filtered or unexported fields
}
func NewTopicsHandler ¶ added in v0.0.4
func NewTopicsHandler(emissionsKeeper emissionskeeper.Keeper) *TopicsHandler
func (*TopicsHandler) PrepareProposalHandler ¶ added in v0.0.4
func (th *TopicsHandler) PrepareProposalHandler() sdk.PrepareProposalHandler