UNPKG

@atomiqlabs/sdk

Version:

atomiq labs SDK for cross-chain swaps between smart chains and bitcoin

15 lines (11 loc) 496 B
import {CtorCoinTypes, IPriceProvider} from "../../abstract/IPriceProvider"; import {MultiChain} from "../../../swapper/Swapper"; export abstract class HttpPriceProvider<T extends MultiChain> extends IPriceProvider<T> { url: string; httpRequestTimeout?: number; protected constructor(coinsMap: CtorCoinTypes<T>, url: string, httpRequestTimeout?: number) { super(coinsMap); this.url = url; this.httpRequestTimeout = httpRequestTimeout; } }