3.0.1 • Published 4 years ago

@zapjs/dispatch v3.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

@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

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

3.0.1

4 years ago

3.0.0

4 years ago

2.2.2

6 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.0.20

6 years ago

2.0.19

6 years ago

2.0.18

6 years ago

2.0.17

7 years ago

2.0.16

7 years ago

2.0.15

7 years ago

2.0.14

7 years ago

2.0.13

7 years ago

2.0.12

7 years ago

2.0.11

7 years ago

2.0.10

7 years ago

2.0.9

7 years ago

2.0.8

7 years ago

2.0.7

7 years ago

2.0.6

7 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago