Documentation ¶
Overview ¶
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/terra-project/core/x/staking/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) GenerateGenesisState(simState *module.SimulationState)
- 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) ProposalContents(simState module.SimulationState) []sim.WeightedProposalContent
- func (am AppModule) QuerierRoute() string
- func (am AppModule) RandomizedParams(r *rand.Rand) []sim.ParamChange
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
- func (am AppModule) Route() string
- func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation
- type AppModuleBasic
- func (AppModuleBasic) BuildCreateValidatorMsg(cliCtx context.CLIContext, txBldr authtypes.TxBuilder) (authtypes.TxBuilder, sdk.Msg, error)
- func (AppModuleBasic) CreateValidatorMsgHelpers(ipDefault string) (fs *flag.FlagSet, nodeIDFlag, pubkeyFlag, amountFlag, defaultsDesc string)
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) PrepareFlagsForTxCreateValidator(config *cfg.Config, nodeID, chainID string, valPubKey crypto.PubKey)
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(cliCtx context.CLIContext, route *mux.Router)
- func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type Commission
- type CommissionRates
- type CosmosAppModule
- type CosmosAppModuleBasic
- type DVPair
- type DVVTriplet
- type Delegation
- type DelegationI
- type DelegationResponse
- type DelegationResponses
- type Delegations
- type Description
- type GenesisState
- type Keeper
- type LastValidatorPower
- type MsgBeginRedelegate
- type MsgCreateValidator
- type MsgDelegate
- type MsgEditValidator
- type MsgUndelegate
- type MultiStakingHooks
- type Params
- type Pool
- type QueryBondsParams
- type QueryDelegatorParams
- type QueryRedelegationParams
- type QueryValidatorParams
- type QueryValidatorsParams
- type Redelegation
- type RedelegationEntry
- type RedelegationEntryResponse
- type RedelegationResponse
- type RedelegationResponses
- type Redelegations
- type UnbondingDelegation
- type UnbondingDelegationEntry
- type UnbondingDelegations
- type Validator
- type ValidatorI
- type Validators
Constants ¶
const ( DefaultParamspace = staking.DefaultParamspace ModuleName = staking.ModuleName StoreKey = staking.StoreKey TStoreKey = staking.TStoreKey QuerierRoute = staking.QuerierRoute RouterKey = staking.RouterKey DefaultUnbondingTime = staking.DefaultUnbondingTime DefaultMaxValidators = staking.DefaultMaxValidators DefaultMaxEntries = staking.DefaultMaxEntries NotBondedPoolName = staking.NotBondedPoolName BondedPoolName = staking.BondedPoolName QueryValidators = staking.QueryValidators QueryValidator = staking.QueryValidator QueryDelegatorDelegations = staking.QueryDelegatorDelegations QueryDelegatorUnbondingDelegations = staking.QueryDelegatorUnbondingDelegations QueryRedelegations = staking.QueryRedelegations QueryValidatorDelegations = staking.QueryValidatorDelegations QueryValidatorRedelegations = staking.QueryValidatorRedelegations QueryValidatorUnbondingDelegations = staking.QueryValidatorUnbondingDelegations QueryDelegation = staking.QueryDelegation QueryUnbondingDelegation = staking.QueryUnbondingDelegation QueryDelegatorValidators = staking.QueryDelegatorValidators QueryDelegatorValidator = staking.QueryDelegatorValidator QueryPool = staking.QueryPool QueryParameters = staking.QueryParameters MaxMonikerLength = staking.MaxMonikerLength MaxIdentityLength = staking.MaxIdentityLength MaxWebsiteLength = staking.MaxWebsiteLength MaxDetailsLength = staking.MaxDetailsLength DoNotModifyDesc = staking.DoNotModifyDesc )
Variables ¶
var ( // functions aliases RegisterCodec = types.RegisterCodec // variable aliases ModuleCdc = types.ModuleCdc )
var ( // functions aliases RegisterInvariants = staking.RegisterInvariants AllInvariants = staking.AllInvariants ModuleAccountInvariants = staking.ModuleAccountInvariants NonNegativePowerInvariant = staking.NonNegativePowerInvariant PositiveDelegationInvariant = staking.PositiveDelegationInvariant NewKeeper = staking.NewKeeper ParamKeyTable = staking.ParamKeyTable NewQuerier = staking.NewQuerier NewCommissionRates = staking.NewCommissionRates NewCommission = staking.NewCommission NewCommissionWithTime = staking.NewCommissionWithTime NewDelegation = staking.NewDelegation MustMarshalDelegation = staking.MustMarshalDelegation MustUnmarshalDelegation = staking.MustUnmarshalDelegation UnmarshalDelegation = staking.UnmarshalDelegation NewUnbondingDelegation = staking.NewUnbondingDelegation NewUnbondingDelegationEntry = staking.NewUnbondingDelegationEntry MustMarshalUBD = staking.MustMarshalUBD MustUnmarshalUBD = staking.MustUnmarshalUBD UnmarshalUBD = staking.UnmarshalUBD NewRedelegation = staking.NewRedelegation NewRedelegationEntry = staking.NewRedelegationEntry MustMarshalRED = staking.MustMarshalRED MustUnmarshalRED = staking.MustUnmarshalRED UnmarshalRED = staking.UnmarshalRED NewDelegationResp = staking.NewDelegationResp NewRedelegationResponse = staking.NewRedelegationResponse NewRedelegationEntryResponse = staking.NewRedelegationEntryResponse ErrEmptyValidatorAddr = staking.ErrEmptyValidatorAddr ErrBadValidatorAddr = staking.ErrBadValidatorAddr ErrNoValidatorFound = staking.ErrNoValidatorFound ErrValidatorOwnerExists = staking.ErrValidatorOwnerExists ErrValidatorPubKeyExists = staking.ErrValidatorPubKeyExists ErrValidatorPubKeyTypeNotSupported = staking.ErrValidatorPubKeyTypeNotSupported ErrValidatorJailed = staking.ErrValidatorJailed ErrBadRemoveValidator = staking.ErrBadRemoveValidator ErrCommissionNegative = staking.ErrCommissionNegative ErrCommissionHuge = staking.ErrCommissionHuge ErrCommissionGTMaxRate = staking.ErrCommissionGTMaxRate ErrCommissionUpdateTime = staking.ErrCommissionUpdateTime ErrCommissionChangeRateNegative = staking.ErrCommissionChangeRateNegative ErrCommissionChangeRateGTMaxRate = staking.ErrCommissionChangeRateGTMaxRate ErrCommissionGTMaxChangeRate = staking.ErrCommissionGTMaxChangeRate ErrSelfDelegationBelowMinimum = staking.ErrSelfDelegationBelowMinimum ErrMinSelfDelegationInvalid = staking.ErrMinSelfDelegationInvalid ErrMinSelfDelegationDecreased = staking.ErrMinSelfDelegationDecreased ErrEmptyDelegatorAddr = staking.ErrEmptyDelegatorAddr ErrBadDenom = staking.ErrBadDenom ErrBadDelegationAddr = staking.ErrBadDelegationAddr ErrBadDelegationAmount = staking.ErrBadDelegationAmount ErrNoDelegation = staking.ErrNoDelegation ErrBadDelegatorAddr = staking.ErrBadDelegatorAddr ErrNoDelegatorForAddress = staking.ErrNoDelegatorForAddress ErrDelegationValidatorEmpty = staking.ErrDelegationValidatorEmpty ErrNotMature = staking.ErrNotMature ErrNoUnbondingDelegation = staking.ErrNoUnbondingDelegation ErrMaxUnbondingDelegationEntries = staking.ErrMaxUnbondingDelegationEntries ErrBadRedelegationAddr = staking.ErrBadRedelegationAddr ErrNoRedelegation = staking.ErrNoRedelegation ErrSelfRedelegation = staking.ErrSelfRedelegation ErrTinyRedelegationAmount = staking.ErrTinyRedelegationAmount ErrBadRedelegationDst = staking.ErrBadRedelegationDst ErrTransitiveRedelegation = staking.ErrTransitiveRedelegation ErrMaxRedelegationEntries = staking.ErrMaxRedelegationEntries ErrInvalidHistoricalInfo = staking.ErrInvalidHistoricalInfo ErrNoHistoricalInfo = staking.ErrNoHistoricalInfo NewGenesisState = staking.NewGenesisState DefaultGenesisState = staking.DefaultGenesisState NewMultiStakingHooks = staking.NewMultiStakingHooks GetValidatorKey = staking.GetValidatorKey GetValidatorByConsAddrKey = staking.GetValidatorByConsAddrKey AddressFromLastValidatorPowerKey = staking.AddressFromLastValidatorPowerKey GetValidatorsByPowerIndexKey = staking.GetValidatorsByPowerIndexKey GetLastValidatorPowerKey = staking.GetLastValidatorPowerKey ParseValidatorPowerRankKey = staking.ParseValidatorPowerRankKey GetValidatorQueueTimeKey = staking.GetValidatorQueueTimeKey GetDelegationKey = staking.GetDelegationKey GetDelegationsKey = staking.GetDelegationsKey GetUBDKey = staking.GetUBDKey GetUBDByValIndexKey = staking.GetUBDByValIndexKey GetUBDKeyFromValIndexKey = staking.GetUBDKeyFromValIndexKey GetUBDsKey = staking.GetUBDsKey GetUBDsByValIndexKey = staking.GetUBDsByValIndexKey GetUnbondingDelegationTimeKey = staking.GetUnbondingDelegationTimeKey GetREDKey = staking.GetREDKey GetREDByValSrcIndexKey = staking.GetREDByValSrcIndexKey GetREDByValDstIndexKey = staking.GetREDByValDstIndexKey GetREDKeyFromValSrcIndexKey = staking.GetREDKeyFromValSrcIndexKey GetREDKeyFromValDstIndexKey = staking.GetREDKeyFromValDstIndexKey GetRedelegationTimeKey = staking.GetRedelegationTimeKey GetREDsKey = staking.GetREDsKey GetREDsFromValSrcIndexKey = staking.GetREDsFromValSrcIndexKey GetREDsToValDstIndexKey = staking.GetREDsToValDstIndexKey GetREDsByDelToValDstIndexKey = staking.GetREDsByDelToValDstIndexKey NewMsgCreateValidator = staking.NewMsgCreateValidator NewMsgEditValidator = staking.NewMsgEditValidator NewMsgDelegate = staking.NewMsgDelegate NewMsgBeginRedelegate = staking.NewMsgBeginRedelegate NewMsgUndelegate = staking.NewMsgUndelegate NewParams = staking.NewParams DefaultParams = staking.DefaultParams MustUnmarshalParams = staking.MustUnmarshalParams UnmarshalParams = staking.UnmarshalParams NewPool = staking.NewPool NewQueryDelegatorParams = staking.NewQueryDelegatorParams NewQueryValidatorParams = staking.NewQueryValidatorParams NewQueryBondsParams = staking.NewQueryBondsParams NewQueryRedelegationParams = staking.NewQueryRedelegationParams NewQueryValidatorsParams = staking.NewQueryValidatorsParams NewQueryHistoricalInfoParams = staking.NewQueryHistoricalInfoParams NewValidator = staking.NewValidator MustMarshalValidator = staking.MustMarshalValidator MustUnmarshalValidator = staking.MustUnmarshalValidator UnmarshalValidator = staking.UnmarshalValidator NewDescription = staking.NewDescription WriteValidators = staking.WriteValidators NewCosmosAppModule = staking.NewAppModule // variable aliases CosmosModuleCdc = staking.ModuleCdc LastValidatorPowerKey = staking.LastValidatorPowerKey LastTotalPowerKey = staking.LastTotalPowerKey ValidatorsKey = staking.ValidatorsKey ValidatorsByConsAddrKey = staking.ValidatorsByConsAddrKey ValidatorsByPowerIndexKey = staking.ValidatorsByPowerIndexKey DelegationKey = staking.DelegationKey UnbondingDelegationKey = staking.UnbondingDelegationKey UnbondingDelegationByValIndexKey = staking.UnbondingDelegationByValIndexKey RedelegationKey = staking.RedelegationKey RedelegationByValSrcIndexKey = staking.RedelegationByValSrcIndexKey RedelegationByValDstIndexKey = staking.RedelegationByValDstIndexKey UnbondingQueueKey = staking.UnbondingQueueKey RedelegationQueueKey = staking.RedelegationQueueKey ValidatorQueueKey = staking.ValidatorQueueKey KeyUnbondingTime = staking.KeyUnbondingTime KeyMaxValidators = staking.KeyMaxValidators KeyMaxEntries = staking.KeyMaxEntries KeyBondDenom = staking.KeyBondDenom )
Functions ¶
This section is empty.
Types ¶
type AppModule ¶ added in v0.3.0
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule implements an application module for the staking module.
func NewAppModule ¶ added in v0.3.0
func NewAppModule(keeper Keeper, accKeeper types.AccountKeeper, supplyKeeper types.SupplyKeeper) AppModule
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶ added in v0.3.0
func (am AppModule) BeginBlock(ctx sdk.Context, rbb abci.RequestBeginBlock)
BeginBlock returns the begin blocker for the staking module.
func (AppModule) EndBlock ¶ added in v0.3.0
func (am AppModule) EndBlock(ctx sdk.Context, rbb abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock returns the end blocker for the staking module.
func (AppModule) ExportGenesis ¶ added in v0.3.0
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
ExportGenesis returns the exported genesis state as raw bytes for the staking 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 ¶ added in v0.3.0
func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis performs genesis initialization for the staking module. It returns validator updates.
func (AppModule) NewHandler ¶ added in v0.3.0
NewHandler returns an sdk.Handler for the staking module.
func (AppModule) NewQuerierHandler ¶ added in v0.3.0
NewQuerierHandler returns the staking 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 ¶ added in v0.3.0
QuerierRoute returns the staking 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 ¶ added in v0.3.0
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants registers the staking module invariants.
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 ¶ added in v0.3.0
Route returns the message routing key for the staking 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 ¶ added in v0.3.0
type AppModuleBasic struct{}
AppModuleBasic defines the basic application module used by the staking module.
func (AppModuleBasic) BuildCreateValidatorMsg ¶ added in v0.3.0
func (AppModuleBasic) BuildCreateValidatorMsg(cliCtx context.CLIContext, txBldr authtypes.TxBuilder) (authtypes.TxBuilder, sdk.Msg, error)
BuildCreateValidatorMsg - used for gen-tx
func (AppModuleBasic) CreateValidatorMsgHelpers ¶ added in v0.3.0
func (AppModuleBasic) CreateValidatorMsgHelpers(ipDefault string) ( fs *flag.FlagSet, nodeIDFlag, pubkeyFlag, amountFlag, defaultsDesc string)
CreateValidatorMsgHelpers - used for gen-tx
func (AppModuleBasic) DefaultGenesis ¶ added in v0.3.0
func (AppModuleBasic) DefaultGenesis() json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the staking module.
func (AppModuleBasic) GetQueryCmd ¶ added in v0.3.0
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
GetQueryCmd returns the root query command for the staking module.
func (AppModuleBasic) GetTxCmd ¶ added in v0.3.0
func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
GetTxCmd returns the root tx command for the staking module.
func (AppModuleBasic) Name ¶ added in v0.3.0
func (AppModuleBasic) Name() string
Name returns the staking module's name
func (AppModuleBasic) PrepareFlagsForTxCreateValidator ¶ added in v0.3.0
func (AppModuleBasic) PrepareFlagsForTxCreateValidator(config *cfg.Config, nodeID, chainID string, valPubKey crypto.PubKey)
PrepareFlagsForTxCreateValidator - used for gen-tx
func (AppModuleBasic) RegisterCodec ¶ added in v0.3.0
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
RegisterCodec registers the staking module's types for the given codec.
func (AppModuleBasic) RegisterRESTRoutes ¶ added in v0.3.0
func (AppModuleBasic) RegisterRESTRoutes(cliCtx context.CLIContext, route *mux.Router)
RegisterRESTRoutes registers the REST routes for the staking module.
func (AppModuleBasic) ValidateGenesis ¶ added in v0.3.0
func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
ValidateGenesis performs genesis state validation for the staking module.
type Commission ¶ added in v0.3.0
type Commission = staking.Commission
type CommissionRates ¶ added in v0.3.0
type CommissionRates = staking.CommissionRates
type CosmosAppModule ¶ added in v0.3.0
type CosmosAppModuleBasic ¶ added in v0.3.0
type CosmosAppModuleBasic = staking.AppModuleBasic
type DVVTriplet ¶ added in v0.3.0
type DVVTriplet = staking.DVVTriplet
type Delegation ¶ added in v0.3.0
type Delegation = staking.Delegation
type DelegationI ¶ added in v0.3.0
type DelegationI = staking.DelegationI
type DelegationResponse ¶ added in v0.3.0
type DelegationResponse = staking.DelegationResponse
type DelegationResponses ¶ added in v0.3.0
type DelegationResponses = staking.DelegationResponses
type Delegations ¶ added in v0.3.0
type Delegations = staking.Delegations
type Description ¶ added in v0.3.0
type Description = staking.Description
type GenesisState ¶ added in v0.3.0
type GenesisState = staking.GenesisState
type LastValidatorPower ¶ added in v0.3.0
type LastValidatorPower = staking.LastValidatorPower
type MsgBeginRedelegate ¶ added in v0.3.0
type MsgBeginRedelegate = staking.MsgBeginRedelegate
type MsgCreateValidator ¶ added in v0.3.0
type MsgCreateValidator = staking.MsgCreateValidator
type MsgDelegate ¶ added in v0.3.0
type MsgDelegate = staking.MsgDelegate
type MsgEditValidator ¶ added in v0.3.0
type MsgEditValidator = staking.MsgEditValidator
type MsgUndelegate ¶ added in v0.3.0
type MsgUndelegate = staking.MsgUndelegate
type MultiStakingHooks ¶ added in v0.3.0
type MultiStakingHooks = staking.MultiStakingHooks
type QueryBondsParams ¶ added in v0.3.0
type QueryBondsParams = staking.QueryBondsParams
type QueryDelegatorParams ¶ added in v0.3.0
type QueryDelegatorParams = staking.QueryDelegatorParams
type QueryRedelegationParams ¶ added in v0.3.0
type QueryRedelegationParams = staking.QueryRedelegationParams
type QueryValidatorParams ¶ added in v0.3.0
type QueryValidatorParams = staking.QueryValidatorParams
type QueryValidatorsParams ¶ added in v0.3.0
type QueryValidatorsParams = staking.QueryValidatorsParams
type Redelegation ¶ added in v0.3.0
type Redelegation = staking.Redelegation
type RedelegationEntry ¶ added in v0.3.0
type RedelegationEntry = staking.RedelegationEntry
type RedelegationEntryResponse ¶ added in v0.3.0
type RedelegationEntryResponse = staking.RedelegationEntryResponse
type RedelegationResponse ¶ added in v0.3.0
type RedelegationResponse = staking.RedelegationResponse
type RedelegationResponses ¶ added in v0.3.0
type RedelegationResponses = staking.RedelegationResponses
type Redelegations ¶ added in v0.3.0
type Redelegations = staking.Redelegations
type UnbondingDelegation ¶ added in v0.3.0
type UnbondingDelegation = staking.UnbondingDelegation
type UnbondingDelegationEntry ¶ added in v0.3.0
type UnbondingDelegationEntry = staking.UnbondingDelegationEntry
type UnbondingDelegations ¶ added in v0.3.0
type UnbondingDelegations = staking.UnbondingDelegations
type ValidatorI ¶ added in v0.3.0
type ValidatorI = staking.ValidatorI
type Validators ¶ added in v0.3.0
type Validators = staking.Validators