Metadata-Version: 2.1
Name: ape-safe
Version: 0.3.1
Summary: Build complex Gnosis Safe transactions and safely preview them in a forked environment.
Home-page: https://github.com/banteg/ape-safe
License: MIT
Author: banteg
Author-email: banteeg@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: eth-brownie (>=1.17.0,<2.0.0)
Requires-Dist: gnosis-py (>=3.6.0,<4.0.0)
Project-URL: Repository, https://github.com/banteg/ape-safe
Description-Content-Type: text/markdown

# Ape Safe: Gnosis Safe tx builder

Ape Safe allows you to iteratively build complex multi-step Gnosis Safe transactions and safely preview their side effects from the convenience of a locally forked mainnet environment.

## Installation

```
pip install -U ape-safe
```

## Quickstart

```bash
brownie console --network mainnet-fork
```

```python
from ape_safe import ApeSafe
safe = ApeSafe('ychad.eth')

dai = safe.contract('0x6B175474E89094C44Da98b954EedeAC495271d0F')
vault = safe.contract('0x19D3364A399d251E894aC732651be8B0E4e85001')

amount = dai.balanceOf(safe.account)
dai.approve(vault, amount)
vault.deposit(amount)

safe_tx = safe.multisend_from_receipts()
safe.preview(safe_tx)
safe.post_transaction(safe_tx)
```

See [Documentation](https://safe.ape.tax/) for more examples and full reference.

