LayerZero is an immutable, censorship-resistant, and permissionless messaging protocol that connects over 60 blockchains, enabling omnichain interoperability for blockchain applications.
With LayerZero V2, developers can create applications that seamlessly interact across multiple blockchains.
- Solidity Contract Standards: Send arbitrary data, tokens, and external calls to multiple chains.
- Decentralized Verifier Networks (DVNs): Configure any number and type of DVNs to verify your application's cross-chain messages.
- Executors: Automatically deliver messages on behalf of the source sender and handle destination gas for a fee.
Refer to the LayerZero V2 Docs for implementation details, handling, and debugging LayerZero contracts.
Join the #dev-general
channel on Discord to discuss technical issues.
yarn && yarn build && yarn test
All contracts in the /oapp
directory can be used to build an Omnichain Application (OApp):
- OApp: The OApp Standard provides a generic message-passing interface to send and receive arbitrary data between contracts on different blockchains. See the OApp Quickstart to start building.
- OFT: The Omnichain Fungible Token (OFT) Standard allows tokens to be transferred across blockchains without asset wrapping or middlechains. See the OFT Quickstart to learn more.
The core, immutable protocol contract interfaces, such as the LayerZero Endpoint, are located in the /protocol
directory.
Contracts related to the append-only, on-chain MessageLibs are in the /messagelib
directory. Inside, you will find reference implementations for how the DVN and Executor communicate with Ultra Light Nodes on each chain.
- DVN: Developers can run a custom DVN by deploying a DVN contract on every supported chain. See the Build DVN guide.
- Executor: Deploy a custom Executor to ensure seamless message execution on the destination chain. See the Executor guide.
Thank you to the core development team for building LayerZero Endpoints:
- Ryan Zarick
- Isaac Zhang
- Caleb Banister
- Carmen Cheng
- T. Riley Schwarz
The primary license for LayerZero is the Business Source License 1.1 (BUSL-1.1). See the LICENSE
for more details.