layerzero-labs / layerzero-v2
github.com/layerzero-labs/layerzero-v2Indexed at 9c741e7Up to date with upstream
What is layerzero-v2?
layerzero-v2 is an omnichain interoperability protocol for blockchain applications that need to exchange messages across blockchains. It uses contracts, decentralized verifier networks, and Executors to verify and deliver cross-chain messages. The repository primarily uses Rust, TypeScript, JavaScript, and shell files, with Move identified as its primary language.
Written by a model from the README and the source
555 files and 3,011 symbols in 2 modules, led by Rust (232 files) and TypeScript (127).
Code health
Use layerzero-labs/layerzero-v2 in your agent
Point Claude Code, Cursor, Codex or VS Code at this repository. Your agent gets the index this page is built from: cited answers, callers, history and health for any file.
- 1.In Claude, open Customize → Connectors, click +, then Add custom connector. On a Team or Enterprise plan an owner adds it first under Organization settings → Connectors.
- 2.Paste the server URL below as the Remote MCP server URL, then click Add.
- 3.Click Connect. A Repowise sign-in window opens. Approve access.
- 4.Repowise's tools are now available in your Claude chats.
Connect with one click. Sign in with Repowise (OAuth), no API key to copy. Works in Claude on the web, desktop, and mobile.
Docshttps://api.repowise.dev/mcp/layerzero-labs/layerzero-v2
This repo is public, so anyone with a Repowise account and an API key can connect.
Try asking
- get_overview()
- get_answer("how is layerzero-v2 put together?")
- get_why("why is layerzero-v2 structured this way?")
Explore layerzero-v2
- DocumentationModule-by-module documentation, 474 pages.
- ArchitectureDependency graph, layers and third-party dependencies.
- Code healthEvery file's score and the findings behind it.
- CommitsEach commit's effect on code health.
- OverviewEverything else the index found: contributors, decisions, what changed this week.
Key features of layerzero-v2
- LayerZero V2 provides Solidity contract standards for sending arbitrary data, tokens, and external calls to multiple chains.
- Applications can configure decentralized verifier networks to verify cross-chain messages.
- Executors abstract destination gas and automatically deliver messages on behalf of the source sender.
- The OApp Standard provides a generic interface for sending and receiving arbitrary data between contracts on different blockchain networks.
- The OFT Standard supports fungible-token transfers across multiple blockchains without asset wrapping or middlechains.
How layerzero-labs/layerzero-v2 works
Applications use contracts in /oapp to send and receive arbitrary data between contracts on different blockchain networks. The OApp Standard provides the generic message-passing interface, while the OFT Standard supports fungible-token transfers across blockchains. Core immutable protocol interfaces, including the LayerZero Endpoint, are in /protocol. Contracts in /messagelib provide append-only on-chain MessageLib implementations and reference communication between DVNs, Executors, and Ultra Light Nodes. DVNs verify cross-chain messages, and Executors deliver them on destination chains while abstracting destination gas for a fee.
The codebase has 555 files and 3,011 symbols in 2 modules, led by Rust, TypeScript and JavaScript. Code health is 9.5 out of 10, rated excellent.
Getting started with layerzero-v2
- Install dependencies, build the project, and run its tests.
yarn && yarn build && yarn test
Commands copied from the README
layerzero-labs/layerzero-v2 FAQ
What is layerzero-v2?
layerzero-v2 is an omnichain interoperability protocol for blockchain applications. It connects blockchains so applications can exchange messages across networks.
How does layerzero-v2 work?
layerzero-v2 uses application contracts, DVNs, MessageLibs, and Executors to send, verify, and deliver cross-chain messages. The protocol interfaces are in /protocol, application standards are in /oapp, and MessageLib contracts are in /messagelib.
How do I install layerzero-v2?
layerzero-v2 can be installed, built, and tested with yarn && yarn build && yarn test.
What language is layerzero-v2 written in?
layerzero-v2 is primarily identified as a Move project. Its files also include Rust, TypeScript, JavaScript, and shell code.
How is the layerzero-v2 code organized?
layerzero-v2 places most code under packages. The /oapp directory contains application standards, /protocol contains core protocol interfaces, and /messagelib contains MessageLib contracts.
Who is layerzero-v2 for?
layerzero-v2 is for developers building blockchain applications that send messages, tokens, or external calls across multiple blockchain networks. It also supports custom DVNs and Executors.
The summary, features and answers on this page are written by a model from the README and the source, and refreshed with each index.
About this page
Get a page like this for your own codebase
Repowise built this map of layerzero-labs/layerzero-v2 from its source and git history. It parses every symbol, draws the dependency graph, scores each file's health from complexity, duplication, coverage and churn, finds hotspots and owners in the history, and writes documentation for every module. Your coding agent reads the same index over MCP, so its answers cite real files.
Prefer local? pip install repowise && repowise init indexes your own checkout, no account needed.
Maintain layerzero-labs/layerzero-v2?
Claim this page, add a badge to the README, or re-index it.
Claim this page
Sign in with GitHub and we check that you are an admin or maintainer of layerzero-labs/layerzero-v2. Then add a badge to the README that links readers here.
Add a badge to your README
Every badge is public, cached, and updates on its own after every index. Nothing to install.
Repowise badge
Links to this page, with no score on it. Adding it also re-indexes the repo every week.
[](https://repowise.dev/repo/layerzero-labs/layerzero-v2?src=badge_wiki)Code health badge
The repo's health score out of 10, from the latest index.
[](https://repowise.dev/repo/layerzero-labs/layerzero-v2?src=badge_health)Code health card
A larger card with the score, its change since the last index, and when it was measured. The HTML version follows the reader's light or dark theme.
[](https://repowise.dev/repo/layerzero-labs/layerzero-v2?src=badge_card)