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.
turbulent
is a React.js
/Next.js
hook library for blockchain interface, it is a wrapper around web3Modal
library to provide a shared gloabl hook for sharing the connection status, addresses, providers and much more.
Use the package manager npm to install turbulent
.
npm install turbulent
# Importing the hooks
import { web3Modal, useContract } from 'turbulent';
# Extracting the features from the 'useWeb3Modal' hook
const { connect, connected, address, balance, chainId } = useWeb3Modal('Infura key');
# Use 'connect' function
<button onClick={connect}> Connect </button>
# use 'useContract' hook to call methods from the contract
const Contract = useContract(contractAddress, contractABI, 'Infura key');
const balance = await Contract.methods.balanceOf(address).call();
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
FAQs
Blockchain Interface Hook Library
The npm package turbulent receives a total of 0 weekly downloads. As such, turbulent popularity was classified as not popular.
We found that turbulent 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’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.