New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@zapjs/dispatch

Package Overview
Dependencies
Maintainers
5
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zapjs/dispatch

Zap Dispatch

latest
Source
npmnpm
Version
3.0.1
Version published
Maintainers
5
Created
Source

@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

  • Provider
  • Subscriber
  • Registry
  • Dispatch
  • Arbiter
  • ZapToken
  • Zapjs

FAQs

Package last updated on 23 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts