Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

matic-pos-exit

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

matic-pos-exit

Generate data to exit Matic POS tokens on root chain

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 03 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc