-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
162 changed files
with
8,737 additions
and
4,940 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,11 @@ | ||
node_modules | ||
**/node_modules | ||
|
||
dist | ||
**/dist | ||
**/*.tsbuildinfo | ||
|
||
.git | ||
.gitignore | ||
|
||
databases |
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 |
---|---|---|
|
@@ -135,4 +135,6 @@ dist | |
*.tsbuildinfo | ||
|
||
*db-shm | ||
*db-wal | ||
*db-wal | ||
|
||
databases/*_index_history.db |
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,16 @@ | ||
FROM node:20 | ||
|
||
WORKDIR /app | ||
|
||
COPY package*.json ./ | ||
COPY packages/adapters-library/package*.json ./packages/adapters-library/ | ||
COPY packages/adapters-api/package*.json ./packages/adapters-api/ | ||
COPY packages/workers/package*.json ./packages/workers/ | ||
|
||
RUN npm ci | ||
|
||
COPY . . | ||
|
||
RUN npm run build | ||
|
||
CMD ["node", "packages/adapters-api/index.js"] |
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,17 @@ | ||
FROM node:20 | ||
|
||
WORKDIR /app | ||
|
||
RUN npm install -g pm2 | ||
|
||
COPY package*.json ./ | ||
COPY packages/adapters-library/package*.json ./packages/adapters-library/ | ||
COPY packages/workers/package*.json ./packages/workers/ | ||
|
||
RUN npm ci | ||
|
||
COPY . . | ||
|
||
RUN npm run build | ||
|
||
CMD ["pm2-runtime", "start", "packages/workers/pm2.config.json"] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,44 @@ | ||
services: | ||
api: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.api | ||
ports: | ||
- "3000:3000" | ||
volumes: | ||
- sqlite_data:/app/databases | ||
environment: | ||
- DEFI_ADAPTERS_PROVIDER_ETHEREUM | ||
- DEFI_ADAPTERS_PROVIDER_OPTIMISM | ||
- DEFI_ADAPTERS_PROVIDER_BSC | ||
- DEFI_ADAPTERS_PROVIDER_POLYGON | ||
- DEFI_ADAPTERS_PROVIDER_FANTOM | ||
- DEFI_ADAPTERS_PROVIDER_BASE | ||
- DEFI_ADAPTERS_PROVIDER_ARBITRUM | ||
- DEFI_ADAPTERS_PROVIDER_AVALANCHE | ||
- DEFI_ADAPTERS_PROVIDER_LINEA | ||
- DEFI_ADAPTERS_USE_POSITIONS_CACHE | ||
workers: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.workers | ||
volumes: | ||
- sqlite_data:/app/databases | ||
environment: | ||
- DEFI_ADAPTERS_PROVIDER_ETHEREUM | ||
- DEFI_ADAPTERS_PROVIDER_OPTIMISM | ||
- DEFI_ADAPTERS_PROVIDER_BSC | ||
- DEFI_ADAPTERS_PROVIDER_POLYGON | ||
- DEFI_ADAPTERS_PROVIDER_FANTOM | ||
- DEFI_ADAPTERS_PROVIDER_BASE | ||
- DEFI_ADAPTERS_PROVIDER_ARBITRUM | ||
- DEFI_ADAPTERS_PROVIDER_AVALANCHE | ||
- DEFI_ADAPTERS_PROVIDER_LINEA | ||
|
||
volumes: | ||
sqlite_data: | ||
driver: local | ||
driver_opts: | ||
type: none | ||
o: bind | ||
device: ${PWD}/databases |
Oops, something went wrong.