Repository: ovrclk/akash (go)

Issue:
events: use consistent tense
As can be seen [here](https://github.com/ovrclk/akash/blob/3310cc668be406a19029ce458831a53f16345198/events/publish_test.go#L17-L34), only `market` events are past-tense.

Either make them all past-tense (`"*created"` I _think_ this is better) or not (`"*create"`)

Pull request description:
refactor: use past tense for events
fixes #719



Patch:
diff --git a/provider/manifest/service.go b/provider/manifest/service.go
index 838278aa..8abfa77b 100644
--- a/provider/manifest/service.go
+++ b/provider/manifest/service.go
@@ -162,7 +162,7 @@ loop:
 
 				s.handleLease(ev)
 
-			case dtypes.EventDeploymentUpdate:
+			case dtypes.EventDeploymentUpdated:
 
 				s.session.Log().Info("update received", "deployment", ev.ID, "version", ev.Version)
 
@@ -172,7 +172,7 @@ loop:
 					manager.handleUpdate(ev.Version)
 				}
 
-			case dtypes.EventDeploymentClose:
+			case dtypes.EventDeploymentClosed:
 
 				key := dquery.DeploymentPath(ev.ID)
 				if manager := s.managers[key]; manager != nil {
diff --git a/x/deployment/keeper/keeper.go b/x/deployment/keeper/keeper.go
index 8db1d25f..b716e38e 100644
--- a/x/deployment/keeper/keeper.go
+++ b/x/deployment/keeper/keeper.go
@@ -126,7 +126,7 @@ func (k Keeper) Create(ctx sdk.Context, deployment types.Deployment, groups []ty
 	}
 
 	ctx.EventManager().EmitEvent(
-		types.NewEventDeploymentCreate(deployment.ID()).
+		types.NewEventDeploymentCreated(deployment.ID()).
 			ToSDKEvent(),
 	)
 
@@ -143,7 +143,7 @@ func (k Keeper) UpdateDeployment(ctx sdk.Context, deployment types.Deployment) e
 	}
 
 	ctx.EventManager().EmitEvent(
-		types.NewEventDeploymentUpdate(deployment.ID()).
+		types.NewEventDeploymentUpdated(deployment.ID()).
 			ToSDKEvent(),
 	)
 
@@ -162,7 +162,7 @@ func (k Keeper) OnCloseGroup(ctx sdk.Context, group types.Group) error {
 	group.State = types.GroupClosed
 
 	ctx.EventManager().EmitEvent(
-		types.NewEventGroupClose(group.ID()).
+		types.NewEventGroupClosed(group.ID()).
 			ToSDKEvent(),
 	)
 
diff --git a/x/deployment/types/event.go b/x/deployment/types/event.go
index ee652db6..dde0f784 100644
--- a/x/deployment/types/event.go
+++ b/x/deployment/types/event.go
@@ -8,90 +8,90 @@ import (
 )
 
 const (
-	evActionDeploymentCreate = "deployment-create"
-	evActionDeploymentUpdate = "deployment-update"
-	evActionDeploymentClose  = "deployment-close"
-	evActionGroupClose       = "group-close"
-	evOwnerKey               = "owner"
-	evDSeqKey                = "dseq"
-	evGSeqKey                = "gseq"
+	evActionDeploymentCreated = "deployment-created"
+	evActionDeploymentUpdated = "deployment-updated"
+	evActionDeploymentClosed  = "deployment-closed"
+	evActionGroupClosed       = "group-closed"
+	evOwnerKey                = "owner"
+	evDSeqKey                 = "dseq"
+	evGSeqKey                 = "gseq"
 )
 
-// EventDeploymentCreate struct
-type EventDeploymentCreate struct {
+// EventDeploymentCreated struct
+type EventDeploymentCreated struct {
 	Context sdkutil.BaseModuleEvent `json:"context"`
 	ID      DeploymentID            `json:"id"`
 }
 
-func NewEventDeploymentCreate(id DeploymentID) EventDeploymentCreate {
-	return EventDeploymentCreate{
+func NewEventDeploymentCreated(id DeploymentID) EventDeploymentCreated {
+	return EventDeploymentCreated{
 		Context: sdkutil.BaseModuleEvent{
 			Module: ModuleName,
-			Action: evActionDeploymentCreate,
+			Action: evActionDeploymentCreated,
 		},
 		ID: id,
 	}
 }
 
-// ToSDKEvent method creates new sdk event for EventDeploymentCreate struct
-func (ev EventDeploymentCreate) ToSDKEvent() sdk.Event {
+// ToSDKEvent method creates new sdk event for EventDeploymentCreated struct
+func (ev EventDeploymentCreated) ToSDKEvent() sdk.Event {
 	return sdk.NewEvent(sdkutil.EventTypeMessage,
 		append([]sdk.Attribute{
 			sdk.NewAttribute(sdk.AttributeKeyModule, ModuleName),
-			sdk.NewAttribute(sdk.AttributeKeyAction, evActionDeploymentCreate),
+			sdk.NewAttribute(sdk.AttributeKeyAction, evActionDeploymentCreated),
 		}, DeploymentIDEVAttributes(ev.ID)...)...,
 	)
 }
 
-// EventDeploymentUpdate struct
-type EventDeploymentUpdate struct {
+// EventDeploymentUpdated struct
+type EventDeploymentUpdated struct {
 	Context sdkutil.BaseModuleEvent `json:"context"`
 	ID      DeploymentID            `json:"id"`
 	Version []byte                  `json:"version,omitempty"` // TODO: #565
 }
 
-func NewEventDeploymentUpdate(id DeploymentID) EventDeploymentUpdate {
-	return EventDeploymentUpdate{
+func NewEventDeploymentUpdated(id DeploymentID) EventDeploymentUpdated {
+	return EventDeploymentUpdated{
 		Context: sdkutil.BaseModuleEvent{
 			Module: ModuleName,
-			Action: evActionDeploymentUpdate,
+			Action: evActionDeploymentUpdated,
 		},
 		ID: id,
 	}
 }
 
-// ToSDKEvent method creates new sdk event for EventDeploymentUpdate struct
-func (ev EventDeploymentUpdate) ToSDKEvent() sdk.Event {
+// ToSDKEvent method creates new sdk event for EventDeploymentUpdated struct
+func (ev EventDeploymentUpdated) ToSDKEvent() sdk.Event {
 	return sdk.NewEvent(sdkutil.EventTypeMessage,
 		append([]sdk.Attribute{
 			sdk.NewAttribute(sdk.AttributeKeyModule, ModuleName),
-			sdk.NewAttribute(sdk.AttributeKeyAction, evActionDeploymentUpdate),
+			sdk.NewAttribute(sdk.AttributeKeyAction, evActionDeploymentUpdated),
 		}, DeploymentIDEVAttributes(ev.ID)...)...,
 	)
 }
 
-// EventDeploymentClose struct
-type EventDeploymentClose struct {
+// EventDeploymentClosed struct
+type EventDeploymentClosed struct {
 	Context sdkutil.BaseModuleEvent `json:"context"`
 	ID      DeploymentID            `json:"id"`
 }
 
-func NewEventDeploymentClose(id DeploymentID) EventDeploymentClose {
-	return EventDeploymentClose{
+func NewEventDeploymentClosed(id DeploymentID) EventDeploymentClosed {
+	return EventDeploymentClosed{
 		Context: sdkutil.BaseModuleEvent{
 			Module: ModuleName,
-			Action: evActionDeploymentClose,
+			Action: evActionDeploymentClosed,
 		},
 		ID: id,
 	}
 }
 
-// ToSDKEvent method creates new sdk event for EventDeploymentClose struct
-func (ev EventDeploymentClose) ToSDKEvent() sdk.Event {
+// ToSDKEvent method creates new sdk event for EventDeploymentClosed struct
+func (ev EventDeploymentClosed) ToSDKEvent() sdk.Event {
 	return sdk.NewEvent(sdkutil.EventTypeMessage,
 		append([]sdk.Attribute{
 			sdk.NewAttribute(sdk.AttributeKeyModule, ModuleName),
-			sdk.NewAttribute(sdk.AttributeKeyAction, evActionDeploymentClose),
+			sdk.NewAttribute(sdk.AttributeKeyAction, evActionDeploymentClosed),
 		}, DeploymentIDEVAttributes(ev.ID)...)...,
 	)
 }
@@ -121,28 +121,28 @@ func ParseEVDeploymentID(attrs []sdk.Attribute) (DeploymentID, error) {
 	}, nil
 }
 
-// EventGroupClose provides SDK event to signal group termination
-type EventGroupClose struct {
+// EventGroupClosed provides SDK event to signal group termination
+type EventGroupClosed struct {
 	Context sdkutil.BaseModuleEvent `json:"context"`
 	ID      GroupID                 `json:"id"`
 }
 
-func NewEventGroupClose(id GroupID) EventGroupClose {
-	return EventGroupClose{
+func NewEventGroupClosed(id GroupID) EventGroupClosed {
+	return EventGroupClosed{
 		Context: sdkutil.BaseModuleEvent{
 			Module: ModuleName,
-			Action: evActionGroupClose,
+			Action: evActionGroupClosed,
 		},
 		ID: id,
 	}
 }
 
 // ToSDKEvent produces the SDK notification for Event
-func (ev EventGroupClose) ToSDKEvent() sdk.Event {
+func (ev EventGroupClosed) ToSDKEvent() sdk.Event {
 	return sdk.NewEvent(sdkutil.EventTypeMessage,
 		append([]sdk.Attribute{
 			sdk.NewAttribute(sdk.AttributeKeyModule, ModuleName),
-			sdk.NewAttribute(sdk.AttributeKeyAction, evActionGroupClose),
+			sdk.NewAttribute(sdk.AttributeKeyAction, evActionGroupClosed),
 		}, GroupIDEVAttributes(ev.ID)...)...,
 	)
 }
@@ -182,30 +182,30 @@ func ParseEvent(ev sdkutil.Event) (sdkutil.ModuleEvent, error) {
 		return nil, sdkutil.ErrUnknownModule
 	}
 	switch ev.Action {
-	case evActionDeploymentCreate:
+	case evActionDeploymentCreated:
 		did, err := ParseEVDeploymentID(ev.Attributes)
 		if err != nil {
 			return nil, err
 		}
-		return NewEventDeploymentCreate(did), nil
-	case evActionDeploymentUpdate:
+		return NewEventDeploymentCreated(did), nil
+	case evActionDeploymentUpdated:
 		did, err := ParseEVDeploymentID(ev.Attributes)
 		if err != nil {
 			return nil, err
 		}
-		return NewEventDeploymentUpdate(did), nil
-	case evActionDeploymentClose:
+		return NewEventDeploymentUpdated(did), nil
+	case evActionDeploymentClosed:
 		did, err := ParseEVDeploymentID(ev.Attributes)
 		if err != nil {
 			return nil, err
 		}
-		return NewEventDeploymentClose(did), nil
-	case evActionGroupClose:
+		return NewEventDeploymentClosed(did), nil
+	case evActionGroupClosed:
 		gid, err := ParseEVGroupID(ev.Attributes)
 		if err != nil {
 			return nil, err
 		}
-		return NewEventGroupClose(gid), nil
+		return NewEventGroupClosed(gid), nil
 	default:
 		return nil, sdkutil.ErrUnknownAction
 	}
diff --git a/x/provider/keeper/keeper.go b/x/provider/keeper/keeper.go
index 04df9768..b51dfe89 100644
--- a/x/provider/keeper/keeper.go
+++ b/x/provider/keeper/keeper.go
@@ -53,7 +53,7 @@ func (k Keeper) Create(ctx sdk.Context, provider types.Provider) error {
 	store.Set(key, k.cdc.MustMarshalBinaryBare(provider))
 
 	ctx.EventManager().EmitEvent(
-		types.EventProviderCreate{Owner: provider.Owner}.ToSDKEvent(),
+		types.EventProviderCreated{Owner: provider.Owner}.ToSDKEvent(),
 	)
 
 	return nil
@@ -83,7 +83,7 @@ func (k Keeper) Update(ctx sdk.Context, provider types.Provider) error {
 	store.Set(key, k.cdc.MustMarshalBinaryBare(provider))
 
 	ctx.EventManager().EmitEvent(
-		types.EventProviderUpdate{Owner: provider.Owner}.ToSDKEvent(),
+		types.EventProviderUpdated{Owner: provider.Owner}.ToSDKEvent(),
 	)
 
 	return nil
diff --git a/x/provider/types/event.go b/x/provider/types/event.go
index 68b9e1bc..d734b7c9 100644
--- a/x/provider/types/event.go
+++ b/x/provider/types/event.go
@@ -6,86 +6,86 @@ import (
 )
 
 const (
-	evActionProviderCreate = "provider-create"
-	evActionProviderUpdate = "provider-update"
-	evActionProviderDelete = "provider-delete"
-	evOwnerKey             = "owner"
+	evActionProviderCreated = "provider-created"
+	evActionProviderUpdated = "provider-updated"
+	evActionProviderDeleted = "provider-deleted"
+	evOwnerKey              = "owner"
 )
 
-// EventProviderCreate struct
-type EventProviderCreate struct {
+// EventProviderCreated struct
+type EventProviderCreated struct {
 	Context sdkutil.BaseModuleEvent `json:"context"`
 	Owner   sdk.AccAddress          `json:"owner"`
 }
 
-func NewEventProviderCreate(owner sdk.AccAddress) EventProviderCreate {
-	return EventProviderCreate{
+func NewEventProviderCreated(owner sdk.AccAddress) EventProviderCreated {
+	return EventProviderCreated{
 		Context: sdkutil.BaseModuleEvent{
 			Module: ModuleName,
-			Action: evActionProviderCreate,
+			Action: evActionProviderCreated,
 		},
 		Owner: owner,
 	}
 }
 
-// ToSDKEvent method creates new sdk event for EventProviderCreate struct
-func (ev EventProviderCreate) ToSDKEvent() sdk.Event {
+// ToSDKEvent method creates new sdk event for EventProviderCreated struct
+func (ev EventProviderCreated) ToSDKEvent() sdk.Event {
 	return sdk.NewEvent(sdkutil.EventTypeMessage,
 		append([]sdk.Attribute{
 			sdk.NewAttribute(sdk.AttributeKeyModule, ModuleName),
-			sdk.NewAttribute(sdk.AttributeKeyAction, evActionProviderCreate),
+			sdk.NewAttribute(sdk.AttributeKeyAction, evActionProviderCreated),
 		}, ProviderEVAttributes(ev.Owner)...)...,
 	)
 }
 
-// EventProviderUpdate struct
-type EventProviderUpdate struct {
+// EventProviderUpdated struct
+type EventProviderUpdated struct {
 	Context sdkutil.BaseModuleEvent `json:"context"`
 	Owner   sdk.AccAddress          `json:"owner"`
 }
 
-func NewEventProviderUpdate(owner sdk.AccAddress) EventProviderUpdate {
-	return EventProviderUpdate{
+func NewEventProviderUpdated(owner sdk.AccAddress) EventProviderUpdated {
+	return EventProviderUpdated{
 		Context: sdkutil.BaseModuleEvent{
 			Module: ModuleName,
-			Action: evActionProviderUpdate,
+			Action: evActionProviderUpdated,
 		},
 		Owner: owner,
 	}
 }
 
-// ToSDKEvent method creates new sdk event for EventProviderUpdate struct
-func (ev EventProviderUpdate) ToSDKEvent() sdk.Event {
+// ToSDKEvent method creates new sdk event for EventProviderUpdated struct
+func (ev EventProviderUpdated) ToSDKEvent() sdk.Event {
 	return sdk.NewEvent(sdkutil.EventTypeMessage,
 		append([]sdk.Attribute{
 			sdk.NewAttribute(sdk.AttributeKeyModule, ModuleName),
-			sdk.NewAttribute(sdk.AttributeKeyAction, evActionProviderUpdate),
+			sdk.NewAttribute(sdk.AttributeKeyAction, evActionProviderUpdated),
 		}, ProviderEVAttributes(ev.Owner)...)...,
 	)
 }
 
-// EventProviderDelete struct
-type EventProviderDelete struct {
+// EventProviderDeleted struct
+type EventProviderDeleted struct {
 	Context sdkutil.BaseModuleEvent `json:"context"`
 	Owner   sdk.AccAddress          `json:"owner"`
 }
 
-func NewEventProviderDelete(owner sdk.AccAddress) EventProviderDelete {
-	return EventProviderDelete{
+func NewEventProviderDeleted(owner sdk.AccAddress) EventProviderDeleted {
+	return EventProviderDeleted{
 		Context: sdkutil.BaseModuleEvent{
 			Module: ModuleName,
-			Action: evActionProviderDelete,
+			Action: evActionProviderDeleted,
 		},
 		Owner: owner,
 	}
 }
 
-// ToSDKEvent method creates new sdk event for EventProviderDelete struct
-func (ev EventProviderDelete) ToSDKEvent() sdk.Event {
+// ToSDKEvent method creates new sdk event for EventProviderDeleted struct
+func (ev EventProviderDeleted) ToSDKEvent() sdk.Event {
 	return sdk.NewEvent(sdkutil.EventTypeMessage,
 		append([]sdk.Attribute{
 			sdk.NewAttribute(sdk.AttributeKeyModule, ModuleName),
-			sdk.NewAttribute(sdk.AttributeKeyAction, evActionProviderDelete),
+			sdk.NewAttribute(sdk.AttributeKeyAction, evActionProviderDeleted),
 		}, ProviderEVAttributes(ev.Owner)...)...,
 	)
 }
@@ -117,24 +117,24 @@ func ParseEvent(ev sdkutil.Event) (sdkutil.ModuleEvent, error) {
 		return nil, sdkutil.ErrUnknownModule
 	}
 	switch ev.Action {
-	case evActionProviderCreate:
+	case evActionProviderCreated:
 		owner, err := ParseEVProvider(ev.Attributes)
 		if err != nil {
 			return nil, err
 		}
-		return NewEventProviderCreate(owner), nil
-	case evActionProviderUpdate:
+		return NewEventProviderCreated(owner), nil
+	case evActionProviderUpdated:
 		owner, err := ParseEVProvider(ev.Attributes)
 		if err != nil {
 			return nil, err
 		}
-		return NewEventProviderUpdate(owner), nil
-	case evActionProviderDelete:
+		return NewEventProviderUpdated(owner), nil
+	case evActionProviderDeleted:
 		owner, err := ParseEVProvider(ev.Attributes)
 		if err != nil {
 			return nil, err
 		}
-		return NewEventProviderDelete(owner), nil
+		return NewEventProviderDeleted(owner), nil
 	default:
 		return nil, sdkutil.ErrUnknownAction
 	}


Test patch:
diff --git a/events/publish_test.go b/events/publish_test.go
index 9306e7fb..20bc9a54 100644
--- a/events/publish_test.go
+++ b/events/publish_test.go
@@ -15,10 +15,10 @@ import (
 func Test_processEvent(t *testing.T) {
 	tests := []sdkutil.ModuleEvent{
 		// x/deployment events
-		dtypes.NewEventDeploymentCreate(testutil.DeploymentID(t)),
-		dtypes.NewEventDeploymentUpdate(testutil.DeploymentID(t)),
-		dtypes.NewEventDeploymentClose(testutil.DeploymentID(t)),
-		dtypes.NewEventGroupClose(testutil.GroupID(t)),
+		dtypes.NewEventDeploymentCreated(testutil.DeploymentID(t)),
+		dtypes.NewEventDeploymentUpdated(testutil.DeploymentID(t)),
+		dtypes.NewEventDeploymentClosed(testutil.DeploymentID(t)),
+		dtypes.NewEventGroupClosed(testutil.GroupID(t)),
 
 		// x/market events
 		mtypes.NewEventOrderCreated(testutil.OrderID(t)),
@@ -29,9 +29,9 @@ func Test_processEvent(t *testing.T) {
 		mtypes.NewEventLeaseClosed(testutil.LeaseID(t), testutil.Coin(t)),
 
 		// x/provider events
-		ptypes.NewEventProviderCreate(testutil.AccAddress(t)),
-		ptypes.NewEventProviderUpdate(testutil.AccAddress(t)),
-		ptypes.NewEventProviderDelete(testutil.AccAddress(t)),
+		ptypes.NewEventProviderCreated(testutil.AccAddress(t)),
+		ptypes.NewEventProviderUpdated(testutil.AccAddress(t)),
+		ptypes.NewEventProviderDeleted(testutil.AccAddress(t)),
 	}
 
 	for _, test := range tests {
diff --git a/x/deployment/handler/handler_test.go b/x/deployment/handler/handler_test.go
index bb98550c..0d05ca1a 100644
--- a/x/deployment/handler/handler_test.go
+++ b/x/deployment/handler/handler_test.go
@@ -84,9 +84,9 @@ func TestCreateDeployment(t *testing.T) {
 
 	t.Run("ensure event created", func(t *testing.T) {
 		iev := testutil.ParseDeploymentEvent(t, res.Events)
-		require.IsType(t, types.EventDeploymentCreate{}, iev)
+		require.IsType(t, types.EventDeploymentCreated{}, iev)
 
-		dev := iev.(types.EventDeploymentCreate)
+		dev := iev.(types.EventDeploymentCreated)
 
 		require.Equal(t, msg.ID, dev.ID)
 	})
@@ -155,9 +155,9 @@ func TestUpdateDeploymentExisting(t *testing.T) {
 
 	t.Run("ensure event created", func(t *testing.T) {
 		iev := testutil.ParseDeploymentEvent(t, res.Events[1:])
-		require.IsType(t, types.EventDeploymentUpdate{}, iev)
+		require.IsType(t, types.EventDeploymentUpdated{}, iev)
 
-		dev := iev.(types.EventDeploymentUpdate)
+		dev := iev.(types.EventDeploymentUpdated)
 
 		require.Equal(t, msg.ID, dev.ID)
 	})
@@ -207,9 +207,9 @@ func TestCloseDeploymentExisting(t *testing.T) {
 		// TODO: this should emit a DeploymentClose
 
 		iev := testutil.ParseDeploymentEvent(t, res.Events[1:])
-		require.IsType(t, types.EventDeploymentUpdate{}, iev)
+		require.IsType(t, types.EventDeploymentUpdated{}, iev)
 
-		dev := iev.(types.EventDeploymentUpdate)
+		dev := iev.(types.EventDeploymentUpdated)
 
 		require.Equal(t, msg.ID, dev.ID)
 	})
diff --git a/x/deployment/types/events_test.go b/x/deployment/types/events_test.go
index 1149f18a..f439371c 100644
--- a/x/deployment/types/events_test.go
+++ b/x/deployment/types/events_test.go
@@ -76,7 +76,7 @@ var TEPS = []testEventParsing{
 		msg: sdkutil.Event{
 			Type:   sdkutil.EventTypeMessage,
 			Module: ModuleName,
-			Action: evActionDeploymentCreate,
+			Action: evActionDeploymentCreated,
 			Attributes: []sdk.Attribute{
 				{
 					Key:   evOwnerKey,
@@ -94,7 +94,7 @@ var TEPS = []testEventParsing{
 		msg: sdkutil.Event{
 			Type:   sdkutil.EventTypeMessage,
 			Module: ModuleName,
-			Action: evActionDeploymentCreate,
+			Action: evActionDeploymentCreated,
 			Attributes: []sdk.Attribute{
 				{
 					Key:   evOwnerKey,
@@ -112,7 +112,7 @@ var TEPS = []testEventParsing{
 		msg: sdkutil.Event{
 			Type:   sdkutil.EventTypeMessage,
 			Module: ModuleName,
-			Action: evActionDeploymentCreate,
+			Action: evActionDeploymentCreated,
 			Attributes: []sdk.Attribute{
 				{
 					Key:   evOwnerKey,
@@ -127,7 +127,7 @@ var TEPS = []testEventParsing{
 		msg: sdkutil.Event{
 			Type:   sdkutil.EventTypeMessage,
 			Module: ModuleName,
-			Action: evActionDeploymentUpdate,
+			Action: evActionDeploymentUpdated,
 			Attributes: []sdk.Attribute{
 				{
 					Key:   evOwnerKey,
@@ -145,7 +145,7 @@ var TEPS = []testEventParsing{
 		msg: sdkutil.Event{
 			Type:   sdkutil.EventTypeMessage,
 			Module: ModuleName,
-			Action: evActionGroupClose,
+			Action: evActionGroupClosed,
 			Attributes: []sdk.Attribute{
 				{
 					Key:   evOwnerKey,
@@ -167,7 +167,7 @@ var TEPS = []testEventParsing{
 		msg: sdkutil.Event{
 			Type:   sdkutil.EventTypeMessage,
 			Module: ModuleName,
-			Action: evActionGroupClose,
+			Action: evActionGroupClosed,
 			Attributes: []sdk.Attribute{
 				{
 					Key:   evOwnerKey,
@@ -185,7 +185,7 @@ var TEPS = []testEventParsing{
 		msg: sdkutil.Event{
 			Type:   sdkutil.EventTypeMessage,
 			Module: ModuleName,
-			Action: evActionGroupClose,
+			Action: evActionGroupClosed,
 			Attributes: []sdk.Attribute{
 				{
 					Key:   evOwnerKey,
@@ -203,7 +203,7 @@ var TEPS = []testEventParsing{
 		msg: sdkutil.Event{
 			Type:   sdkutil.EventTypeMessage,
 			Module: ModuleName,
-			Action: evActionDeploymentUpdate,
+			Action: evActionDeploymentUpdated,
 			Attributes: []sdk.Attribute{
 				{
 					Key:   evOwnerKey,
@@ -221,7 +221,7 @@ var TEPS = []testEventParsing{
 		msg: sdkutil.Event{
 			Type:   sdkutil.EventTypeMessage,
 			Module: ModuleName,
-			Action: evActionDeploymentUpdate,
+			Action: evActionDeploymentUpdated,
 			Attributes: []sdk.Attribute{
 				{
 					Key:   evOwnerKey,
diff --git a/x/provider/handler/handler_test.go b/x/provider/handler/handler_test.go
index 1750d9d0..1e56617b 100644
--- a/x/provider/handler/handler_test.go
+++ b/x/provider/handler/handler_test.go
@@ -79,9 +79,9 @@ func TestProviderCreate(t *testing.T) {
 	t.Run("ensure event created", func(t *testing.T) {
 
 		iev := testutil.ParseProviderEvent(t, res.Events)
-		require.IsType(t, types.EventProviderCreate{}, iev)
+		require.IsType(t, types.EventProviderCreated{}, iev)
 
-		dev := iev.(types.EventProviderCreate)
+		dev := iev.(types.EventProviderCreated)
 
 		require.Equal(t, msg.Owner, dev.Owner)
 	})
@@ -158,9 +158,9 @@ func TestProviderUpdateExisting(t *testing.T) {
 	t.Run("ensure event created", func(t *testing.T) {
 
 		iev := testutil.ParseProviderEvent(t, res.Events[1:])
-		require.IsType(t, types.EventProviderUpdate{}, iev)
+		require.IsType(t, types.EventProviderUpdated{}, iev)
 
-		dev := iev.(types.EventProviderUpdate)
+		dev := iev.(types.EventProviderUpdated)
 
 		require.Equal(t, updateMsg.Owner, dev.Owner)
 	})
@@ -224,9 +224,9 @@ func TestProviderUpdateAttributes(t *testing.T) {
 	t.Run("ensure event created", func(t *testing.T) {
 
 		iev := testutil.ParseProviderEvent(t, res.Events[4:])
-		require.IsType(t, types.EventProviderUpdate{}, iev)
+		require.IsType(t, types.EventProviderUpdated{}, iev)
 
-		dev := iev.(types.EventProviderUpdate)
+		dev := iev.(types.EventProviderUpdated)
 
 		require.Equal(t, updateMsg.Owner, dev.Owner)
 	})
diff --git a/x/provider/types/events_test.go b/x/provider/types/events_test.go
index e96ce511..df8cd90b 100644
--- a/x/provider/types/events_test.go
+++ b/x/provider/types/events_test.go
@@ -78,7 +78,7 @@ var TEPS = []testEventParsing{
 		msg: sdkutil.Event{
 			Type:   sdkutil.EventTypeMessage,
 			Module: ModuleName,
-			Action: evActionProviderCreate,
+			Action: evActionProviderCreated,
 			Attributes: []sdk.Attribute{
 				{
 					Key:   evOwnerKey,
@@ -92,7 +92,7 @@ var TEPS = []testEventParsing{
 		msg: sdkutil.Event{
 			Type:   sdkutil.EventTypeMessage,
 			Module: ModuleName,
-			Action: evActionProviderCreate,
+			Action: evActionProviderCreated,
 			Attributes: []sdk.Attribute{
 				{
 					Key:   evOwnerKey,
@@ -106,7 +106,7 @@ var TEPS = []testEventParsing{
 		msg: sdkutil.Event{
 			Type:       sdkutil.EventTypeMessage,
 			Module:     ModuleName,
-			Action:     evActionProviderCreate,
+			Action:     evActionProviderCreated,
 			Attributes: []sdk.Attribute{},
 		},
 		expErr: errWildcard,
@@ -116,7 +116,7 @@ var TEPS = []testEventParsing{
 		msg: sdkutil.Event{
 			Type:   sdkutil.EventTypeMessage,
 			Module: ModuleName,
-			Action: evActionProviderUpdate,
+			Action: evActionProviderUpdated,
 			Attributes: []sdk.Attribute{
 				{
 					Key:   evOwnerKey,
@@ -130,7 +130,7 @@ var TEPS = []testEventParsing{
 		msg: sdkutil.Event{
 			Type:   sdkutil.EventTypeMessage,
 			Module: ModuleName,
-			Action: evActionProviderUpdate,
+			Action: evActionProviderUpdated,
 			Attributes: []sdk.Attribute{
 				{
 					Key:   evOwnerKey,
@@ -144,7 +144,7 @@ var TEPS = []testEventParsing{
 		msg: sdkutil.Event{
 			Type:       sdkutil.EventTypeMessage,
 			Module:     ModuleName,
-			Action:     evActionProviderUpdate,
+			Action:     evActionProviderUpdated,
 			Attributes: []sdk.Attribute{},
 		},
 		expErr: errWildcard,
@@ -154,7 +154,7 @@ var TEPS = []testEventParsing{
 		msg: sdkutil.Event{
 			Type:   sdkutil.EventTypeMessage,
 			Module: ModuleName,
-			Action: evActionProviderDelete,
+			Action: evActionProviderDeleted,
 			Attributes: []sdk.Attribute{
 				{
 					Key:   evOwnerKey,
@@ -168,7 +168,7 @@ var TEPS = []testEventParsing{
 		msg: sdkutil.Event{
 			Type:   sdkutil.EventTypeMessage,
 			Module: ModuleName,
-			Action: evActionProviderDelete,
+			Action: evActionProviderDeleted,
 			Attributes: []sdk.Attribute{
 				{
 					Key:   evOwnerKey,
@@ -182,7 +182,7 @@ var TEPS = []testEventParsing{
 		msg: sdkutil.Event{
 			Type:       sdkutil.EventTypeMessage,
 			Module:     ModuleName,
-			Action:     evActionProviderDelete,
+			Action:     evActionProviderDeleted,
 			Attributes: []sdk.Attribute{},
 		},
 		expErr: errWildcard,