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
- Variables
- type AppModule
- func (am AppModule) BeginBlock(ctx sdk.Context, rbb abci.RequestBeginBlock)
- func (am AppModule) EndBlock(ctx sdk.Context, rbb abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (am AppModule) Name() string
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (am AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (am AppModule) Route() string
- type AppModuleBasic
- func (am AppModuleBasic) DefaultGenesis() json.RawMessage
- func (am AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (am AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (am AppModuleBasic) Name() string
- func (am AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (am AppModuleBasic) RegisterRESTRoutes(cliCtx context.CLIContext, route *mux.Router)
- func (am AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type Content
- type CosmosAppModule
- type CosmosAppModuleBasic
- type Deposit
- type DepositParams
- type Deposits
- type Handler
- type Keeper
- type MsgDeposit
- type MsgSubmitProposal
- type MsgVote
- type Params
- type Proposal
- type ProposalQueue
- type ProposalStatus
- type Proposals
- type QueryDepositParams
- type QueryProposalParams
- type QueryProposalsParams
- type QueryVoteParams
- type SoftwareUpgradeProposal
- type TallyParams
- type TallyResult
- type TextProposal
- type Vote
- type VoteOption
- type Votes
- type VotingParams
Constants ¶
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 ¶
var ( // functions aliases RegisterCodec = types.RegisterCodec RegisterProposalTypeCodec = types.RegisterProposalTypeCodec // variable aliases ModuleCdc = types.ModuleCdc )
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) NewHandler ¶
NewHandler returns an sdk.Handler for the gov module.
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler returns the gov module sdk.Querier.
func (AppModule) QuerierRoute ¶
QuerierRoute returns the gov module's querier route name.
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants performs a no-op.
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 CosmosAppModule ¶
type CosmosAppModuleBasic ¶
type CosmosAppModuleBasic = gov.AppModuleBasic
type DepositParams ¶
type DepositParams = gov.DepositParams
type MsgDeposit ¶
type MsgDeposit = gov.MsgDeposit
type MsgSubmitProposal ¶
type MsgSubmitProposal = gov.MsgSubmitProposal
type ProposalQueue ¶
type ProposalQueue = gov.ProposalQueue
type ProposalStatus ¶
type ProposalStatus = gov.ProposalStatus
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 VoteOption ¶
type VoteOption = gov.VoteOption
type VotingParams ¶
type VotingParams = gov.VotingParams