# 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 |
