Initial Commit
Some checks failed
Build and Test / build (16.x) (push) Failing after 12s
Build and Test / build (18.x) (push) Failing after 6s
Build and Test / build (20.x) (push) Failing after 6s

This commit is contained in:
2025-11-05 15:25:20 -05:00
commit 98ab2e05a7
25 changed files with 1953 additions and 0 deletions

28
src/system.ts Normal file
View File

@@ -0,0 +1,28 @@
/**
* System module for Dragonchain system operations
*/
import { DragonchainClient } from './client';
import { SystemStatus } from './types';
export class SystemClient {
private client: DragonchainClient;
constructor(client: DragonchainClient) {
this.client = client;
}
/**
* Checks system health
*/
async health(): Promise<void> {
await this.client.get<void>('/api/v1/health');
}
/**
* Gets system status
*/
async status(): Promise<SystemStatus> {
return this.client.get<SystemStatus>('/api/v1/status');
}
}