@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
Last updated a year ago by propulsor .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @zapjs/registry 
SYNC missed versions from official npm registry.

@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

- Nodejs and npm>=6.1.11
- 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 :

Current Tags

  • 2.2.3                                ...           latest (a year ago)

33 Versions

  • 2.2.3                                ...           a year ago
  • 2.2.2                                ...           a year ago
  • 2.2.1                                ...           a year ago
  • 2.2.0                                ...           a year ago
  • 2.1.4                                ...           a year ago
  • 2.1.3                                ...           a year ago
  • 2.1.2                                ...           a year ago
  • 2.1.1                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.19                                ...           2 years ago
  • 2.0.18                                ...           2 years ago
  • 2.0.17                                ...           2 years ago
  • 2.0.16                                ...           2 years ago
  • 2.0.15                                ...           2 years ago
  • 2.0.14                                ...           2 years ago
  • 2.0.13                                ...           2 years ago
  • 2.0.12                                ...           2 years ago
  • 2.0.11                                ...           2 years ago
  • 2.0.10                                ...           2 years ago
  • 2.0.9                                ...           2 years ago
  • 2.0.8                                ...           2 years ago
  • 2.0.7                                ...           2 years ago
  • 2.0.6                                ...           2 years ago
  • 2.0.5                                ...           2 years ago
  • 2.0.4                                ...           2 years ago
  • 2.0.3                                ...           2 years ago
  • 2.0.2                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 2
Last Month 0
Dependencies (5)
Dev Dependencies (15)

Copyright 2014 - 2017 © taobao.org |