governance

package
v4.2.0-rc0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 5

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

View Source
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
}

Jump to

Keyboard shortcuts

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