-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chore/claim_hedge_op_rewards
- Loading branch information
Showing
126 changed files
with
19,640 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Recycle Paladin Bribes | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
recycle_bribes: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }} | ||
pull-request-branch: ${{ steps.generate-branch-name.outputs.branch }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install -r tools/python/requirements.txt | ||
- name: Run script | ||
env: | ||
DRPC_KEY: ${{ secrets.DRPC_KEY }} | ||
run: | | ||
python tools/python/paladin_claiming/recycle_bribes.py | ||
- name: Generate branch name | ||
id: generate-branch-name | ||
run: | | ||
echo "branch=paladin-bribes-$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT | ||
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v7 | ||
with: | ||
commit-message: "feat: recycle paladin bribes - ${{ steps.generate-branch-name.outputs.date }}" | ||
title: "Recycle Paladin Bribes - ${{ steps.generate-branch-name.outputs.date }}" | ||
body: | | ||
Run result from [`tools/python/paladin_claiming/recycle_bribes.py`](../blob/main/tools/python/paladin_claiming/recycle_bribes.py) | ||
Output CSV files: | ||
* [Mainnet claimed bribes](../tree/${{ steps.generate-branch-name.outputs.branch }}/MaxiOps/paladin_bribes/${{ steps.generate-branch-name.outputs.date }}/mainnet/paladin_claims_mainnet_${{ steps.generate-branch-name.outputs.date }}.csv) | ||
* [Mainnet tokens to sell](../tree/${{ steps.generate-branch-name.outputs.branch }}/MaxiOps/paladin_bribes/${{ steps.generate-branch-name.outputs.date }}/mainnet/paladin_tokens_to_sell_mainnet_${{ steps.generate-branch-name.outputs.date }}.csv) | ||
* [Arbitrum claimed bribes](../tree/${{ steps.generate-branch-name.outputs.branch }}/MaxiOps/paladin_bribes/${{ steps.generate-branch-name.outputs.date }}/arbitrum/paladin_claims_arbitrum_${{ steps.generate-branch-name.outputs.date }}.csv) | ||
* [Arbitrum tokens to sell](../tree/${{ steps.generate-branch-name.outputs.branch }}/MaxiOps/paladin_bribes/${{ steps.generate-branch-name.outputs.date }}/arbitrum/paladin_tokens_to_sell_arbitrum_${{ steps.generate-branch-name.outputs.date }}.csv) | ||
branch: ${{ steps.generate-branch-name.outputs.branch }} | ||
labels: "Automatic Payload" | ||
delete-branch: true | ||
|
||
run_reports: | ||
needs: recycle_bribes | ||
secrets: inherit | ||
uses: "BalancerMaxis/multisig-ops/.github/workflows/run_reports_reusable.yaml@main" | ||
with: | ||
pr_number: ${{ needs.recycle_bribes.outputs.pull-request-number }} | ||
checkout_ref: ${{ needs.recycle_bribes.outputs.pull-request-branch }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.