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

    3.0.1 • Public • Published

    Zap-arbiter

    This repository provides Interface to Zap Arbiter contract

    Prerequisites

    - Node 12.20 <=14.15
    - Typescript
    

    Usage

    Using Zap Arbiter to listen to subscriptions events
    npm install --save `@zapjs/arbiter`
    
    import {ZapArbiter} from '@zapjs/arbiter';
    
    let myZapArbiter = new ZapArbiter();
    

    Custom configuration

    let myZapArbiter = new ZapArbiter({networkId,networkProvider,coordinator})
    

    Listen to new subscription events

    myZapArbiter.listenSubscriptionStart(filters,allback)
    

    Listen to end subscription events

    myZapArbiter.listenSubscriptionEnd(filters,allback)
    

    Get Subscription of provider-subscriber-endpoint

    await myZapArbiter.getSubscription({provider,subscriber,endpoint})
    

    Listen all events

    myZapArbiter.listen(callback)
    

    See more Usages of each packages :

    Built With

    Keywords

    none

    Install

    npm i @zapjs/arbiter

    DownloadsWeekly Downloads

    25

    Version

    3.0.1

    License

    ISC

    Unpacked Size

    19.7 kB

    Total Files

    5

    Last publish

    Collaborators

    • zwalla
    • zaporg
    • propulsor
    • michael99man
    • avisaven