Default Config
To simplify writing a User Application contract, LayerZero does not require any configuration. In this case, a UA sending messages will be using the system defaults.
info
Note: Should you choose to not manually set your configuration, the Default configuration will automatically be set for your application. The Default configuration is set and owned by the LayerZero Labs Multisig and may be updated in the future.
The Default Configuration
- Oracle: Google Cloud Oracle
- Relayer: LayerZero Labs
- Library Version (send & receive): UltraLightNodeV2.sol
- Outbound Proof Type: 1, MPT
- Outbound Confirmations: Varies per source chain, see below
- Inbound Proof Library: 1, MPT
- Inbound Confirmation: Varies per source chain, see below
Sending Messages
- Default:
_adapterParams
- Type: Version 1
- Gas Amount: 200,000
// These are the default Block Confirmations waited by LayerZero before delivering messages
const defaultBlockConfs = {
[ETHEREUM]: 15,
[BSC]: 20,
[AVALANCHE]: 12,
[POLYGON]: 512,
[ARBITRUM]: 20,
[OPTIMISM]: 20,
[FANTOM]: 5,
[DFK]: 10,
[HARMONY]: 5,
[MOONBEAM]: 10,
[APTOS]: 500000,
[CELO]: 5,
[DEXALOT]: 10,
[KLAYTN]: 5,
[METIS]: 5,
[FUSE]: 5,
[GNOSIS]: 5,
[COREDAO]: 21,
[OKX]: 2,
[DOS]: 2,
[SEPOLIA]: 10,
[ZKSYNC]: 20,
[ZKPOLYGON]: 20,
[MOONRIVER]: 10,
[METER]: 2,
[NOVA]: 20,
[TENET]: 2,
[CANTO]: 2,
[KAVA]: 2,
[MANTLE]: 2,
[HUBBLE]: 2,
[ZKCONSENSYS]: 10,
[BASE]: 10,
[SCROLL]: 5,
};
info
Transactions originating from the above chains should be delivered after a minimum of the specified source Block Confirmations