Skip to content

Commit

Permalink
Merge branch 'dev' into fix-automated-package-actions3
Browse files Browse the repository at this point in the history
  • Loading branch information
cristidas authored Apr 23, 2024
2 parents 8f88b5a + 3efbc3f commit 6fa7097
Show file tree
Hide file tree
Showing 121 changed files with 3,585 additions and 581 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
DEBANK_API_KEY: ${{ secrets.DEBANK_API_KEY }}
DEBANK_API_URL: ${{ secrets.DEBANK_API_URL }}
POWERTOOLS_LOG_LEVEL: ${{ vars.POWERTOOLS_LOG_LEVEL }}
REDIS_CACHE_URL: ${{ secrets.REDIS_CACHE_URL }}
REDIS_CACHE_USER: ${{ secrets.REDIS_CACHE_USER }}
REDIS_CACHE_PASSWORD: ${{ secrets.REDIS_CACHE_PASSWORD }}

steps:
- name: Git clone the repository
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/deploy-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
DEBANK_API_KEY: ${{ secrets.DEBANK_API_KEY }}
DEBANK_API_URL: ${{ secrets.DEBANK_API_URL }}
POWERTOOLS_LOG_LEVEL: ${{ vars.POWERTOOLS_LOG_LEVEL }}
REDIS_CACHE_URL: ${{ secrets.REDIS_CACHE_URL }}
REDIS_CACHE_USER: ${{ secrets.REDIS_CACHE_USER }}
REDIS_CACHE_PASSWORD: ${{ secrets.REDIS_CACHE_PASSWORD }}

steps:
- name: Git clone the repository
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/merge-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
ref: dev
fetch-depth: 0
github-token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.PAT }}

- uses: actions/setup-node@v4
with:
Expand All @@ -38,4 +38,4 @@ jobs:
git push origin main
git status
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PAT }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ artifacts
# geneated GraphQL types
/**/types/graphql/*.ts

# other generated files
/packages/**/src/generated/

# nx files
.nx

Expand Down
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ abis
artifacts
**/core-contracts/src/
**/.sst/**
**/.turbo/**
**/.turbo/**
/packages/**/src/generated
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"private": true,
"scripts": {
"dev": "turbo run dev --concurrency=100",
"prebuild": "turbo run prebuild --cache-dir=.turbo",
"build": "turbo run build --cache-dir=.turbo",
"lint": "turbo run lint --cache-dir=.turbo",
Expand Down Expand Up @@ -33,7 +34,7 @@
"@types/aws-lambda": "^8.10.137",
"@types/jest": "^29.5.12",
"@types/node": "^20.12.7",
"aws-cdk-lib": "2.137.0",
"aws-cdk-lib": "2.132.1",
"constructs": "10.3.0",
"dotenv": "^16.4.5",
"esbuild": "^0.20.2",
Expand All @@ -53,7 +54,7 @@
"name": "summerfi-monorepo",
"packageManager": "pnpm@8.15.4",
"engines": {
"node": ">=18"
"node": ">=20"
},
"dependencies": {
"bignumber.js": "^9.1.2",
Expand Down
3 changes: 1 addition & 2 deletions packages/aave-spark-subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"tsc": "tsc",
"watch": "tsc -w",
"test": "jest --passWithNoTests",
"build": "tsc -b -v",
"dev": "tsc -b -w",
"prebuild": "pnpm run generate-ts-types",
"generate-ts-types": "graphql-codegen --config graphql.config.yml",
"lint": "eslint .",
Expand Down
49 changes: 49 additions & 0 deletions packages/aave-spark-subgraph/queries/intrest-rates.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
query GetInterestRates(
$token: String!,
$tokenBytes: ID!,
$protocol: String!,
$fromTimestamp: BigInt!,
$toTimestamp: BigInt!
$first: Int!,
$skip: Int!) {

token(id: $tokenBytes) {
id
symbol
address
decimals
}

interestRates(
where: { token: $token, timestamp_gte: $fromTimestamp, timestamp_lte: $toTimestamp, protocol: $protocol },
orderBy: timestamp,
orderDirection: asc,
first: $first,
skip: $skip) {
id
rate
timestamp
type
}
previousBorrowRate: interestRates(
where: { token: $token, timestamp_lt: $fromTimestamp, type: "borrow-variable", protocol: $protocol },
orderBy: timestamp,
orderDirection: desc,
first: 1) {
id
rate
timestamp
type
}

previousLendRate: interestRates(
where: { token: $token, timestamp_lt: $fromTimestamp, type: "lend", protocol: $protocol },
orderBy: timestamp,
orderDirection: desc,
first: 1) {
id
rate
timestamp
type
}
}
Loading

0 comments on commit 6fa7097

Please sign in to comment.