gov

package
v0.0.0-...-143fca7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

README

Governance

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

func AddModuleInitFlags(startCmd *cobra.Command)

AddModuleInitFlags implements servertypes.ModuleInitFlags interface.

func EndBlocker

func EndBlocker(ctx sdk.Context, keeper keeper.Keeper)

EndBlocker called every block, process inflation, update validator set.

Types

type AppModule

type AppModule struct {
	gov.AppModule
	// contains filtered or unexported fields
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL