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.
biconomy-hyphen
Advanced tools
Hyphen SDK to enable instant and seamless cross-chain deposits & withdrawals
Hyphen SDK, is a javascript based SDK written in typescript that helps in integrating Hyphen services easily. It provides some helper methods that makes the Hyphen integration too easy. Even though you can just interact with LiquidityPoolManager smart contract directly and deposit the tokens using depositErc20 method from your DApp and do the deposit transactions but using SDK is recommended as it provides methods like checking available liquidity before doing the transaction, checking exit transaction status, checking approvals etc.
Check out the documentation for more details.
npm install @biconomy/hyphen
or
yarn add @biconomy/hyphen
import { Hyphen } from "@biconomy/hyphen";
let hyphen = new Hyphen(<Provider Object>, {
debug: true, // If 'true', it prints debug logs on console window
environment: "test", // It can be "test" or "prod"
onFundsTransfered: (data) => {
// Callback method which will be called when funds transfer across
// chains will be completed
}
});
await hyphen.init();
let depositTx = await hyphen.deposit({
sender: "User wallet address",
receiver: "Receiver address on toChain. Can be different than sender",
tokenAddress: "Address of the token on fromChain to be transferred",
depositContractAddress: "LiquidityPoolManager address on fromChain",
amount: "Amount to be transferred. Denoted in smallest unit eg in wei",
fromChainId: 137, // chainId of fromChain
toChainId: 1, // chainId of toChain
});
// Wait for 1 block confirmation
await depositTx.wait(1);
FAQs
Hyphen SDK to enable instant and seamless cross-chain deposits & withdrawals
The npm package biconomy-hyphen receives a total of 30 weekly downloads. As such, biconomy-hyphen popularity was classified as not popular.
We found that biconomy-hyphen 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.