Layer Zero
LayerZero is an interoperability protocol designed to link blockchains, enabling developers to create fluid omnichain applications, tokens, and experiences. Utilizing immutable on-chain endpoints, a customizable Security Stack, and an open set of Executors, the protocol facilitates the transfer of censorship-resistant messages across chains.
Implementation Example
The following example shows how to create and bridge an ERC-20 token between SKALE Europa testnet and Mumbai Testnet.
For more information check the github repository created by the SKALE team.
-
Repository clone
-
Package Install
-
.env file
-
Rename .env.example -> .env
-
Choose your preferred means of setting up your deployer wallet/account
-
-
Contract deploy
With the ERC-20 contracts deployed on the desired chains we can enable bridging those asserts.
This is a two step process. The created examples are under the
scripts
folder and it shows the bridging tokens between two testnet chains Mumbai Testnet and SKALE Europa Testnet.Once you’ve finished configuring your OFT, you can open the messaging channel and connect your OFT deployment to different chains by calling setPeer.
-
Set Peer
-
Bridge
After setting the peers you can now proceed you bridging the tokens.
Additional Layer Zero Documentation
Click here for the official documentation.