Zap Dispatch
npm install @zapjs/dispatchThis repository provides an interface to the Zap Dispatch contract, enabling queries to be sent to oracles and responses to be received by subscribers.
```
- Node 12.20 <=14.15
- Typescript
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)
``