Skip to content

Commit e2d8440

Browse files
committed
chore: add cron thing
1 parent bc798b5 commit e2d8440

File tree

97 files changed

+4331
-265
lines changed

Some content is hidden

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

97 files changed

+4331
-265
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: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
constructor(registryUrl: string, platform: string);
15+
/**
16+
* Cleanup method to properly dispose of resources
17+
*/
18+
dispose(): void;
19+
/**
20+
* Retry wrapper with exponential backoff
21+
*/
22+
private withRetry;
23+
/**
24+
* Requests a platform token from the registry
25+
* @returns Promise<string> - The platform token
26+
*/
27+
private requestPlatformToken;
28+
/**
29+
* Checks if token needs refresh
30+
*/
31+
private isTokenExpired;
32+
/**
33+
* Ensures we have a valid platform token, requesting one if needed
34+
* @returns Promise<string> - The platform token
35+
*/
36+
private ensurePlatformToken;
37+
private resolveEndpoint;
38+
private ensureClient;
39+
storeMetaEnvelope(envelope: MetaEnvelope): Promise<string>;
40+
storeReference(referenceId: string, w3id: string): Promise<void>;
41+
fetchMetaEnvelope(id: string, w3id: string): Promise<MetaEnvelope>;
42+
updateMetaEnvelopeById(id: string, envelope: MetaEnvelope): Promise<void>;
43+
}
44+
//# 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)