# warp-contracts-plugin-evaluation-progress

> A plugin that allows to listen for evaluation progress events

Latest version **1.0.21** (published 2022-12-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install warp-contracts-plugin-evaluation-progress
pnpm add warp-contracts-plugin-evaluation-progress
yarn add warp-contracts-plugin-evaluation-progress
bun add warp-contracts-plugin-evaluation-progress
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.21 |
| Published | 2022-12-01 |
| First published | 2022-12-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=16.5 |
| Dependencies | 0 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | redstone-finance |

## Links

- npm: https://www.npmjs.com/package/warp-contracts-plugin-evaluation-progress
- npm.io page: https://npm.io/package/warp-contracts-plugin-evaluation-progress

## Recent versions

- 1.0.21 (latest) — 2022-12-01
- 1.0.20 — 2022-12-01
- 1.0.19 — 2022-12-01
- 1.0.18 — 2022-12-01

## README

# Warp Contracts Evaluation Progress Plugin

This plugin allows to listen for contract evaluation progress events.  
Compatible only with node.js env.  
Requires Warp Contracts SDK ver. min. `1.2.27`.

## Installation

`yarn add warp-contracts-plugin-evaluation-progress`

```js
const eventEmitter = new EventEmitter();
eventEmitter.on('progress-notification', (message) => {
  console.log('From listener', message);
});

// will notify every 500 evaluated interactions
module.exports = WarpFactory.forMainnet()
  .use(new EvaluationProgressPlugin(eventEmitter, 500));
```

The `message` format is:
```json
{
  "contractTxId": "Daj-MNSnH55TDfxqC7v4eq0lKzVIwh98srUaWqyuZtY",
  "message": "[Daj-MNSnH55TDfxqC7v4eq0lKzVIwh98srUaWqyuZtY]: 7500/9835 [0ms]"
}
```

---
_Source: https://npm.io/package/warp-contracts-plugin-evaluation-progress · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
