UNPKG

rubic-sdk

Version:
22 lines 1.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OneInchApiService = void 0; const blockchain_id_1 = require("../../../../../../core/blockchain/utils/blockchains-info/constants/blockchain-id"); const injector_1 = require("../../../../../../core/injector/injector"); class OneInchApiService { static oneInchHttpGetRequest(path, blockchain, options) { return injector_1.Injector.httpClient.get(`https://x-api.rubic.exchange/api/swap/v6.0/${blockchain_id_1.blockchainId[blockchain]}/${path}`, { ...options, headers: { apikey: this.apiKey } }); } static oneInchHttpGetApproveRequest(path, blockchain, options) { return injector_1.Injector.httpClient.get(`https://x-api.rubic.exchange/api/${path}/${blockchain_id_1.blockchainId[blockchain]}`, { ...options, headers: { apikey: this.apiKey } }); } } exports.OneInchApiService = OneInchApiService; OneInchApiService.apiKey = 'sndfje3u4b3fnNSDNFUSDNVSunw345842hrnfd3b4nt4'; //# sourceMappingURL=one-inch-api-service.js.map