ape-safe-0.7.1
توضیحات
Build complex Gnosis Safe transactions and safely preview them in a forked environment.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ape-safe-0.7.1 |
| نام | ape-safe |
| نسخه کتابخانه | 0.7.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | banteg |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/banteg/ape-safe |
| آدرس اینترنتی | https://pypi.org/project/ape-safe/ |
| مجوز | MIT |
# 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.
نیازمندی
| مقدار | نام |
|---|---|
| >=1.19.2,<2.0.0 | eth-brownie |
| >=5.0.0,<6.0.0 | safe-eth-py |
| >=0.13.5,<0.14.0 | trezor |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<3.11 | Python |
نحوه نصب
نصب پکیج whl ape-safe-0.7.1:
pip install ape-safe-0.7.1.whl
نصب پکیج tar.gz ape-safe-0.7.1:
pip install ape-safe-0.7.1.tar.gz