Skip to content

petejkim/matic-pos-exit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published