Natural Performance Manager

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

    3.0.1 • Public • Published

    @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

    Keywords

    none

    Install

    npm i @zapjs/dispatch

    DownloadsWeekly Downloads

    29

    Version

    3.0.1

    License

    ISC

    Unpacked Size

    20.7 kB

    Total Files

    5

    Last publish

    Collaborators

    • zwalla
    • zaporg
    • propulsor
    • michael99man
    • avisaven