# ora-protocol-registry

Latest version **1.0.2** (published 2019-05-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install ora-protocol-registry
pnpm add ora-protocol-registry
yarn add ora-protocol-registry
bun add ora-protocol-registry
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-05-09 |
| First published | 2019-04-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 543.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | chasesmith |

## Links

- npm: https://www.npmjs.com/package/ora-protocol-registry
- npm.io page: https://npm.io/package/ora-protocol-registry

## Dependencies (3)

- [solc](https://npm.io/package/solc.md) ^0.5.7
- [web3](https://npm.io/package/web3.md) ^1.0.0-beta.55
- [truffle](https://npm.io/package/truffle.md) ^5.0.11

## Recent versions

- 1.0.2 (latest) — 2019-05-09
- 1.0.1 — 2019-04-21

## README

# Meshcache Registry


## Installation

```
npm install ora-protocol-registry
```

## Use

```
const Registry = require('ora-protocol-registry')
```

## API


### Get Registry Address

```javascript
registry.getRegistryAddress()
```

This function returns the address of the registry. 

#### Output

```JSON

```

### Get Services

```javascript
var services = registry.getServices()
```
This function returns the list of services by ID. 

#### Output 

```JSON

```

### Get Service 
```javascript
var serviceId = services[0]
registry.getService(serviceId)
```
| name  |  type |  description  
|---    |---    |     ---         |
|  serviceId | uint256  |  id of the service |

This returns the associated service variables.

#### Output

```JSON

```

### Get Bootstraps
```javascript
var serviceId = services[0]
registry.getBootstraps(serviceId)
```

| name  |  type |  description  
|---    |---    |     ---         |
|  serviceId | uint256  |  id of the service |

This returns the associated bootstrap nodes with the service.

#### Output

```JSON

```
## Schema 

### Service
```javascript
    struct Service {
        uint256 serviceId;
        string id;
        address owner;
        uint256 index;
        string name;
        bytes32[] bootstraps;
        uint256 stake;

    }
```

---
_Source: https://npm.io/package/ora-protocol-registry · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
