matic-pos-exit
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i matic-pos-exit

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

17.1 kB

Total Files

10

Last publish

Collaborators

  • petejkim