Move receipt queues into conversation queue to handle 428s
This commit is contained in:
parent
3776a04c0b
commit
2bbcc4676e
20 changed files with 981 additions and 223 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue