3.0.1 • Published 3 years ago

@zapjs/dispatch v3.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
3 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

3 years ago

3.0.0

3 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.0.20

5 years ago

2.0.19

5 years ago

2.0.18

5 years ago

2.0.17

5 years ago

2.0.16

6 years ago

2.0.15

6 years ago

2.0.14

6 years ago

2.0.13

6 years ago

2.0.12

6 years ago

2.0.11

6 years ago

2.0.10

6 years ago

2.0.9

6 years ago

2.0.8

6 years ago

2.0.7

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago