Skip to content

Commit

Permalink
Merge branch 'master' of github.com:SFT-project/defillama-server
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunnight-wj committed Mar 28, 2024
2 parents 38a1732 + d86e553 commit 57fb346
Show file tree
Hide file tree
Showing 2,473 changed files with 135,362 additions and 98,189 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/check-urls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Check URLs

on:
schedule:
- cron: '0 8 * * 0'
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Install awesome_bot
run: gem install awesome_bot -v 1.20.0
- name: Check URLs
run: awesome_bot defi/src/protocols/* --allow-redirect --request-delay 0.2
6 changes: 5 additions & 1 deletion .github/workflows/coins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: '14.x'
- run: npm ci && ln -s ../coins/node_modules/ ../defi/node_modules
- run: (npm ci || npm i) && ln -s ../coins/node_modules/ ../defi/node_modules
- name: Deploy infrastructure stack
run: npm run deploy:prod
env:
Expand All @@ -46,5 +46,9 @@ jobs:
SOLANA_RPC: ${{ secrets.SOLANA_RPC }}
CG_KEY: ${{ secrets.CG_KEY }}
MISSING_COINS_DB_PWD: ${{ secrets.MISSING_COINS_DB_PWD }}
STALE_COINS_ADAPTERS_WEBHOOK: ${{ secrets.STALE_COINS_ADAPTERS_WEBHOOK }}
R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
R2_ENDPOINT: ${{ secrets.R2_ENDPOINT }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
17 changes: 14 additions & 3 deletions .github/workflows/defi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches: [master]
repository_dispatch:
workflow_dispatch:

defaults:
run:
Expand Down Expand Up @@ -32,7 +33,7 @@ jobs:
- name: Get Node.js
uses: actions/setup-node@v1
with:
node-version: "16"
node-version: '16'
- run: echo "TODAY=$(date +%Y%m%d)" >> $GITHUB_ENV
- name: Get jest cache
uses: actions/cache@v3
Expand Down Expand Up @@ -61,9 +62,7 @@ jobs:
SOLANA_RPC: ${{ secrets.SOLANA_RPC }}
MOONRIVER_RPC: ${{ secrets.MOONRIVER_RPC }}
CRONOS_RPC: ${{ secrets.CRONOS_RPC }}
LOFTY_API: ${{ secrets.LOFTY_API }}
COVALENT_KEY: ${{ secrets.COVALENT_KEY }}
OLYMPUS_GRAPH_API_KEY: ${{ secrets.OLYMPUS_GRAPH_API_KEY }}
OUTDATED_WEBHOOK: ${{ secrets.OUTDATED_WEBHOOK }}
HOURLY_OUTDATED_WEBHOOK: ${{ secrets.HOURLY_OUTDATED_WEBHOOK }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand All @@ -86,6 +85,8 @@ jobs:
AGGREGATORS_WEBHOOK: ${{ secrets.AGGREGATORS_WEBHOOK }}
OPTIONS_WEBHOOK: ${{ secrets.OPTIONS_WEBHOOK }}
ZEROx_API_KEY: ${{ secrets.ZEROx_API_KEY }}
PANCAKESWAP_OPBNB_SUBGRAPH: ${{ secrets.PANCAKESWAP_OPBNB_SUBGRAPH }}
PERENNIAL_V2_SUBGRAPH_API_KEY: ${{ secrets.PERENNIAL_V2_SUBGRAPH_API_KEY }}
INDEXER_DB: ${{ secrets.INDEXER_DB }}
AIRTABLE_API_KEY: ${{ secrets.AIRTABLE_API_KEY }}
AGGREGATOR_DB_URL: ${{ secrets.AGGREGATOR_DB_URL }}
Expand All @@ -98,3 +99,13 @@ jobs:
COINS_DB: ${{ secrets.COINS_DB }}
ACCOUNTS_DB: ${{ secrets.ACCOUNTS_DB }}
CG_KEY: ${{ secrets.CG_KEY }}
ERROR_DB: ${{ secrets.ERROR_DB }}
ERROR_REPORTS_WEBHOOK: ${{ secrets.ERROR_REPORTS_WEBHOOK }}
ERROR_REPORTS_DB: ${{ secrets.ERROR_REPORTS_DB }}
ALLIUM_API_KEY: ${{ secrets.ALLIUM_API_KEY }}
FLIPSIDE_API_KEY: ${{ secrets.FLIPSIDE_API_KEY }}
COINGLASS_KEY: ${{ secrets.COINGLASS_KEY }}
UNLOCKS_WEBHOOK: ${{ secrets.UNLOCKS_WEBHOOK }}
SMARDEX_SUBGRAPH_API_KEY: ${{ secrets.SMARDEX_SUBGRAPH_API_KEY }}
DUNE_API_KEYS: ${{ secrets.DUNE_API_KEYS }}
APIKEY: ${{ secrets.APIKEY }}
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@ docker
.esbuild
.vscode

defi/src/cli/tmp
defi/src/cli/tmp
defi/dev-metrics/app-data
defi/dev-metrics/runner/repo
defi/src/api2/local-scripts
defi/.safe_commit_hash
defi/.current_commit_hash
1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[submodule "DefiLlama-Adapters"]
path = defi/DefiLlama-Adapters
url = https://github.com/DefiLlama/DefiLlama-Adapters.git
branch = main
[submodule "defi/dimension-adapters"]
path = defi/dimension-adapters
url = https://github.com/DefiLlama/dimension-adapters.git
Expand Down
2 changes: 1 addition & 1 deletion coins/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Coins server

For usage: https://defillama.com/docs/api
For contributions: https://docs.llama.fi/coin-prices-api
For contributions: https://docs.llama.fi/coin-prices-api
Loading

0 comments on commit 57fb346

Please sign in to comment.