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.1.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file ape-safe-0.1.1.tar.gz
.
File metadata
- Download URL: ape-safe-0.1.1.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 | 4fb49e8b800bb1344a23341de4cd6f16bf39e44037137d29199d0ae80fc84fdb |
|
MD5 | b5aebb4878da07e361df257b085fe53c |
|
BLAKE2b-256 | ad6f3a1b7dd8613b66e04918ebf9d2ac1e03a1a60e28e4e4f03ce3d3557b215e |
File details
Details for the file ape_safe-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: ape_safe-0.1.1-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 | 2ddaa1bf60b33a966f8a66ae87e5eb73669d06983e1f8a80ebceccaf73a7e81e |
|
MD5 | ff6acf45de96373ca21386d970503254 |
|
BLAKE2b-256 | 765fd4a90ec90c8dc830dbe87e79e4ffa5956f5b94c50a0b09faf0d6d5947600 |