# matic-pos-exit

> Generate data to exit Matic POS tokens on root chain

Latest version **1.0.0** (published 2020-10-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install matic-pos-exit
pnpm add matic-pos-exit
yarn add matic-pos-exit
bun add matic-pos-exit
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-10-03 |
| First published | 2020-10-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 16.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | petejkim |

## Links

- npm: https://www.npmjs.com/package/matic-pos-exit
- npm.io page: https://npm.io/package/matic-pos-exit

## Dependencies (5)

- [bluebird](https://npm.io/package/bluebird.md) ^3.7.2
- [ethereumjs-tx](https://npm.io/package/ethereumjs-tx.md) 1.3.7
- [ethereumjs-util](https://npm.io/package/ethereumjs-util.md) 5.2.1
- [ethereumjs-block](https://npm.io/package/ethereumjs-block.md) 2.2.0
- [merkle-patricia-tree](https://npm.io/package/merkle-patricia-tree.md) 2.3.2

## Recent versions

- 1.0.0 (latest) — 2020-10-03

## README

# matic-pos-exit

This package contains the bare-minimum code necessary to generate the data 
required for the exit() function in Matic's RootChainManager contract. The code
in this package was extracted from Matic.js and cleaned up. This package can be
used as a light-weight alternative to the full Matic.js package if all you need
is just the POS exit functionality.

## Example

```
const { MaticPOSExit, ERC20_TRANSFER_EVENT_SIG } = require("matic-pos-exit");

const posExit = new MaticPOSExit(
  parentWeb3,
  maticWeb3,
  rootChainContractAddress
);

const data = await posExit.buildExitData(burnTxHash, ERC20_TRANSFER_EVENT_SIG);
```

---
MIT License

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