@exodus/optimism-meta
Advanced tools
Comparing version 1.1.4 to 1.2.0
@@ -6,6 +6,12 @@ "use strict"; | ||
}); | ||
exports.default = exports.asset = void 0; | ||
exports.default = exports.tokens = exports.asset = void 0; | ||
var _tokens2 = _interopRequireDefault(require("./tokens")); | ||
var _utils = require("./utils"); | ||
var _currency = require("@exodus/currency"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const name = 'optimism'; | ||
@@ -79,3 +85,38 @@ const displayName = 'Ethereum'; | ||
exports.asset = asset; | ||
var _default = [asset]; | ||
const tokens = _tokens2.default.map(token => { | ||
const units = (0, _utils.extractUnits)(token); | ||
const _token = { ...token, | ||
// name, | ||
// displayName, | ||
// decimals, | ||
// ticker, | ||
// primaryColor, | ||
// gradientColors | ||
// gradientCoords | ||
assetType: 'OPT_ERC20', | ||
baseAssetName, | ||
blockExplorer: { ...blockExplorer, | ||
addressUrl: address => `https://optimistic.etherscan.io/token/${token.addresses.current}?a=${address}` | ||
}, | ||
chainBadgeColors: token.chainBadgeColors || token.gradientColors, | ||
contract: token.addresses, | ||
currency: _currency.UnitType.create(units), | ||
displayNetworkName, | ||
displayNetworkTicker, | ||
displayTicker: token.displayTicker || token.ticker, | ||
gasLimit: 120e3, | ||
info: token.info || {}, | ||
properName: token.displayName, | ||
// deprecated | ||
properTicker: token.displayTicker || token.ticker, | ||
// deprecated | ||
toString: () => token.name, | ||
units | ||
}; | ||
return _token; | ||
}); | ||
exports.tokens = tokens; | ||
var _default = [asset, ...tokens]; | ||
exports.default = _default; |
{ | ||
"name": "@exodus/optimism-meta", | ||
"version": "1.1.4", | ||
"version": "1.2.0", | ||
"description": "Ethereum (Optimism) constants, icons, colors and other metadata", | ||
@@ -19,3 +19,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "d2dfd816a8fd47f1a7030110aedf46727eef05ef" | ||
"gitHead": "9915298ff4b3178e24919f1df39a4e5811358dfb" | ||
} |
20216
14
196