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
uv pip install brownie-safe --pre
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file brownie_safe-0.9.3.tar.gz.
File metadata
- Download URL: brownie_safe-0.9.3.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
772a3ec28dca7a54f83a8d40ead34e90efb17100a819b6f54ca8322529f7b61f
|
|
| MD5 |
bfc229db2e5f027a8651312046792314
|
|
| BLAKE2b-256 |
e44048c69665f0110bb84303510765e782115bae14977562a7614c3e334ddc92
|
File details
Details for the file brownie_safe-0.9.3-py3-none-any.whl.
File metadata
- Download URL: brownie_safe-0.9.3-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91e1b5b3cc4885dd72cba2b0cdacb2277611fa51f55110e80f5e56c22233c43a
|
|
| MD5 |
d4cc23d8225759befa7c1885085122fb
|
|
| BLAKE2b-256 |
1a42c0f416c668bb8b8a8e33cf782c47bee98626d0d8061af9229c107af07c51
|