Skip to main content

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

Project description

Ape Safe: Gnosis Safe tx builder

Ape 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.

Installation

pip install -U ape-safe

Quickstart

brownie console --network mainnet-fork
from ape_safe import ApeSafe
safe = ApeSafe('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

ape-safe-0.3.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

ape_safe-0.3.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file ape-safe-0.3.1.tar.gz.

File metadata

  • Download URL: ape-safe-0.3.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.10.0 Darwin/21.1.0

File hashes

Hashes for ape-safe-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0cebb6123ca7e8c4e51f8224cfd330d71aa77cdf94d0e3134f71821fa3ec4494
MD5 5a807cd896e7af57a52127fd3566c0d4
BLAKE2b-256 f1239bccb7448f64f02329f51f8365b5f7c3049d8b6cea94fc4568c880facbea

See more details on using hashes here.

File details

Details for the file ape_safe-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: ape_safe-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.10.0 Darwin/21.1.0

File hashes

Hashes for ape_safe-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2143aa032f9028705f68d773b6e0d18bc557f2ab6321daecaa8e12ab70d259e2
MD5 217a56af73de9db3f8a5607a0c57be5a
BLAKE2b-256 cb58fa1f9911e55a05fda344a8e6e2ebb77e02d650cbbd330a58db5f0822226c

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