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

@zapjs/registry

Package Overview
Dependencies
Maintainers
5
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zapjs/registry

This repository provides an interface to the Zap Registry contract, enabling data providers (oracles) to register their endpoints and bonding curves. Furthermore, this package enables data subscribers to discover oracles and receive configuration data (su

latest
Source
npmnpm
Version
3.0.1
Version published
Maintainers
5
Created
Source

@zapjs/registry

This repository provides an interface to the Zap Registry contract, enabling data providers (oracles) to register their endpoints and bonding curves. Furthermore, this package enables data subscribers to discover oracles and receive configuration data (such as titles, endpoints, and parameters) from the Registry smart contract.

Prerequisites

- Node 12.20 <=14.15
- Typescript

Usage

Using Zap Arbiter to listen to subscriptions events
npm install --save `@zapjs/registry`
import {ZapRegistry} from '@zapjs/registry';

let myZapRegistry = new ZapRegistry(); 

Custom configuration

let myZapRegistry = new ZapRegistry({networkId,networkProvider,coordinator})

Methods

Get methods

myZapRegistry.getNextProvider(index);

Listen to events

myZapRegistry.listenNewProvider(filters,callback)
myZapRegistry.listenNewCurve(filters,callback)

Listen all events

myZapRegistry.listen(callback)

See more Usages of each packages :

  • Provider
  • Subscriber
  • Bondage
  • 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