Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
depay-blockchain-constants
Advanced tools
yarn add depay-blockchain-token
or
npm install --save depay-blockchain-token
import CONSTANTS from 'depay-blockchain-constants'
CONSTANTS['ethereum'].ZERO // '0x0000000000000000000000000000000000000000'
CONSTANTS['ethereum'].MAXINT // '115792089237316195423570985008687907853269984665640564039457584007913129639935'
CONSTANTS['ethereum'].NATIVE // '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE'
CONSTANTS['ethereum'].DECIMALS // 18
CONSTANTS['ethereum'].WRAPPED // '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
CONSTANTS['ethereum'].SYMBOL // 'ETH'
CONSTANTS['ethereum'].NAME // 'Ethereum'
CONSTANTS['bsc'].ZERO // '0x0000000000000000000000000000000000000000'
CONSTANTS['bsc'].MAXINT // '115792089237316195423570985008687907853269984665640564039457584007913129639935'
CONSTANTS['bsc'].NATIVE // '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE'
CONSTANTS['bsc'].DECIMALS // 18
CONSTANTS['bsc'].WRAPPED // '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c'
CONSTANTS['bsc'].SYMBOL // 'BNB'
CONSTANTS['bsc'].NAME // 'Binance Smart Chain'
The Address Zero.
CONSTANTS[blockchain].ZERO
e.g. CONSTANTS['ethereum'].ZERO // '0x0000000000000000000000000000000000000000'
The number value (as a string) representing the maximum integer value (usually uint256).
CONSTANTS[blockchain].MAXINT
e.g. CONSTANTS['ethereum'].ZERO // '115792089237316195423570985008687907853269984665640564039457584007913129639935'
The address used to represent the native blockchain token alongside other token addresses.
CONSTANTS[blockchain].NATIVE
e.g. CONSTANTS['ethereum'].NATIVE // '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE'
The decimals for the native token of the individual blockchain.
CONSTANTS[blockchain].DECIMALS
e.g. CONSTANTS['ethereum'].DECIMALS // 18
The address of the token contract providing a wrapped token of individual blockchain's native token.
CONSTANTS[blockchain].WRAPPED
e.g. CONSTANTS['ethereum'].WRAPPED // '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
The symbol of the native currency.
CONSTANTS[blockchain].SYMBOL
e.g. CONSTANTS['ethereum'].SYMBOL // 'ETH'
The name of the native token.
CONSTANTS[blockchain].NAME
e.g. CONSTANTS['ethereum'].NAME // 'Ethereum'
yarn install
yarn start
npm publish
FAQs
``` yarn add depay-blockchain-token ```
The npm package depay-blockchain-constants receives a total of 1 weekly downloads. As such, depay-blockchain-constants popularity was classified as not popular.
We found that depay-blockchain-constants demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.