Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add gauges to address book #159

Merged
merged 28 commits into from
Jan 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
bebd131
chore: lint
gosuto-inzasheru Nov 24, 2023
02a0bfe
perf: remove unnecessary vars
gosuto-inzasheru Nov 24, 2023
a0fa86e
chore: add template for `.env` file
gosuto-inzasheru Nov 24, 2023
9898112
chore: ignore `.env` file
gosuto-inzasheru Nov 24, 2023
d79ed1c
perf: remove unnecessary lines
gosuto-inzasheru Nov 24, 2023
80c08a4
Merge branch 'main' into feat/add_gauges
gosuto-inzasheru Dec 5, 2023
9c69ca5
feat: add (non dupe) gauges to address book
gosuto-inzasheru Dec 5, 2023
503bba3
Merge branch 'main' into feat/add_gauges
gosuto-inzasheru Dec 12, 2023
724d08f
chore: run `transform-deployments.py`
gosuto-inzasheru Dec 12, 2023
9119404
feat: solve issue of duplicate gauge symbols
gosuto-inzasheru Dec 12, 2023
a5911c5
style: lint
gosuto-inzasheru Dec 15, 2023
caba4ca
feat: dump pools and gauges to their own json
gosuto-inzasheru Dec 15, 2023
6fd942b
style: lint
gosuto-inzasheru Dec 15, 2023
d0650f1
chore: remove prints
gosuto-inzasheru Dec 15, 2023
7b974b1
feat: add pools and gauges from their json files
gosuto-inzasheru Dec 15, 2023
87beb6c
chore: ignore pipenv files
gosuto-inzasheru Dec 15, 2023
96614ad
feat: integrate pools and gauges into `AddrBook`
gosuto-inzasheru Dec 15, 2023
99a75c3
ci: integrate `gen_pools_and_gauges.py` into workflow
gosuto-inzasheru Dec 15, 2023
6be49b8
Merge branch 'main' into feat/add_gauges
gosuto-inzasheru Dec 16, 2023
95361a1
chore: upload newest outputs
gosuto-inzasheru Dec 16, 2023
7a56abb
feat: prio deployment label over pool/gauge label
gosuto-inzasheru Dec 19, 2023
9073c4d
docs: explain ordering
gosuto-inzasheru Dec 19, 2023
8e214ae
chore: upload latest outputs
gosuto-inzasheru Dec 19, 2023
f623c63
feat: also sort non reverse addr book by key
gosuto-inzasheru Dec 19, 2023
52910c5
chore: update outputs
gosuto-inzasheru Dec 19, 2023
ad290f0
chore: upload newest outputs
gosuto-inzasheru Jan 3, 2024
e92b270
style: use standard indentation of 2
gosuto-inzasheru Jan 3, 2024
d0aaab2
chore: using indent of 2
gosuto-inzasheru Jan 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DEPLOYMENTS_REPO_ROOT_URL=./balancer-deployments
ALCHEMY_KEY=
INFURA_KEY=
59 changes: 29 additions & 30 deletions .github/workflows/generate_addressbooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,32 @@ jobs:
runs-on: ubuntu-latest

steps:

- name: Checkout code
uses: actions/checkout@v3

- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.9'


- name: Update Files
id: update
run: |
git clone https://github.com/balancer/balancer-deployments.git
export DEPLOYMENTS_REPO_ROOT_URL=`pwd`/balancer-deployments
pip3 install -r bal_addresses/requirements.txt
python3 transform-deployments.py
python3 gen_addresses.py
rm -rf balancer-deployments
git add -A

- name: pull-request
uses: peter-evans/create-pull-request@v5
with:
commit-message: "Scheduled update from changes to monorepo"
title: "Scheduled update from changes to monorepo"
branch: "gha-addressbook"
reviewers: "Tritum-VLK"
assignees: "Tritum-VLK"
labels: "Automatic"
- name: Checkout code
uses: actions/checkout@v3

- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.9"

- name: Update Files
id: update
run: |
git clone https://github.com/balancer/balancer-deployments.git
export DEPLOYMENTS_REPO_ROOT_URL=`pwd`/balancer-deployments
pip3 install -r bal_addresses/requirements.txt
python3 gen_pools_and_gauges.py
python3 transform-deployments.py
python3 gen_addresses.py
rm -rf balancer-deployments
git add -A

- name: pull-request
uses: peter-evans/create-pull-request@v5
with:
commit-message: "Scheduled update from changes to monorepo"
title: "Scheduled update from changes to monorepo"
branch: "gha-addressbook"
reviewers: "Tritum-VLK"
assignees: "Tritum-VLK"
labels: "Automatic"
52 changes: 25 additions & 27 deletions .github/workflows/generate_permissions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,32 @@ jobs:
refresh_active_perms:
runs-on: ubuntu-latest
env:
INFURA_KEY: ${{ secrets.INFURA_KEY }}
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}
INFURA_KEY: ${{ secrets.INFURA_KEY }}
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Checkout code
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.9"

- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Update Files
id: update
run: |
pip3 install -r bal_addresses/requirements.txt
python3 generate_current_permissions.py
python3 gen_addresses.py
rm -rf balancer-deployments
git add -A


- name: Update Files
id: update
run: |
pip3 install -r bal_addresses/requirements.txt
python3 generate_current_permissions.py
python3 gen_addresses.py
rm -rf balancer-deployments
git add -A

- name: pull-request
uses: peter-evans/create-pull-request@v5
with:
commit-message: "Scheduled update from changes to monorepo"
title: "Scheduled update from changes to monorepo"
branch: "gha-permissions"
reviewers: "Tritum-VLK"
assignees: "Tritum-VLK"
labels: "Automatic"
- name: pull-request
uses: peter-evans/create-pull-request@v5
with:
commit-message: "Scheduled update from changes to monorepo"
title: "Scheduled update from changes to monorepo"
branch: "gha-permissions"
reviewers: "Tritum-VLK"
assignees: "Tritum-VLK"
labels: "Automatic"
24 changes: 12 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.9, '3.10']
python-version: [3.9, "3.10"]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
make
- name: Run tests
run: |
make ci
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
make
- name: Run tests
run: |
make ci
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.idea/
venv/
__pycache__/
__pycache__/
.env
Pipfile*
Loading
Loading