1.1.7 • Published 4 years ago

connext-store v1.1.7

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

connext-store

Connext Store Module

Install

Install NPM package in your project

npm install --save connext-store

Setup

For Browsers

import ConnextStore from "connext-store";

const store = new ConnextStore(window.localStorage);

For React-Native

import AsyncStorage from "@react-native-community/async-storage";
import ConnextStore from "connext-store";

const store = new ConnextStore(AsyncStorage);

For NodeJS

import ConnextStore, { NodeStorage } from "connext-store";

const store = new ConnextStore(new NodeStorage());

Advanced Options

import AsyncStorage from "@react-native-community/async-storage";
import ConnextStore, { NodeStorage } from "connext-store";
import PisaClient from "pisa-client";
import ethers from "ethers";

const store = new ConnextStore(
  window.localStorage || AsyncStorage || new NodeStorage(), // REQUIRED
  {
    prefix: "INDRA_CLIENT_CF_CORE",
    separator: "/",
    asyncDataKey: "CONNEXT_STORE",
    pisaClient: new PisaClient(pisaUrl, contractAddress),
    wallet: new ethers.Wallet(privateKey)
  }
);
1.2.0-beta.1

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago