LZApp Modules

We provide some common modules to help build your UAs to let you put more focus on your business logic. These modules provide many useful functions that are commonly used in most UAs. You can use them directly as they are already deployed by LayerZero, or you can copy them to your own modules and modify them to fit your needs.


The LZApp module provides a simple way for you to manage your UA's configurations and handle error messages.
  1. 1.
    Provides entry functions to config instead of calling from app with UaCapability
  2. 2.
    Allows the app to drop/store the next payload
  3. 3.
    Enables to send a layerzero message with Aptos coin and/or ZRO coin
It is very simple to use it, initializing by calling the following in your UA:
fun init<UA>(account: &signer, cap: UaCapability<UA>)