Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@iqprotocol/abstract-storage

Package Overview
Dependencies
Maintainers
10
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iqprotocol/abstract-storage

This package is part of [IQ Protocol JS SDK.](https://github.com/iqlabsorg/iq-sdk-js)

  • 0.15.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
10
Created
Source

Abstract Storage

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 IQ Protocol off-chain state management is storage agnostic and relies on storage providers to implement required functionality. This package provides AccountStore class which can be extended to implement store specific provider.

Use this package when you want to implement a new storage provider.

Installation

yarn add @iqprotocol/abstract-storage

Usage

All AccountStore implementations use built-in account state validator by default. It is also possible to provide a custom validator.

import { AccountStore, AccountStateValidator } from '@iqprotocol/abstract-storage';

class CustomStore extends AccountStore {
  // ...
}

class CustomAccountStateValidator implements AccountStateValidator {
  // ...
}

const validator = new CustomAccountStateValidator();
const customStore = new CustomStore({ validator });

FAQs

Package last updated on 20 Jul 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc