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.
- Provides entry functions to config instead of calling from app with
UaCapability
- Allows the app to drop/store the next payload
- 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>)