Removed old Analytics system connector

This commit is contained in:
Aleksandr Kraiz
2023-02-20 12:41:03 +04:00
parent eea77d48aa
commit 23757600ae
6 changed files with 33 additions and 76 deletions

View File

@@ -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,
);
}

View File

@@ -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;

View File

@@ -1,4 +1,3 @@
export * as orionAggregator from './OrionAggregator';
export * as orionBlockchain from './OrionBlockchain';
export * as orionAnalytics from './OrionAnalytics';
export * as priceFeed from './PriceFeed';