Move receipt queues into conversation queue to handle 428s

This commit is contained in:
Jamie Kyle 2023-02-06 09:24:34 -08:00 committed by GitHub
parent 3776a04c0b
commit 2bbcc4676e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 981 additions and 223 deletions

View file

@ -8,6 +8,7 @@ import type {
IPCRequest as ChallengeRequestType,
IPCResponse as ChallengeResponseType,
} from '../challenge';
import type { ReceiptType } from '../types/Receipt';
export type AppLoadedInfoType = Readonly<{
loadTime: number;
@ -23,6 +24,11 @@ export type ConversationOpenInfoType = Readonly<{
delta: number;
}>;
export type ReceiptsInfoType = Readonly<{
type: ReceiptType;
timestamps: Array<number>;
}>;
export type StorageServiceInfoType = Readonly<{
manifestVersion: number;
}>;
@ -70,6 +76,10 @@ export class App {
return this.waitForEvent('challenge');
}
public async waitForReceipts(): Promise<ReceiptsInfoType> {
return this.waitForEvent('receipts');
}
public async waitForStorageService(): Promise<StorageServiceInfoType> {
return this.waitForEvent('storageServiceComplete');
}