Skip to main content

Build complex Gnosis Safe transactions and safely preview them in a forked environment.

Project description

Brownie Safe: Gnosis Safe tx builder

Read Documentation

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


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.2.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

brownie_safe-0.8.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file brownie_safe-0.8.2.tar.gz.

File metadata

  • Download URL: brownie_safe-0.8.2.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.11 Darwin/22.6.0

File hashes

Hashes for brownie_safe-0.8.2.tar.gz
Algorithm Hash digest
SHA256 7a371bc0672e3b3da3f6fea03d197e8222bc05435756024c1a03222834133976
MD5 bbd65bc934fd5d9cc28fe8952790905d
BLAKE2b-256 deb3ba2f9589e41d2fd83b673116318157e41cf73bc5c9874cce89bb46ebc576

See more details on using hashes here.

File details

Details for the file brownie_safe-0.8.2-py3-none-any.whl.

File metadata

  • Download URL: brownie_safe-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 6.8 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

Hashes for brownie_safe-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cf6081aab4ea5e300f3c73aae3f341635bb63c0064dea242514071fb1ef8752c
MD5 e69fc80875ddec4a907348d360b82b8d
BLAKE2b-256 580c0a7786a2dc81f95ad4dc6c998a99784d1ffeeffffa003ce6a44bf2165b20

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page