From 8ad944ed9ea437d45e1f04a63913757e28594fd2 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 31 May 2023 03:22:13 +0000 Subject: automatic import of python-ape-safe --- .gitignore | 1 + python-ape-safe.spec | 174 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 176 insertions(+) create mode 100644 python-ape-safe.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..08167f9 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/ape_safe-0.7.1.tar.gz diff --git a/python-ape-safe.spec b/python-ape-safe.spec new file mode 100644 index 0000000..739e8d9 --- /dev/null +++ b/python-ape-safe.spec @@ -0,0 +1,174 @@ +%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 diff --git a/sources b/sources new file mode 100644 index 0000000..db63b00 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +833080d9864391309b466af3100a2de2 ape_safe-0.7.1.tar.gz -- cgit v1.2.3