Documentation ¶
Index ¶
- Variables
- func AppConfig() depinject.Config
- type AlloraApp
- func (app *AlloraApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string) (servertypes.ExportedApp, error)
- func (app *AlloraApp) GetKey(storeKey string) *storetypes.KVStoreKey
- func (app *AlloraApp) LegacyAmino() *codec.LegacyAmino
- func (app *AlloraApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *AlloraApp) SimulationManager() *module.SimulationManager
- type BlocklessRequest
- type Config
- type EnvVar
- type InferenceItem
- type LatestInferences
- type TopicsHandler
- type WeightInferencePayload
Constants ¶
This section is empty.
Variables ¶
View Source
var AppConfigYAML []byte
View Source
var DefaultNodeHome string
DefaultNodeHome default home directories for the application daemon
Functions ¶
Types ¶
type AlloraApp ¶
type AlloraApp struct { *runtime.App // keepers AccountKeeper authkeeper.AccountKeeper BankKeeper bankkeeper.Keeper StakingKeeper *stakingkeeper.Keeper DistrKeeper distrkeeper.Keeper ConsensusParamsKeeper consensuskeeper.Keeper MintKeeper mintkeeper.Keeper EmissionsKeeper emissionsKeeper.Keeper // 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 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) 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) GetKey ¶
func (app *AlloraApp) GetKey(storeKey string) *storetypes.KVStoreKey
GetKey returns the KVStoreKey for the provided store key.
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 BlocklessRequest ¶ added in v0.0.4
type InferenceItem ¶ added in v0.0.4
type LatestInferences ¶ added in v0.0.4
type LatestInferences struct { Timestamp string `json:"timestamp"` Inferences []InferenceItem `json:"inferences"` }
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
type WeightInferencePayload ¶ added in v0.0.4
type WeightInferencePayload struct { Inferences []LatestInferences `json:"inferences"` LatestWeights map[string]string `json:"latest_weights"` }
Click to show internal directories.
Click to hide internal directories.