From b55e04b6e16a3f6cbf1fd2b180210f1ebface34d Mon Sep 17 00:00:00 2001 From: Gosuto Inzasheru Date: Mon, 29 Jul 2024 13:43:13 +0900 Subject: [PATCH 1/4] chore: transfer 250k usdc to gitcoin --- .gitignore | 3 ++- helpers/addresses.py | 3 +++ scripts/issue/1551/pay_gitcoin_grant_budget.py | 10 ++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 scripts/issue/1551/pay_gitcoin_grant_budget.py diff --git a/.gitignore b/.gitignore index 4ef2f3bc..1174910b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -# brownie/python/pytest +# brownie/python/pytest/web3 __pycache__ .history .hypothesis/ @@ -7,6 +7,7 @@ reports/ .env *venv* .pytest_cache +.build/ # editors .idea/ diff --git a/helpers/addresses.py b/helpers/addresses.py index c73be5ea..044d0234 100644 --- a/helpers/addresses.py +++ b/helpers/addresses.py @@ -719,6 +719,9 @@ "quest_board_veliq": "0xcbd27bf506aB5580Ef86Fe6a169449bc24Be471B", }, }, + "gitcoin": { + "matching_pools_funds": "0xde21F729137C5Af1b01d73aF1dC21eFfa2B8a0d6" + }, "llamapay": "0x3E67cc2C7fFf86d9870dB9D02c43e789B52FB296", } diff --git a/scripts/issue/1551/pay_gitcoin_grant_budget.py b/scripts/issue/1551/pay_gitcoin_grant_budget.py new file mode 100644 index 00000000..30144d88 --- /dev/null +++ b/scripts/issue/1551/pay_gitcoin_grant_budget.py @@ -0,0 +1,10 @@ +from great_ape_safe import GreatApeSafe +from helpers.addresses import r + + +def main(): + vault = GreatApeSafe(r.badger_wallets.treasury_vault_multisig) + usdc = vault.contract(r.treasury_tokens.USDC) + vault.take_snapshot([usdc]) + usdc.transfer(r.gitcoin.matching_pools_funds, 250_000e6) + vault.post_safe_tx() From fcf30b7758eb45e154262e4efb69f9f51fb13059 Mon Sep 17 00:00:00 2001 From: Gosuto Inzasheru Date: Mon, 29 Jul 2024 13:55:11 +0900 Subject: [PATCH 2/4] ci: bump actions to support node20 --- .github/workflows/black.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 9b1497ca..0ff28325 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -6,11 +6,11 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: '3.9' - cache: 'pip' - - run: pip install --upgrade pip - - run: pip install -r requirements.txt - - run: black . --check --diff + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.9" + cache: "pip" + - run: pip install --upgrade pip + - run: pip install -r requirements.txt + - run: black . --check --diff From 2fc754d0dfa76ae5930a4b165c82892fe180a684 Mon Sep 17 00:00:00 2001 From: Gosuto Inzasheru Date: Mon, 29 Jul 2024 13:58:18 +0900 Subject: [PATCH 3/4] ci: add setuptools dep --- .github/workflows/black.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 0ff28325..fc9cba49 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -12,5 +12,6 @@ jobs: python-version: "3.9" cache: "pip" - run: pip install --upgrade pip + - run: pip install setuptools wheel - run: pip install -r requirements.txt - run: black . --check --diff From b4f123c72d8347d2197c58a2240ea948331a2c00 Mon Sep 17 00:00:00 2001 From: Gosuto Inzasheru Date: Mon, 29 Jul 2024 14:02:59 +0900 Subject: [PATCH 4/4] style: lint --- helpers/addresses.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/helpers/addresses.py b/helpers/addresses.py index 044d0234..93601578 100644 --- a/helpers/addresses.py +++ b/helpers/addresses.py @@ -719,9 +719,7 @@ "quest_board_veliq": "0xcbd27bf506aB5580Ef86Fe6a169449bc24Be471B", }, }, - "gitcoin": { - "matching_pools_funds": "0xde21F729137C5Af1b01d73aF1dC21eFfa2B8a0d6" - }, + "gitcoin": {"matching_pools_funds": "0xde21F729137C5Af1b01d73aF1dC21eFfa2B8a0d6"}, "llamapay": "0x3E67cc2C7fFf86d9870dB9D02c43e789B52FB296", }