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.2.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file ape-safe-0.2.2.tar.gz
.
File metadata
- Download URL: ape-safe-0.2.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.2 Darwin/20.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2593d16feb69c0e4a6c84bf2068ec9b2085edd0cb6977da27958da6c746a1c1f |
|
MD5 | b7d2cccf5ad27bb57515a29ece210125 |
|
BLAKE2b-256 | 1c06c6deea7d43326468071effbc038b506adcfe0d72ae98c31f6c4dd6b657ba |
File details
Details for the file ape_safe-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: ape_safe-0.2.2-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.2 Darwin/20.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96c8649f8226c478ee780d21d2c9ae8e5134249aa39e9692159563e076a7872e |
|
MD5 | a9ab6f870d44736e25899381407f4194 |
|
BLAKE2b-256 | d24d22b40f50097583eac5fcd94186bde25ca2a86a8396107cb43bc705165689 |