governance

package
v2.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

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 keeper.Keeper, ak govtypes.AccountKeeper, bk govtypes.BankKeeper, isProposalWhitelisted func(govtypes.Content) 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

Jump to

Keyboard shortcuts

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