Documentation
¶
Index ¶
Constants ¶
View Source
const ( FlagOpenAIKey = "ai.openai_key" FlagAIRules = "ai.rules" )
Module init related flags
Variables ¶
This section is empty.
Functions ¶
func AddModuleInitFlags ¶
AddModuleInitFlags implements servertypes.ModuleInitFlags interface.
Types ¶
type AppModule ¶
AppModule implements an application module for the custom gov module
NOTE: our custom AppModule wraps the vanilla `gov.AppModule` to inherit most of its functions. However, we overwrite the `EndBlock` function to replace it with our custom vote tallying logic.
func NewAppModule ¶
func NewAppModule(cdc codec.Codec, keeper keeper.Keeper, ak govtypes.AccountKeeper, bk govtypes.BankKeeper) AppModule
NewAppModule creates a new AppModule object
func (AppModule) RegisterServices ¶
func (am AppModule) RegisterServices(cfg module.Configurator)
RegisterServices registers module services.
NOTE: this overwrites the vanilla gov module RegisterServices function
Click to show internal directories.
Click to hide internal directories.