# ProxyWallet

#### Overview

The `ProxyWallet` serves as a flexible, owner-controlled wallet that can execute arbitrary transactions. It uses a `ProxyActionsStorage` to manage state and actions and leverages comprehensive access control via `FathomAuth`.

#### Events

* **`LogSetAuthority`** (from `FathomAuthEvents`):
  * Emitted when the authority for this contract is set.
  * Parameters:
    * `_authority` (address indexed): The address of the new authority.
* **`LogSetOwner`** (from `FathomAuthEvents`):
  * Emitted when the owner of the contract is changed.
  * Parameters:
    * `_owner` (address indexed): The address of the new owner.
* **`LogNote`** (from `FathomNote`):
  * Emitted for each transaction executed through the proxy wallet, providing details of the operation.
  * Parameters:
    * `sig` (bytes4 indexed): The signature of the function called.
    * `guy` (address indexed): The address initiating the call.
    * `foo` (bytes32 indexed): Part of the call data.
    * `bar` (bytes32 indexed): Part of the call data.
    * `wad` (uint256): The value involved in the transaction.
    * `fax` (bytes): Full call data.

#### State Variables

* **`proxyActionsStorage`** (`ProxyActionsStorage`):
  * The storage contract used for managing proxy actions and settings.
* **`authority`** (`IAuthority` from `FathomAuth`):
  * The authority contract that checks permissions for actions.
* **`owner`** (`address` from `FathomAuth`):
  * The owner of the contract, who has elevated privileges.

#### Functions

* **`execute`**:
  * Executes a transaction via the proxy, allowing the wallet to interact with other contracts.
  * Parameters:
    * `_data` (bytes memory): The calldata or transaction data to be executed.
  * Returns:
    * `_response` (bytes memory): The return data from the executed call.
* **`receive`**:
  * A fallback function to allow the contract to receive Ether directly.


---

# 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.fathom.fi/fxd-stablecoin/interfaces/proxywallet.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.
