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.4.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file ape-safe-0.1.4.tar.gz
.
File metadata
- Download URL: ape-safe-0.1.4.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 | a07fbeb81f634acbac580313041bdf6426798078e6a36c37bbfe7315abddce01 |
|
MD5 | cdf77b60cd5a5d0761d004f67700d65b |
|
BLAKE2b-256 | e1aa5ed98d792d9e228fda65ef265d2d1632317cce9000fcfde6565c09a88ffd |
File details
Details for the file ape_safe-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: ape_safe-0.1.4-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 | 2460b388bbba265b2e33cdba245a9326557f1e9531024f6ffcab14931a6b01ee |
|
MD5 | 677824c2949b285e8f8704d18a30c393 |
|
BLAKE2b-256 | 2ef92f0f708df88f8084fca0b7cb9b5db2f6506969778f48559aea351093988b |