@zapjs/dispatch
Zap Dispatch
Last updated 2 years ago by michael99man .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @zapjs/dispatch 
SYNC missed versions from official npm registry.

@zapjs/dispatch

This repository provides an interface to the Zap Dispatch contract, enabling queries to be sent to oracles and responses to be received by subscribers.

Prerequisites

- Nodejs and npm>=6.1.11
- Typescript

Usage

Listen to query and response events
npm install `@zapjs/dispatch`
import {ZapDispatch} from '@zapjs/dispatch';
let myZapArbiter = new ZapArbiter();

Custom configuration

let myZapDispatch = new zapDisPatch({networkId,networkProvider,coordinator})

Listen to Incoming query events

 myZapDispatch.listenIncoming(filters,callback);

Listen to query fulfilling event:

 myZapDispatch.listenFulFillQuery(filters,callback);

Listen to Offchain response from provider:

 myZapDispatch.listenOffchainResponse(filters,callback);

Listen to all events

myZapDispatch.listen(callback)

See more Usages of each packages

Current Tags

  • 2.2.2                                ...           latest (a year ago)

26 Versions

  • 2.2.2                                ...           a year ago
  • 2.2.1                                ...           a year ago
  • 2.2.0                                ...           a year ago
  • 2.0.20                                ...           a year ago
  • 2.0.19                                ...           a year ago
  • 2.0.18                                ...           2 years ago
  • 2.0.17                                ...           2 years ago
  • 2.0.16                                ...           2 years ago
  • 2.0.15                                ...           2 years ago
  • 2.0.14                                ...           2 years ago
  • 2.0.13                                ...           2 years ago
  • 2.0.12                                ...           2 years ago
  • 2.0.11                                ...           2 years ago
  • 2.0.10                                ...           2 years ago
  • 2.0.9                                ...           2 years ago
  • 2.0.8                                ...           2 years ago
  • 2.0.7                                ...           2 years ago
  • 2.0.6                                ...           2 years ago
  • 2.0.5                                ...           2 years ago
  • 2.0.4                                ...           2 years ago
  • 2.0.3                                ...           2 years ago
  • 2.0.2                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (15)

Copyright 2014 - 2016 © taobao.org |