Skip to content

Commit 38186ca

Browse files
committed
feat: eVault visualization on control-panel
1 parent 086995b commit 38186ca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1741
-4
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from "./mapping.db";
2+
//# sourceMappingURL=index.d.ts.map

infrastructure/web3-adapter/src/db/index.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infrastructure/web3-adapter/src/db/index.js

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infrastructure/web3-adapter/src/db/index.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
export declare class MappingDatabase {
2+
private db;
3+
private runAsync;
4+
private getAsync;
5+
private allAsync;
6+
constructor(dbPath: string);
7+
private initialize;
8+
/**
9+
* Store a mapping between local and global IDs
10+
*/
11+
storeMapping(params: {
12+
localId: string;
13+
globalId: string;
14+
}): Promise<void>;
15+
/**
16+
* Get the global ID for a local ID
17+
*/
18+
getGlobalId(localId: string): Promise<string | null>;
19+
/**
20+
* Get the local ID for a global ID
21+
*/
22+
getLocalId(globalId: string): Promise<string | null>;
23+
/**
24+
* Delete a mapping
25+
*/
26+
deleteMapping(localId: string): Promise<void>;
27+
/**
28+
* Get all mappings
29+
*/
30+
getAllMappings(): Promise<Array<{
31+
localId: string;
32+
globalId: string;
33+
}>>;
34+
/**
35+
* Close the database connection
36+
*/
37+
close(): void;
38+
}
39+
//# sourceMappingURL=mapping.db.d.ts.map

infrastructure/web3-adapter/src/db/mapping.db.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infrastructure/web3-adapter/src/db/mapping.db.js

Lines changed: 132 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infrastructure/web3-adapter/src/db/mapping.db.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
export interface MetaEnvelope {
2+
id?: string | null;
3+
schemaId: string;
4+
data: Record<string, any>;
5+
w3id: string;
6+
}
7+
export declare class EVaultClient {
8+
private registryUrl;
9+
private platform;
10+
private clients;
11+
private endpoints;
12+
private tokenInfo;
13+
private isDisposed;
14+
private healthCheckFailures;
15+
private lastHealthCheck;
16+
constructor(registryUrl: string, platform: string);
17+
/**
18+
* Cleanup method to properly dispose of resources
19+
*/
20+
dispose(): void;
21+
/**
22+
* Retry wrapper with exponential backoff
23+
*/
24+
private withRetry;
25+
/**
26+
* Requests a platform token from the registry
27+
* @returns Promise<string> - The platform token
28+
*/
29+
private requestPlatformToken;
30+
/**
31+
* Checks if token needs refresh
32+
*/
33+
private isTokenExpired;
34+
/**
35+
* Ensures we have a valid platform token, requesting one if needed
36+
* @returns Promise<string> - The platform token
37+
*/
38+
private ensurePlatformToken;
39+
private resolveEndpoint;
40+
private ensureClient;
41+
/**
42+
* Check if a cached endpoint is still healthy
43+
*/
44+
private isEndpointHealthy;
45+
/**
46+
* Remove cached client and endpoint for a specific w3id
47+
*/
48+
private removeCachedClient;
49+
/**
50+
* Wrapper for GraphQL requests with timeout handling
51+
*/
52+
private withTimeout;
53+
/**
54+
* Manually trigger a health check for a specific w3id
55+
* Useful for testing or forcing re-resolution
56+
*/
57+
forceHealthCheck(w3id: string): Promise<boolean>;
58+
/**
59+
* Get health status for all cached endpoints
60+
*/
61+
getHealthStatus(): Record<string, {
62+
endpoint: string;
63+
failures: number;
64+
lastCheck: number;
65+
isHealthy: boolean;
66+
}>;
67+
/**
68+
* Clear all cached clients (useful for testing or forcing fresh connections)
69+
*/
70+
clearCache(): void;
71+
storeMetaEnvelope(envelope: MetaEnvelope): Promise<string>;
72+
storeReference(referenceId: string, w3id: string): Promise<void>;
73+
fetchMetaEnvelope(id: string, w3id: string): Promise<MetaEnvelope>;
74+
updateMetaEnvelopeById(id: string, envelope: MetaEnvelope): Promise<void>;
75+
}
76+
//# sourceMappingURL=evault.d.ts.map

infrastructure/web3-adapter/src/evault/evault.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)