New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@exodus/aurora-meta

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exodus/aurora-meta - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4-alpha.0

42

lib/index.js

@@ -6,12 +6,7 @@ "use strict";

});
exports.default = exports.tokens = exports.asset = void 0;
exports.tokens = exports.default = 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 = 'aurora';

@@ -33,6 +28,4 @@ const displayName = 'Ethereum';

const chainBadgeColors = ['#5deb5a', '#8AFF88'];
const gasLimit = 21e3; // enough to send ETH to a normal address
const contractGasLimit = 1e6; // used when estimateGas fails
const gasLimit = 21e3;
const contractGasLimit = 1e6;
const units = {

@@ -47,5 +40,3 @@ wei: 0,

};
const currency = _currency.UnitType.create(units);
const assetType = 'ETHEREUM_LIKE';

@@ -63,3 +54,3 @@ const blockExplorer = {

};
const asset = {
const asset = exports.asset = {
assetType,

@@ -82,5 +73,3 @@ baseAssetName,

properName: displayName,
// deprecated,
properTicker: displayTicker,
// deprecated,
ticker,

@@ -90,15 +79,6 @@ toString: () => name,

};
exports.asset = asset;
const tokens = _tokens2.default.map(token => {
const tokens = exports.tokens = _tokens2.default.map(token => {
const units = (0, _utils.extractUnits)(token);
const _token = { ...token,
// name,
// displayName,
// decimals,
// ticker,
// info,
// primaryColor,
// gradientColors
// gradientCoords
return {
...token,
assetType: 'AURORA_ERC20',

@@ -116,13 +96,7 @@ baseAssetName,

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;
var _default = exports.default = [asset, ...tokens];

7

lib/tokens.js

@@ -7,5 +7,3 @@ "use strict";

exports.default = void 0;
// DO NOT set the `name` and `ticker` properties manually
// Instead use one of the get token metadata scripts https://github.com/ExodusMovement/exodus-core/tree/master/packages/assets-base#get-token-metadata
var _default = [{
var _default = exports.default = [{
name: 'aurora_aurora_4cb82266',

@@ -34,3 +32,2 @@ displayName: 'Aurora',

}
}];
exports.default = _default;
}];

@@ -7,8 +7,6 @@ "use strict";

exports.extractUnits = extractUnits;
function extractUnits(token) {
// build units object
const units = {}; // order here matters, which is why this is broken up for the conditional alias
units.base = 0;
const units = {
base: 0
};
if (token.tickerAliases) token.tickerAliases.forEach(alias => units[alias] = token.decimals);

@@ -15,0 +13,0 @@ if (token.tickerAlias) units[token.tickerAlias] = token.decimals;

{
"name": "@exodus/aurora-meta",
"version": "1.0.3",
"version": "1.0.4-alpha.0",
"description": "Aurora constants, icons, colors and other metadata",

@@ -16,6 +16,16 @@ "main": "lib/index.js",

},
"scripts": {
"build": "run -T babel --root-mode upward --delete-dir-on-start --ignore '**/__tests__/**' src --out-dir lib",
"build:clean": "rm -rf lib",
"test": "run -T jest",
"lint": "run -T eslint src",
"lint:fix": "yarn lint --fix"
},
"dependencies": {
"@exodus/currency": "^2.1.3"
"@exodus/currency": "^2.3.2"
},
"gitHead": "3136300271d95cc45ede933376793608f1196589"
"devDependencies": {
"@exodus/assets-meta-testing": "^1.0.0"
},
"gitHead": "6f2ca32fdf196c5ed015cdc6474c1377523aaa7f"
}
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