LayerZero Developer Tools Hub

repository·main·Indexed 42 days ago

https://github.com/layerzero-labs/devtools

A central repository for building, testing, deploying, and interacting with LayerZero-based omnichain applications (OApps). It provides contract standards, CLI tools, and practical examples, including EndpointV1 OFT migration, Solana OFT202 integration, and MintBurnOFTAdapter implementations for unified global token supply.

Tokens
144.4K
Snippets
490
Records
649
Agent score
50%

What's inside LayerZero DevTools

  1. Overview of Devtools-Movement

    main
    Devtools-Movement is a specialized toolset within the LayerZero devtools ecosystem designed to support the movement and EVM chain side of the layerzero-sdk. It is designed to be extensible, allowing developers to build and test custom implementations for OFTs (Omnichain Fungible Tokens) and OApps (Omnichain Applications).
  2. Understand the repository code layout

    main

    The repository is organized into three main directories to separate core logic from usage examples and testing infrastructure:

    • ./packages: Contains the reusable core packages.
    • ./examples: Contains reference implementation projects.
    • ./tests: Contains test projects and helper utilities.
  3. Explore LayerZero examples and packages

    main

    The repository is organized into two main directories for developers:

    • examples/: Contains template projects and learning resources for building with standards like OApp.sol (Omnichain App Standard), OFT.sol (Omnichain Fungible Tokens), and ONFT.sol (Omnichain Non-Fungible Tokens).
    • packages/: Contains NPM packages, libraries, and tools including deployment scripts, CLI tools, protocol devtools, and testing utilities (e.g., Hardhat, Foundry, and Solana support).

    Refer to the individual README files within each examples/ project for specific usage instructions.

  4. What is a MintBurnOFTAdapter?

    main

    The MintBurnOFTAdapter is a specialized variant of the LayerZero OFTAdapter. While a standard adapter might lock tokens on the source chain, the MintBurnOFTAdapter uses the underlying ERC20's burn mechanism on the source chain (Chain A) and its mint mechanism on the destination chain (Chain B).

    This allows for a unified global supply across different blockchains without needing to lock tokens in a vault.

    Key Features

    • Mint and Burn Access: Interacts with ERC20 tokens that have native mint/burn capabilities.
    • Access Control: Uses allowlists to ensure only authorized entities (like the adapter) can trigger mint/burn functions.
    • Multiple Deployments: Supports multiple instances configured with different tokens and LayerZero endpoints.