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

@exodus/assets

Package Overview
Dependencies
Maintainers
0
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exodus/assets - npm Package Compare versions

Comparing version 5.0.0 to 6.0.0

5

CHANGELOG.md

@@ -0,1 +1,6 @@

6.0.0 / 2020-01-02
------------------
- `@exodus/assets-base` to `5.0.x`
5.0.0 / 2019-11-16

@@ -2,0 +7,0 @@ ------------------

35

lib/index.js

@@ -14,16 +14,31 @@ "use strict";

var _default = Object.entries(_assetsBase.default).reduce(reduce, {});
const assets = {};
exports.default = _default;
for (const [assetName, asset] of Object.entries(_assetsBase.default)) {
assets[assetName] = Object.assign({}, asset, {
currency: _currency.UnitType.create(asset.units)
});
}
function reduce(assetsMap, [assetName, assetObj]) {
return Object.assign(assetsMap, {
[assetName]: map(assetName, assetObj)
for (const [assetName, asset] of Object.entries(assets)) {
Object.defineProperties(asset, {
baseAsset: {
get() {
let baseAssetName = asset.name;
if (asset.assetType === 'ETHEREUM_ERC20') baseAssetName = 'ethereum';
if (asset.assetType === 'TRON_TOKEN') baseAssetName = 'tronmainnet';
if (asset.assetType === 'VECHAIN_TOKEN') baseAssetName = 'vechainthor';
if (asset.name === 'neogas') baseAssetName = 'neo';
if (asset.name === 'ontologygas') baseAssetName = 'ontology';
if (asset.name === 'bcashclaim') baseAssetName = 'bcash';
if (asset.name === 'bitcoinsvclaim') baseAssetName = 'bitcoinsv';
if (asset.name === 'bgoldclaim') baseAssetName = 'bgold';
return assets[baseAssetName];
}
}
});
}
function map(assetName, assetObj) {
return Object.assign({}, assetObj, {
currency: _currency.UnitType.create(assetObj.units)
});
}
var _default = assets;
exports.default = _default;
{
"name": "@exodus/assets",
"version": "5.0.0",
"version": "6.0.0",
"description": "Exodus assets",

@@ -13,5 +13,5 @@ "main": "lib/index.js",

"dependencies": {
"@exodus/assets-base": "4.0.x",
"@exodus/assets-base": "5.0.x",
"@exodus/currency": "1.0.x"
}
}
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