Skip to content

Commit

Permalink
feat: refresh IPEX notifications on major signing events (#870)
Browse files Browse the repository at this point in the history
  • Loading branch information
iFergal authored Dec 17, 2024
1 parent b2ce1a7 commit c7b87c6
Show file tree
Hide file tree
Showing 16 changed files with 306 additions and 156 deletions.
1 change: 1 addition & 0 deletions src/core/agent/agent.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ interface KeriaNotification {
multisigId?: string;
connectionId: string;
read: boolean;
groupReplied: boolean;
}

enum KeriConnectionType {
Expand Down
2 changes: 1 addition & 1 deletion src/core/agent/event.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ interface KeriaStatusChangedEvent extends BaseEventEmitter {
interface NotificationRemovedEvent extends BaseEventEmitter {
type: typeof EventTypes.NotificationRemoved;
payload: {
keriaNotif: KeriaNotification;
id: string;
};
}

Expand Down
3 changes: 3 additions & 0 deletions src/core/agent/services/ipexCommunicationService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1939,6 +1939,7 @@ describe("IPEX communication service of agent", () => {
},
connectionId: "EGR7Jm38EcsXRIidKDZBYDm_xox6eapfU1tqxdAUzkFd",
read: true,
groupReplied: false,
};
schemaGetMock.mockResolvedValue(QVISchema);
credentialStorage.getCredentialMetadatasById.mockResolvedValue([
Expand Down Expand Up @@ -2167,6 +2168,7 @@ describe("IPEX communication service of agent", () => {
},
connectionId: "EGR7Jm38EcsXRIidKDZBYDm_xox6eapfU1tqxdAUzkFd",
read: true,
groupReplied: false,
};
schemaGetMock.mockRejectedValue(
new Error("request - 404 - SignifyClient message")
Expand All @@ -2188,6 +2190,7 @@ describe("IPEX communication service of agent", () => {
},
connectionId: "EGR7Jm38EcsXRIidKDZBYDm_xox6eapfU1tqxdAUzkFd",
read: true,
groupReplied: false,
};
await expect(
ipexCommunicationService.offerAcdcFromApply(noti.id, {})
Expand Down
Loading

0 comments on commit c7b87c6

Please sign in to comment.