# IAuth2Step

Interface for the Auth2Step contract

## Functions

### acceptOwnership

Accept ownership transfer

```solidity
function acceptOwnership() external;
```

### transferOwnership

Wrapper function for backward compatibility with legacy code expecting transferOwnership

*This function exists to maintain compatibility with contracts that were built against the previous version of Auth where ownership transfer was named `transferOwnership` The new Auth implementation renamed this to `setOwner` to better reflect the two-step ownership transfer process. This wrapper ensures existing code like BaseVault continues to work without modification Previous version: <https://github.com/transmissions11/solmate/blob/89365b880c4f3c786bdd453d4b8e8fe410344a69/src/auth/Auth.sol> New version: <https://github.com/transmissions11/solmate/blob/eaa7041378f9a6c12f943de08a6c41b31a9870fc/src/auth/Auth.sol>*

```solidity
function transferOwnership(address newOwner) external;
```

**Parameters**

| Name       | Type      | Description                                        |
| ---------- | --------- | -------------------------------------------------- |
| `newOwner` | `address` | Address to start the ownership transfer process to |

## Events

### OwnershipTransferStarted

Emitted when ownership transfer is initiated

```solidity
event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);
```

**Parameters**

| Name            | Type      | Description                                    |
| --------------- | --------- | ---------------------------------------------- |
| `previousOwner` | `address` | The current owner initiating the transfer      |
| `newOwner`      | `address` | The new owner who needs to accept the transfer |

## Errors

### Aera\_\_ZeroAddressAuthority

```solidity
error Aera__ZeroAddressAuthority();
```

### Aera\_\_Unauthorized

```solidity
error Aera__Unauthorized();
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aera.finance/the-protocol/core/iauth2step.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
