Skip to content

Commit

Permalink
feat: Add passport opened event
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinszuchet committed Sep 13, 2024
1 parent 0177104 commit 2a2b819
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/platform/events/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ export namespace Events {

export enum Client {
MOVE_TO_PARCEL = 'move-to-parcel',
USED_EMOTE = 'used-emote'
USED_EMOTE = 'used-emote',
PASSPORT_OPENED = 'passport-opened'
}

export enum Rewards {
Expand Down
10 changes: 10 additions & 0 deletions src/platform/events/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,13 @@ export type UsedEmoteEvent = BaseEvent & {
}
}
}

export type PassportOpenedEvent = BaseEvent & {
type: Events.Type.CLIENT
subType: Events.SubType.Client.PASSPORT_OPENED
metadata: ClientBaseMetadata & {
passport: {
receiver: EthAddress
}
}
}

0 comments on commit 2a2b819

Please sign in to comment.