Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/banteg/brownie-safe
gnosis safe tx builder
https://github.com/banteg/brownie-safe
brownie ethereum gnosis-safe
Last synced: 2 days ago
JSON representation
gnosis safe tx builder
- Host: GitHub
- URL: https://github.com/banteg/brownie-safe
- Owner: banteg
- Created: 2021-03-06T15:32:38.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-10T17:46:08.000Z (7 months ago)
- Last Synced: 2024-04-14T18:52:40.054Z (7 months ago)
- Topics: brownie, ethereum, gnosis-safe
- Language: Python
- Homepage: http://safe.ape.tax/
- Size: 415 KB
- Stars: 267
- Watchers: 12
- Forks: 65
- Open Issues: 9
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Brownie Safe: Gnosis Safe tx builder
[Read Documentation](https://safe.ape.tax/)
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
```bash
brownie console --network mainnet-fork
``````python
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](https://safe.ape.tax/) for more examples and full reference.