Connext Store Module
Install NPM package in your project
npm install --save connext-store
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);
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)
}
);