UNPKG

@scrimmage/rewards

Version:
20 lines (19 loc) 782 B
import { Axios } from 'axios'; import { RewarderConfig } from '../types/RewarderConfig'; import { ScrimmageAPIService } from '../types/ScrimmageAPIServices'; import { PrivateKey } from '../types/PrivateKey'; export interface InternalRewarderConfig extends RewarderConfig { services: Record<ScrimmageAPIService, string>; privateKeys?: PrivateKey[]; } export declare class ConfigService { private rewarderConfig; setConfig(config: RewarderConfig): void; isConfigured(): boolean; getConfigOrThrow(): InternalRewarderConfig; getPrivateKeyOrThrow(alias?: string): string; getServiceUrl(service: ScrimmageAPIService): string; getNamespaceOrThrow(): string; getHttpClientOrThrow(): Axios; validateProtocol(url: string, secure: boolean): void; }