mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-04-04 20:18:03 +03:00
Removed old Analytics system connector
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
import fetchWithValidation from '../../fetchWithValidation';
|
||||
import overviewSchema from './schemas/overviewSchema';
|
||||
|
||||
export default class OrionAnalytics {
|
||||
private readonly apiUrl: string;
|
||||
|
||||
constructor(apiUrl: string) {
|
||||
this.apiUrl = apiUrl;
|
||||
|
||||
this.getOverview = this.getOverview.bind(this);
|
||||
}
|
||||
|
||||
get api() {
|
||||
return this.apiUrl;
|
||||
}
|
||||
|
||||
getOverview = () => fetchWithValidation(
|
||||
`${this.apiUrl}/overview`,
|
||||
overviewSchema,
|
||||
);
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
const overviewSchema = z.object({
|
||||
volume24h: z.number(),
|
||||
volume7d: z.number(),
|
||||
transactionCount24h: z.number(),
|
||||
transactionCount7d: z.number(),
|
||||
});
|
||||
|
||||
export default overviewSchema;
|
||||
@@ -1,4 +1,3 @@
|
||||
export * as orionAggregator from './OrionAggregator';
|
||||
export * as orionBlockchain from './OrionBlockchain';
|
||||
export * as orionAnalytics from './OrionAnalytics';
|
||||
export * as priceFeed from './PriceFeed';
|
||||
|
||||
Reference in New Issue
Block a user