Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
iotex-token-metadata
Advanced tools
This repo is a collection of the metadata of tokens (XRC20, XRC721, etc...) deployed to IoTeX blockchain. Developers can use this repo to list these tokens in their projects.
Metadata of a token consists of the following JSON object:
{
"io1hp6y4eqr90j7tmul4w2wa8pm7wx462hq0mg4tw": {
"name": "Vitality",
"description": "Vitality (VITA) is a decentralized token for the IoTeX community.",
"logo": "io1hp6y4eqr90j7tmul4w2wa8pm7wx462hq0mg4tw.png",
"type": "xrc20",
"symbol": "VITA",
"decimals": 18
}
where:
Field | Required | Values | default | Notes |
---|---|---|---|---|
name | ✓ | string | Token Name | |
description | ✓ | string | Token Description | |
logo | ✓ | file name | logo image file name with extension | |
type | ✓ | xrc20 xrc721 | Type of token | |
symbol | ✓ | string | The symbol of the token | |
decimals | integer | 18 | The number of decimals |
IoTeX Explorer (https://iotexscan.io/) and ioPay wallets (http://iopay.iotex.io/) will include this metadata in their apps. Any IoTeX ecosystem app can include this package in their code (see the Usage section below).
Please notice that maintaining this list is not our highest priority. We do not guarantee the inclusion of your project metadata on any urgent timeline, because maintaining this list is a demanding and security-delicate task. We may also decide not to include the submission at all, e.g. if there are no proofs for a legit project behind the token, if we suspect the risk of pump&dump activity, airdrop-based phishing, or any cryptocurrency counterfeit scam. Plese see the Guidelines for tokens section below.
You can follow the steps below to submit your token metadata for review:
images/
foldertoken-metadata.json
We will only take into consideration projects that show clear signs of activity: either traffic on the network, activity on GitHub, or community buzz.
Install this package from npm with npm install iotex-token-metadata -s
and use it in your code like in the example below:
metadatasMap = require("iotex-token-metadata");
let address = "io1hp6y4eqr90j7tmul4w2wa8pm7wx462hq0mg4tw";
console.log("Metadata for token address: ", address);
let metadata = getXrc20TokenMetadata(address);
console.log("Token Name:", metadata.name);
console.log("Token Description:", metadata.description);
console.log("Token logo:", metadata.logo);
console.log("Token type:", metadata.type);
console.log("Token symbol:", metadata.symbol)
if (metadata.type=="xrc20") {
console.log("Token Decimals:", metadata.decimals);
}
function getXrc20TokenMetadata(address) {
const metadata = metadatasMap[address];
return metadata;
}
Intended for the repository maintainer only (not required for token submission):
$ npm login
// update package.json version
$ npm publish .
npm ci
npm test
Please make sure the unit test is passed before submitting a PR.
FAQs
a collection of the metadata of all tokens on IoTeX blockchain.
The npm package iotex-token-metadata receives a total of 1 weekly downloads. As such, iotex-token-metadata popularity was classified as not popular.
We found that iotex-token-metadata demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.