Skip to content

Commit

Permalink
Updated alias files
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoM committed Jul 9, 2020
1 parent 7a44549 commit 67b3951
Show file tree
Hide file tree
Showing 7 changed files with 165 additions and 164 deletions.
30 changes: 15 additions & 15 deletions x/magpie/alias.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,45 +11,45 @@ import (
)

const (
ModuleName = types.ModuleName
RouterKey = types.RouterKey
StoreKey = types.StoreKey
ActionCreationSession = types.ActionCreationSession
QuerySessions = keeper.QuerySessions
OpWeightMsgCreatePost = simulation.OpWeightMsgCreatePost
EventTypeCreateSession = types.EventTypeCreateSession
AttributeKeySessionID = types.AttributeKeySessionID
AttributeKeyNamespace = types.AttributeKeyNamespace
AttributeKeyExternalOwner = types.AttributeKeyExternalOwner
AttributeKeyExpiry = types.AttributeKeyExpiry
AttributeValueCategory = types.AttributeValueCategory
QuerySessions = keeper.QuerySessions
OpWeightMsgCreatePost = simulation.OpWeightMsgCreatePost
ModuleName = types.ModuleName
RouterKey = types.RouterKey
StoreKey = types.StoreKey
ActionCreationSession = types.ActionCreationSession
)

var (
// functions aliases
RandomSessionData = simulation.RandomSessionData
NewHandler = keeper.NewHandler
NewKeeper = keeper.NewKeeper
NewQuerier = keeper.NewQuerier
DecodeStore = simulation.DecodeStore
RandomizedGenState = simulation.RandomizedGenState
WeightedOperations = simulation.WeightedOperations
SimulateMsgCreateSession = simulation.SimulateMsgCreateSession
RandomizedGenState = simulation.RandomizedGenState
DecodeStore = simulation.DecodeStore
RandomSessionData = simulation.RandomSessionData
NewMsgCreateSession = types.NewMsgCreateSession
SessionStoreKey = types.SessionStoreKey
ParseSessionID = types.ParseSessionID
NewSession = types.NewSession
RegisterCodec = types.RegisterCodec
NewGenesisState = types.NewGenesisState
DefaultGenesisState = types.DefaultGenesisState
ValidateGenesis = types.ValidateGenesis
RegisterCodec = types.RegisterCodec
NewHandler = keeper.NewHandler
NewKeeper = keeper.NewKeeper
NewQuerier = keeper.NewQuerier
SessionStoreKey = types.SessionStoreKey

// variable aliases
RandomNamespaces = simulation.RandomNamespaces
ModuleCdc = types.ModuleCdc
SessionLengthKey = types.SessionLengthKey
LastSessionIDStoreKey = types.LastSessionIDStoreKey
SessionStorePrefix = types.SessionStorePrefix
ModuleCdc = types.ModuleCdc
)

type (
Expand Down
88 changes: 44 additions & 44 deletions x/posts/alias.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,29 @@ const (

var (
// functions aliases
NewKeeper = keeper.NewKeeper
ValidatePost = keeper.ValidatePost
NewPostReaction = reactions.NewPostReaction
NewPostReactions = reactions.NewPostReactions
NewReaction = reactions.NewReaction
IsEmoji = reactions.IsEmoji
NewReactions = reactions.NewReactions
NewMsgRegisterReaction = msgs.NewMsgRegisterReaction
RegisterMessagesCodec = msgs.RegisterMessagesCodec
NewMsgCreatePost = msgs.NewMsgCreatePost
NewMsgEditPost = msgs.NewMsgEditPost
NewMsgAnswerPoll = msgs.NewMsgAnswerPoll
NewMsgAddPostReaction = msgs.NewMsgAddPostReaction
NewMsgRemovePostReaction = msgs.NewMsgRemovePostReaction
NewQuerier = keeper.NewQuerier
ValidatePost = keeper.ValidatePost
NewHandler = keeper.NewHandler
RegisterInvariants = keeper.RegisterInvariants
AllInvariants = keeper.AllInvariants
ValidPostsInvariant = keeper.ValidPostsInvariant
ValidCommentsDateInvariant = keeper.ValidCommentsDateInvariant
ValidPostForReactionsInvariant = keeper.ValidPostForReactionsInvariant
ValidPollForPollAnswersInvariant = keeper.ValidPollForPollAnswersInvariant
NewHandler = keeper.NewHandler
SimulateMsgAddPostReaction = simulation.SimulateMsgAddPostReaction
SimulateMsgRemovePostReaction = simulation.SimulateMsgRemovePostReaction
SimulateMsgRegisterReaction = simulation.SimulateMsgRegisterReaction
SimulateMsgCreatePost = simulation.SimulateMsgCreatePost
SimulateMsgEditPost = simulation.SimulateMsgEditPost
NewKeeper = keeper.NewKeeper
ParamChanges = simulation.ParamChanges
RandomPost = simulation.RandomPost
RandomPostData = simulation.RandomPostData
RandomPostReactionData = simulation.RandomPostReactionData
Expand All @@ -97,66 +105,58 @@ var (
RegisteredReactionsData = simulation.RegisteredReactionsData
RandomEmojiPostReaction = simulation.RandomEmojiPostReaction
RandomParams = simulation.RandomParams
WeightedOperations = simulation.WeightedOperations
RandomizedGenState = simulation.RandomizedGenState
ParamChanges = simulation.ParamChanges
DecodeStore = simulation.DecodeStore
RandomizedGenState = simulation.RandomizedGenState
WeightedOperations = simulation.WeightedOperations
SimulateMsgAnswerToPoll = simulation.SimulateMsgAnswerToPoll
RegisterCodec = types.RegisterCodec
SimulateMsgCreatePost = simulation.SimulateMsgCreatePost
SimulateMsgEditPost = simulation.SimulateMsgEditPost
SimulateMsgAddPostReaction = simulation.SimulateMsgAddPostReaction
SimulateMsgRemovePostReaction = simulation.SimulateMsgRemovePostReaction
SimulateMsgRegisterReaction = simulation.SimulateMsgRegisterReaction
NewGenesisState = types.NewGenesisState
DefaultGenesisState = types.DefaultGenesisState
ValidateGenesis = types.ValidateGenesis
ParamKeyTable = types.ParamKeyTable
NewParams = types.NewParams
DefaultParams = types.DefaultParams
ValidateMaxPostMessageLengthParam = types.ValidateMaxPostMessageLengthParam
ValidateMaxOptionalDataFieldNumberParam = types.ValidateMaxOptionalDataFieldNumberParam
ValidateMaxOptionalDataFieldValueLengthParam = types.ValidateMaxOptionalDataFieldValueLengthParam
DefaultQueryPostsParams = types.DefaultQueryPostsParams
NewGenesisState = types.NewGenesisState
DefaultGenesisState = types.DefaultGenesisState
ValidateGenesis = types.ValidateGenesis
RegisterCodec = types.RegisterCodec
RegisterModelsCodec = models.RegisterModelsCodec
PostStoreKey = models.PostStoreKey
PostCommentsStoreKey = models.PostCommentsStoreKey
PostReactionsStoreKey = models.PostReactionsStoreKey
ReactionsStoreKey = models.ReactionsStoreKey
PollAnswersStoreKey = models.PollAnswersStoreKey
RegisterModelsCodec = models.RegisterModelsCodec
ComputeID = models.ComputeID
ParsePostID = models.ParsePostID
NewPost = models.NewPost
NewPostResponse = models.NewPostResponse
GetEmojiByShortCodeOrValue = common.GetEmojiByShortCodeOrValue
NewPostMedia = common.NewPostMedia
ValidateURI = common.ValidateURI
NewPostMedias = common.NewPostMedias
GetEmojiByShortCodeOrValue = common.GetEmojiByShortCodeOrValue
ParseAnswerID = polls.ParseAnswerID
NewPollAnswer = polls.NewPollAnswer
NewPollAnswers = polls.NewPollAnswers
NewPollData = polls.NewPollData
ArePollDataEquals = polls.ArePollDataEquals
NewUserAnswer = polls.NewUserAnswer
NewUserAnswers = polls.NewUserAnswers
NewPostReaction = reactions.NewPostReaction
NewPostReactions = reactions.NewPostReactions
NewReaction = reactions.NewReaction
IsEmoji = reactions.IsEmoji
NewReactions = reactions.NewReactions
NewMsgCreatePost = msgs.NewMsgCreatePost
NewMsgEditPost = msgs.NewMsgEditPost
NewMsgRegisterReaction = msgs.NewMsgRegisterReaction
RegisterMessagesCodec = msgs.RegisterMessagesCodec
NewMsgAddPostReaction = msgs.NewMsgAddPostReaction
NewMsgRemovePostReaction = msgs.NewMsgRemovePostReaction
NewMsgAnswerPoll = msgs.NewMsgAnswerPoll

// variable aliases
RandomMimeTypes = simulation.RandomMimeTypes
RandomHosts = simulation.RandomHosts
ModuleCdc = types.ModuleCdc
DefaultMaxPostMessageLength = types.DefaultMaxPostMessageLength
DefaultMaxOptionalDataFieldsNumber = types.DefaultMaxOptionalDataFieldsNumber
DefaultMaxOptionalDataFieldValueLength = types.DefaultMaxOptionalDataFieldValueLength
MaxPostMessageLengthKey = types.MaxPostMessageLengthKey
MaxOptionalDataFieldsNumberKey = types.MaxOptionalDataFieldsNumberKey
MaxOptionalDataFieldValueLengthKey = types.MaxOptionalDataFieldValueLengthKey
ModuleCdc = types.ModuleCdc
ModelsCdc = models.ModelsCdc
Sha256RegEx = common.Sha256RegEx
HashtagRegEx = common.HashtagRegEx
Expand All @@ -172,29 +172,19 @@ var (
)

type (
MsgCreatePost = msgs.MsgCreatePost
MsgEditPost = msgs.MsgEditPost
MsgRegisterReaction = msgs.MsgRegisterReaction
MsgAddPostReaction = msgs.MsgAddPostReaction
MsgRemovePostReaction = msgs.MsgRemovePostReaction
MsgAnswerPoll = msgs.MsgAnswerPoll
Keeper = keeper.Keeper
PostData = simulation.PostData
PostReactionData = simulation.PostReactionData
ReactionData = simulation.ReactionData
GenesisState = types.GenesisState
Params = types.Params
QueryPostsParams = types.QueryPostsParams
GenesisState = types.GenesisState
PollAnswersQueryResponse = models.PollAnswersQueryResponse
PostID = models.PostID
PostIDs = models.PostIDs
Post = models.Post
Posts = models.Posts
PostQueryResponse = models.PostQueryResponse
PollAnswersQueryResponse = models.PollAnswersQueryResponse
OptionalData = common.OptionalData
KeyValue = common.KeyValue
PostMedia = common.PostMedia
PostMedias = common.PostMedias
OptionalData = common.OptionalData
KeyValue = common.KeyValue
AnswerID = polls.AnswerID
PollAnswer = polls.PollAnswer
PollAnswers = polls.PollAnswers
Expand All @@ -205,4 +195,14 @@ type (
PostReactions = reactions.PostReactions
Reaction = reactions.Reaction
Reactions = reactions.Reactions
MsgRegisterReaction = msgs.MsgRegisterReaction
MsgCreatePost = msgs.MsgCreatePost
MsgEditPost = msgs.MsgEditPost
MsgAnswerPoll = msgs.MsgAnswerPoll
MsgAddPostReaction = msgs.MsgAddPostReaction
MsgRemovePostReaction = msgs.MsgRemovePostReaction
Keeper = keeper.Keeper
PostData = simulation.PostData
PostReactionData = simulation.PostReactionData
ReactionData = simulation.ReactionData
)
36 changes: 18 additions & 18 deletions x/posts/internal/types/alias.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@ const (

var (
// functions aliases
ComputeID = models.ComputeID
ParsePostID = models.ParsePostID
NewPost = models.NewPost
NewPostResponse = models.NewPostResponse
RegisterModelsCodec = models.RegisterModelsCodec
PostStoreKey = models.PostStoreKey
PostCommentsStoreKey = models.PostCommentsStoreKey
PostReactionsStoreKey = models.PostReactionsStoreKey
ReactionsStoreKey = models.ReactionsStoreKey
PollAnswersStoreKey = models.PollAnswersStoreKey
RegisterModelsCodec = models.RegisterModelsCodec
ComputeID = models.ComputeID
ParsePostID = models.ParsePostID
NewPost = models.NewPost
NewPostResponse = models.NewPostResponse
GetEmojiByShortCodeOrValue = common.GetEmojiByShortCodeOrValue
NewPostMedia = common.NewPostMedia
ValidateURI = common.ValidateURI
NewPostMedias = common.NewPostMedias
GetEmojiByShortCodeOrValue = common.GetEmojiByShortCodeOrValue
ParseAnswerID = polls.ParseAnswerID
NewPollAnswer = polls.NewPollAnswer
NewPollAnswers = polls.NewPollAnswers
Expand All @@ -64,13 +64,15 @@ var (
NewReactions = reactions.NewReactions
NewMsgAddPostReaction = msgs.NewMsgAddPostReaction
NewMsgRemovePostReaction = msgs.NewMsgRemovePostReaction
NewMsgAnswerPoll = msgs.NewMsgAnswerPoll
NewMsgCreatePost = msgs.NewMsgCreatePost
NewMsgEditPost = msgs.NewMsgEditPost
NewMsgRegisterReaction = msgs.NewMsgRegisterReaction
RegisterMessagesCodec = msgs.RegisterMessagesCodec
NewMsgCreatePost = msgs.NewMsgCreatePost
NewMsgEditPost = msgs.NewMsgEditPost
NewMsgAnswerPoll = msgs.NewMsgAnswerPoll

// variable aliases
MsgsCodec = msgs.MsgsCodec
ModelsCdc = models.ModelsCdc
Sha256RegEx = common.Sha256RegEx
HashtagRegEx = common.HashtagRegEx
ShortCodeRegEx = common.ShortCodeRegEx
Expand All @@ -81,15 +83,9 @@ var (
PostReactionsStorePrefix = common.PostReactionsStorePrefix
ReactionsStorePrefix = common.ReactionsStorePrefix
PollAnswersStorePrefix = common.PollAnswersStorePrefix
MsgsCodec = msgs.MsgsCodec
ModelsCdc = models.ModelsCdc
)

type (
PostMedia = common.PostMedia
PostMedias = common.PostMedias
OptionalData = common.OptionalData
KeyValue = common.KeyValue
AnswerID = polls.AnswerID
PollAnswer = polls.PollAnswer
PollAnswers = polls.PollAnswers
Expand All @@ -102,14 +98,18 @@ type (
Reactions = reactions.Reactions
MsgAddPostReaction = msgs.MsgAddPostReaction
MsgRemovePostReaction = msgs.MsgRemovePostReaction
MsgAnswerPoll = msgs.MsgAnswerPoll
MsgRegisterReaction = msgs.MsgRegisterReaction
MsgCreatePost = msgs.MsgCreatePost
MsgEditPost = msgs.MsgEditPost
MsgRegisterReaction = msgs.MsgRegisterReaction
MsgAnswerPoll = msgs.MsgAnswerPoll
PollAnswersQueryResponse = models.PollAnswersQueryResponse
PostID = models.PostID
PostIDs = models.PostIDs
Post = models.Post
Posts = models.Posts
PostQueryResponse = models.PostQueryResponse
PollAnswersQueryResponse = models.PollAnswersQueryResponse
OptionalData = common.OptionalData
KeyValue = common.KeyValue
PostMedia = common.PostMedia
PostMedias = common.PostMedias
)
30 changes: 15 additions & 15 deletions x/posts/internal/types/models/alias.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,22 @@ const (

var (
// functions aliases
GetEmojiByShortCodeOrValue = common.GetEmojiByShortCodeOrValue
NewPostMedia = common.NewPostMedia
ValidateURI = common.ValidateURI
NewPostMedias = common.NewPostMedias
GetEmojiByShortCodeOrValue = common.GetEmojiByShortCodeOrValue
ParseAnswerID = polls.ParseAnswerID
NewPollAnswer = polls.NewPollAnswer
NewPollAnswers = polls.NewPollAnswers
NewPollData = polls.NewPollData
ArePollDataEquals = polls.ArePollDataEquals
NewUserAnswer = polls.NewUserAnswer
NewUserAnswers = polls.NewUserAnswers
ParseAnswerID = polls.ParseAnswerID
NewPollAnswer = polls.NewPollAnswer
NewPollAnswers = polls.NewPollAnswers
NewPostReaction = reactions.NewPostReaction
NewPostReactions = reactions.NewPostReactions
NewReaction = reactions.NewReaction
IsEmoji = reactions.IsEmoji
NewReactions = reactions.NewReactions
NewPostReaction = reactions.NewPostReaction
NewPostReactions = reactions.NewPostReactions

// variable aliases
Sha256RegEx = common.Sha256RegEx
Expand All @@ -65,18 +65,18 @@ var (
)

type (
OptionalData = common.OptionalData
KeyValue = common.KeyValue
PostMedia = common.PostMedia
PostMedias = common.PostMedias
PollData = polls.PollData
UserAnswer = polls.UserAnswer
UserAnswers = polls.UserAnswers
AnswerID = polls.AnswerID
PollAnswer = polls.PollAnswer
PollAnswers = polls.PollAnswers
PostReaction = reactions.PostReaction
PostReactions = reactions.PostReactions
PollData = polls.PollData
UserAnswer = polls.UserAnswer
UserAnswers = polls.UserAnswers
Reaction = reactions.Reaction
Reactions = reactions.Reactions
PostReaction = reactions.PostReaction
PostReactions = reactions.PostReactions
PostMedia = common.PostMedia
PostMedias = common.PostMedias
OptionalData = common.OptionalData
KeyValue = common.KeyValue
)
Loading

0 comments on commit 67b3951

Please sign in to comment.