gov

package
v0.4.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/terra-project/core/x/crisis/internal/types/

nolint

Index

Constants

View Source
const (
	MaxDescriptionLength  = gov.MaxDescriptionLength
	MaxTitleLength        = gov.MaxTitleLength
	DefaultPeriod         = gov.DefaultPeriod
	ModuleName            = gov.ModuleName
	StoreKey              = gov.StoreKey
	RouterKey             = gov.RouterKey
	QuerierRoute          = gov.QuerierRoute
	DefaultParamspace     = gov.DefaultParamspace
	TypeMsgDeposit        = gov.TypeMsgDeposit
	TypeMsgVote           = gov.TypeMsgVote
	TypeMsgSubmitProposal = gov.TypeMsgSubmitProposal
	StatusNil             = gov.StatusNil
	StatusDepositPeriod   = gov.StatusDepositPeriod
	StatusVotingPeriod    = gov.StatusVotingPeriod
	StatusPassed          = gov.StatusPassed
	StatusRejected        = gov.StatusRejected
	StatusFailed          = gov.StatusFailed
	ProposalTypeText      = gov.ProposalTypeText
	QueryParams           = gov.QueryParams
	QueryProposals        = gov.QueryProposals
	QueryProposal         = gov.QueryProposal
	QueryDeposits         = gov.QueryDeposits
	QueryDeposit          = gov.QueryDeposit
	QueryVotes            = gov.QueryVotes
	QueryVote             = gov.QueryVote
	QueryTally            = gov.QueryTally
	ParamDeposit          = gov.ParamDeposit
	ParamVoting           = gov.ParamVoting
	ParamTallying         = gov.ParamTallying
	OptionEmpty           = gov.OptionEmpty
	OptionYes             = gov.OptionYes
	OptionAbstain         = gov.OptionAbstain
	OptionNo              = gov.OptionNo
	OptionNoWithVeto      = gov.OptionNoWithVeto
)

Variables

View Source
var (
	// functions aliases
	RegisterCodec             = types.RegisterCodec
	RegisterProposalTypeCodec = types.RegisterProposalTypeCodec

	// variable aliases
	ModuleCdc = types.ModuleCdc
)
View Source
var (
	// functions aliases
	RegisterInvariants            = gov.RegisterInvariants
	AllInvariants                 = gov.AllInvariants
	ModuleAccountInvariant        = gov.ModuleAccountInvariant
	NewKeeper                     = gov.NewKeeper
	NewQuerier                    = gov.NewQuerier
	ValidateAbstract              = gov.ValidateAbstract
	NewDeposit                    = gov.NewDeposit
	ErrUnknownProposal            = gov.ErrUnknownProposal
	ErrInactiveProposal           = gov.ErrInactiveProposal
	ErrAlreadyActiveProposal      = gov.ErrAlreadyActiveProposal
	ErrInvalidProposalContent     = gov.ErrInvalidProposalContent
	ErrInvalidProposalType        = gov.ErrInvalidProposalType
	ErrInvalidVote                = gov.ErrInvalidVote
	ErrInvalidGenesis             = gov.ErrInvalidGenesis
	ErrNoProposalHandlerExists    = gov.ErrNoProposalHandlerExists
	NewGenesisState               = gov.NewGenesisState
	DefaultGenesisState           = gov.DefaultGenesisState
	ValidateGenesis               = gov.ValidateGenesis
	GetProposalIDBytes            = gov.GetProposalIDBytes
	GetProposalIDFromBytes        = gov.GetProposalIDFromBytes
	ProposalKey                   = gov.ProposalKey
	ActiveProposalByTimeKey       = gov.ActiveProposalByTimeKey
	ActiveProposalQueueKey        = gov.ActiveProposalQueueKey
	InactiveProposalByTimeKey     = gov.InactiveProposalByTimeKey
	InactiveProposalQueueKey      = gov.InactiveProposalQueueKey
	DepositsKey                   = gov.DepositsKey
	DepositKey                    = gov.DepositKey
	VotesKey                      = gov.VotesKey
	VoteKey                       = gov.VoteKey
	SplitProposalKey              = gov.SplitProposalKey
	SplitActiveProposalQueueKey   = gov.SplitActiveProposalQueueKey
	SplitInactiveProposalQueueKey = gov.SplitInactiveProposalQueueKey
	SplitKeyDeposit               = gov.SplitKeyDeposit
	SplitKeyVote                  = gov.SplitKeyVote
	NewMsgSubmitProposal          = gov.NewMsgSubmitProposal
	NewMsgDeposit                 = gov.NewMsgDeposit
	NewMsgVote                    = gov.NewMsgVote
	ParamKeyTable                 = gov.ParamKeyTable
	NewDepositParams              = gov.NewDepositParams
	NewTallyParams                = gov.NewTallyParams
	NewVotingParams               = gov.NewVotingParams
	NewParams                     = gov.NewParams
	NewProposal                   = gov.NewProposal
	NewRouter                     = gov.NewRouter
	ProposalStatusFromString      = gov.ProposalStatusFromString
	ValidProposalStatus           = gov.ValidProposalStatus
	NewTextProposal               = gov.NewTextProposal
	RegisterProposalType          = gov.RegisterProposalType
	ContentFromProposalType       = gov.ContentFromProposalType
	IsValidProposalType           = gov.IsValidProposalType
	ProposalHandler               = gov.ProposalHandler
	NewQueryProposalParams        = gov.NewQueryProposalParams
	NewQueryDepositParams         = gov.NewQueryDepositParams
	NewQueryVoteParams            = gov.NewQueryVoteParams
	NewQueryProposalsParams       = gov.NewQueryProposalsParams
	NewValidatorGovInfo           = gov.NewValidatorGovInfo
	NewTallyResult                = gov.NewTallyResult
	NewTallyResultFromMap         = gov.NewTallyResultFromMap
	EmptyTallyResult              = gov.EmptyTallyResult
	NewVote                       = gov.NewVote
	VoteOptionFromString          = gov.VoteOptionFromString
	ValidVoteOption               = gov.ValidVoteOption

	NewCosmosAppModule      = gov.NewAppModule
	NewCosmosAppModuleBasic = gov.NewAppModuleBasic

	// variable aliases
	CosmosModuleCdc             = gov.ModuleCdc
	ProposalsKeyPrefix          = gov.ProposalsKeyPrefix
	ActiveProposalQueuePrefix   = gov.ActiveProposalQueuePrefix
	InactiveProposalQueuePrefix = gov.InactiveProposalQueuePrefix
	ProposalIDKey               = gov.ProposalIDKey
	DepositsKeyPrefix           = gov.DepositsKeyPrefix
	VotesKeyPrefix              = gov.VotesKeyPrefix
	ParamStoreKeyDepositParams  = gov.ParamStoreKeyDepositParams
	ParamStoreKeyVotingParams   = gov.ParamStoreKeyVotingParams
	ParamStoreKeyTallyParams    = gov.ParamStoreKeyTallyParams
)

Functions

This section is empty.

Types

type AppModule

type AppModule struct {
	AppModuleBasic
	// contains filtered or unexported fields
}

AppModule implements an application module for the gov module.

func NewAppModule

func NewAppModule(keeper Keeper, accountKeeper types.AccountKeeper, supplyKeeper types.SupplyKeeper) AppModule

NewAppModule creates a new AppModule object

func (AppModule) BeginBlock

func (am AppModule) BeginBlock(ctx sdk.Context, rbb abci.RequestBeginBlock)

BeginBlock returns the begin blocker for the gov module.

func (AppModule) EndBlock

func (am AppModule) EndBlock(ctx sdk.Context, rbb abci.RequestEndBlock) []abci.ValidatorUpdate

EndBlock returns the end blocker for the gov module.

func (AppModule) ExportGenesis

func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage

ExportGenesis returns the exported genesis state as raw bytes for the gov module.

func (AppModule) GenerateGenesisState added in v0.4.0

func (am AppModule) GenerateGenesisState(simState *module.SimulationState)

GenerateGenesisState creates a randomized GenState of the auth module

func (AppModule) InitGenesis

func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate

InitGenesis performs genesis initialization for the gov module.

func (AppModule) Name

func (am AppModule) Name() string

Name returns the gov module's name.

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

NewHandler returns an sdk.Handler for the gov module.

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler returns the gov module sdk.Querier.

func (AppModule) ProposalContents added in v0.4.0

func (am AppModule) ProposalContents(simState module.SimulationState) []sim.WeightedProposalContent

ProposalContents doesn't return any content functions for governance proposals.

func (AppModule) QuerierRoute

func (am AppModule) QuerierRoute() string

QuerierRoute returns the gov module's querier route name.

func (AppModule) RandomizedParams added in v0.4.0

func (am AppModule) RandomizedParams(r *rand.Rand) []sim.ParamChange

RandomizedParams creates randomized auth param changes for the simulator.

func (AppModule) RegisterInvariants

func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)

RegisterInvariants performs a no-op.

func (AppModule) RegisterStoreDecoder added in v0.4.0

func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)

RegisterStoreDecoder registers a decoder for auth module's types

func (AppModule) Route

func (am AppModule) Route() string

Route returns the message routing key for the gov module.

func (AppModule) WeightedOperations added in v0.4.0

func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation

WeightedOperations doesn't return any auth module operation.

type AppModuleBasic

type AppModuleBasic struct {
	CosmosAppModuleBasic
}

AppModuleBasic defines the basic application module used by the gov module.

func NewAppModuleBasic

func NewAppModuleBasic(proposalHandlers ...client.ProposalHandler) AppModuleBasic

NewAppModuleBasic creates a new AppModuleBasic object

func (AppModuleBasic) DefaultGenesis

func (am AppModuleBasic) DefaultGenesis() json.RawMessage

DefaultGenesis returns default genesis state as raw bytes for the gov module.

func (AppModuleBasic) GetQueryCmd

func (am AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command

GetQueryCmd returns the root query command for the gov module.

func (AppModuleBasic) GetTxCmd

func (am AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command

GetTxCmd returns the root tx command for the gov module.

func (AppModuleBasic) Name

func (am AppModuleBasic) Name() string

Name returns the gov module's name

func (AppModuleBasic) RegisterCodec

func (am AppModuleBasic) RegisterCodec(cdc *codec.Codec)

RegisterCodec registers the gov module's types for the given codec.

func (AppModuleBasic) RegisterRESTRoutes

func (am AppModuleBasic) RegisterRESTRoutes(cliCtx context.CLIContext, route *mux.Router)

RegisterRESTRoutes registers the REST routes for the gov module.

func (AppModuleBasic) ValidateGenesis

func (am AppModuleBasic) ValidateGenesis(bz json.RawMessage) error

ValidateGenesis performs genesis state validation for the gov module.

type Content

type Content = gov.Content

type CosmosAppModule

type CosmosAppModule = gov.AppModule

type CosmosAppModuleBasic

type CosmosAppModuleBasic = gov.AppModuleBasic

type Deposit

type Deposit = gov.Deposit

type DepositParams

type DepositParams = gov.DepositParams

type Deposits

type Deposits = gov.Deposits

type GenesisState added in v0.4.0

type GenesisState = gov.GenesisState

type Handler

type Handler = gov.Handler

type Keeper

type Keeper = gov.Keeper

type MsgDeposit

type MsgDeposit = gov.MsgDeposit

type MsgSubmitProposal

type MsgSubmitProposal = gov.MsgSubmitProposal

type MsgVote

type MsgVote = gov.MsgVote

type Params

type Params = gov.Params

type Proposal

type Proposal = gov.Proposal

type ProposalQueue

type ProposalQueue = gov.ProposalQueue

type ProposalStatus

type ProposalStatus = gov.ProposalStatus

type Proposals

type Proposals = gov.Proposals

type QueryDepositParams

type QueryDepositParams = gov.QueryDepositParams

type QueryProposalParams

type QueryProposalParams = gov.QueryProposalParams

type QueryProposalsParams

type QueryProposalsParams = gov.QueryProposalsParams

type QueryVoteParams

type QueryVoteParams = gov.QueryVoteParams

type TallyParams

type TallyParams = gov.TallyParams

type TallyResult

type TallyResult = gov.TallyResult

type TextProposal

type TextProposal = gov.TextProposal

type ValidatorGovInfo added in v0.4.0

type ValidatorGovInfo = gov.ValidatorGovInfo

type Vote

type Vote = gov.Vote

type VoteOption

type VoteOption = gov.VoteOption

type Votes

type Votes = gov.Votes

type VotingParams

type VotingParams = gov.VotingParams

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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