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.3.tar.gz
(6.5 kB
view details)
Built Distribution
File details
Details for the file brownie_safe-0.8.3.tar.gz
.
File metadata
- Download URL: brownie_safe-0.8.3.tar.gz
- Upload date:
- Size: 6.5 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 | b4195bd6be90c4f1e3da024c093521a6e50bb4863af86a3989c84e713195b955 |
|
MD5 | 6920ce4287735089ea6390c5ecc61f0e |
|
BLAKE2b-256 | 23af93e053c9891eef2739807265985140361257edd1d2651ce40f294141ef2b |
File details
Details for the file brownie_safe-0.8.3-py3-none-any.whl
.
File metadata
- Download URL: brownie_safe-0.8.3-py3-none-any.whl
- Upload date:
- Size: 6.9 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 | f32e8d5927b0b14b3c91c398a289a4fc58dcb5c52b147219b88db61dcebc26b5 |
|
MD5 | ec36f49f99fb1fc599f871c2fe80cbb8 |
|
BLAKE2b-256 | d3eba1b404fed088930ed2b5faa4d4c96e11eba1e670987140b2fbf66d3b3cb4 |