brownie-safe 0.9.2
pip install brownie-safe
Latest version
Released:
Build complex Gnosis Safe transactions and safely preview them in a forked environment.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: banteg
- Requires: Python <3.13, >=3.10
Classifiers
- License
- Programming Language
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
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: banteg
- Requires: Python <3.13, >=3.10
Classifiers
- License
- Programming Language
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
File details
Details for the file brownie_safe-0.9.2.tar.gz
.
File metadata
- Download URL: brownie_safe-0.9.2.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.11 Darwin/24.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d452cb3c4c9b64d29eb6269ba00f0bb313b81545f6e692aee6a30257015ef79f |
|
MD5 | 3eb45ed44e0d821c49279d66df2dde95 |
|
BLAKE2b-256 | 131fa135707eb7bcb87fc93956ae5ecaa5e9a6b726d7ac54f36353f5cce5fc5c |
File details
Details for the file brownie_safe-0.9.2-py3-none-any.whl
.
File metadata
- Download URL: brownie_safe-0.9.2-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.11 Darwin/24.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc10cc92fff16a942f88c774d1638b871dc7a729403ad03373c50a2a494addca |
|
MD5 | 284cfd818493bfbfc4e91598d6af7ac0 |
|
BLAKE2b-256 | c9244eb1fc1ec54fa4017514ff5601661bcc6aa0d8e61a67662a089fe876db96 |