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 RouterKey = types.RouterKey
DefaultParamspace = types.DefaultParamspace DefaultParamspace = types.DefaultParamspace
DefaultSendEnabled = types.DefaultSendEnabled DefaultSendEnabled = types.DefaultSendEnabled
EventTypeTransfer = types.EventTypeTransfer
AttributeKeyRecipient = types.AttributeKeyRecipient
AttributeKeySender = types.AttributeKeySender
AttributeValueCategory = types.AttributeValueCategory
) )
var ( var (

View File

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

View File

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

View File

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

View File

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

View File

@ -29,6 +29,18 @@ const (
QueryParameters = types.QueryParameters QueryParameters = types.QueryParameters
QuerySigningInfo = types.QuerySigningInfo QuerySigningInfo = types.QuerySigningInfo
QuerySigningInfos = types.QuerySigningInfos 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 ( var (

View File

@ -1,7 +1,7 @@
package types package types
// Staking module event types // staking module event types
var ( const (
EventTypeCompleteUnbonding = "complete_unbonding" EventTypeCompleteUnbonding = "complete_unbonding"
EventTypeCompleteRedelegation = "complete_redelegation" EventTypeCompleteRedelegation = "complete_redelegation"
EventTypeCreateValidator = "create_validator" EventTypeCreateValidator = "create_validator"