A collection of ApeSafe scripts which create txns executed by Saddle.finance's multisig
On a machine with Python and mkvenv installed...
-
WARNING this will overwrite existing global brownie network config
Run
./setup.sh
to install deps, move files, and add deployer account. Interactive. -
Run your script against a forked mainnet
brownie run scripts/2022_01_15_1_hello_multisig.py --network mainnet-fork
Use scripts/_template_script.py
to create your new script
To keep files organized, use the following structure:
year_month_day_chainid_[file_name].py
eg 2022_01_15_1_sip_2_admin_fees.py
Optionally use the helper util to ensure that your file is named correctly and is running on the expected chain.
from helpers import assert_filename
# will throw if the script is run on a chain other than what your filename specifies
assert_filename(__file__)
...the rest of my script
Etherscan Cache (optional)
Ensure you have ganache v7 installation
> ganache-cli --version
ganache v7.7.3 (@ganache/cli: 0.8.2, @ganache/core: 0.8.2)
If you are using ganache v6, follow the upgrade guide below to install ganache v7 https://github.com/trufflesuite/ganache/blob/develop/UPGRADE-GUIDE.md
If pip installation fails inside a venv, try removing all pip packages and reinstalling.
git checkout origin/master requirements.txt
pip uninstall -y -r <(pip freeze)
pip install --no-deps -r requirements.txt