From a506babf50c25a225d53b8dab94f8049c2c7e6d0 Mon Sep 17 00:00:00 2001 From: Alejo Thomas Ortega Date: Tue, 16 Jul 2024 15:35:47 -0300 Subject: [PATCH] feat: expose CatalystDeployment type --- src/platform/events/base.ts | 3 ++- src/platform/events/catalyst.ts | 7 +++++++ src/platform/events/index.ts | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 src/platform/events/catalyst.ts diff --git a/src/platform/events/base.ts b/src/platform/events/base.ts index 7d99ffb..f48e251 100644 --- a/src/platform/events/base.ts +++ b/src/platform/events/base.ts @@ -13,7 +13,8 @@ export enum EventType { ITEM_SOLD = 'item-sold', RENTAL_ENDED = 'land-rental-ended', RENTAL_STARTED = 'land-rental-started', - ROYALTIES_EARNED = 'royalties-earned' + ROYALTIES_EARNED = 'royalties-earned', + CATALYST_DEPLOYMENT = 'catalyst-deployment' } export type BaseEvent = { diff --git a/src/platform/events/catalyst.ts b/src/platform/events/catalyst.ts new file mode 100644 index 0000000..a178d61 --- /dev/null +++ b/src/platform/events/catalyst.ts @@ -0,0 +1,7 @@ +import { Entity } from '../entity' +import { BaseEvent, EventType } from './base' + +export type CatalystDeployment = BaseEvent & { + type: EventType.CATALYST_DEPLOYMENT + entity: Entity +} diff --git a/src/platform/events/index.ts b/src/platform/events/index.ts index 8d4fdb3..1547e4b 100644 --- a/src/platform/events/index.ts +++ b/src/platform/events/index.ts @@ -1,2 +1,3 @@ export * from './base' export * from './blockchain' +export * from './catalyst'