Build complex Gnosis Safe transactions and safely preview them in a forked environment.
Project description
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
brownie console --network mainnet-fork
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 for more examples and full reference.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ape-safe-0.4.0.tar.gz
(5.8 kB
view details)
Built Distribution
File details
Details for the file ape-safe-0.4.0.tar.gz
.
File metadata
- Download URL: ape-safe-0.4.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.10.0 Darwin/21.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fadbf74a1e1707120500fc953a36c1f1d8e3e4fbb7b0f0fb94fb1440f69f442 |
|
MD5 | 9d4bbe06dc27e189038ff6f6888e8fda |
|
BLAKE2b-256 | 565e24d7b674bda8d8dd835dbafd9834ff8c29b30f0e77ba136aebc096c6ff7c |
File details
Details for the file ape_safe-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: ape_safe-0.4.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.10.0 Darwin/21.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 971e652ce3b76b60d0472e65f7f42edb72c27e5dd07957fc6043a7d982965dee |
|
MD5 | 5ac2d8e383f24f3f7e0992f959b2ea6a |
|
BLAKE2b-256 | a0db00c9f2add26d59d0d680e2d7cf3878caccc99575996c9c8b6055a39b868d |