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.2.0.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file ape-safe-0.2.0.tar.gz
.
File metadata
- Download URL: ape-safe-0.2.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0a1 CPython/3.8.2 Darwin/20.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e9c6c4b94fa09849d6dba12e2deb4552dbf7a42921d0b4e3446c49e7b94308c |
|
MD5 | 541594653ec1ce1f39eda2e9fd565b55 |
|
BLAKE2b-256 | 163139704631111a011818b34321e1afa5034f5e399adbbfc0d74df82c745c4b |
File details
Details for the file ape_safe-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: ape_safe-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0a1 CPython/3.8.2 Darwin/20.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37b793bdcec802be42f9d26c1d5b63e0cd3fb81260b3a72c6b7927f4515c0583 |
|
MD5 | b5ce7def49bc56d86f24dc6d9eeae08a |
|
BLAKE2b-256 | d0940c5da07f2280d5e11a7d79ff8bfe11a9d0b4dfbe6f1ea109af00e43ee8cd |