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
|
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 (
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue