
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
eos-common
Advanced tools
eos-common
EOSIO Smart Contract common library used for Typescript
Using Yarn:
yarn add eos-common
or using NPM:
npm install --save eos-common
import { split } from "eos-common"
const { amount } = split("1.0000 EOS");
amount //=> 10000
Symbol Class
const sym = new Symbol("EOS", 4);
sym.symbol //=> "EOS"
sym.precision //=> 4
Returns Symbol Symbol
Symbol
const sym = symbol("EOS", 4);
sym.symbol //=> "EOS"
sym.precision //=> 4
Returns Symbol Symbol
Asset Class
const quantity = new Asset(10000, new Symbol("EOS", 4));
quantity.toString() //=> "1.0000 EOS";
quantity.symbol.symbol //=> "EOS"
quantity.symbol.precision //=> 4
Returns Asset Asset
Asset
const quantity = asset(10000, new Symbol("EOS", 4));
quantity.toString() //=> "1.0000 EOS";
quantity.symbol.symbol //=> "EOS"
quantity.symbol.precision //=> 4
Returns Asset Asset
Split quantity string
quantity
string Quantity stringconst quantity = split("1.0000 EOS");
quantity.amount //=> 10000
quantity.symbol.precision() //=> 4
quantity.symbol.symbol() //=> "EOS"
Returns Asset
FAQs
EOSIO Smart Contract common library used for Typescript
The npm package eos-common receives a total of 34 weekly downloads. As such, eos-common popularity was classified as not popular.
We found that eos-common demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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 researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.