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.4.tar.gz
(6.6 kB
view hashes)
Built Distribution
Close
Hashes for brownie_safe-0.8.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb54c809db0ad630b334fd38e4b234256ee4c3bf2cf730610cbb002ec81564ca |
|
MD5 | aee5aaa5fdabfff60cc0dde6b801c1d0 |
|
BLAKE2b-256 | 0422bc7b2df6336dd51991b94e8655c0bda236dbda02ade3e9e93cbe16fe92da |