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

3.0.1 • Public • Published

@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 :

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.1
    0
    • latest

Version History

Package Sidebar

Install

npm i @zapjs/registry

Weekly Downloads

0

Version

3.0.1

License

ISC

Unpacked Size

31.3 kB

Total Files

5

Last publish

Collaborators

  • zwalla
  • zaporg
  • propulsor
  • michael99man
  • avisaven