Skip to content

Commit

Permalink
fixed relationships and profiles event attributes
Browse files Browse the repository at this point in the history
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
  • Loading branch information
RiccardoM committed Apr 22, 2022
1 parent eba1803 commit 59e25c7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
18 changes: 9 additions & 9 deletions x/profiles/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ package types
// DONTCOVER

const (
EventTypeProfileSaved = "profile_saved"
EventTypeProfileDeleted = "profile_deleted"
EventTypeDTagTransferRequest = "dtag_transfer_request"
EventTypeDTagTransferAccept = "dtag_transfer_accept"
EventTypeDTagTransferRefuse = "dtag_transfer_refuse"
EventTypeDTagTransferCancel = "dtag_transfer_cancel"
EventTypeProfileSaved = "save_profile"
EventTypeProfileDeleted = "delete_profile"
EventTypeDTagTransferRequest = "create_dtag_transfer_request"
EventTypeDTagTransferAccept = "accept_dtag_transfer_request"
EventTypeDTagTransferRefuse = "refuse_dtag_transfer_request"
EventTypeDTagTransferCancel = "cancel_dtag_transfer_request"
EventTypeLinkChainAccount = "link_chain_account"
EventTypeUnlinkChainAccount = "unlink_chain_account"
EventTypeLinkChainAccountPacket = "link_chain_account_packet"
EventTypePacket = "profiles_verification_packet"
EventTypePacket = "receive_profiles_verification_packet"
EventTypeTimeout = "timeout"
EventTypesApplicationLinkCreated = "application_link_created"
EventTypesApplicationLinkCreated = "link_application"
EventTypeApplicationLinkDeleted = "unlink_application"
EventTypesApplicationLinkSaved = "application_link_saved"
EventTypeApplicationLinkDeleted = "application_link_deleted"

AttributeKeyProfileDTag = "profile_dtag"
AttributeKeyProfileCreator = "profile_creator"
Expand Down
2 changes: 1 addition & 1 deletion x/relationships/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (k msgServer) DeleteRelationship(goCtx context.Context, msg *types.MsgDelet
sdk.NewAttribute(sdk.AttributeKeySender, msg.Signer),
),
sdk.NewEvent(
types.EventTypeRelationshipsDeleted,
types.EventTypeRelationshipDeleted,
sdk.NewAttribute(types.AttributeRelationshipCreator, msg.Signer),
sdk.NewAttribute(types.AttributeRelationshipCounterparty, msg.Counterparty),
sdk.NewAttribute(types.AttributeKeySubspace, fmt.Sprintf("%d", msg.SubspaceID)),
Expand Down
2 changes: 1 addition & 1 deletion x/relationships/keeper/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (suite *KeeperTestSuite) TestMsgServer_DeleteRelationship() {
sdk.NewAttribute(sdk.AttributeKeySender, "cosmos1y54exmx84cqtasvjnskf9f63djuuj68p7hqf47"),
),
sdk.NewEvent(
types.EventTypeRelationshipsDeleted,
types.EventTypeRelationshipDeleted,
sdk.NewAttribute(types.AttributeRelationshipCreator, "cosmos1y54exmx84cqtasvjnskf9f63djuuj68p7hqf47"),
sdk.NewAttribute(types.AttributeRelationshipCounterparty, "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns"),
sdk.NewAttribute(types.AttributeKeySubspace, "1"),
Expand Down
8 changes: 4 additions & 4 deletions x/relationships/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package types
// DONTCOVER

const (
EventTypeRelationshipCreated = "relationship_created"
EventTypeRelationshipsDeleted = "relationships_deleted"
EventTypeBlockUser = "block_user"
EventTypeUnblockUser = "unblock_user"
EventTypeRelationshipCreated = "create_relationship"
EventTypeRelationshipDeleted = "delete_relationship"
EventTypeBlockUser = "block_user"
EventTypeUnblockUser = "unblock_user"

AttributeValueCategory = ModuleName
AttributeRelationshipCreator = "creator"
Expand Down

0 comments on commit 59e25c7

Please sign in to comment.