Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@exodus/optimism-meta

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exodus/optimism-meta - npm Package Compare versions

Comparing version 1.1.4 to 1.2.0

assets/svg-transparent/op_optimism_4a7ee59d-sign.svg

45

lib/index.js

@@ -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;

4

package.json
{
"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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc