LayerZero Integration Patterns

Official

Secure LayerZero cross-chain communications.

AuthorPurpleAILAB
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the critical security vulnerabilities that can arise when integrating with LayerZero, a popular cross-chain messaging protocol, ensuring secure and reliable communication between different blockchains.

Core Features & Use Cases

  • OApp Security Patterns: Provides guidance on securing Omnichain Applications (OApps), including essential peer and chain validation checks within the _lzReceive function.
  • OFT Security Patterns: Details how to secure Omnichain Fungible Tokens (OFTs), focusing on slippage protection and correct decimal handling.
  • Peer Configuration & Compose Security: Offers best practices for setting up trusted peers and validating compose messages to prevent injection attacks.
  • Gas & Options Security: Explains how to correctly configure gas limits and options to ensure successful message delivery.
  • Use Case: An auditor can use this skill to quickly identify common misconfigurations in a smart contract that utilizes LayerZero, such as missing peer validation, which could lead to message forgery.

Quick Start

Review the OApp security patterns to ensure peer validation is correctly implemented in the _lzReceive function.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: LayerZero Integration Patterns
Download link: https://github.com/PurpleAILAB/Vigilo/archive/main.zip#layerzero-integration-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.