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

@exodus/solana-meta

Package Overview
Dependencies
Maintainers
0
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exodus/solana-meta - npm Package Compare versions

Comparing version 1.0.8 to 1.1.0

assets/svg-transparent/7atg_solana_3506aeb0-sign.svg

34

lib/index.js

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

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 = 'solana';

@@ -37,5 +32,3 @@ const displayName = 'Solana';

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

@@ -53,3 +46,3 @@ const blockExplorer = {

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

@@ -70,5 +63,3 @@ baseAssetName,

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

@@ -78,15 +69,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: 'SOLANA_TOKEN',

@@ -103,13 +85,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,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: '7dhb_solana_c9e04412',

@@ -124,2 +122,21 @@ displayName: 'Lido Staked SOL',

}, {
name: '7atg_solana_3506aeb0',
displayName: 'Catwifhat',
decimals: 2,
ticker: '7ATGsolana3506AEB0',
displayTicker: 'CWIF',
mintAddress: '7atgF8KQo4wJrD5ATGX7t1V2zVvykPJbFfNeVf1icFv1',
info: {
description: 'Catwifhat is a deflationary memecoin on the Solana network.',
website: 'https://www.catwifhatsolana.com/'
},
primaryColor: '#DBDBDB',
gradientColors: ['#FFFFFF', '#DBDBDB'],
gradientCoords: {
x1: '-4.68%',
y1: '1.381%',
x2: '48.573%',
y2: '30.414%'
}
}, {
name: 'dezx_solana_3b523050',

@@ -474,3 +491,2 @@ displayName: 'Bonk',

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

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

exports.extractUnits = extractUnits;
function extractUnits(token) {

@@ -10,0 +9,0 @@ return token.units || {

{
"name": "@exodus/solana-meta",
"version": "1.0.8",
"version": "1.1.0",
"description": "Solana constants, icons, colors and other metadata",

@@ -16,5 +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.3.2"
}
},
"devDependencies": {
"@exodus/assets-testing": "^1.0.0"
},
"gitHead": "c566268da447d50ebb7f4b5c24826c6ee5c74165"
}
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