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.
@tokamak-network/titan-sdk
Advanced tools
The @tokamak-network/titan-sdk
package provides a set of tools for interacting with Titan.
npm install @tokamak-network/titan-sdk
The BatchCrossChainMessenger
class simplifies the process of moving assets and data between Ethereum and Titan.
You can use this class to, for example, initiate a withdrawal of ERC20 tokens from Titan back to Ethereum, accurately track when the withdrawal is ready to be finalized on Ethereum, and execute the finalization transaction after the challenge period has elapsed.
The BatchCrossChainMessenger
can handle deposits and withdrawals of ETH and any ERC20-compatible token.
The BatchCrossChainMessenger
automatically connects to all relevant contracts so complex configuration is not necessary.
The Titan SDK includes various utilities for handling Titan's L2 Fee.
For instance, estimateTotalGasCost
will estimate the total cost (in wei) to send at transaction on Titan including both the L2 execution cost and the L1 data cost.
You can also use the asL2Provider
function to wrap an ethers Provider object into an L2Provider
which will have all of these helper functions attached.
The SDK contains other useful helper functions and constants.
FAQs
[Tokamak-Titan] Tools for working with Titan
The npm package @tokamak-network/titan-sdk receives a total of 52 weekly downloads. As such, @tokamak-network/titan-sdk popularity was classified as not popular.
We found that @tokamak-network/titan-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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’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.