@exodus/assets
Advanced tools
Comparing version 8.0.76 to 8.0.77
@@ -8,18 +8,11 @@ "use strict"; | ||
var _validateAsset = require("../validate-asset"); | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
function createCombined(assetDef) { | ||
var asset = _objectSpread(_objectSpread({}, assetDef), {}, { | ||
const asset = { | ||
...assetDef, | ||
isCombined: true, | ||
toString: function toString() { | ||
return assetDef.name; | ||
}, | ||
toString: () => assetDef.name, | ||
info: assetDef.info || {} | ||
}); | ||
}; | ||
(0, _validateAsset.validateCombinedAssetDef)(asset); | ||
return asset; | ||
} |
@@ -7,11 +7,11 @@ "use strict"; | ||
exports.units = exports.ticker = exports.properTicker = exports.properName = exports.name = exports.info = exports.combinedAssetNames = exports.assetType = void 0; | ||
var name = 'usdcoin_ftx'; | ||
const name = 'usdcoin_ftx'; | ||
exports.name = name; | ||
var properName = 'USD'; | ||
const properName = 'USD'; | ||
exports.properName = properName; | ||
var ticker = 'USDCFTX'; | ||
const ticker = 'USDCFTX'; | ||
exports.ticker = ticker; | ||
var properTicker = 'USD'; | ||
const properTicker = 'USD'; | ||
exports.properTicker = properTicker; | ||
var units = { | ||
const units = { | ||
base: 0, | ||
@@ -21,9 +21,9 @@ USDCFTX: 8 | ||
exports.units = units; | ||
var assetType = 'CUSTODIAL_FTX'; | ||
const assetType = 'CUSTODIAL_FTX'; | ||
exports.assetType = assetType; | ||
var combinedAssetNames = ['usdcoin']; | ||
const combinedAssetNames = ['usdcoin']; | ||
exports.combinedAssetNames = combinedAssetNames; | ||
var info = { | ||
const info = { | ||
description: 'USDC, BUSD, USDP, TUSD, and HUSD all count as "USD" balance in FTX. You can deposit and withdraw USD via Exodus through USDC on Ethereum.' | ||
}; | ||
exports.info = info; |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
var _createCombined = require("./create-combined"); | ||
@@ -32,8 +31,6 @@ var audius = _interopRequireWildcard(require("./networks/audius")); | ||
var usdcoinFtx = _interopRequireWildcard(require("./ftx/usdcoin_ftx")); | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
var _rawAssetList = [audius, axieinfinity, bittorrent, bnb, busd, chainlink, dai, fantom, ftx, gala, gmt, oneinch, polygon, sandbox, shibainu, smoothlovepotion, sportx, tetherusd, thegraph, usdcoin, usdcoinFtx, weth, wbtc]; | ||
var _default = Object.fromEntries(_rawAssetList.map(function (asset) { | ||
return [asset.name, (0, _createCombined.createCombined)(asset)]; | ||
})); | ||
exports["default"] = _default; | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
const _rawAssetList = [audius, axieinfinity, bittorrent, bnb, busd, chainlink, dai, fantom, ftx, gala, gmt, oneinch, polygon, sandbox, shibainu, smoothlovepotion, sportx, tetherusd, thegraph, usdcoin, usdcoinFtx, weth, wbtc]; | ||
var _default = Object.fromEntries(_rawAssetList.map(asset => [asset.name, (0, _createCombined.createCombined)(asset)])); | ||
exports.default = _default; |
@@ -8,25 +8,23 @@ "use strict"; | ||
var _assetsBase = _interopRequireDefault(require("@exodus/assets-base")); | ||
var _units; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
var name = '_1inch'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const name = '_1inch'; | ||
exports.name = name; | ||
var properName = '1inch'; | ||
const properName = '1inch'; | ||
exports.properName = properName; | ||
var ticker = "".concat(name, "_1INCH"); | ||
const ticker = `${name}_1INCH`; | ||
exports.ticker = ticker; | ||
var properTicker = '1INCH'; | ||
const properTicker = '1INCH'; | ||
exports.properTicker = properTicker; | ||
var units = (_units = {}, _defineProperty(_units, "".concat(name, "_base"), 0), _defineProperty(_units, ticker, 18), _units); | ||
const units = { | ||
[`${name}_base`]: 0, | ||
[ticker]: 18 | ||
}; | ||
exports.units = units; | ||
var assetType = 'MULTI_NETWORK_ASSET'; | ||
const assetType = 'MULTI_NETWORK_ASSET'; | ||
exports.assetType = assetType; | ||
var combinedAssetNames = ['oneinch', '1inch_bsc_61c44543']; | ||
const combinedAssetNames = ['oneinch', '1inch_bsc_61c44543']; | ||
exports.combinedAssetNames = combinedAssetNames; | ||
var info = { | ||
description: _assetsBase["default"].oneinch.info.description | ||
const info = { | ||
description: _assetsBase.default.oneinch.info.description | ||
}; | ||
exports.info = info; |
@@ -8,25 +8,23 @@ "use strict"; | ||
var _assetsBase = _interopRequireDefault(require("@exodus/assets-base")); | ||
var _units; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
var name = '_audius'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const name = '_audius'; | ||
exports.name = name; | ||
var properName = 'Audius'; | ||
const properName = 'Audius'; | ||
exports.properName = properName; | ||
var ticker = "".concat(name, "_AUDIO"); | ||
const ticker = `${name}_AUDIO`; | ||
exports.ticker = ticker; | ||
var properTicker = 'AUDIO'; | ||
const properTicker = 'AUDIO'; | ||
exports.properTicker = properTicker; | ||
var units = (_units = {}, _defineProperty(_units, "".concat(name, "_base"), 0), _defineProperty(_units, ticker, 18), _units); | ||
const units = { | ||
[`${name}_base`]: 0, | ||
[ticker]: 18 | ||
}; | ||
exports.units = units; | ||
var assetType = 'MULTI_NETWORK_ASSET'; | ||
const assetType = 'MULTI_NETWORK_ASSET'; | ||
exports.assetType = assetType; | ||
var combinedAssetNames = ['audius', 'audius_solana']; | ||
const combinedAssetNames = ['audius', 'audius_solana']; | ||
exports.combinedAssetNames = combinedAssetNames; | ||
var info = { | ||
description: _assetsBase["default"].audius.info.description | ||
const info = { | ||
description: _assetsBase.default.audius.info.description | ||
}; | ||
exports.info = info; |
@@ -8,25 +8,23 @@ "use strict"; | ||
var _assetsBase = _interopRequireDefault(require("@exodus/assets-base")); | ||
var _units; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
var name = '_axieinfinity'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const name = '_axieinfinity'; | ||
exports.name = name; | ||
var properName = 'Axie Infinity'; | ||
const properName = 'Axie Infinity'; | ||
exports.properName = properName; | ||
var ticker = "".concat(name, "_AXS"); | ||
const ticker = `${name}_AXS`; | ||
exports.ticker = ticker; | ||
var properTicker = 'AXS'; | ||
const properTicker = 'AXS'; | ||
exports.properTicker = properTicker; | ||
var units = (_units = {}, _defineProperty(_units, "".concat(name, "_base"), 0), _defineProperty(_units, ticker, 18), _units); | ||
const units = { | ||
[`${name}_base`]: 0, | ||
[ticker]: 18 | ||
}; | ||
exports.units = units; | ||
var assetType = 'MULTI_NETWORK_ASSET'; | ||
const assetType = 'MULTI_NETWORK_ASSET'; | ||
exports.assetType = assetType; | ||
var combinedAssetNames = ['axieinfinity', 'axieinfinity_solana']; | ||
const combinedAssetNames = ['axieinfinity', 'axieinfinity_solana']; | ||
exports.combinedAssetNames = combinedAssetNames; | ||
var info = { | ||
description: _assetsBase["default"].axieinfinity.info.description | ||
const info = { | ||
description: _assetsBase.default.axieinfinity.info.description | ||
}; | ||
exports.info = info; |
@@ -8,25 +8,23 @@ "use strict"; | ||
var _assetsBase = _interopRequireDefault(require("@exodus/assets-base")); | ||
var _units; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
var name = '_bittorrent'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const name = '_bittorrent'; | ||
exports.name = name; | ||
var properName = 'BitTorrent'; | ||
const properName = 'BitTorrent'; | ||
exports.properName = properName; | ||
var ticker = "".concat(name, "_BTT"); | ||
const ticker = `${name}_BTT`; | ||
exports.ticker = ticker; | ||
var properTicker = 'BTT'; | ||
const properTicker = 'BTT'; | ||
exports.properTicker = properTicker; | ||
var units = (_units = {}, _defineProperty(_units, "".concat(name, "_base"), 0), _defineProperty(_units, ticker, 8), _units); | ||
const units = { | ||
[`${name}_base`]: 0, | ||
[ticker]: 8 | ||
}; | ||
exports.units = units; | ||
var assetType = 'MULTI_NETWORK_ASSET'; | ||
const assetType = 'MULTI_NETWORK_ASSET'; | ||
exports.assetType = assetType; | ||
var combinedAssetNames = ['bittorrentv2', 'bittorrent']; | ||
const combinedAssetNames = ['bittorrentv2', 'bittorrent']; | ||
exports.combinedAssetNames = combinedAssetNames; | ||
var info = { | ||
description: _assetsBase["default"].bittorrentv2.info.description | ||
const info = { | ||
description: _assetsBase.default.bittorrentv2.info.description | ||
}; | ||
exports.info = info; |
@@ -8,25 +8,23 @@ "use strict"; | ||
var _assetsBase = _interopRequireDefault(require("@exodus/assets-base")); | ||
var _units; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
var name = '_bnb'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const name = '_bnb'; | ||
exports.name = name; | ||
var properName = 'Binance Coin'; | ||
const properName = 'Binance Coin'; | ||
exports.properName = properName; | ||
var ticker = "".concat(name, "_BNB"); | ||
const ticker = `${name}_BNB`; | ||
exports.ticker = ticker; | ||
var properTicker = 'BNB'; | ||
const properTicker = 'BNB'; | ||
exports.properTicker = properTicker; | ||
var units = (_units = {}, _defineProperty(_units, "".concat(name, "_base"), 0), _defineProperty(_units, ticker, 8), _units); | ||
const units = { | ||
[`${name}_base`]: 0, | ||
[ticker]: 8 | ||
}; | ||
exports.units = units; | ||
var assetType = 'MULTI_NETWORK_ASSET'; | ||
const assetType = 'MULTI_NETWORK_ASSET'; | ||
exports.assetType = assetType; | ||
var combinedAssetNames = ['bnbmainnet', 'bsc']; | ||
const combinedAssetNames = ['bnbmainnet', 'bsc']; | ||
exports.combinedAssetNames = combinedAssetNames; | ||
var info = { | ||
description: _assetsBase["default"].bnbmainnet.info.description | ||
const info = { | ||
description: _assetsBase.default.bnbmainnet.info.description | ||
}; | ||
exports.info = info; |
@@ -8,25 +8,23 @@ "use strict"; | ||
var _assetsBase = _interopRequireDefault(require("@exodus/assets-base")); | ||
var _units; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
var name = '_busd'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const name = '_busd'; | ||
exports.name = name; | ||
var properName = 'Binance USD'; | ||
const properName = 'Binance USD'; | ||
exports.properName = properName; | ||
var ticker = "".concat(name, "_BUSD"); | ||
const ticker = `${name}_BUSD`; | ||
exports.ticker = ticker; | ||
var properTicker = 'BUSD'; | ||
const properTicker = 'BUSD'; | ||
exports.properTicker = properTicker; | ||
var units = (_units = {}, _defineProperty(_units, "".concat(name, "_base"), 0), _defineProperty(_units, ticker, 8), _units); | ||
const units = { | ||
[`${name}_base`]: 0, | ||
[ticker]: 8 | ||
}; | ||
exports.units = units; | ||
var assetType = 'MULTI_NETWORK_ASSET'; | ||
const assetType = 'MULTI_NETWORK_ASSET'; | ||
exports.assetType = assetType; | ||
var combinedAssetNames = ['busd', 'busd_bsc', 'busd_bnbmainnet']; | ||
const combinedAssetNames = ['busd', 'busd_bsc', 'busd_bnbmainnet']; | ||
exports.combinedAssetNames = combinedAssetNames; | ||
var info = { | ||
description: _assetsBase["default"].busd.info.description | ||
const info = { | ||
description: _assetsBase.default.busd.info.description | ||
}; | ||
exports.info = info; |
@@ -8,25 +8,23 @@ "use strict"; | ||
var _assetsBase = _interopRequireDefault(require("@exodus/assets-base")); | ||
var _units; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
var name = '_chainlink'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const name = '_chainlink'; | ||
exports.name = name; | ||
var properName = 'Chainlink'; | ||
const properName = 'Chainlink'; | ||
exports.properName = properName; | ||
var ticker = "".concat(name, "_LINK"); | ||
const ticker = `${name}_LINK`; | ||
exports.ticker = ticker; | ||
var properTicker = 'LINK'; | ||
const properTicker = 'LINK'; | ||
exports.properTicker = properTicker; | ||
var units = (_units = {}, _defineProperty(_units, "".concat(name, "_base"), 0), _defineProperty(_units, ticker, 6), _units); | ||
const units = { | ||
[`${name}_base`]: 0, | ||
[ticker]: 6 | ||
}; | ||
exports.units = units; | ||
var assetType = 'MULTI_NETWORK_ASSET'; | ||
const assetType = 'MULTI_NETWORK_ASSET'; | ||
exports.assetType = assetType; | ||
var combinedAssetNames = ['chainlink', 'chainlink_solana', 'link_matic_0fc0671d']; | ||
const combinedAssetNames = ['chainlink', 'chainlink_solana', 'link_matic_0fc0671d']; | ||
exports.combinedAssetNames = combinedAssetNames; | ||
var info = { | ||
description: _assetsBase["default"].chainlink.info.description | ||
const info = { | ||
description: _assetsBase.default.chainlink.info.description | ||
}; | ||
exports.info = info; |
@@ -8,25 +8,23 @@ "use strict"; | ||
var _assetsBase = _interopRequireDefault(require("@exodus/assets-base")); | ||
var _units; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
var name = '_dai'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const name = '_dai'; | ||
exports.name = name; | ||
var properName = 'DAI'; | ||
const properName = 'DAI'; | ||
exports.properName = properName; | ||
var ticker = "".concat(name, "_DAI"); | ||
const ticker = `${name}_DAI`; | ||
exports.ticker = ticker; | ||
var properTicker = 'DAI'; | ||
const properTicker = 'DAI'; | ||
exports.properTicker = properTicker; | ||
var units = (_units = {}, _defineProperty(_units, "".concat(name, "_base"), 0), _defineProperty(_units, ticker, 18), _units); | ||
const units = { | ||
[`${name}_base`]: 0, | ||
[ticker]: 18 | ||
}; | ||
exports.units = units; | ||
var assetType = 'MULTI_NETWORK_ASSET'; | ||
const assetType = 'MULTI_NETWORK_ASSET'; | ||
exports.assetType = assetType; | ||
var combinedAssetNames = ['mcd', 'dai_matic_845af41b']; | ||
const combinedAssetNames = ['mcd', 'dai_matic_845af41b']; | ||
exports.combinedAssetNames = combinedAssetNames; | ||
var info = { | ||
description: _assetsBase["default"].mcd.info.description | ||
const info = { | ||
description: _assetsBase.default.mcd.info.description | ||
}; | ||
exports.info = info; |
@@ -8,25 +8,23 @@ "use strict"; | ||
var _assetsBase = _interopRequireDefault(require("@exodus/assets-base")); | ||
var _units; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
var name = '_fantom'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const name = '_fantom'; | ||
exports.name = name; | ||
var properName = 'Fantom'; | ||
const properName = 'Fantom'; | ||
exports.properName = properName; | ||
var ticker = "".concat(name, "_FTM"); | ||
const ticker = `${name}_FTM`; | ||
exports.ticker = ticker; | ||
var properTicker = 'FTM'; | ||
const properTicker = 'FTM'; | ||
exports.properTicker = properTicker; | ||
var units = (_units = {}, _defineProperty(_units, "".concat(name, "_base"), 0), _defineProperty(_units, ticker, 8), _units); | ||
const units = { | ||
[`${name}_base`]: 0, | ||
[ticker]: 8 | ||
}; | ||
exports.units = units; | ||
var assetType = 'MULTI_NETWORK_ASSET'; | ||
const assetType = 'MULTI_NETWORK_ASSET'; | ||
exports.assetType = assetType; | ||
var combinedAssetNames = ['fantom', 'fantommainnet']; | ||
const combinedAssetNames = ['fantom', 'fantommainnet']; | ||
exports.combinedAssetNames = combinedAssetNames; | ||
var info = { | ||
description: _assetsBase["default"].fantommainnet.info.description | ||
const info = { | ||
description: _assetsBase.default.fantommainnet.info.description | ||
}; | ||
exports.info = info; |
@@ -8,25 +8,23 @@ "use strict"; | ||
var _assetsBase = _interopRequireDefault(require("@exodus/assets-base")); | ||
var _units; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
var name = '_ftx'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const name = '_ftx'; | ||
exports.name = name; | ||
var properName = 'FTX Token'; | ||
const properName = 'FTX Token'; | ||
exports.properName = properName; | ||
var ticker = "".concat(name, "_FTX"); | ||
const ticker = `${name}_FTX`; | ||
exports.ticker = ticker; | ||
var properTicker = 'FTT'; | ||
const properTicker = 'FTT'; | ||
exports.properTicker = properTicker; | ||
var units = (_units = {}, _defineProperty(_units, "".concat(name, "_base"), 0), _defineProperty(_units, ticker, 18), _units); | ||
const units = { | ||
[`${name}_base`]: 0, | ||
[ticker]: 18 | ||
}; | ||
exports.units = units; | ||
var assetType = 'MULTI_NETWORK_ASSET'; | ||
const assetType = 'MULTI_NETWORK_ASSET'; | ||
exports.assetType = assetType; | ||
var combinedAssetNames = ['ftxtoken', 'agfe_solana_c5cba5c4']; | ||
const combinedAssetNames = ['ftxtoken', 'agfe_solana_c5cba5c4']; | ||
exports.combinedAssetNames = combinedAssetNames; | ||
var info = { | ||
description: _assetsBase["default"].ftxtoken.info.description | ||
const info = { | ||
description: _assetsBase.default.ftxtoken.info.description | ||
}; | ||
exports.info = info; |
@@ -8,25 +8,23 @@ "use strict"; | ||
var _assetsBase = _interopRequireDefault(require("@exodus/assets-base")); | ||
var _units; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
var name = '_gala'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const name = '_gala'; | ||
exports.name = name; | ||
var properName = 'Gala'; | ||
const properName = 'Gala'; | ||
exports.properName = properName; | ||
var ticker = "".concat(name, "_GALA"); | ||
const ticker = `${name}_GALA`; | ||
exports.ticker = ticker; | ||
var properTicker = 'GALA'; | ||
const properTicker = 'GALA'; | ||
exports.properTicker = properTicker; | ||
var units = (_units = {}, _defineProperty(_units, "".concat(name, "_base"), 0), _defineProperty(_units, ticker, 8), _units); | ||
const units = { | ||
[`${name}_base`]: 0, | ||
[ticker]: 8 | ||
}; | ||
exports.units = units; | ||
var assetType = 'MULTI_NETWORK_ASSET'; | ||
const assetType = 'MULTI_NETWORK_ASSET'; | ||
exports.assetType = assetType; | ||
var combinedAssetNames = ['gala', 'gala_bsc_6a9fa72d']; | ||
const combinedAssetNames = ['gala', 'gala_bsc_6a9fa72d']; | ||
exports.combinedAssetNames = combinedAssetNames; | ||
var info = { | ||
description: _assetsBase["default"].gala.info.description | ||
const info = { | ||
description: _assetsBase.default.gala.info.description | ||
}; | ||
exports.info = info; |
@@ -8,25 +8,23 @@ "use strict"; | ||
var _assetsBase = _interopRequireDefault(require("@exodus/assets-base")); | ||
var _units; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
var name = '_gmt'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const name = '_gmt'; | ||
exports.name = name; | ||
var properName = 'Green Metaverse Token'; | ||
const properName = 'Green Metaverse Token'; | ||
exports.properName = properName; | ||
var ticker = "".concat(name, "_GMT"); | ||
const ticker = `${name}_GMT`; | ||
exports.ticker = ticker; | ||
var properTicker = 'GMT'; | ||
const properTicker = 'GMT'; | ||
exports.properTicker = properTicker; | ||
var units = (_units = {}, _defineProperty(_units, "".concat(name, "_base"), 0), _defineProperty(_units, ticker, 8), _units); | ||
const units = { | ||
[`${name}_base`]: 0, | ||
[ticker]: 8 | ||
}; | ||
exports.units = units; | ||
var assetType = 'MULTI_NETWORK_ASSET'; | ||
const assetType = 'MULTI_NETWORK_ASSET'; | ||
exports.assetType = assetType; | ||
var combinedAssetNames = ['gmt_bsc', '7i5k_solana_c9e04412']; | ||
const combinedAssetNames = ['gmt_bsc', '7i5k_solana_c9e04412']; | ||
exports.combinedAssetNames = combinedAssetNames; | ||
var info = { | ||
description: _assetsBase["default"].gmt_bsc.info.description | ||
const info = { | ||
description: _assetsBase.default.gmt_bsc.info.description | ||
}; | ||
exports.info = info; |
@@ -8,25 +8,23 @@ "use strict"; | ||
var _assetsBase = _interopRequireDefault(require("@exodus/assets-base")); | ||
var _units; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
var name = '_matic'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const name = '_matic'; | ||
exports.name = name; | ||
var properName = 'Polygon'; | ||
const properName = 'Polygon'; | ||
exports.properName = properName; | ||
var ticker = "".concat(name, "_MATIC"); | ||
const ticker = `${name}_MATIC`; | ||
exports.ticker = ticker; | ||
var properTicker = 'MATIC'; | ||
const properTicker = 'MATIC'; | ||
exports.properTicker = properTicker; | ||
var units = (_units = {}, _defineProperty(_units, "".concat(name, "_base"), 0), _defineProperty(_units, ticker, 8), _units); | ||
const units = { | ||
[`${name}_base`]: 0, | ||
[ticker]: 8 | ||
}; | ||
exports.units = units; | ||
var assetType = 'MULTI_NETWORK_ASSET'; | ||
const assetType = 'MULTI_NETWORK_ASSET'; | ||
exports.assetType = assetType; | ||
var combinedAssetNames = ['matic', 'polygon']; | ||
const combinedAssetNames = ['matic', 'polygon']; | ||
exports.combinedAssetNames = combinedAssetNames; | ||
var info = { | ||
description: _assetsBase["default"].matic.info.description | ||
const info = { | ||
description: _assetsBase.default.matic.info.description | ||
}; | ||
exports.info = info; |
@@ -8,25 +8,23 @@ "use strict"; | ||
var _assetsBase = _interopRequireDefault(require("@exodus/assets-base")); | ||
var _units; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
var name = '_sand'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const name = '_sand'; | ||
exports.name = name; | ||
var properName = 'The Sandbox'; | ||
const properName = 'The Sandbox'; | ||
exports.properName = properName; | ||
var ticker = "".concat(name, "_SAND"); | ||
const ticker = `${name}_SAND`; | ||
exports.ticker = ticker; | ||
var properTicker = 'SAND'; | ||
const properTicker = 'SAND'; | ||
exports.properTicker = properTicker; | ||
var units = (_units = {}, _defineProperty(_units, "".concat(name, "_base"), 0), _defineProperty(_units, ticker, 18), _units); | ||
const units = { | ||
[`${name}_base`]: 0, | ||
[ticker]: 18 | ||
}; | ||
exports.units = units; | ||
var assetType = 'MULTI_NETWORK_ASSET'; | ||
const assetType = 'MULTI_NETWORK_ASSET'; | ||
exports.assetType = assetType; | ||
var combinedAssetNames = ['sandbox', 'sand_matic_0472de85']; | ||
const combinedAssetNames = ['sandbox', 'sand_matic_0472de85']; | ||
exports.combinedAssetNames = combinedAssetNames; | ||
var info = { | ||
description: _assetsBase["default"].sandbox.info.description | ||
const info = { | ||
description: _assetsBase.default.sandbox.info.description | ||
}; | ||
exports.info = info; |
@@ -8,25 +8,23 @@ "use strict"; | ||
var _assetsBase = _interopRequireDefault(require("@exodus/assets-base")); | ||
var _units; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
var name = '_shibainu'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const name = '_shibainu'; | ||
exports.name = name; | ||
var properName = 'Shiba Inu'; | ||
const properName = 'Shiba Inu'; | ||
exports.properName = properName; | ||
var ticker = "".concat(name, "_SHIB"); | ||
const ticker = `${name}_SHIB`; | ||
exports.ticker = ticker; | ||
var properTicker = 'SHIB'; | ||
const properTicker = 'SHIB'; | ||
exports.properTicker = properTicker; | ||
var units = (_units = {}, _defineProperty(_units, "".concat(name, "_base"), 0), _defineProperty(_units, ticker, 18), _units); | ||
const units = { | ||
[`${name}_base`]: 0, | ||
[ticker]: 18 | ||
}; | ||
exports.units = units; | ||
var assetType = 'MULTI_NETWORK_ASSET'; | ||
const assetType = 'MULTI_NETWORK_ASSET'; | ||
exports.assetType = assetType; | ||
var combinedAssetNames = ['shibainu', 'shibainu_bsc']; | ||
const combinedAssetNames = ['shibainu', 'shibainu_bsc']; | ||
exports.combinedAssetNames = combinedAssetNames; | ||
var info = { | ||
description: _assetsBase["default"].shibainu.info.description | ||
const info = { | ||
description: _assetsBase.default.shibainu.info.description | ||
}; | ||
exports.info = info; |
@@ -8,25 +8,23 @@ "use strict"; | ||
var _assetsBase = _interopRequireDefault(require("@exodus/assets-base")); | ||
var _units; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
var name = '_smoothlovepotion'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const name = '_smoothlovepotion'; | ||
exports.name = name; | ||
var properName = 'Smooth Love Potion'; | ||
const properName = 'Smooth Love Potion'; | ||
exports.properName = properName; | ||
var ticker = "".concat(name, "_SLP"); | ||
const ticker = `${name}_SLP`; | ||
exports.ticker = ticker; | ||
var properTicker = 'SLP'; | ||
const properTicker = 'SLP'; | ||
exports.properTicker = properTicker; | ||
var units = (_units = {}, _defineProperty(_units, "".concat(name, "_base"), 0), _defineProperty(_units, ticker, 0), _units); | ||
const units = { | ||
[`${name}_base`]: 0, | ||
[ticker]: 0 | ||
}; | ||
exports.units = units; | ||
var assetType = 'MULTI_NETWORK_ASSET'; | ||
const assetType = 'MULTI_NETWORK_ASSET'; | ||
exports.assetType = assetType; | ||
var combinedAssetNames = ['smoothlovepotion', 'smoothlovepotion_solana']; | ||
const combinedAssetNames = ['smoothlovepotion', 'smoothlovepotion_solana']; | ||
exports.combinedAssetNames = combinedAssetNames; | ||
var info = { | ||
description: _assetsBase["default"].smoothlovepotion.info.description | ||
const info = { | ||
description: _assetsBase.default.smoothlovepotion.info.description | ||
}; | ||
exports.info = info; |
@@ -8,25 +8,23 @@ "use strict"; | ||
var _assetsBase = _interopRequireDefault(require("@exodus/assets-base")); | ||
var _units; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
var name = '_sportx'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const name = '_sportx'; | ||
exports.name = name; | ||
var properName = 'SportX'; | ||
const properName = 'SportX'; | ||
exports.properName = properName; | ||
var ticker = "".concat(name, "_SX"); | ||
const ticker = `${name}_SX`; | ||
exports.ticker = ticker; | ||
var properTicker = 'SX'; | ||
const properTicker = 'SX'; | ||
exports.properTicker = properTicker; | ||
var units = (_units = {}, _defineProperty(_units, "".concat(name, "_base"), 0), _defineProperty(_units, ticker, 18), _units); | ||
const units = { | ||
[`${name}_base`]: 0, | ||
[ticker]: 18 | ||
}; | ||
exports.units = units; | ||
var assetType = 'MULTI_NETWORK_ASSET'; | ||
const assetType = 'MULTI_NETWORK_ASSET'; | ||
exports.assetType = assetType; | ||
var combinedAssetNames = ['sportx', 'sportx_matic']; | ||
const combinedAssetNames = ['sportx', 'sportx_matic']; | ||
exports.combinedAssetNames = combinedAssetNames; | ||
var info = { | ||
description: _assetsBase["default"].sportx.info.description | ||
const info = { | ||
description: _assetsBase.default.sportx.info.description | ||
}; | ||
exports.info = info; |
@@ -8,25 +8,23 @@ "use strict"; | ||
var _assetsBase = _interopRequireDefault(require("@exodus/assets-base")); | ||
var _units; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
var name = '_tetherusd'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const name = '_tetherusd'; | ||
exports.name = name; | ||
var properName = 'Tether USD'; | ||
const properName = 'Tether USD'; | ||
exports.properName = properName; | ||
var ticker = "".concat(name, "_USDT"); | ||
const ticker = `${name}_USDT`; | ||
exports.ticker = ticker; | ||
var properTicker = 'USDT'; | ||
const properTicker = 'USDT'; | ||
exports.properTicker = properTicker; | ||
var units = (_units = {}, _defineProperty(_units, "".concat(name, "_base"), 0), _defineProperty(_units, ticker, 8), _units); | ||
const units = { | ||
[`${name}_base`]: 0, | ||
[ticker]: 8 | ||
}; | ||
exports.units = units; | ||
var assetType = 'MULTI_NETWORK_ASSET'; | ||
const assetType = 'MULTI_NETWORK_ASSET'; | ||
exports.assetType = assetType; | ||
var combinedAssetNames = ['tetherusd', 'tetherusd_tron', 'tetherusd_algorand', 'tetherusd_solana', 'usdt_avalanchec_d80c1afa', 'usdt_matic_86e249c1', 'usdt_bsc_ddedf0f8', 'tetherusd_goerli']; | ||
const combinedAssetNames = ['tetherusd', 'tetherusd_tron', 'tetherusd_algorand', 'tetherusd_solana', 'usdt_avalanchec_d80c1afa', 'usdt_matic_86e249c1', 'usdt_bsc_ddedf0f8', 'tetherusd_goerli']; | ||
exports.combinedAssetNames = combinedAssetNames; | ||
var info = { | ||
description: _assetsBase["default"].tetherusd.info.description | ||
const info = { | ||
description: _assetsBase.default.tetherusd.info.description | ||
}; | ||
exports.info = info; |
@@ -8,25 +8,23 @@ "use strict"; | ||
var _assetsBase = _interopRequireDefault(require("@exodus/assets-base")); | ||
var _units; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
var name = '_thegraph'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const name = '_thegraph'; | ||
exports.name = name; | ||
var properName = 'The Graph'; | ||
const properName = 'The Graph'; | ||
exports.properName = properName; | ||
var ticker = "".concat(name, "_GRT"); | ||
const ticker = `${name}_GRT`; | ||
exports.ticker = ticker; | ||
var properTicker = 'GRT'; | ||
const properTicker = 'GRT'; | ||
exports.properTicker = properTicker; | ||
var units = (_units = {}, _defineProperty(_units, "".concat(name, "_base"), 0), _defineProperty(_units, ticker, 8), _units); | ||
const units = { | ||
[`${name}_base`]: 0, | ||
[ticker]: 8 | ||
}; | ||
exports.units = units; | ||
var assetType = 'MULTI_NETWORK_ASSET'; | ||
const assetType = 'MULTI_NETWORK_ASSET'; | ||
exports.assetType = assetType; | ||
var combinedAssetNames = ['thegraph', 'thegraph_solana']; | ||
const combinedAssetNames = ['thegraph', 'thegraph_solana']; | ||
exports.combinedAssetNames = combinedAssetNames; | ||
var info = { | ||
description: _assetsBase["default"].thegraph.info.description | ||
const info = { | ||
description: _assetsBase.default.thegraph.info.description | ||
}; | ||
exports.info = info; |
@@ -8,25 +8,23 @@ "use strict"; | ||
var _assetsBase = _interopRequireDefault(require("@exodus/assets-base")); | ||
var _units; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
var name = '_usdcoin'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const name = '_usdcoin'; | ||
exports.name = name; | ||
var properName = 'USD Coin'; | ||
const properName = 'USD Coin'; | ||
exports.properName = properName; | ||
var ticker = "".concat(name, "_USDC"); | ||
const ticker = `${name}_USDC`; | ||
exports.ticker = ticker; | ||
var properTicker = 'USDC'; | ||
const properTicker = 'USDC'; | ||
exports.properTicker = properTicker; | ||
var units = (_units = {}, _defineProperty(_units, "".concat(name, "_base"), 0), _defineProperty(_units, ticker, 8), _units); | ||
const units = { | ||
[`${name}_base`]: 0, | ||
[ticker]: 8 | ||
}; | ||
exports.units = units; | ||
var assetType = 'MULTI_NETWORK_ASSET'; | ||
const assetType = 'MULTI_NETWORK_ASSET'; | ||
exports.assetType = assetType; | ||
var combinedAssetNames = ['usdcoin', 'usdcoin_algorand', 'usdcoin_solana', 'usdcoin_matic', 'usdcoin_bsc', 'usdcoin_tron', 'usdc_avalanchec_185c8bd7', 'usdc_fantommainnet_a32ec2ec']; | ||
const combinedAssetNames = ['usdcoin', 'usdcoin_algorand', 'usdcoin_solana', 'usdcoin_matic', 'usdcoin_bsc', 'usdcoin_tron', 'usdc_avalanchec_185c8bd7', 'usdc_fantommainnet_a32ec2ec']; | ||
exports.combinedAssetNames = combinedAssetNames; | ||
var info = { | ||
description: _assetsBase["default"].usdcoin.info.description | ||
const info = { | ||
description: _assetsBase.default.usdcoin.info.description | ||
}; | ||
exports.info = info; |
@@ -8,25 +8,23 @@ "use strict"; | ||
var _assetsBase = _interopRequireDefault(require("@exodus/assets-base")); | ||
var _units; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
var name = '_wbtc'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const name = '_wbtc'; | ||
exports.name = name; | ||
var properName = 'Wrapped Bitcoin'; | ||
const properName = 'Wrapped Bitcoin'; | ||
exports.properName = properName; | ||
var ticker = "".concat(name, "_WBTC"); | ||
const ticker = `${name}_WBTC`; | ||
exports.ticker = ticker; | ||
var properTicker = 'WBTC'; | ||
const properTicker = 'WBTC'; | ||
exports.properTicker = properTicker; | ||
var units = (_units = {}, _defineProperty(_units, "".concat(name, "_base"), 0), _defineProperty(_units, ticker, 8), _units); | ||
const units = { | ||
[`${name}_base`]: 0, | ||
[ticker]: 8 | ||
}; | ||
exports.units = units; | ||
var assetType = 'MULTI_NETWORK_ASSET'; | ||
const assetType = 'MULTI_NETWORK_ASSET'; | ||
exports.assetType = assetType; | ||
var combinedAssetNames = ['wbtc', 'wbtc_matic_298d6ace']; | ||
const combinedAssetNames = ['wbtc', 'wbtc_matic_298d6ace']; | ||
exports.combinedAssetNames = combinedAssetNames; | ||
var info = { | ||
description: _assetsBase["default"].wbtc.info.description | ||
const info = { | ||
description: _assetsBase.default.wbtc.info.description | ||
}; | ||
exports.info = info; |
@@ -8,25 +8,23 @@ "use strict"; | ||
var _assetsBase = _interopRequireDefault(require("@exodus/assets-base")); | ||
var _units; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
var name = '_weth'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const name = '_weth'; | ||
exports.name = name; | ||
var properName = 'Wrapped Ether'; | ||
const properName = 'Wrapped Ether'; | ||
exports.properName = properName; | ||
var ticker = "".concat(name, "_WETH"); | ||
const ticker = `${name}_WETH`; | ||
exports.ticker = ticker; | ||
var properTicker = 'WETH'; | ||
const properTicker = 'WETH'; | ||
exports.properTicker = properTicker; | ||
var units = (_units = {}, _defineProperty(_units, "".concat(name, "_base"), 0), _defineProperty(_units, ticker, 8), _units); | ||
const units = { | ||
[`${name}_base`]: 0, | ||
[ticker]: 8 | ||
}; | ||
exports.units = units; | ||
var assetType = 'MULTI_NETWORK_ASSET'; | ||
const assetType = 'MULTI_NETWORK_ASSET'; | ||
exports.assetType = assetType; | ||
var combinedAssetNames = ['weth', 'weth_matic', 'weth_goerli']; | ||
const combinedAssetNames = ['weth', 'weth_matic', 'weth_goerli']; | ||
exports.combinedAssetNames = combinedAssetNames; | ||
var info = { | ||
description: _assetsBase["default"].weth.info.description | ||
const info = { | ||
description: _assetsBase.default.weth.info.description | ||
}; | ||
exports.info = info; |
133
lib/index.js
@@ -19,3 +19,3 @@ "use strict"; | ||
exports.connectAssets = connectAssets; | ||
exports["default"] = void 0; | ||
exports.default = void 0; | ||
exports.updateCombinedAsset = updateCombinedAsset; | ||
@@ -33,3 +33,3 @@ var _lodash = require("lodash"); | ||
enumerable: true, | ||
get: function get() { | ||
get: function () { | ||
return _validateAsset[key]; | ||
@@ -40,18 +40,12 @@ } | ||
var _createCombined = require("./combined-assets/create-combined"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
var combinedAssets = _combinedAssets2["default"]; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const combinedAssets = _combinedAssets2.default; | ||
exports.combinedAssets = combinedAssets; | ||
var connectProp = function connectProp(asset, prop, value) { | ||
const connectProp = (asset, prop, value) => { | ||
if (asset[prop] === undefined && value !== undefined) asset[prop] = value; | ||
}; | ||
var defineAssetPropsPassOne = function defineAssetPropsPassOne(assets, asset) { | ||
const defineAssetPropsPassOne = (assets, asset) => { | ||
Object.defineProperties(asset, { | ||
baseAsset: { | ||
get: function get() { | ||
get() { | ||
return assets[asset.baseAssetName || asset.name]; | ||
@@ -61,3 +55,3 @@ } | ||
feeAsset: { | ||
get: function get() { | ||
get() { | ||
return assets[asset.feeAssetName || asset.baseAssetName || asset.name]; | ||
@@ -70,6 +64,4 @@ } | ||
combinedAssets: { | ||
get: function get() { | ||
return asset.combinedAssetNames.map(function (assetName) { | ||
return assets[assetName]; | ||
}); | ||
get() { | ||
return asset.combinedAssetNames.map(assetName => assets[assetName]); | ||
} | ||
@@ -83,3 +75,3 @@ } | ||
connectProp(asset, 'displayTicker', asset.properTicker); | ||
asset.isBuiltIn = !!(_assetsBase["default"][asset.name] || combinedAssets[asset.name]); | ||
asset.isBuiltIn = !!(_assetsBase.default[asset.name] || combinedAssets[asset.name]); | ||
if (asset.baseAsset.name === asset.name) { | ||
@@ -90,3 +82,3 @@ connectProp(asset, 'displayNetworkName', asset.properName); | ||
}; | ||
var defineAssetPropsPassTwo = function defineAssetPropsPassTwo(asset) { | ||
const defineAssetPropsPassTwo = asset => { | ||
connectProp(asset, 'displayNetworkName', asset.baseAsset.displayNetworkName); | ||
@@ -96,8 +88,6 @@ connectProp(asset, 'displayNetworkTicker', asset.baseAsset.displayNetworkTicker); | ||
function connectAssets(assets) { | ||
var _assets = (0, _lodash.mapValues)(assets, function (v) { | ||
return _objectSpread({}, v); | ||
}); | ||
Object.values(_assets).forEach(function (asset) { | ||
return defineAssetPropsPassOne(_assets, asset); | ||
}); | ||
const _assets = (0, _lodash.mapValues)(assets, v => ({ | ||
...v | ||
})); | ||
Object.values(_assets).forEach(asset => defineAssetPropsPassOne(_assets, asset)); | ||
Object.values(_assets).forEach(defineAssetPropsPassTwo); | ||
@@ -107,14 +97,14 @@ return _assets; | ||
function addToken(assets, assetDef) { | ||
var name = assetDef.name, | ||
baseAssetName = assetDef.baseAssetName, | ||
_assetDef$info = assetDef.info, | ||
info = _assetDef$info === void 0 ? {} : _assetDef$info; | ||
(0, _validateAsset.assert)(!assets[name], "asset ".concat(name, " already exists")); | ||
(0, _validateAsset.assert)(assets[baseAssetName], "base asset ".concat(baseAssetName, " does not exist")); | ||
var asset = _objectSpread(_objectSpread({}, assetDef), {}, { | ||
toString: function toString() { | ||
return name; | ||
}, | ||
info: info | ||
}); | ||
const { | ||
name, | ||
baseAssetName, | ||
info = {} | ||
} = assetDef; | ||
(0, _validateAsset.assert)(!assets[name], `asset ${name} already exists`); | ||
(0, _validateAsset.assert)(assets[baseAssetName], `base asset ${baseAssetName} does not exist`); | ||
const asset = { | ||
...assetDef, | ||
toString: () => name, | ||
info | ||
}; | ||
(0, _validateAsset.validateTokenDef)(asset); | ||
@@ -125,14 +115,13 @@ defineAssetPropsPassOne(assets, asset); | ||
} | ||
function addNetwork(assets, baseAssetDef) { | ||
var tokenDefs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; | ||
var name = baseAssetDef.name, | ||
_baseAssetDef$info = baseAssetDef.info, | ||
info = _baseAssetDef$info === void 0 ? {} : _baseAssetDef$info; | ||
(0, _validateAsset.assert)(!assets[name], "asset ".concat(name, " already exists")); | ||
var asset = _objectSpread(_objectSpread({}, baseAssetDef), {}, { | ||
toString: function toString() { | ||
return name; | ||
}, | ||
info: info | ||
}); | ||
function addNetwork(assets, baseAssetDef, tokenDefs = []) { | ||
const { | ||
name, | ||
info = {} | ||
} = baseAssetDef; | ||
(0, _validateAsset.assert)(!assets[name], `asset ${name} already exists`); | ||
const asset = { | ||
...baseAssetDef, | ||
toString: () => name, | ||
info | ||
}; | ||
(0, _validateAsset.validateBaseAssetDef)(asset); | ||
@@ -147,10 +136,10 @@ try { | ||
} | ||
tokenDefs.forEach(function (token) { | ||
return addToken(assets, token); | ||
}); | ||
tokenDefs.forEach(token => addToken(assets, token)); | ||
} | ||
function addCombinedAsset(assets, assetDef) { | ||
var name = assetDef.name; | ||
(0, _validateAsset.assert)(!assets[name], "asset ".concat(name, " already exists")); | ||
var asset = (0, _createCombined.createCombined)(assetDef); | ||
const { | ||
name | ||
} = assetDef; | ||
(0, _validateAsset.assert)(!assets[name], `asset ${name} already exists`); | ||
const asset = (0, _createCombined.createCombined)(assetDef); | ||
try { | ||
@@ -165,14 +154,17 @@ assets[name] = asset; | ||
} | ||
function updateCombinedAsset(assets, combinedAsset) { | ||
var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, | ||
newMemberAsset = _ref.newMemberAsset; | ||
var name = combinedAsset.name; | ||
(0, _validateAsset.assert)(combinedAsset.isCombined, "asset ".concat(name, " must be a combined asset")); | ||
(0, _validateAsset.assert)(assets[name], "combined asset ".concat(name, " does not exist")); | ||
(0, _validateAsset.assert)(assets[newMemberAsset.name], "asset ".concat(newMemberAsset.name, " does not exist")); | ||
(0, _validateAsset.assert)(!newMemberAsset.isCombined, "asset ".concat(newMemberAsset.name, " must not be a combined asset")); | ||
var assetDef = (0, _lodash.omit)(combinedAsset, ['baseAsset', 'feeAsset', 'combinedAssets']); | ||
function updateCombinedAsset(assets, combinedAsset, { | ||
newMemberAsset | ||
} = {}) { | ||
const { | ||
name, | ||
isCombined | ||
} = combinedAsset; | ||
(0, _validateAsset.assert)(isCombined, `asset ${name} must be a combined asset`); | ||
(0, _validateAsset.assert)(assets[name], `combined asset ${name} does not exist`); | ||
(0, _validateAsset.assert)(assets[newMemberAsset.name], `asset ${newMemberAsset.name} does not exist`); | ||
(0, _validateAsset.assert)(!newMemberAsset.isCombined, `asset ${newMemberAsset.name} must not be a combined asset`); | ||
const assetDef = (0, _lodash.omit)(combinedAsset, ['baseAsset', 'feeAsset', 'combinedAssets']); | ||
assetDef.combinedAssetNames.push(newMemberAsset.name); | ||
var asset = (0, _createCombined.createCombined)(assetDef); | ||
var orig = assets[name]; | ||
const asset = (0, _createCombined.createCombined)(assetDef); | ||
const orig = assets[name]; | ||
try { | ||
@@ -187,3 +179,6 @@ assets[name] = asset; | ||
} | ||
var _default = connectAssets(_objectSpread(_objectSpread({}, _combinedAssets2["default"]), _assetsBase["default"])); | ||
exports["default"] = _default; | ||
var _default = connectAssets({ | ||
..._combinedAssets2.default, | ||
..._assetsBase.default | ||
}); | ||
exports.default = _default; |
@@ -15,4 +15,4 @@ "use strict"; | ||
var _lodash = require("lodash"); | ||
var assetNameRe = /^[a-z0-9_]+$/; | ||
var tickerRe = /^[a-zA-Z0-9_]+$/; | ||
const assetNameRe = /^[\d_a-z]+$/; | ||
const tickerRe = /^\w+$/; | ||
function assert(condition, message) { | ||
@@ -25,8 +25,8 @@ if (!condition) throw new Error(message); | ||
function _validateCommon(asset) { | ||
assert((0, _lodash.isObject)(asset.baseAsset), "base asset missing for ".concat(asset.name)); | ||
assert((0, _lodash.isObject)(asset.feeAsset), "fee asset missing for ".concat(asset.name)); | ||
assert((0, _lodash.isObject)(asset.currency), "currency missing for ".concat(asset.name)); | ||
assert(asset.properTicker && (0, _lodash.isString)(asset.properTicker), "properTicker asset missing for ".concat(asset.name)); | ||
assert(asset.displayNetworkName && (0, _lodash.isString)(asset.displayNetworkName), "displayNetworkName missing for ".concat(asset.name)); | ||
assert(asset.displayNetworkTicker && (0, _lodash.isString)(asset.displayNetworkTicker), "displayNetworkTicker missing for ".concat(asset.name)); | ||
assert((0, _lodash.isObject)(asset.baseAsset), `base asset missing for ${asset.name}`); | ||
assert((0, _lodash.isObject)(asset.feeAsset), `fee asset missing for ${asset.name}`); | ||
assert((0, _lodash.isObject)(asset.currency), `currency missing for ${asset.name}`); | ||
assert(asset.properTicker && (0, _lodash.isString)(asset.properTicker), `properTicker asset missing for ${asset.name}`); | ||
assert(asset.displayNetworkName && (0, _lodash.isString)(asset.displayNetworkName), `displayNetworkName missing for ${asset.name}`); | ||
assert(asset.displayNetworkTicker && (0, _lodash.isString)(asset.displayNetworkTicker), `displayNetworkTicker missing for ${asset.name}`); | ||
} | ||
@@ -44,33 +44,36 @@ function validateToken(asset) { | ||
_validateCommon(asset); | ||
assert((0, _lodash.isArray)(asset.combinedAssets), "combined assets missing for ".concat(asset.name)); | ||
assert((0, _lodash.isArray)(asset.combinedAssets), `combined assets missing for ${asset.name}`); | ||
} | ||
function _validateCommonDef(asset) { | ||
var name = asset.name, | ||
properName = asset.properName, | ||
ticker = asset.ticker, | ||
units = asset.units, | ||
assetType = asset.assetType; | ||
const { | ||
name, | ||
properName, | ||
ticker, | ||
units, | ||
assetType, | ||
info | ||
} = asset; | ||
assert(name && (0, _lodash.isString)(name) && name.match(assetNameRe), 'asset name required'); | ||
assert(properName && (0, _lodash.isString)(properName), "asset proper (display) name required for ".concat(name)); | ||
assert(ticker && (0, _lodash.isString)(ticker) && ticker.match(tickerRe), "ticker name required for ".concat(name)); | ||
assert((0, _lodash.isObject)(units) && !(0, _lodash.isEmpty)(units), "units required for ".concat(name)); | ||
assert(assetType && (0, _lodash.isString)(assetType), "asset type required for ".concat(name)); | ||
assert((0, _lodash.isFunction)(asset.toString), "isString required for ".concat(name)); | ||
assert((0, _lodash.isObject)(asset.info), "info missing for ".concat(name)); | ||
assert(properName && (0, _lodash.isString)(properName), `asset proper (display) name required for ${name}`); | ||
assert(ticker && (0, _lodash.isString)(ticker) && ticker.match(tickerRe), `ticker name required for ${name}`); | ||
assert((0, _lodash.isObject)(units) && !(0, _lodash.isEmpty)(units), `units required for ${name}`); | ||
assert(assetType && (0, _lodash.isString)(assetType), `asset type required for ${name}`); | ||
assert((0, _lodash.isFunction)(asset.toString), `isString required for ${name}`); | ||
assert((0, _lodash.isObject)(info), `info missing for ${name}`); | ||
} | ||
function validateBaseAssetDef(asset) { | ||
_validateCommonDef(asset); | ||
assert(!asset.baseAssetName || asset.name === asset.baseAssetName, "base asset name ".concat(asset.baseAssetName, " is not valid for ").concat(asset.name)); | ||
assert(!asset.isCombined, "combined asset is not supported for base asset ".concat(asset.name)); | ||
assert(asset.blockExplorer, "block explorer missing for ".concat(asset.name)); | ||
assert(!asset.baseAssetName || asset.name === asset.baseAssetName, `base asset name ${asset.baseAssetName} is not valid for ${asset.name}`); | ||
assert(!asset.isCombined, `combined asset is not supported for base asset ${asset.name}`); | ||
assert(asset.blockExplorer, `block explorer missing for ${asset.name}`); | ||
} | ||
function validateTokenDef(asset) { | ||
_validateCommonDef(asset); | ||
assert(asset.baseAssetName && asset.name !== asset.baseAssetName, "base asset name ".concat(asset.baseAssetName, " is not valid for token ").concat(asset.name)); | ||
assert(!asset.isCombined, "combined asset is not supported for token ".concat(asset.name)); | ||
assert(asset.baseAssetName && asset.name !== asset.baseAssetName, `base asset name ${asset.baseAssetName} is not valid for token ${asset.name}`); | ||
assert(!asset.isCombined, `combined asset is not supported for token ${asset.name}`); | ||
} | ||
function validateCombinedAssetDef(asset) { | ||
_validateCommonDef(asset); | ||
assert(asset.isCombined, "isCombined missing for ".concat(asset.name)); | ||
assert((0, _lodash.isArray)(asset.combinedAssetNames) && asset.combinedAssetNames.length, "at least one combined asset name expected for ".concat(asset.name)); | ||
assert(asset.isCombined, `isCombined missing for ${asset.name}`); | ||
assert((0, _lodash.isArray)(asset.combinedAssetNames) && asset.combinedAssetNames.length > 0, `at least one combined asset name expected for ${asset.name}`); | ||
} |
{ | ||
"name": "@exodus/assets", | ||
"version": "8.0.76", | ||
"version": "8.0.77", | ||
"description": "Exodus assets", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
37334
913