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

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


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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brownie_safe-0.9.3-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

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

Hashes for brownie_safe-0.9.3.tar.gz
Algorithm Hash digest
SHA256 772a3ec28dca7a54f83a8d40ead34e90efb17100a819b6f54ca8322529f7b61f
MD5 bfc229db2e5f027a8651312046792314
BLAKE2b-256 e44048c69665f0110bb84303510765e782115bae14977562a7614c3e334ddc92

See more details on using hashes here.

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

Hashes for brownie_safe-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 91e1b5b3cc4885dd72cba2b0cdacb2277611fa51f55110e80f5e56c22233c43a
MD5 d4cc23d8225759befa7c1885085122fb
BLAKE2b-256 1a42c0f416c668bb8b8a8e33cf782c47bee98626d0d8061af9229c107af07c51

See more details on using hashes here.

Supported by

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