Skip to content

Commit

Permalink
fix: Remove service from list of services
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio committed Nov 12, 2024
1 parent eddfacf commit 519a366
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
8 changes: 3 additions & 5 deletions webapp/src/modules/vendor/VendorFactory.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BaseClientConfig } from 'decentraland-dapps/dist/lib/BaseClient'
import { convertToOutputString } from '../../utils/output'
import { ContractService, NFTService, OrderService, BidService, AnalyticsService } from './decentraland'
import { ContractService, NFTService, OrderService, BidService } from './decentraland'
import { VendorName } from './types'

export class VendorFactory {
Expand All @@ -12,8 +12,7 @@ export class VendorFactory {
new ContractService(),
new NFTService(config, shouldUseLegacyAPIs),
new OrderService(shouldUseLegacyAPIs),
new BidService(),
new AnalyticsService()
new BidService()
)
default:
throw new Error(`Invalid vendor "${convertToOutputString(vendor)}"`)
Expand All @@ -27,7 +26,6 @@ export class Vendor<V extends VendorName> {
public contractService: ContractService,
public nftService: NFTService,
public orderService: OrderService,
public bidService?: BidService,
public analyticsService?: AnalyticsService
public bidService?: BidService
) {}
}
3 changes: 1 addition & 2 deletions webapp/src/modules/vendor/decentraland/AnalyticsService.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { utils } from 'ethers'
import { AnalyticsTimeframe } from '../../analytics/types'
import { AnalyticsService as AnalyticsServiceInterface } from '../services'
import { TokenConverter } from '../TokenConverter'
import { AnalyticsAPI } from './analytics/api'
import { retryParams } from './utils'

export class AnalyticsService implements AnalyticsServiceInterface {
export class AnalyticsService {
private tokenConverter: TokenConverter
private analyticsAPI: AnalyticsAPI

Expand Down
5 changes: 0 additions & 5 deletions webapp/src/modules/vendor/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
} from '@dcl/schemas'
import { Wallet } from 'decentraland-dapps/dist/modules/wallet/types'
import { Account } from '../account/types'
import { AnalyticsTimeframe, AnalyticsVolumeData } from '../analytics/types'
import { NFT, NFTsFetchParams, NFTsCountParams } from '../nft/types'
import { OrderResponse } from './decentraland/order/types'
import { NFTsFetchFilters } from './nft/types'
Expand All @@ -24,10 +23,6 @@ export type Contract = Omit<BaseContract, 'category'> & {
vendor: VendorName | null
}

export interface AnalyticsService {
fetchVolumeData: (timeframe: AnalyticsTimeframe) => Promise<AnalyticsVolumeData>
}

export interface NFTService<V extends VendorName> {
fetch: (
params: NFTsFetchParams,
Expand Down

0 comments on commit 519a366

Please sign in to comment.