Build complex Gnosis Safe transactions and safely preview them in a forked environment.
Project description
Brownie Safe: Gnosis Safe tx builder
Brownie 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.
Previously known as Ape Safe
Installation
pip install -U brownie-safe
Quickstart
brownie console --network mainnet-fork
from brownie_safe import BrownieSafe
safe = BrownieSafe('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
brownie_safe-0.8.5.tar.gz
(6.6 kB
view details)
Built Distribution
File details
Details for the file brownie_safe-0.8.5.tar.gz
.
File metadata
- Download URL: brownie_safe-0.8.5.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.11 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b3d09cfd4319806b94a62529a6672ceeb033b4edd276bb71c7171b3d8cf538e |
|
MD5 | b636e8dcf07bb10ed956e62d1ee9302b |
|
BLAKE2b-256 | 41a754583027560abd153f075dd14e5323cd8082f80daa187bdb70bc8f30ef29 |
File details
Details for the file brownie_safe-0.8.5-py3-none-any.whl
.
File metadata
- Download URL: brownie_safe-0.8.5-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.11 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f2a6d67ee3607fe610f0aeb5e309327e55ad7e06486a7a897df49d5fd434dda |
|
MD5 | 1116a41df93f8b77480a35617814b93d |
|
BLAKE2b-256 | e4d64cd49ad3dff31f9f48b5aebadf5bf73f846f6daf9e734c4ec85ff305906f |