![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@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)
The npm package @metamask/assets-controllers receives a total of 0 weekly downloads. As such, @metamask/assets-controllers popularity was classified as not popular.
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 9 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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.