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.7.1.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file ape_safe-0.7.1.tar.gz
.
File metadata
- Download URL: ape_safe-0.7.1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.9.10 Darwin/22.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50fe0b8424a68bbe011c1bfe9e039b0dcd8428e9060195a4fe332108ce6270e8 |
|
MD5 | 833080d9864391309b466af3100a2de2 |
|
BLAKE2b-256 | 3887ba74328dcc5a0691d6d039ebc407003046d993a7b87fd7fdf15ac6abfedd |
File details
Details for the file ape_safe-0.7.1-py3-none-any.whl
.
File metadata
- Download URL: ape_safe-0.7.1-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.9.10 Darwin/22.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2901cd2e9e16f4eb6bf5271dbc53cc100c1717f0c88f8bf3435e9c2ab0a3338 |
|
MD5 | 641c3527a722edeea6deaeb46c50243c |
|
BLAKE2b-256 | 2e1959ec67c8f0806a07c0fbfa7ddc962c05bd056bd1bd34c95c6658ed46bdfe |