![]() However, the matic.js SDK is designed in a very user friendly way to make the asset transfer mechanism very easy to integrate with any application. Once mapping is done, you can either use the matic.js SDK to interact with the contracts or you can do the same without the SDK. Want to watch all of this in video form? Please check it out below This function call takes in the burnHash for verifying the checkpoint inclusion and only then triggers the Predicate Contract which unlocks and releases the funds that were deposited. Next up, the proof of this burn transaction is submitted to the RootChainManager by calling the exit function. Checkpointing is the process of merging the Polygon transactions into the Ethereum blockchain. ![]() Once the burn transaction is validated on the Polygon chain, it takes 30 minutes to 3 Hours for this burn transaction to be checkpointed. The RootChainManager then calls for the predicate contract to release the funds that were locked on the Ethereum chain. It's as simple as burning the asset tokens on the Polygon chain, collecting the transaction hash of this burn transaction, and submitting it to the RootChainManager. Withdrawing assets is a breeze with the PoS bridge. Your browser does not support the video element. Want to see this in video format? Please check it out below The inner workings of the mechanism itself comprises of a function call that is made of the RootChainManager which triggers the ChildChainManager contract. if you didn't get a run-through of what the State Sync Mechanism is, it's in its simplest form the native mechanism to send data from Ethereum Network to the Polygon Network. Next up, the asset is deposited with the State Sync Mechanism. Once this approval transaction has confirmed, the owner of the asset token interacts with the RootChainManager contract to complete the deposit. The owner of the asset token approves the Predicate Contract to lock down the amount of tokens to be deposited. If you're interested in submitting a mapping request, please do that here.Īt a lower level and with more detail, this is what happens Deposit It just means that the token contract on the root chain and the token contract on the child chain have to maintain a connection (called mapping) to transfer assets between themselves. Don't worry, this isn't anything complex. ![]() The first step to using the PoS bridge is mapping the Root Token and Child Token.Mapping and the State Sync Mechanismĭone with those links? Let's continue to a high level overview of the flow then. Steps to use the PoS Bridge īefore we enter into this section of the docs, it may help to have a thorough understanding of these terms as you'll interact with them while trying to use the bridge. Proof of stake based assets provides PoS security and faster exit with one checkpoint interval. This is quite painful for those DApps/users who need some flexibility and faster withdrawals, and are happy with the level of security provided by the Polygon Proof-of-Stake bridge, secured by a robust set of external validators. However, there are certain restrictions on the child token and there is a 7-day withdrawal period associated with all exits/withdraws from Polygon to Ethereum on the Plasma bridge. Plasma bridge provides an increased security guarantee due to the Plasma exit mechanism. First one is the Plasma bridge and the second one is called the PoS Bridge or Proof of Stake bridge. There are primarily two bridges to move assets between Ethereum and Polygon. Please check the latest Matic.js documentation on PoS to get started.Ī bridge is basically a set of contracts that help in moving assets from the root chain to the child chain.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |