Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (37 sloc) 1.53 KB

@zapjs/subscriber

This repository provides wrapper classes for data subscribers subscribers to interface with Zap providers.

Getting Started

Prerequisites

What things you need to install the software and how to install them

- Nodejs and npm>=6.1.11
- Typescript

Installing

npm install @zapjs/subscriber

Usage

Create a Zap Susbcriber and interact with Provider
import {ZapSubscriber} from '@zapjs/subscriber';
let myZapSubscriber = new ZapSubscriber({owner:address})

With Custom configuration

let myZapSubscriber = new myZapSubscriber(owner,{networkId,networkProvider,coordinator});

Methods

await myZapSubscriber.bond({provider, endpoint, zapNum})
await myZapSuscriber.unBond({provider, endpoint, dots})
await myZapSubscriber.subscribe({provider, endpoint, endpointParams, dots})  

See more Usages of each packages :