> For the complete documentation index, see [llms.txt](https://docs.aera.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aera.finance/the-protocol/core/isubmithooks.md).

# ISubmitHooks

Interface for hooks that execute before and after submit calls

## Functions

### beforeSubmit

Called before a submit

```solidity
function beforeSubmit(bytes memory data, address guardian) external;
```

**Parameters**

| Name       | Type      | Description                            |
| ---------- | --------- | -------------------------------------- |
| `data`     | `bytes`   | Encoded data of the submit             |
| `guardian` | `address` | Address of the guardian that submitted |

### afterSubmit

Called after a submit

```solidity
function afterSubmit(bytes memory data, address guardian) external;
```

**Parameters**

| Name       | Type      | Description                            |
| ---------- | --------- | -------------------------------------- |
| `data`     | `bytes`   | Encoded data of the submit             |
| `guardian` | `address` | Address of the guardian that submitted |
