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

@iqprotocol/abstract-storage

Package Overview
Dependencies
Maintainers
7
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/iqalliance/iq-sdk-js) The IQ Protocol off-chain state management is storage agnostic and relies on storage providers to implement required functionality. This package provides `AbstractStore

  • 0.10.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
7
Created
Source

Abstract Storage

This package is part of IQ Protocol JS SDK. The IQ Protocol off-chain state management is storage agnostic and relies on storage providers to implement required functionality. This package provides AbstractStore 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 AbstractStore implementations use built-in account state validator by default. It is also possible to provide a custom validator.

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

class CustomStore extends AbstractStore {
  // ...
}

class CustomAccountStateValidator implements AccountStateValidator {
  // ...
}

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

FAQs

Package last updated on 06 Sep 2021

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