UNPKG

@dima_aryze/reforge

Version:

TypeScript/JavaScript SDK for Reforge - Cross-chain token operations

55 lines 1.36 kB
/** * Main Reforge HTTP client implementation */ import { BaseHttpClient } from './base'; /** * Reforge-specific HTTP client with convenient HTTP method wrappers */ export class ReforgeClient extends BaseHttpClient { constructor(options) { super(options); } /** * Make GET request */ async get(path, params, options) { return this.makeRequest('GET', path, params, options); } /** * Make POST request */ async post(path, data, options) { return this.makeRequest('POST', path, data, options); } /** * Make PUT request */ async put(path, data, options) { return this.makeRequest('PUT', path, data, options); } /** * Make PATCH request */ async patch(path, data, options) { return this.makeRequest('PATCH', path, data, options); } /** * Make DELETE request */ async delete(path, options) { return this.makeRequest('DELETE', path, undefined, options); } /** * Get health status of the API */ async health() { return this.get('/health', undefined, { skipAuth: true }); } /** * Get API version information */ async version() { return this.get('/version', undefined, { skipAuth: true }); } } //# sourceMappingURL=reforge-client.js.map