@starkware-industries/starkex-js
Version:
`starkex-js` is a JavaScript wrapper around the [StarkEx API](https://starkware.co/starkex/api/) that can be used in both NodeJS and Browser environments.
15 lines (14 loc) • 562 B
TypeScript
import { ILogger, ApiGatewayPath, ApiVersion } from '../utils';
import { StarkExClientConfig } from './starkex-client';
import { Method } from 'axios';
declare class GatewayBase {
private readonly path;
protected logger: ILogger;
private readonly endpoint;
private readonly certs;
constructor(config: StarkExClientConfig, path: ApiGatewayPath);
private getEndpoint;
private initLogger;
protected makeRequest(path: string, method?: Method, data?: Record<string, any>, version?: ApiVersion): Promise<any>;
}
export { GatewayBase };