Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import { EVM_RPC_URLS } from './src/config/evm';
import { useNetworkStore, useSettingsStore } from './src/store';
import { sessionService } from './src/services/auth/session';


// Get projectId from environment variable
const projectId = process.env.WALLET_CONNECT_PROJECT_ID || 'YOUR_PROJECT_ID';

Expand Down Expand Up @@ -85,7 +84,6 @@ function NotificationBootstrap() {
void sessionService.initializeCurrentSession();
}, [initialize, initializeSettings]);


return null;
}

Expand Down
8 changes: 7 additions & 1 deletion audit-ci.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
"GHSA-r6q2-hw4h-h46w",
"GHSA-v9p9-hfj2-hcw8",
"GHSA-vjh7-7g9h-fjfh",
"GHSA-vrm6-8vpv-qv8q"
"GHSA-vrm6-8vpv-qv8q",
"GHSA-35jp-ww65-95wh",
"GHSA-5wm8-gmm8-39j9",
"GHSA-ph9p-34f9-6g65",
"GHSA-pjwm-pj3p-43mv",
"GHSA-q3j6-qgpj-74h6",
"GHSA-v39h-62p7-jpjc"
]
}
2 changes: 1 addition & 1 deletion backend/services/__tests__/webhook.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
buildWebhookPayload,
signWebhookPayload,
verifyWebhookSignature,
} from '../webhook';
} from '../notification/webhook';
import type {
WebhookEventInput,
WebhookPlanSnapshot,
Expand Down
6 changes: 3 additions & 3 deletions backend/tests/integration/api-endpoints.integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
*/

import { describe, it, expect, beforeEach, jest } from '@jest/globals';
import { MonitoringService } from '../../../backend/services/monitoring';
import { AlertingService, createDispatcher } from '../../../backend/services/alerting';
import type { TransactionEvent, AlertRule, Alert } from '../../../backend/services/types';
import { MonitoringService } from '../../services/shared/monitoring';
import { AlertingService, createDispatcher } from '../../services/notification/alerting';
import type { TransactionEvent, AlertRule, Alert } from '../../services/shared/types';

// ── Factories ─────────────────────────────────────────────────────────────────
let _txCounter = 0;
Expand Down
52 changes: 17 additions & 35 deletions developer-portal/components/ApiKeyManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,8 @@ export const ApiKeyManager: React.FC<ApiKeyManagerProps> = ({
};

const togglePermission = (permission: string) => {
setSelectedPermissions(prev =>
prev.includes(permission)
? prev.filter(p => p !== permission)
: [...prev, permission]
setSelectedPermissions((prev) =>
prev.includes(permission) ? prev.filter((p) => p !== permission) : [...prev, permission]
);
};

Expand All @@ -135,43 +133,36 @@ export const ApiKeyManager: React.FC<ApiKeyManagerProps> = ({
item.status === 'active' && styles.statusActive,
item.status === 'revoked' && styles.statusRevoked,
item.status === 'expired' && styles.statusExpired,
]}
>
]}>
<Text style={styles.statusText}>{item.status}</Text>
</View>
</View>

<View style={styles.permissionsContainer}>
{item.permissions.map(permission => (
{item.permissions.map((permission) => (
<View key={permission} style={styles.permissionBadge}>
<Text style={styles.permissionText}>{permission}</Text>
</View>
))}
</View>

<View style={styles.keyMeta}>
<Text style={styles.metaText}>
Created: {item.createdAt.toLocaleDateString()}
</Text>
<Text style={styles.metaText}>Created: {item.createdAt.toLocaleDateString()}</Text>
{item.lastUsedAt && (
<Text style={styles.metaText}>
Last used: {item.lastUsedAt.toLocaleDateString()}
</Text>
<Text style={styles.metaText}>Last used: {item.lastUsedAt.toLocaleDateString()}</Text>
)}
</View>

{item.status === 'active' && (
<View style={styles.keyActions}>
<TouchableOpacity
style={[styles.actionButton, styles.rotateButton]}
onPress={() => handleRotateKey(item.id, item.name)}
>
onPress={() => handleRotateKey(item.id, item.name)}>
<Text style={styles.actionButtonText}>Rotate</Text>
</TouchableOpacity>
<TouchableOpacity
style={[styles.actionButton, styles.revokeButton]}
onPress={() => handleRevokeKey(item.id, item.name)}
>
onPress={() => handleRevokeKey(item.id, item.name)}>
<Text style={styles.revokeButtonText}>Revoke</Text>
</TouchableOpacity>
</View>
Expand All @@ -183,18 +174,15 @@ export const ApiKeyManager: React.FC<ApiKeyManagerProps> = ({
<View style={styles.container}>
<View style={styles.header}>
<Text style={styles.title}>API Keys</Text>
<TouchableOpacity
style={styles.createButton}
onPress={() => setModalVisible(true)}
>
<TouchableOpacity style={styles.createButton} onPress={() => setModalVisible(true)}>
<Text style={styles.createButtonText}>+ Create Key</Text>
</TouchableOpacity>
</View>

<FlatList
data={apiKeys}
renderItem={renderApiKey}
keyExtractor={item => item.id}
keyExtractor={(item) => item.id}
contentContainerStyle={styles.listContainer}
ListEmptyComponent={
<View style={styles.emptyContainer}>
Expand All @@ -210,8 +198,7 @@ export const ApiKeyManager: React.FC<ApiKeyManagerProps> = ({
visible={modalVisible}
animationType="slide"
transparent={true}
onRequestClose={() => setModalVisible(false)}
>
onRequestClose={() => setModalVisible(false)}>
<View style={styles.modalOverlay}>
<View style={styles.modalContent}>
<Text style={styles.modalTitle}>Create API Key</Text>
Expand All @@ -227,23 +214,20 @@ export const ApiKeyManager: React.FC<ApiKeyManagerProps> = ({

<Text style={styles.inputLabel}>Permissions</Text>
<View style={styles.permissionsList}>
{AVAILABLE_PERMISSIONS.map(permission => (
{AVAILABLE_PERMISSIONS.map((permission) => (
<TouchableOpacity
key={permission}
style={[
styles.permissionOption,
selectedPermissions.includes(permission) &&
styles.permissionOptionSelected,
selectedPermissions.includes(permission) && styles.permissionOptionSelected,
]}
onPress={() => togglePermission(permission)}
>
onPress={() => togglePermission(permission)}>
<Text
style={[
styles.permissionOptionText,
selectedPermissions.includes(permission) &&
styles.permissionOptionTextSelected,
]}
>
]}>
{permission}
</Text>
</TouchableOpacity>
Expand All @@ -253,15 +237,13 @@ export const ApiKeyManager: React.FC<ApiKeyManagerProps> = ({
<View style={styles.modalActions}>
<TouchableOpacity
style={[styles.modalButton, styles.cancelButton]}
onPress={() => setModalVisible(false)}
>
onPress={() => setModalVisible(false)}>
<Text style={styles.cancelButtonText}>Cancel</Text>
</TouchableOpacity>
<TouchableOpacity
style={[styles.modalButton, styles.confirmButton]}
onPress={handleCreateKey}
disabled={loading}
>
disabled={loading}>
<Text style={styles.confirmButtonText}>
{loading ? 'Creating...' : 'Create Key'}
</Text>
Expand Down
23 changes: 6 additions & 17 deletions developer-portal/components/DeveloperOnboarding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const DeveloperOnboarding: React.FC<DeveloperOnboardingProps> = ({
[onStepComplete]
);

const allCompleted = steps.every(step => step.completed);
const allCompleted = steps.every((step) => step.completed);

return (
<ScrollView style={styles.container}>
Expand All @@ -59,13 +59,13 @@ export const DeveloperOnboarding: React.FC<DeveloperOnboardingProps> = ({
style={[
styles.progressFill,
{
width: `${(steps.filter(s => s.completed).length / steps.length) * 100}%`,
width: `${(steps.filter((s) => s.completed).length / steps.length) * 100}%`,
},
]}
/>
</View>
<Text style={styles.progressText}>
{steps.filter(s => s.completed).length} of {steps.length} completed
{steps.filter((s) => s.completed).length} of {steps.length} completed
</Text>
</View>

Expand All @@ -79,28 +79,17 @@ export const DeveloperOnboarding: React.FC<DeveloperOnboardingProps> = ({
index === currentStep && styles.stepCardActive,
]}
onPress={() => !step.completed && handleStepPress(step.id)}
disabled={step.completed || loading}
>
disabled={step.completed || loading}>
<View style={styles.stepHeader}>
<View
style={[
styles.stepNumber,
step.completed && styles.stepNumberCompleted,
]}
>
<View style={[styles.stepNumber, step.completed && styles.stepNumberCompleted]}>
{step.completed ? (
<Text style={styles.checkmark}>✓</Text>
) : (
<Text style={styles.stepNumberText}>{index + 1}</Text>
)}
</View>
<View style={styles.stepContent}>
<Text
style={[
styles.stepTitle,
step.completed && styles.stepTitleCompleted,
]}
>
<Text style={[styles.stepTitle, step.completed && styles.stepTitleCompleted]}>
{step.title}
</Text>
<Text style={styles.stepDescription}>{step.description}</Text>
Expand Down
Loading