2019-06-05 16:26:17 -07:00
|
|
|
// nolint
|
|
|
|
// autogenerated code using github.com/rigelrozanski/multitool
|
|
|
|
// aliases generated for the following subdirectories:
|
2019-07-19 06:43:38 -07:00
|
|
|
// ALIASGEN: github.com/cosmos/cosmos-sdk/x/slashing/internal/keeper
|
|
|
|
// ALIASGEN: github.com/cosmos/cosmos-sdk/x/slashing/internal/types
|
2019-06-05 16:26:17 -07:00
|
|
|
package slashing
|
|
|
|
|
|
|
|
import (
|
2019-07-19 06:43:38 -07:00
|
|
|
"github.com/cosmos/cosmos-sdk/x/slashing/internal/keeper"
|
|
|
|
"github.com/cosmos/cosmos-sdk/x/slashing/internal/types"
|
2019-06-05 16:26:17 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
DefaultCodespace = types.DefaultCodespace
|
|
|
|
CodeInvalidValidator = types.CodeInvalidValidator
|
|
|
|
CodeValidatorJailed = types.CodeValidatorJailed
|
|
|
|
CodeValidatorNotJailed = types.CodeValidatorNotJailed
|
|
|
|
CodeMissingSelfDelegation = types.CodeMissingSelfDelegation
|
|
|
|
CodeSelfDelegationTooLow = types.CodeSelfDelegationTooLow
|
|
|
|
CodeMissingSigningInfo = types.CodeMissingSigningInfo
|
|
|
|
ModuleName = types.ModuleName
|
|
|
|
StoreKey = types.StoreKey
|
|
|
|
RouterKey = types.RouterKey
|
|
|
|
QuerierRoute = types.QuerierRoute
|
|
|
|
DefaultParamspace = types.DefaultParamspace
|
|
|
|
DefaultSignedBlocksWindow = types.DefaultSignedBlocksWindow
|
|
|
|
DefaultDowntimeJailDuration = types.DefaultDowntimeJailDuration
|
2019-07-19 06:43:38 -07:00
|
|
|
QueryParameters = types.QueryParameters
|
|
|
|
QuerySigningInfo = types.QuerySigningInfo
|
|
|
|
QuerySigningInfos = types.QuerySigningInfos
|
2019-09-25 09:17:02 -07:00
|
|
|
|
|
|
|
EventTypeSlash = types.EventTypeSlash
|
|
|
|
EventTypeLiveness = types.EventTypeLiveness
|
|
|
|
AttributeKeyAddress = types.AttributeKeyAddress
|
|
|
|
AttributeKeyHeight = types.AttributeKeyHeight
|
|
|
|
AttributeKeyPower = types.AttributeKeyPower
|
|
|
|
AttributeKeyReason = types.AttributeKeyReason
|
|
|
|
AttributeKeyJailed = types.AttributeKeyJailed
|
|
|
|
AttributeKeyMissedBlocks = types.AttributeKeyMissedBlocks
|
|
|
|
AttributeValueDoubleSign = types.AttributeValueDoubleSign
|
|
|
|
AttributeValueMissingSignature = types.AttributeValueMissingSignature
|
|
|
|
AttributeValueCategory = types.AttributeValueCategory
|
2019-06-05 16:26:17 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
// functions aliases
|
2019-07-19 06:43:38 -07:00
|
|
|
NewKeeper = keeper.NewKeeper
|
|
|
|
NewQuerier = keeper.NewQuerier
|
2019-06-05 16:26:17 -07:00
|
|
|
RegisterCodec = types.RegisterCodec
|
|
|
|
ErrNoValidatorForAddress = types.ErrNoValidatorForAddress
|
|
|
|
ErrBadValidatorAddr = types.ErrBadValidatorAddr
|
|
|
|
ErrValidatorJailed = types.ErrValidatorJailed
|
|
|
|
ErrValidatorNotJailed = types.ErrValidatorNotJailed
|
|
|
|
ErrMissingSelfDelegation = types.ErrMissingSelfDelegation
|
|
|
|
ErrSelfDelegationTooLowToUnjail = types.ErrSelfDelegationTooLowToUnjail
|
|
|
|
ErrNoSigningInfoFound = types.ErrNoSigningInfoFound
|
|
|
|
NewGenesisState = types.NewGenesisState
|
2019-07-19 06:43:38 -07:00
|
|
|
NewMissedBlock = types.NewMissedBlock
|
2019-06-05 16:26:17 -07:00
|
|
|
DefaultGenesisState = types.DefaultGenesisState
|
|
|
|
ValidateGenesis = types.ValidateGenesis
|
|
|
|
GetValidatorSigningInfoKey = types.GetValidatorSigningInfoKey
|
|
|
|
GetValidatorSigningInfoAddress = types.GetValidatorSigningInfoAddress
|
|
|
|
GetValidatorMissedBlockBitArrayPrefixKey = types.GetValidatorMissedBlockBitArrayPrefixKey
|
|
|
|
GetValidatorMissedBlockBitArrayKey = types.GetValidatorMissedBlockBitArrayKey
|
|
|
|
GetAddrPubkeyRelationKey = types.GetAddrPubkeyRelationKey
|
|
|
|
NewMsgUnjail = types.NewMsgUnjail
|
|
|
|
ParamKeyTable = types.ParamKeyTable
|
|
|
|
NewParams = types.NewParams
|
|
|
|
DefaultParams = types.DefaultParams
|
|
|
|
NewQuerySigningInfoParams = types.NewQuerySigningInfoParams
|
|
|
|
NewQuerySigningInfosParams = types.NewQuerySigningInfosParams
|
|
|
|
NewValidatorSigningInfo = types.NewValidatorSigningInfo
|
|
|
|
|
|
|
|
// variable aliases
|
|
|
|
ModuleCdc = types.ModuleCdc
|
|
|
|
ValidatorSigningInfoKey = types.ValidatorSigningInfoKey
|
|
|
|
ValidatorMissedBlockBitArrayKey = types.ValidatorMissedBlockBitArrayKey
|
|
|
|
AddrPubkeyRelationKey = types.AddrPubkeyRelationKey
|
|
|
|
DefaultMinSignedPerWindow = types.DefaultMinSignedPerWindow
|
|
|
|
DefaultSlashFractionDoubleSign = types.DefaultSlashFractionDoubleSign
|
|
|
|
DefaultSlashFractionDowntime = types.DefaultSlashFractionDowntime
|
|
|
|
KeySignedBlocksWindow = types.KeySignedBlocksWindow
|
|
|
|
KeyMinSignedPerWindow = types.KeyMinSignedPerWindow
|
|
|
|
KeyDowntimeJailDuration = types.KeyDowntimeJailDuration
|
|
|
|
KeySlashFractionDoubleSign = types.KeySlashFractionDoubleSign
|
|
|
|
KeySlashFractionDowntime = types.KeySlashFractionDowntime
|
|
|
|
)
|
|
|
|
|
|
|
|
type (
|
2019-07-19 06:43:38 -07:00
|
|
|
Hooks = keeper.Hooks
|
|
|
|
Keeper = keeper.Keeper
|
2019-06-05 16:26:17 -07:00
|
|
|
CodeType = types.CodeType
|
|
|
|
GenesisState = types.GenesisState
|
|
|
|
MissedBlock = types.MissedBlock
|
|
|
|
MsgUnjail = types.MsgUnjail
|
|
|
|
Params = types.Params
|
|
|
|
QuerySigningInfoParams = types.QuerySigningInfoParams
|
|
|
|
QuerySigningInfosParams = types.QuerySigningInfosParams
|
|
|
|
ValidatorSigningInfo = types.ValidatorSigningInfo
|
|
|
|
)
|