
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@hexcommunity/hex
Advanced tools
a repo for all things hex solidity / truffle development
this package is untested
need tests for all code (.sol + .js)
use contracts/* to test the contracts you plan to build on hex.
const { UNITS, fromHeart, toHeart, convert } = require('@hexcommunity/hex/utils')
UNITSan object with the units as keys and the factor (1e8) as values.
heart
microhex
millihex
hex
hectohex
kilohex
megahex
gigahex
terahex
convertconvert any unit into any other unit returns a BN.js value
convert('heart', 200000000, 'hex') // 2<BN>
fromHeartconvert heart unit to any other unit, default destination hex
fromHeart(200000000) // 2<BN>
fromHeart(200000000, 'hex') // 2<BN>
fromHeart(200000000, 'millihex') // 2000<BN>
toHeartconvert from any other unit to heart, default source hex
fromHeart(2) // 200000000<BN>
fromHeart(2, 'hex') // 200000000<BN>
fromHeart(2000, 'millihex') // 200000000<BN>
FAQs
a repo for all things hex solidity / truffle development
We found that @hexcommunity/hex 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.