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.1.2.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file ape-safe-0.1.2.tar.gz
.
File metadata
- Download URL: ape-safe-0.1.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.2 Darwin/20.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c4191ce8326a1de4ece7ff73ea1c2c29487badb5be9a261448f6ff7b4a9a61d |
|
MD5 | 5180b36fe80c904ed8adbb81742b3648 |
|
BLAKE2b-256 | 1a035e65f85a2346b865441380c9dc2d5f57b0209dea9e2c2fee60a43d11a717 |
File details
Details for the file ape_safe-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: ape_safe-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.2 Darwin/20.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e0c7fcf1098a6d022b5fe1a1adc7582288bd2edfe16ed777a9d7b02cf05e54b |
|
MD5 | e6f660f1510cda46697dc445ee158f59 |
|
BLAKE2b-256 | f6173c4ec4cab45e4ecf410d6957ffa894873b2211bd4df4e6ba1ca9ff03bf4f |