Skip to content

Commit 59e25c7

Browse files
committed
fixed relationships and profiles event attributes
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
1 parent eba1803 commit 59e25c7

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

x/profiles/types/events.go

+9-9
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ package types
33
// DONTCOVER
44

55
const (
6-
EventTypeProfileSaved = "profile_saved"
7-
EventTypeProfileDeleted = "profile_deleted"
8-
EventTypeDTagTransferRequest = "dtag_transfer_request"
9-
EventTypeDTagTransferAccept = "dtag_transfer_accept"
10-
EventTypeDTagTransferRefuse = "dtag_transfer_refuse"
11-
EventTypeDTagTransferCancel = "dtag_transfer_cancel"
6+
EventTypeProfileSaved = "save_profile"
7+
EventTypeProfileDeleted = "delete_profile"
8+
EventTypeDTagTransferRequest = "create_dtag_transfer_request"
9+
EventTypeDTagTransferAccept = "accept_dtag_transfer_request"
10+
EventTypeDTagTransferRefuse = "refuse_dtag_transfer_request"
11+
EventTypeDTagTransferCancel = "cancel_dtag_transfer_request"
1212
EventTypeLinkChainAccount = "link_chain_account"
1313
EventTypeUnlinkChainAccount = "unlink_chain_account"
1414
EventTypeLinkChainAccountPacket = "link_chain_account_packet"
15-
EventTypePacket = "profiles_verification_packet"
15+
EventTypePacket = "receive_profiles_verification_packet"
1616
EventTypeTimeout = "timeout"
17-
EventTypesApplicationLinkCreated = "application_link_created"
17+
EventTypesApplicationLinkCreated = "link_application"
18+
EventTypeApplicationLinkDeleted = "unlink_application"
1819
EventTypesApplicationLinkSaved = "application_link_saved"
19-
EventTypeApplicationLinkDeleted = "application_link_deleted"
2020

2121
AttributeKeyProfileDTag = "profile_dtag"
2222
AttributeKeyProfileCreator = "profile_creator"

x/relationships/keeper/msg_server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (k msgServer) DeleteRelationship(goCtx context.Context, msg *types.MsgDelet
8888
sdk.NewAttribute(sdk.AttributeKeySender, msg.Signer),
8989
),
9090
sdk.NewEvent(
91-
types.EventTypeRelationshipsDeleted,
91+
types.EventTypeRelationshipDeleted,
9292
sdk.NewAttribute(types.AttributeRelationshipCreator, msg.Signer),
9393
sdk.NewAttribute(types.AttributeRelationshipCounterparty, msg.Counterparty),
9494
sdk.NewAttribute(types.AttributeKeySubspace, fmt.Sprintf("%d", msg.SubspaceID)),

x/relationships/keeper/msg_server_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func (suite *KeeperTestSuite) TestMsgServer_DeleteRelationship() {
210210
sdk.NewAttribute(sdk.AttributeKeySender, "cosmos1y54exmx84cqtasvjnskf9f63djuuj68p7hqf47"),
211211
),
212212
sdk.NewEvent(
213-
types.EventTypeRelationshipsDeleted,
213+
types.EventTypeRelationshipDeleted,
214214
sdk.NewAttribute(types.AttributeRelationshipCreator, "cosmos1y54exmx84cqtasvjnskf9f63djuuj68p7hqf47"),
215215
sdk.NewAttribute(types.AttributeRelationshipCounterparty, "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns"),
216216
sdk.NewAttribute(types.AttributeKeySubspace, "1"),

x/relationships/types/events.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ package types
33
// DONTCOVER
44

55
const (
6-
EventTypeRelationshipCreated = "relationship_created"
7-
EventTypeRelationshipsDeleted = "relationships_deleted"
8-
EventTypeBlockUser = "block_user"
9-
EventTypeUnblockUser = "unblock_user"
6+
EventTypeRelationshipCreated = "create_relationship"
7+
EventTypeRelationshipDeleted = "delete_relationship"
8+
EventTypeBlockUser = "block_user"
9+
EventTypeUnblockUser = "unblock_user"
1010

1111
AttributeValueCategory = ModuleName
1212
AttributeRelationshipCreator = "creator"

0 commit comments

Comments
 (0)