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

Clean up code #552

Merged
merged 4 commits into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
21 changes: 3 additions & 18 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,23 +107,8 @@ jobs:
exit 1

update_tokenlist:
uses: ./.github/workflows/upload-tokenlist.yml
needs: changed_files
runs-on: ubuntu-latest
environment: tokenlist-check
if: ${{ !failure() }}
steps:
# Setup python and poetry (cached)
- name: Check out the repository
uses: actions/checkout@v3
- name: "Setup Python, Poetry and Dependencies"
uses: packetcoders/action-setup-cache-python-poetry@main
with:
python-version: 3.11
poetry-version: 1.8.3

- name: Generate and upload tokenlist
env:
DRPC_KEY: ${{ secrets.DRPC_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
poetry run python upkeep.py
secrets:
DRPC_KEY: ${{ secrets.DRPC_KEY }}
24 changes: 22 additions & 2 deletions .github/workflows/upload-tokenlist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Upload Tokenlist

on:
workflow_dispatch:
workflow_call:

jobs:
upload-tokenlist:
Expand All @@ -15,8 +16,27 @@ jobs:
with:
python-version: 3.11
poetry-version: 1.8.3
- name: Upload tokenlist

- name: Upload full tokenlist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DRPC_KEY: ${{ secrets.DRPC_KEY }}
run: poetry run python upkeep.py all_networks

- name: Upload ethereum tokenlist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DRPC_KEY: ${{ secrets.DRPC_KEY }}
run: poetry run python upkeep.py ethereum

- name: Upload arbitrum tokenlist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DRPC_KEY: ${{ secrets.DRPC_KEY }}
run: poetry run python upkeep.py arbitrum

- name: Upload gnosis tokenlist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DRPC_KEY: ${{ secrets.DRPC_KEY }}
run: poetry run python upkeep.py
run: poetry run python upkeep.py gnosis
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Python

Check failure on line 1 in .gitignore

View workflow job for this annotation

GitHub Actions / PR automated checks

Only additions of token icons (in the /images folder) or platform logos (in the /platforms folder) are permitted
__pycache__/
*.py[cod]
*$py.class
Expand Down Expand Up @@ -69,4 +69,7 @@
.mypy_cache/

# Pyre type checker
.pyre/
.pyre/

curve_tokenlist.json
failed_tokens_report.json
54 changes: 0 additions & 54 deletions check_tokenlist.py

This file was deleted.

Loading
Loading