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.
@metamask/assets-controllers
Advanced tools
Controllers which manage interactions involving ERC-20, ERC-721, and ERC-1155 tokens (including NFTs)
@metamask/assets-controllers
Controllers which manage interactions involving ERC-20, ERC-721, and ERC-1155 tokens (including NFTs).
yarn add @metamask/assets-controllers
or
npm install @metamask/assets-controllers
This package features the following controllers:
RatesController
and CurrencyRateController
is that the second one is coupled to the NetworksController
and is EVM specific, whilst the first one can handle different blockchain currencies like BTC and SOL.RatesController
The RatesController
is responsible for managing the state related to cryptocurrency exchange rates and periodically updating these rates by fetching new data from an external API.
// Initialize the RatesController
const ratesController = new RatesController({
interval: 180000,
includeUsdRate: true,
state: {
fiatCurrency: 'eur',
cryptocurrencies: [Cryptocurrency.Btc],
},
});
// Start the polling process
ratesController.start().then(() => {
console.log('Polling for exchange rates has started.');
});
// Stop the polling process after some time
setTimeout(() => {
ratesController.stop().then(() => {
console.log('Polling for exchange rates has stopped.');
});
}, 300000);
This package is part of a monorepo. Instructions for contributing can be found in the monorepo README.
FAQs
Controllers which manage interactions involving ERC-20, ERC-721, and ERC-1155 tokens (including NFTs)
We found that @metamask/assets-controllers demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.