@mimicry/kaleidoscope
Version:
Kaleidoscope is an NPM package that conveniently aggregates responses from multiple NFT data providers.
16 lines (15 loc) • 846 B
TypeScript
import { Chain } from '../../../enums';
import { ConsensusMechanism, DataProviders, Value } from '../../../types';
export declare class RestfulFactory {
private _verbose;
constructor(_globalConfig: any);
getName(): string;
runFactory(_dataProviders: DataProviders, _method: string, _params: any, _consensusMechanism?: ConsensusMechanism): Promise<any>;
protected addDataProvider(_providerName: string, _apiKey: string): void;
protected applyConsensusMechanism(_data: Value[], _consensusMechanism?: ConsensusMechanism): Value;
protected getBlockchain(_chain: Chain): string;
protected getCorrectProviders(_dataProviders: DataProviders, _providerName?: string): DataProviders;
protected initProviders(_providers: any): void;
private _applyConsensusFilter;
private _applyConsensusMethod;
}