> For the complete documentation index, see [llms.txt](https://docs.nucleusearn.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nucleusearn.io/nucleus-architecture/smart-contracts/contracts/base/roles/cross-chain/oappauth/oappauth.md).

# OAppAuth

[Git Source](https://github.com/Ion-Protocol/nucleus-boring-vault/blob/cc0b494b83e17b9b169a73b96050d2810b690477/src/base/Roles/CrossChain/OAppAuth/OAppAuth.sol)

**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.*

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

**Parameters**

| Name        | Type      | Description                                                                |
| ----------- | --------- | -------------------------------------------------------------------------- |
| `_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.

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

**Returns**

| Name              | Type     | Description                                         |
| ----------------- | -------- | --------------------------------------------------- |
| `senderVersion`   | `uint64` | The version of the OAppSender.sol implementation.   |
| `receiverVersion` | `uint64` | The version of the OAppReceiver.sol implementation. |
