staking

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: Apache-2.0 Imports: 15 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/staking/internal/types/

nolint

Index

Constants

View Source
const (
	DefaultParamspace                  = staking.DefaultParamspace
	DefaultCodespace                   = staking.DefaultCodespace
	CodeInvalidValidator               = staking.CodeInvalidValidator
	CodeInvalidDelegation              = staking.CodeInvalidDelegation
	CodeInvalidInput                   = staking.CodeInvalidInput
	CodeValidatorJailed                = staking.CodeValidatorJailed
	CodeInvalidAddress                 = staking.CodeInvalidAddress
	CodeUnauthorized                   = staking.CodeUnauthorized
	CodeInternal                       = staking.CodeInternal
	CodeUnknownRequest                 = staking.CodeUnknownRequest
	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

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

	// variable aliases
	ModuleCdc = types.ModuleCdc
)
View Source
var (
	// functions aliases
	RegisterInvariants                 = staking.RegisterInvariants
	AllInvariants                      = staking.AllInvariants
	ModuleAccountInvariants            = staking.ModuleAccountInvariants
	NonNegativePowerInvariant          = staking.NonNegativePowerInvariant
	PositiveDelegationInvariant        = staking.PositiveDelegationInvariant
	DelegatorSharesInvariant           = staking.DelegatorSharesInvariant
	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
	ErrNilValidatorAddr                = staking.ErrNilValidatorAddr
	ErrBadValidatorAddr                = staking.ErrBadValidatorAddr
	ErrNoValidatorFound                = staking.ErrNoValidatorFound
	ErrValidatorOwnerExists            = staking.ErrValidatorOwnerExists
	ErrValidatorPubKeyExists           = staking.ErrValidatorPubKeyExists
	ErrValidatorPubKeyTypeNotSupported = staking.ErrValidatorPubKeyTypeNotSupported
	ErrValidatorJailed                 = staking.ErrValidatorJailed
	ErrBadRemoveValidator              = staking.ErrBadRemoveValidator
	ErrDescriptionLength               = staking.ErrDescriptionLength
	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
	ErrNilDelegatorAddr                = staking.ErrNilDelegatorAddr
	ErrBadDenom                        = staking.ErrBadDenom
	ErrBadDelegationAddr               = staking.ErrBadDelegationAddr
	ErrBadDelegationAmount             = staking.ErrBadDelegationAmount
	ErrNoDelegation                    = staking.ErrNoDelegation
	ErrBadDelegatorAddr                = staking.ErrBadDelegatorAddr
	ErrNoDelegatorForAddress           = staking.ErrNoDelegatorForAddress
	ErrInsufficientShares              = staking.ErrInsufficientShares
	ErrDelegationValidatorEmpty        = staking.ErrDelegationValidatorEmpty
	ErrNotEnoughDelegationShares       = staking.ErrNotEnoughDelegationShares
	ErrBadSharesAmount                 = staking.ErrBadSharesAmount
	ErrBadSharesPercent                = staking.ErrBadSharesPercent
	ErrNotMature                       = staking.ErrNotMature
	ErrNoUnbondingDelegation           = staking.ErrNoUnbondingDelegation
	ErrMaxUnbondingDelegationEntries   = staking.ErrMaxUnbondingDelegationEntries
	ErrBadRedelegationAddr             = staking.ErrBadRedelegationAddr
	ErrNoRedelegation                  = staking.ErrNoRedelegation
	ErrSelfRedelegation                = staking.ErrSelfRedelegation
	ErrVerySmallRedelegation           = staking.ErrVerySmallRedelegation
	ErrBadRedelegationDst              = staking.ErrBadRedelegationDst
	ErrTransitiveRedelegation          = staking.ErrTransitiveRedelegation
	ErrMaxRedelegationEntries          = staking.ErrMaxRedelegationEntries
	ErrDelegatorShareExRateInvalid     = staking.ErrDelegatorShareExRateInvalid
	ErrBothShareMsgsGiven              = staking.ErrBothShareMsgsGiven
	ErrNeitherShareMsgsGiven           = staking.ErrNeitherShareMsgsGiven
	ErrMissingSignature                = staking.ErrMissingSignature
	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
	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, distrKeeper types.DistributionKeeper, 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) 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) Name added in v0.3.0

func (am AppModule) Name() string

Name returns the staking module's name.

func (AppModule) NewHandler added in v0.3.0

func (am AppModule) NewHandler() sdk.Handler

NewHandler returns an sdk.Handler for the staking module.

func (AppModule) NewQuerierHandler added in v0.3.0

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler returns the staking module sdk.Querier.

func (AppModule) QuerierRoute added in v0.3.0

func (am AppModule) QuerierRoute() string

QuerierRoute returns the staking module's querier route name.

func (AppModule) RegisterInvariants added in v0.3.0

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

RegisterInvariants registers the staking module invariants.

func (AppModule) Route added in v0.3.0

func (am AppModule) Route() string

Route returns the message routing key for the staking module.

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 CodeType added in v0.3.0

type CodeType = staking.CodeType

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 CosmosAppModule = staking.AppModule

type CosmosAppModuleBasic added in v0.3.0

type CosmosAppModuleBasic = staking.AppModuleBasic

type DVPair added in v0.3.0

type DVPair = staking.DVPair

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 Keeper added in v0.3.0

type Keeper = staking.Keeper

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 Params added in v0.3.0

type Params = staking.Params

type Pool added in v0.3.0

type Pool = staking.Pool

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 Validator added in v0.3.0

type Validator = staking.Validator

type ValidatorI added in v0.3.0

type ValidatorI = staking.ValidatorI

type Validators added in v0.3.0

type Validators = staking.Validators

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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