forked from Pulsefy/Lumenpulse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathremaining-diff.txt
More file actions
111 lines (103 loc) · 4.57 KB
/
Copy pathremaining-diff.txt
File metadata and controls
111 lines (103 loc) · 4.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
diff --git a/apps/backend/src/health/latency-budget.health.service.ts b/apps/backend/src/health/latency-budget.health.service.ts
index 9a63251..4dce009 100644
--- a/apps/backend/src/health/latency-budget.health.service.ts
+++ b/apps/backend/src/health/latency-budget.health.service.ts
@@ -72,7 +72,8 @@ export class LatencyBudgetHealthService {
*/
async getLatencyBudgetReport(): Promise<LatencyBudgetReport> {
const network = (process.env.STELLAR_NETWORK ?? 'testnet') as
- 'testnet' | 'mainnet';
+ | 'testnet'
+ | 'mainnet';
const horizonUrl =
process.env.STELLAR_HORIZON_URL ?? DEFAULT_HORIZON_URLS[network];
diff --git a/apps/backend/src/portfolio/dto/portfolio-snapshot.dto.ts b/apps/backend/src/portfolio/dto/portfolio-snapshot.dto.ts
index 91d80db..6764d47 100644
--- a/apps/backend/src/portfolio/dto/portfolio-snapshot.dto.ts
+++ b/apps/backend/src/portfolio/dto/portfolio-snapshot.dto.ts
@@ -132,7 +132,11 @@ export class PortfolioSnapshotBatchStatusDto {
example: 'running',
})
status:
- 'queued' | 'running' | 'completed' | 'completed_with_errors' | 'failed';
+ | 'queued'
+ | 'running'
+ | 'completed'
+ | 'completed_with_errors'
+ | 'failed';
@ApiProperty({
description: 'Total users scheduled for snapshot generation',
@@ -204,7 +208,11 @@ export class TriggerSnapshotBatchResponseDto {
example: 'queued',
})
status:
- 'queued' | 'running' | 'completed' | 'completed_with_errors' | 'failed';
+ | 'queued'
+ | 'running'
+ | 'completed'
+ | 'completed_with_errors'
+ | 'failed';
@ApiProperty({
description: 'Total users scheduled for snapshot generation',
diff --git a/apps/backend/src/portfolio/queue/portfolio-snapshot.types.ts b/apps/backend/src/portfolio/queue/portfolio-snapshot.types.ts
index 3419cf3..9682dad 100644
--- a/apps/backend/src/portfolio/queue/portfolio-snapshot.types.ts
+++ b/apps/backend/src/portfolio/queue/portfolio-snapshot.types.ts
@@ -13,7 +13,11 @@ export interface PortfolioSnapshotUserJobData {
export interface PortfolioSnapshotBatchStatus {
batchId: string;
status:
- 'queued' | 'running' | 'completed' | 'completed_with_errors' | 'failed';
+ | 'queued'
+ | 'running'
+ | 'completed'
+ | 'completed_with_errors'
+ | 'failed';
total: number;
completed: number;
failed: number;
diff --git a/apps/backend/src/soroban-events/guards/soroban-event-ingestion.guard.ts b/apps/backend/src/soroban-events/guards/soroban-event-ingestion.guard.ts
index fc8284d..892001e 100644
--- a/apps/backend/src/soroban-events/guards/soroban-event-ingestion.guard.ts
+++ b/apps/backend/src/soroban-events/guards/soroban-event-ingestion.guard.ts
@@ -56,9 +56,11 @@ export class SorobanEventIngestionGuard implements CanActivate {
}
const signature = request.headers[SOROBAN_SIGNATURE_HEADER] as
- string | undefined;
+ | string
+ | undefined;
const timestampHeader = request.headers[SOROBAN_TIMESTAMP_HEADER] as
- string | undefined;
+ | string
+ | undefined;
const nonce = request.headers[SOROBAN_NONCE_HEADER] as string | undefined;
if (!signature) {
diff --git a/apps/backend/src/stellar/services/horizon-client.service.ts b/apps/backend/src/stellar/services/horizon-client.service.ts
index d4c092b..99d03ea 100644
--- a/apps/backend/src/stellar/services/horizon-client.service.ts
+++ b/apps/backend/src/stellar/services/horizon-client.service.ts
@@ -135,7 +135,8 @@ export class HorizonClientService {
try {
const response = await this.instrumentedFetch(url, method);
const data = (await response.json()) as
- HorizonTransactionsResponse | HorizonErrorResponse;
+ | HorizonTransactionsResponse
+ | HorizonErrorResponse;
if (!response.ok) {
const errorDetail = (data as HorizonErrorResponse).detail;
diff --git a/apps/backend/src/webhook/webhook-verification.guard.ts b/apps/backend/src/webhook/webhook-verification.guard.ts
index 5832c61..df03d12 100644
--- a/apps/backend/src/webhook/webhook-verification.guard.ts
+++ b/apps/backend/src/webhook/webhook-verification.guard.ts
@@ -96,9 +96,11 @@ export class WebhookVerificationGuard implements CanActivate {
providerInfo?.timestampHeader?.toLowerCase() || 'x-webhook-timestamp';
const signatureHeader = request.headers[signatureHeaderName] as
- string | undefined;
+ | string
+ | undefined;
const timestampHeader = request.headers[timestampHeaderName] as
- string | undefined;
+ | string
+ | undefined;
if (!signatureHeader) {
this.logger.warn('Missing signature header');