OAppAuth

Git Source

Inherits: OAppAuthSender, OAppAuthReceiver

Abstract contract serving as the base for OApp implementation, combining OAppSender and OAppReceiver functionality.

This Auth version of OAppCore uses solmate's Auth instead of OZ's Ownable for compatibility purposes

Functions

constructor

Constructor to initialize the OApp with the provided endpoint and owner.

constructor(address _endpoint, address _delegate) OAppAuthCore(_endpoint, _delegate);

Parameters

NameTypeDescription

_endpoint

address

The address of the LOCAL LayerZero endpoint.

_delegate

address

The delegate capable of making OApp configurations inside of the endpoint.

oAppVersion

Retrieves the OApp version information.

function oAppVersion()
    public
    pure
    virtual
    override(OAppAuthSender, OAppAuthReceiver)
    returns (uint64 senderVersion, uint64 receiverVersion);

Returns

NameTypeDescription

senderVersion

uint64

The version of the OAppSender.sol implementation.

receiverVersion

uint64

The version of the OAppReceiver.sol implementation.