Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@iqprotocol/in-memory-storage
Advanced tools
This package is part of [IQ Protocol JS SDK.](https://github.com/iqlabsorg/iq-sdk-js)
This package is part of IQ Protocol JS SDK.
:exclamation: The package is in development and breaking changes should be expected. Use at your own risk! |
---|
The package includes very basic Account Store Interface implementation for handling account states in memory. Use this package when you want to test account state management functionality without setting up a persistent storage.
:warning: This provider is meant for testing and does not guarantee data persistence. Do not use for production deployments!
yarn add @iqprotocol/in-memory-storage
import { InMemoryAccountStore, Account, AccountState } from '@iqprotocol/in-memory-storage';
const store = new InMemoryAccountStore();
const account: Account = {
id: 'test-id',
data: { ... },
};
await store.saveAccount(account);
const accountState: AccountState = {
accountId: account.id,
serviceId: 'test-service',
energyGapHalvingPeriod: 86400,
power: 10n,
lockedPower: 2n,
energyCap: 5n,
energy: 5n,
energyCalculatedAt: Math.floor(Date.now() / 1000),
};
await store.initAccountState(accountState);
FAQs
This package is part of [IQ Protocol JS SDK.](https://github.com/iqlabsorg/iq-sdk-js)
We found that @iqprotocol/in-memory-storage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.