%global _empty_manifest_terminate_build 0 Name: python-ape-safe Version: 0.7.1 Release: 1 Summary: Build complex Gnosis Safe transactions and safely preview them in a forked environment. License: MIT URL: https://github.com/banteg/ape-safe Source0: https://mirrors.nju.edu.cn/pypi/web/packages/38/87/ba74328dcc5a0691d6d039ebc407003046d993a7b87fd7fdf15ac6abfedd/ape_safe-0.7.1.tar.gz BuildArch: noarch Requires: python3-eth-brownie Requires: python3-safe-eth-py Requires: python3-trezor %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 ```bash brownie console --network mainnet-fork ``` ```python 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](https://safe.ape.tax/) for more examples and full reference. %package -n python3-ape-safe Summary: Build complex Gnosis Safe transactions and safely preview them in a forked environment. Provides: python-ape-safe BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-ape-safe # 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 ```bash brownie console --network mainnet-fork ``` ```python 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](https://safe.ape.tax/) for more examples and full reference. %package help Summary: Development documents and examples for ape-safe Provides: python3-ape-safe-doc %description help # 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 ```bash brownie console --network mainnet-fork ``` ```python 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](https://safe.ape.tax/) for more examples and full reference. %prep %autosetup -n ape-safe-0.7.1 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-ape-safe -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Wed May 31 2023 Python_Bot - 0.7.1-1 - Package Spec generated