Merge PR #5102: Make events const and alias them (if internal)
This commit is contained in:
parent
906dcdb733
commit
9d0bed8f4f
|
@ -20,6 +20,11 @@ const (
|
|||
RouterKey = types.RouterKey
|
||||
DefaultParamspace = types.DefaultParamspace
|
||||
DefaultSendEnabled = types.DefaultSendEnabled
|
||||
|
||||
EventTypeTransfer = types.EventTypeTransfer
|
||||
AttributeKeyRecipient = types.AttributeKeyRecipient
|
||||
AttributeKeySender = types.AttributeKeySender
|
||||
AttributeValueCategory = types.AttributeValueCategory
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package types
|
||||
|
||||
// Bank module event types
|
||||
var (
|
||||
// bank module event types
|
||||
const (
|
||||
EventTypeTransfer = "transfer"
|
||||
|
||||
AttributeKeyRecipient = "recipient"
|
||||
|
|
|
@ -14,6 +14,10 @@ const (
|
|||
CodeInvalidInput = types.CodeInvalidInput
|
||||
ModuleName = types.ModuleName
|
||||
DefaultParamspace = types.DefaultParamspace
|
||||
|
||||
EventTypeInvariant = types.EventTypeInvariant
|
||||
AttributeValueCrisis = types.AttributeValueCrisis
|
||||
AttributeKeyRoute = types.AttributeKeyRoute
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package types
|
||||
|
||||
// Crisis module event types
|
||||
var (
|
||||
// crisis module event types
|
||||
const (
|
||||
EventTypeInvariant = "invariant"
|
||||
|
||||
AttributeValueCrisis = ModuleName
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package types
|
||||
|
||||
// Distribution module event types
|
||||
var (
|
||||
// distribution module event types
|
||||
const (
|
||||
EventTypeSetWithdrawAddress = "set_withdraw_address"
|
||||
EventTypeRewards = "rewards"
|
||||
EventTypeCommission = "commission"
|
||||
|
|
|
@ -29,6 +29,18 @@ const (
|
|||
QueryParameters = types.QueryParameters
|
||||
QuerySigningInfo = types.QuerySigningInfo
|
||||
QuerySigningInfos = types.QuerySigningInfos
|
||||
|
||||
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
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package types
|
||||
|
||||
// Staking module event types
|
||||
var (
|
||||
// staking module event types
|
||||
const (
|
||||
EventTypeCompleteUnbonding = "complete_unbonding"
|
||||
EventTypeCompleteRedelegation = "complete_redelegation"
|
||||
EventTypeCreateValidator = "create_validator"
|
||||
|
|
Loading…
Reference in New Issue