UNPKG

@etherspot/data-utils

Version:
48 lines (47 loc) 1.97 kB
var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/sdk/api/constants.ts var constants_exports = {}; __export(constants_exports, { API_ENDPOINTS: () => API_ENDPOINTS, BACKEND_API_ENDPOINT: () => BACKEND_API_ENDPOINT, MethodTypes: () => MethodTypes }); module.exports = __toCommonJS(constants_exports); var MethodTypes = { GET: "GET", POST: "POST" }; var BACKEND_API_ENDPOINT = "https://rpc.etherspot.io/data-api"; var API_ENDPOINTS = { GET_ACCOUNT_BALANCES: "account/balances", GET_ACCOUNT_NFTS: "account/nfts", GET_TRANSACTION: "transactions/transactionByHash", GET_TRANSACTIONS: "transactions", GET_ADVANCE_ROUTES_LIFI: "exchange/getAdvanceRoutesLiFi", GET_STEP_TRANSACTIONS: "exchange/getStepTransactions", GET_EXCHANGE_OFFERS: "exchange/offers", GET_CONNEXT_SUPPORTED_ASSETS: "exchange/connext/supportedAssets", GET_CONNEXT_QUOTE_TRANSACTIONS: "exchange/connext/quoteTransactions", GET_CONNEXT_TRANSACTION_STATUS: "exchange/connext/transactionStatus", GET_EXCHANGE_SUPPORTED_ASSETS: "assets/exchangeSupportedAssets", GET_TOKEN_LISTS: "assets/tokenLists", GET_TOKEN_LIST_TOKENS: "assets/tokenListTokens", EXCHANGE_RATES: "rates/exchangeRates" }; //# sourceMappingURL=constants.js.map