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.6.0.tar.gz
(6.3 kB
view details)
Built Distribution
File details
Details for the file ape-safe-0.6.0.tar.gz
.
File metadata
- Download URL: ape-safe-0.6.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.9.10 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec2fb608cc9180da5b1dc2eea905714995e7781d915f18c7cdb1f37d1ba8ef57 |
|
MD5 | 34946049a5f05453090718dd5e7ef5ef |
|
BLAKE2b-256 | e11701551919e6a0169d9fd5954b4cf4f9b06f111eb6544f7b911ed457bce844 |
File details
Details for the file ape_safe-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: ape_safe-0.6.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.9.10 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e17afa78007a3bba8eb6c958e5cbfd14283e272da538b559178e46bdf4f282ea |
|
MD5 | ab720cc46b5fdd882aaa75f4b17beaf9 |
|
BLAKE2b-256 | aff7a7305584b9f0a76e0f100e16b2d6b1d25a404750f5921da1b6bd6e26f050 |