github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/slashing/alias.go (about) 1 package slashing 2 3 // nolint 4 5 import ( 6 "github.com/fibonacci-chain/fbc/x/slashing/internal/keeper" 7 "github.com/fibonacci-chain/fbc/x/slashing/internal/types" 8 ) 9 10 const ( 11 ModuleName = types.ModuleName 12 StoreKey = types.StoreKey 13 RouterKey = types.RouterKey 14 QuerierRoute = types.QuerierRoute 15 DefaultParamspace = types.DefaultParamspace 16 DefaultSignedBlocksWindow = types.DefaultSignedBlocksWindow 17 DefaultDowntimeJailDuration = types.DefaultDowntimeJailDuration 18 QueryParameters = types.QueryParameters 19 QuerySigningInfo = types.QuerySigningInfo 20 QuerySigningInfos = types.QuerySigningInfos 21 22 EventTypeSlash = types.EventTypeSlash 23 EventTypeLiveness = types.EventTypeLiveness 24 AttributeKeyAddress = types.AttributeKeyAddress 25 AttributeKeyHeight = types.AttributeKeyHeight 26 AttributeKeyPower = types.AttributeKeyPower 27 AttributeKeyReason = types.AttributeKeyReason 28 AttributeKeyJailed = types.AttributeKeyJailed 29 AttributeKeyMissedBlocks = types.AttributeKeyMissedBlocks 30 AttributeValueDoubleSign = types.AttributeValueDoubleSign 31 AttributeValueMissingSignature = types.AttributeValueMissingSignature 32 AttributeValueCategory = types.AttributeValueCategory 33 ) 34 35 var ( 36 // functions aliases 37 NewKeeper = keeper.NewKeeper 38 NewQuerier = keeper.NewQuerier 39 RegisterCodec = types.RegisterCodec 40 ErrNoValidatorForAddress = types.ErrNoValidatorForAddress 41 ErrBadValidatorAddr = types.ErrBadValidatorAddr 42 ErrValidatorJailed = types.ErrValidatorJailed 43 ErrValidatorNotJailed = types.ErrValidatorNotJailed 44 ErrMissingSelfDelegation = types.ErrMissingSelfDelegation 45 ErrSelfDelegationTooLowToUnjail = types.ErrSelfDelegationTooLowToUnjail 46 ErrNoSigningInfoFound = types.ErrNoSigningInfoFound 47 NewGenesisState = types.NewGenesisState 48 NewMissedBlock = types.NewMissedBlock 49 DefaultGenesisState = types.DefaultGenesisState 50 ValidateGenesis = types.ValidateGenesis 51 GetValidatorSigningInfoKey = types.GetValidatorSigningInfoKey 52 GetValidatorSigningInfoAddress = types.GetValidatorSigningInfoAddress 53 GetValidatorMissedBlockBitArrayPrefixKey = types.GetValidatorMissedBlockBitArrayPrefixKey 54 GetValidatorMissedBlockBitArrayKey = types.GetValidatorMissedBlockBitArrayKey 55 GetAddrPubkeyRelationKey = types.GetAddrPubkeyRelationKey 56 NewMsgUnjail = types.NewMsgUnjail 57 ParamKeyTable = types.ParamKeyTable 58 NewParams = types.NewParams 59 DefaultParams = types.DefaultParams 60 NewQuerySigningInfoParams = types.NewQuerySigningInfoParams 61 NewQuerySigningInfosParams = types.NewQuerySigningInfosParams 62 NewValidatorSigningInfo = types.NewValidatorSigningInfo 63 64 // variable aliases 65 ModuleCdc = types.ModuleCdc 66 ValidatorSigningInfoKey = types.ValidatorSigningInfoKey 67 ValidatorMissedBlockBitArrayKey = types.ValidatorMissedBlockBitArrayKey 68 AddrPubkeyRelationKey = types.AddrPubkeyRelationKey 69 DefaultMinSignedPerWindow = types.DefaultMinSignedPerWindow 70 DefaultSlashFractionDoubleSign = types.DefaultSlashFractionDoubleSign 71 DefaultSlashFractionDowntime = types.DefaultSlashFractionDowntime 72 KeySignedBlocksWindow = types.KeySignedBlocksWindow 73 KeyMinSignedPerWindow = types.KeyMinSignedPerWindow 74 KeyDowntimeJailDuration = types.KeyDowntimeJailDuration 75 KeySlashFractionDoubleSign = types.KeySlashFractionDoubleSign 76 KeySlashFractionDowntime = types.KeySlashFractionDowntime 77 ) 78 79 type ( 80 Hooks = keeper.Hooks 81 Keeper = keeper.Keeper 82 GenesisState = types.GenesisState 83 MissedBlock = types.MissedBlock 84 MsgUnjail = types.MsgUnjail 85 Params = types.Params 86 QuerySigningInfoParams = types.QuerySigningInfoParams 87 QuerySigningInfosParams = types.QuerySigningInfosParams 88 ValidatorSigningInfo = types.ValidatorSigningInfo 89 )