@zapjs/subscriber
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

@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

- Node 12.20 <=14.15
- 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 :

Dependencies (9)

Dev Dependencies (15)

Package Sidebar

Install

npm i @zapjs/subscriber

Weekly Downloads

1

Version

3.0.1

License

ISC

Unpacked Size

23.4 kB

Total Files

5

Last publish

Collaborators

  • zwalla
  • zaporg
  • propulsor
  • michael99man
  • avisaven