Merge PR #5102: Make events const and alias them (if internal)

This commit is contained in:
Alexander Bezobchuk 2019-09-25 09:17:02 -07:00 committed by GitHub
parent 906dcdb733
commit 9d0bed8f4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 29 additions and 8 deletions

View File

@ -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 (

View File

@ -1,7 +1,7 @@
package types
// Bank module event types
var (
// bank module event types
const (
EventTypeTransfer = "transfer"
AttributeKeyRecipient = "recipient"

View File

@ -14,6 +14,10 @@ const (
CodeInvalidInput = types.CodeInvalidInput
ModuleName = types.ModuleName
DefaultParamspace = types.DefaultParamspace
EventTypeInvariant = types.EventTypeInvariant
AttributeValueCrisis = types.AttributeValueCrisis
AttributeKeyRoute = types.AttributeKeyRoute
)
var (

View File

@ -1,7 +1,7 @@
package types
// Crisis module event types
var (
// crisis module event types
const (
EventTypeInvariant = "invariant"
AttributeValueCrisis = ModuleName

View File

@ -1,7 +1,7 @@
package types
// Distribution module event types
var (
// distribution module event types
const (
EventTypeSetWithdrawAddress = "set_withdraw_address"
EventTypeRewards = "rewards"
EventTypeCommission = "commission"

View File

@ -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 (

View File

@ -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"