0.15.1 • Published 2 years ago

@iqprotocol/abstract-storage v0.15.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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 });
0.15.1

2 years ago

0.15.0

2 years ago

0.12.0

2 years ago

0.13.0

2 years ago

0.13.1

2 years ago

0.11.0

3 years ago

0.10.2

3 years ago

0.10.1

3 years ago

0.10.0

3 years ago

0.9.0

3 years ago

0.8.0

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago