gov

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 12 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
	DefaultCodespace             = gov.DefaultCodespace
	CodeUnknownProposal          = gov.CodeUnknownProposal
	CodeInactiveProposal         = gov.CodeInactiveProposal
	CodeAlreadyActiveProposal    = gov.CodeAlreadyActiveProposal
	CodeAlreadyFinishedProposal  = gov.CodeAlreadyFinishedProposal
	CodeAddressNotStaked         = gov.CodeAddressNotStaked
	CodeInvalidContent           = gov.CodeInvalidContent
	CodeInvalidProposalType      = gov.CodeInvalidProposalType
	CodeInvalidVote              = gov.CodeInvalidVote
	CodeInvalidGenesis           = gov.CodeInvalidGenesis
	CodeInvalidProposalStatus    = gov.CodeInvalidProposalStatus
	CodeProposalHandlerNotExists = gov.CodeProposalHandlerNotExists
	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
	ProposalTypeSoftwareUpgrade  = gov.ProposalTypeSoftwareUpgrade
	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
	ValidateAbstract              = gov.ValidateAbstract
	NewDeposit                    = gov.NewDeposit
	ErrUnknownProposal            = gov.ErrUnknownProposal
	ErrInactiveProposal           = gov.ErrInactiveProposal
	ErrAlreadyActiveProposal      = gov.ErrAlreadyActiveProposal
	ErrAlreadyFinishedProposal    = gov.ErrAlreadyFinishedProposal
	ErrAddressNotStaked           = gov.ErrAddressNotStaked
	ErrInvalidProposalContent     = gov.ErrInvalidProposalContent
	ErrInvalidProposalType        = gov.ErrInvalidProposalType
	ErrInvalidVote                = gov.ErrInvalidVote
	ErrInvalidGenesis             = gov.ErrInvalidGenesis
	ErrNoProposalHandlerExists    = gov.ErrNoProposalHandlerExists
	ProposalKey                   = gov.ProposalKey
	ActiveProposalByTimeKey       = gov.ActiveProposalByTimeKey
	ActiveProposalQueueKey        = gov.ActiveProposalQueueKey
	InactiveProposalByTimeKey     = gov.InactiveProposalByTimeKey
	InactiveProposalQueueKey      = gov.InactiveProposalQueueKey
	DefaultGenesisState           = gov.DefaultGenesisState
	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
	ProposalStatusFromString      = gov.ProposalStatusFromString
	ValidProposalStatus           = gov.ValidProposalStatus
	NewTallyResult                = gov.NewTallyResult
	NewTallyResultFromMap         = gov.NewTallyResultFromMap
	EmptyTallyResult              = gov.EmptyTallyResult
	NewTextProposal               = gov.NewTextProposal
	NewSoftwareUpgradeProposal    = gov.NewSoftwareUpgradeProposal
	RegisterProposalType          = gov.RegisterProposalType
	ContentFromProposalType       = gov.ContentFromProposalType
	IsValidProposalType           = gov.IsValidProposalType
	ProposalHandler               = gov.ProposalHandler
	NewQueryProposalParams        = gov.NewQueryProposalParams
	NewQueryDepositParams         = gov.NewQueryDepositParams
	NewQueryVoteParams            = gov.NewQueryVoteParams
	NewQueryProposalsParams       = gov.NewQueryProposalsParams
	NewVote                       = gov.NewVote
	VoteOptionFromString          = gov.VoteOptionFromString
	ValidVoteOption               = gov.ValidVoteOption
	NewKeeper                     = gov.NewKeeper
	NewRouter                     = gov.NewRouter
	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, 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) 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) QuerierRoute

func (am AppModule) QuerierRoute() string

QuerierRoute returns the gov module's querier route name.

func (AppModule) RegisterInvariants

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

RegisterInvariants performs a no-op.

func (AppModule) Route

func (am AppModule) Route() string

Route returns the message routing key for the gov module.

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 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 SoftwareUpgradeProposal

type SoftwareUpgradeProposal = gov.SoftwareUpgradeProposal

type TallyParams

type TallyParams = gov.TallyParams

type TallyResult

type TallyResult = gov.TallyResult

type TextProposal

type TextProposal = gov.TextProposal

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