# @erasure/testenv

> Deploy local version of the erasure protocol for testing purposes.

Latest version **1.3.1** (published 2020-02-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @erasure/testenv
pnpm add @erasure/testenv
yarn add @erasure/testenv
bun add @erasure/testenv
```

## 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.3.1 |
| Published | 2020-02-13 |
| First published | 2019-10-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 382.9 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 169 |
| Maintainers | jason_numerai, propulsor, thegostep |
| Keywords | erasure, graphql, ganache |

## Links

- npm: https://www.npmjs.com/package/@erasure/testenv
- Repository: https://github.com/erasureprotocol/erasure-protocol/tree/master/packages/testenv
- npm.io page: https://npm.io/package/@erasure/testenv

## Dependencies (10)

- [ethers](https://npm.io/package/ethers.md) ^4.0.37
- [argparse](https://npm.io/package/argparse.md) ^1.0.10
- [handlebars](https://npm.io/package/handlebars.md) ^4.7.3
- [ganache-cli](https://npm.io/package/ganache-cli.md) ^6.7.0
- [@erasure/abis](https://npm.io/package/@erasure/abis.md) ^1.3.23
- [@0x/sol-compiler](https://npm.io/package/@0x/sol-compiler.md) ^3.1.15
- [@erasure/crypto-ipfs](https://npm.io/package/@erasure/crypto-ipfs.md) ^1.2.5
- [@graphprotocol/graph-ts](https://npm.io/package/@graphprotocol/graph-ts.md) ^0.16.0
- [@openzeppelin/contracts](https://npm.io/package/@openzeppelin/contracts.md) ^2.4.0
- [@graphprotocol/graph-cli](https://npm.io/package/@graphprotocol/graph-cli.md) ^0.16.0

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 1.3.1 (latest) — 2020-02-13
- 1.3.0 — 2020-02-13
- 1.2.2 — 2019-12-21
- 1.2.1 — 2019-12-10
- 1.1.0 — 2019-10-03

## README

# Erasure Testenv

[![Build Status](https://github.com/erasureprotocol/erasure-protocol/workflows/CI/badge.svg)](https://github.com/erasureprotocol/erasure-protocol/actions)

Instantiate a ganache instance with NMR and erasure protocol.

### Deploy contracts to local ganache server

```
yarn
yarn deploy
```

### Deploy graphQL subgraph to local graph-node

In a new terminal

```
git clone https://github.com/graphprotocol/graph-node/
cd graph-node/docker
docker-compose up
```

In a new terminal

```
yarn deploy_subgraph
```

See this [graph protocol article](https://thegraph.com/docs/quick-start) for more info. A common troubleshooting step is to clear and resart the graph-node db by deleting the content of `graph-node/docker/data`.

To reset subgraph

```
yarn graph-remove-local
```

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