Skip to content
Connext Store Module
TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.babelrc
.editorconfig
.eslintignore
.eslintrc
.gitignore
.npmignore
LICENSE
README.md
babel-polyfill.js
index.d.ts
package-lock.json
package.json
tsconfig.json
tslint.json
webpack.config.js

README.md

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

Advanced Options

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

const store = new ConnextStore(
  window.localStorage || AsyncStorage, // REQUIRED
  {
    prefix: "CONNEXT_STORE",
    separator: "/",
    pisaClient: new PisaClient(pisaUrl, contractAddress),
    wallet: new ethers.Wallet(privateKey)
  }
);
You can’t perform that action at this time.