-
Notifications
You must be signed in to change notification settings - Fork 1
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 beets_vestooor
- Loading branch information
Showing
70 changed files
with
2,869 additions
and
477 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Lint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
||
- name: Black | ||
uses: psf/black@stable | ||
with: | ||
options: "--verbose" | ||
version: "24.4.0" | ||
|
||
- name: Auto commit | ||
uses: stefanzweifel/[email protected] | ||
with: | ||
commit_message: "style: ci lint with `black`" |
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,36 @@ | ||
name: Generate Core Pools JSON | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * 3" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
refersh_books: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.9" | ||
|
||
- name: Update Files | ||
id: update | ||
run: | | ||
pip3 install -r bal_addresses/requirements.txt | ||
python3 gen_core_pools.py | ||
git add -A | ||
- name: pull-request | ||
uses: peter-evans/create-pull-request@v6 | ||
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" |
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 |
---|---|---|
@@ -1,3 +1,16 @@ | ||
from .addresses import AddrBook, GITHUB_DEPLOYMENTS_RAW, GITHUB_DEPLOYMENTS_NICE, GITHUB_RAW_OUTPUTS, GITHUB_RAW_EXTRAS | ||
from .addresses import ( | ||
AddrBook, | ||
GITHUB_DEPLOYMENTS_RAW, | ||
GITHUB_DEPLOYMENTS_NICE, | ||
GITHUB_RAW_OUTPUTS, | ||
GITHUB_RAW_EXTRAS, | ||
) | ||
from .permissions import BalPermissions | ||
from .errors import MultipleMatchesError, NoResultError | ||
from .errors import ( | ||
MultipleMatchesError, | ||
NoResultError, | ||
ChecksumError, | ||
UnexpectedListLengthError, | ||
) | ||
from .subgraph import Subgraph | ||
from .pools_gauges import BalPoolsGauges |
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 |
---|---|---|
@@ -1,6 +1,18 @@ | ||
|
||
class MultipleMatchesError(Exception): | ||
pass | ||
|
||
|
||
class NoResultError(Exception): | ||
pass | ||
pass | ||
|
||
|
||
class ChecksumError(Exception): | ||
pass | ||
|
||
|
||
class GraphQLRequestError(Exception): | ||
pass | ||
|
||
|
||
class UnexpectedListLengthError(Exception): | ||
pass |
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,11 @@ | ||
query FirstBlockAfterTimestamp($timestamp: BigInt) { | ||
blocks( | ||
first: 1 | ||
orderBy: number | ||
orderDirection: asc | ||
where: { timestamp_gt: $timestamp } | ||
) { | ||
number | ||
timestamp | ||
} | ||
} |
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,15 @@ | ||
query FetchGaugeShares($gaugeAddress: String!, $block: Int) { | ||
gaugeShares( | ||
block: { number: $block } | ||
where: { gauge_contains_nocase: $gaugeAddress, balance_gt: "0" } | ||
orderBy: balance | ||
orderDirection: desc | ||
first: 1000 | ||
) { | ||
balance | ||
id | ||
user { | ||
id | ||
} | ||
} | ||
} |
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,10 @@ | ||
query getAuraGaugeMappings { | ||
gauges(first: 1000) { | ||
pool { | ||
id | ||
gauge { | ||
id | ||
} | ||
} | ||
} | ||
} |
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,10 @@ | ||
query GetUserPoolBalances($poolId: ID!, $block: Int) { | ||
pool(id: $poolId, block: { number: $block }) { | ||
shares(where: { balance_gt: "0" }, orderBy: balance, orderDirection: desc) { | ||
userAddress { | ||
id | ||
} | ||
balance | ||
} | ||
} | ||
} |
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,15 @@ | ||
query LastJoinExit($poolId: String!) { | ||
joinExits(first: 1, orderBy: timestamp, orderDirection: desc, where: {pool: $poolId}) { | ||
amounts | ||
valueUSD | ||
id | ||
sender | ||
timestamp | ||
tx | ||
type | ||
pool { | ||
id | ||
tokensList | ||
} | ||
} | ||
} |
Oops, something went wrong.