Documentation ¶
Overview ¶
Package governance defines a "wrapper" module around the Cosmos SDK's native x/governance module. In other words, it provides the exact same functionality as the native module in that it simply embeds the native module. However, it overrides `EndBlock` core method to remove forbidden governance proposals from the storage(s) before the original `EndBlock` method from the native module is called.
The consumer chain should utilize the x/ccv/democracy/governance module to perform democratic actions such as participating and voting within the chain's governance system.
Index ¶
Constants ¶
const (
AttributeValueProposalForbidden = "proposal_forbidden"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppModule ¶
type AppModule struct { // embed the Cosmos SDK's x/governance AppModule gov.AppModule // contains filtered or unexported fields }
AppModule embeds the Cosmos SDK's x/governance AppModule
func NewAppModule ¶
func NewAppModule(cdc codec.Codec, keeper govkeeper.Keeper, ak govtypes.AccountKeeper, bk govtypes.BankKeeper, isProposalWhitelisted func(govv1beta1.Content) bool, ss govtypes.ParamSubspace, isModuleWhiteList func(string) bool, ) AppModule
NewAppModule creates a new AppModule object using the native x/governance module AppModule constructor.
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(ctx sdk.Context, request abci.RequestEndBlock) []abci.ValidatorUpdate
type ParamChangeKey ¶
type ParamChangeKey struct {
MsgType, Key string
}